Expand my Community achievements bar.

Join us in celebrating the outstanding achievement of our AEM Community Member of the Year!
SOLVED

speex codec.

Avatar

Level 3

friends, i am using flex builder 3 and afcs for building audio chatting. audio quality is very poor. so i decided to use speex code for flash player 10.

but i don't know how to use speex codec in my application.

please give me a step to use speex codec in my application.

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Hi,

Speex codec is available with player 10. You can use AudioPublisher's codec property to set the codec

audioPublisher.codec = SoundCodec.SPEEX for Speex or audioPublisher.codec = SoundCodec.NELLYMOSER ; for setting to Nellymoser.

A use of it is partly there in the PeertoPeerRtmfp example. It is advisable that you need to go through the examples and API's first before posting.

Hope this helps.

Thanks

Hironmay Basu

View solution in original post

4 Replies

Avatar

Correct answer by
Former Community Member

Hi,

Speex codec is available with player 10. You can use AudioPublisher's codec property to set the codec

audioPublisher.codec = SoundCodec.SPEEX for Speex or audioPublisher.codec = SoundCodec.NELLYMOSER ; for setting to Nellymoser.

A use of it is partly there in the PeertoPeerRtmfp example. It is advisable that you need to go through the examples and API's first before posting.

Hope this helps.

Thanks

Hironmay Basu

Avatar

Level 3

sorry for the inconvenience. i am not aware about p2p and c2c. what is difference  in audio chatting?. Your above is absolutely good for me.

Avatar

Level 1

Is there an actual SpeexCodec class? I don't seem to be able to find it?

I have raw Speex encoded audio from an external source that I need to decode.

I am looking for the equivalent of JSpeex 'sNBDecoder.decode() method, which takes a speex's frame and returns an array containing PCM samples.

Avatar

Former Community Member

Hi,

There is a SoundCodec Class , which is an enumeration of constant values used in setting the codec property of the Microphone class. I am not aware of any specific SpeexCodec class.

For details , see http://livedocs.adobe.com/flex/3/langref/flash/media/SoundCodec.html

AFCS only exposes this property in AudioPublisher to allow you to set codec. If you want more details about SoundCodec and other internal classes, please enquire in flash forum.

Thanks

Hironmay Basu

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----