Flash 10 supposedly has support for the Speex audio format. I’d like to embed some Speex files in my SWF:
[Embed(source='assets/test.spx',mimeType='audio/x-speex')]
private static const SpeexSound:Class;
However, I get the error:
no transcoder registered for mimeType 'audio/x-speex'
Any ideas?
I’ve been researching this some more. Here are the options:
You can’t embed FLVs, but you can embed SWFs, so convert a Speex FLV into a Speex SWF. The conversion can be done with ffmpeg like this:
However, that will unfortunately auto-convert the audio into MP3 inside the SWF. You should be able to preserve the codec like this
but ffmpeg doesn’t currently support non-MP3 SWFs. Grr. Perhaps there’s other conversion tools that will do it?