[] pbaacbuffer;}Int wavtoaac (const char * wavdata, int wavdatalen, char * aacdata ){/*** Convert WAV audio data of the length of wavdatalen into AAC and write aacdata* If AAC data is successfully returned, the value-1 is returned if an error occurs.*/If (hencoder = NULL ){Return-1;}Int32 ninputsamples = 0;Int32 readpcmbytesum = 0;Int32 writeaacbytesum = 0;Int32 naacencret = 0;Int32 J = 0;Int32 K = 0;While (readpcmbytesum For (j = 0; j * (Pbpcmbuffer
This article recommends a good example program for playing Wav audio files. If you want to use java, you can refer to it.
The Code is as follows:
Copy code
Import java. io. File;Import java. io. FileInputStream;Import javax. sound. sampled .*;Import javax. swing .*;Public class test extends JFrame{Public static void main (String [] args){Test app = new test ();App. playStartupSound ();}Public test (){SetSize (300,200 );Setdefac
On a brand new Linux PC, e.g. Ubuntu 14.04 AMD64To hear voicesudo Install festival-yThen try to hear some thing from your PCEcho " I am your computer. " | Festival-TTS # orecho"I am your computer. " | Festival--tts--pipeYou'll hear something out.Now replace the voice files, a better one.Tutorial from Https://www.youtube.com/watch?v=4eJTDpAeBSkTo replace voiceCommands including:Install Festival sudo su /usr/share/festival/voices/english/wget -C http://www.speech.cs.cmu.edu/cmu_arctic/packed/cmu_
Wavread and Wavwrite Two functions have been introduced in the previous blog. Here are some other useful functions.
playsnd function
Play sound data.The basic usage is as follows. Where command is only used in Unix class systems.The program used to specify the sound to play. Win under no consideration.
[]=playsnd (Y)
[]=playsnd (y,rate,bits [, command])
If rate is not specified, the default is 22050
Bits are not actually used in the current version, so there is no need to set them.
I usually
Now introduce C + + to achieve the CD grab WAV,CD to grasp the track of several ways, now one of the introduction. We can obtain the device handle through the API function CreateFile, and then use the API function DeviceIoControl to realize the access information of the device. This will also be used to wave file structure WaveFormatEx, and then read the information written to the file to generate wave format files.
We need to use the header files ar
From: http://hi.baidu.com/jasonzang1982/blog/item/060b0b3b5ad073f9b211c79d.html
Te: Terminal EquipmentMS: Mobile Station
Allows a number of simultaneous sessions over a normal Serial Asynchronous interface.1. Te sends at + cmux = 0 to notify ms to
Pppts 26.247-
Transparent end-to-end packet-switched streaming service (PSS );
Progressive download and dynamic adaptive streaming over HTTP (3gp-dash)
The specification introduces the qoe monitoring and reporting framework, which consisting
Based on the analysis in the first three articles, you only need to write a MAKEFILE file to compile main. cpp and aaccodechelper. cpp, as shown below:
Makefile:
Cxx = g ++
Objects = Main. O aaccodechelper. oLibs =-L/usr/local/lib-lfaac-wl,-rpath,
From: http://blog.chinaunix.net/uid-9672747-id-3309602.html
# Include # include # include # include # include # include # include # include typedef struct _ wavefile_header // waveform file header Structure {char chunkid [4]; // "riff"
Font size :{
Function onclick ()
{
Function onclick ()
{
Function onclick ()
{
Changefont (1 );
}
}
}
} "> Large {
Function onclick ()
{
Function onclick ()
{
Function onclick ()
{
Changefont (2 );
}
}
}
} "> Medium {
Function onclick ()
{
Function
This is a very simple small program, but it has also made me a beginner for several days. It is an entry point. I will summarize the learning process and hope it will help beginners.
First, let the source code run. See the FFMPEG provides source
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Include
# Define open_dsp_failed 0x00000001/* failed to open DSP! */# Define samplerate_status 0x00000002/* samplerate status failed */# Define
Now that the sound generation is okay, a random music file similar to a buzzer is generated. (Note: There may be issues such as the format is not formal, but the idea should be okay, and the test can be run.) because it is random, first create a
// To play a File from a disk locaiton
Dim objPlayer As New SoundPlayer
ObjPlayer. SoundLocation = "C: \ Alert.wav"
ObjPlayer. Play ()
// To play a File from applcation as embedded resouceDim objPlayer As New SoundPlayerObjPlayer. Stream =
BlackBerry 10/playbook OS 2.0 has a built-in OpenAL class library, so it's convenient to use the OpenAL class library to play sounds in your program.
The example program cowbell provided on the BlackBerry 10 developer site includes examples of how
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.