InitializationPlugin.DL_Speak.ini ("yxme64uttbjhv0r620180302005400")Get the pronunciation clerk that exists in the systemSS = Plugin.DL_Speak.GetLanguageMessageBox SSSet the pronunciation of the system voice library 0 1 2 3Plugin.DL_Speak.SetLanguage 0Set pronunciation speed +50Plugin.DL_Speak.Rate 50Read the custom textPlugin.DL_Speak.Speak ("But Tretfdgfd of Guangdong Province, a wide range of widely-held Guangdong province Guangdong province")Convert
Unit unit1; interfaceuses windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, stdctrls; Type tform1 = Class (tform) button1: tbutton; button2: tbutton; procedure button1click (Sender: tobject); Procedure button2click (Sender: tobject); end; var form1: tform1; implementation {$ R *. DFM} uses mmsystem; // function for obtaining format information and waveform data from the specified WAV
This design idea: first open a normal WAV audio file, from the 44 bytes in front of the defined file header, remove the file header definition message, placed in a file header structure. Then open the ALSA audio driver, from the file
The format of the wave file in the wav file header: 00 h 4 char "riff" flag
04 H 4 long int file length
08 H 4 char "wave" flag
0ch 4 char "FMT" flag
10 H 4 transition byte (optional)
14 H 2 int format category (10 h is PCM sound data)
16 h, 2 int channels, 1 single channel, 2 dual channels
18 h 2 int sampling rate (nu
What is a WAV file.The WAV file directly reflects the size of a sound at each time point, for example, the following waveform:Take one point for 0.1 seconds each person. The obtained WAV file value is 0, 1,-, 1. Therefore, if we can directly add the data of many
Wav files are also divided into several types, and the corresponding non-data information is stored in the file header section. Below are various WAV file header formats.
Table 1 wave File Header Format for 8 KHz sampling and 16-bit quantization of linear PCM speech signal
value is the number of channels × the data bit value per sample/8. The playback software needs to process multiple bytes of data of this value at a time to adjust the value for the buffer zone.
22 h
2
The number of data digits of each sample, indicating the number of data digits of each sample in each channel. If multiple channels exist, the sample size is the same for each channel.
24 h
4
Char
DATA tag "data"
28 h
Problem
You want to have a method for playing sound quickly. Solution
In xna3.0, you can directly load and play sounds from xNa without loading them using xact. Although this method removes some advanced xact functions, it makes playing sound very easy. Working Principle
First, add a sound file to the project. The method is the same as adding an image to the project. For more information, see tutorial 3-1. The simplest solution is to drag a .
Using System; Using System.IO; Using System.Text; Using System.Windows.Forms; Using System.Runtime.InteropServices; namespace TRAIN.WAV2PCM {public partial class Frmmain:form {///
There is nothing to do today, write a wav "= =" PCM file conversion program. Let's announce that we learn together. The PCM file is not played and is not known to be successful. only w
Write to WAV file
Wav files are in the format of Resource Exchange files (riff), including a number of naming blocks, including header information (such as audio sampling format) or data (such as the sample itself ). Windows 32 API provides functions such as opening and disabling the javasf file and searching for
WAV files are resource Interchange file formats (RIFF), including a number of named blocks that contain header information, such as a sound sampling format, or data (such as the sample itself). The Win API provides functions such as turning off Fiff files, finding blocks, and so on. The names of these functions begin with "Mmio".
The DirectSound API does not include methods for writing
How can I play a wav-file from memory or blob-field?Sometimes you needs to play a some sounds from own app but store these sounds in blob-field of table or in some external files.
To play a wav-file you must call the playsound procedure which have the few parameters-sound (which you want to play ), handle of
Command1.java file converted to class file: Javac-source 1.6-target 1.6 X.java (X.java is the file to be converted, the default is to generate a class file of the same name)Such as:
D:\java\studio\sdk\build-tools\22.0.1>javac-source 1.6-target 1.6 com/chaos/ha
Ck/AntiLazyLoad.java
2.class
1, import wave used to read and write WAV files
It provides a convenient WAV format interface.
However, compression/decompression is not supported and mono/stereo is supported.
Read format:
Open (file[, mode])
If file is a string, open it or treat it as a class file object.
project.
Now we have a new empty project. In the tree directory on the left, find wave banks, which contains waves, which is the audio file. Right-click wave banks and select new wave bank. Then, right-click sound banks and select new sound bank to create a new sound bank. Sound bank contains sound, which are the objects actually played in the xNa project. A sound points to a wave, and some effects can be added to the wave.
Now there should be two
Tutorial on how to capture a CD as a WAV file
1. First, the implementation of exact Audio Copy (hereinafter referred to as EAC) main program, open EAC main interface;
2. Then open the "drive options" in the EAC item in the menu bar to set up the catch mode.
Note: This is critical and directly affects the audio quality of the captured rail
3. "Catch mode" setting: It is recommended to use pre
WAV conforms to the riff (Resource Interchange file Format) files specification, which is used to hold audio information resources for the Windows platform and is widely supported by the Windows platform and its applications, which also supports Msadpcm,ccitt A Law, such as a variety of compression operations, supporting a variety of audio numbers, sampling frequency and channel, standard format
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.