i have captured PCM data from my Audio input (using a Windows C Program )& dumped the captured data into a file. then i used speex encoder to encode that file & created a final encoded file.
i want to used this encoded file in flash & output the captured sound. flash 10 says that it has inbuilt support for speex, however i’m not able to find any function which can decode my data & play the sound.
I tried using flash.media.Sound, SampleDataEvent.SAMPLE_DATA i.e generating sound dynamically. however i’m not able to fill the event.data member with the required data( samples ).
My Audio capture uses the following configuration for recording
Format : WAVE_FORMAT_PCM
Samples per sec : 8000
Bits per sample : 16 ( 2bytes )
for encoding using speex my frameSize is 320
Please provide me with any sample actionscripts to decode the speex encoded data & generated sound data dynamically.
Also the following link
http://help.adobe.com/en_US/ActionSc…F1A087ED7.html
says that maximum of 8192 should be used. Does this mean my samples per second cannot be more than that for my C program. In that case how do i achieve better quality of sound?