I want to play *.spx files which encoded by Speex on the Web.
But I have no knowledge of Flash/Flex or any Flash Audio codec. After Google search for a whole day, I got some solutions, that is:
Do something wrapping Speex files with a FLV container because that the Speex is only playable as the audio codec in a FLV container.
Now I can play a SPX-Audio-Only FLV file in Flex, I usenetStream.play("audio-only-speex.flv")
, But I donot know how to wrap a Spx file with FLV container using ActionScript.
Any example project?Decode Spx using AS.
I checked out the fllowing pages that they all decoded OGG Vorbis but no Speex :(
http://barelyfocused.net/blog/2008/10/03/flash-vorbis-player
http://www.exswap.com/?p=132
http://mauft.com/2010/11/ogg-vorbis-in-flash
Adobe also provides a AS3 OggVorbis Library which ported by Alchemy:
http://labs.adobe.com/wiki/index.php/Alchemy:LibrariesFMS: do a server streaming using FMS or Red/Xuggle. I have never heard FMS stuffs before, as well as I'm not sure whether my virtual host can support or not...
Convert every Spx files to MP3.
I think the best solution is decoding Spx in AS3, Yes, I'd like to make a Spx Flash Player.
So, I downloaded Speex Library from speex.org, installed Adobe Alchemy. After ./configure;make
the libspeex, build libspeex/speex.c out a libspeex.swc via Alchemy. then, I donot know how to do next. How can I decode the speex audio with AS3?
My libspeex.swc: http://demo.0x123.com/libspeex.swc
In addtion, should I rewrite the libspeex using Alchemy API before build the libspeex.swc?
Although I am not professional in AS, but I have a strong ability to learn. Any advice will be greatly appreciated, Thanks very much.