> Date: Tue, 30 Mar 2010 19:52:42 +0400 > From: Max Lapshin <max.lapshin at gmail.com> > Subject: Re: [Speex-dev] Speex in flash player: how to work with? > > _microphone = Microphone.getMicrophone(); > _microphone.setSilenceLevel(0); > _microphone.codec = SoundCodec.SPEEX; > _microphone.encodeQuality = 10; > _microphone.rate = 16; > _microphone.framesPerPacket = 1; > _microphone.gain = 80; > _microphone.setUseEchoSuppression(false); > > and this code: > > _microphone = Microphone.getMicrophone(); > _microphone.codec = SoundCodec.SPEEX; > _microphone.gain = 80; > > > generate frames, which are 10 or 52 bytes long. I try to parse them on C: >... > Maybe I'm doing something wrong?After you take them out of the RTMP encapsulation, you may also need to take them out of the .flv format to get to the speex data. Regards, James Salsman
On Wed, Mar 31, 2010 at 8:45 AM, James Salsman <jsalsman at gmail.com> wrote:>> Maybe I'm doing something wrong? > > After you take them out of the RTMP encapsulation, you may also need > to take them out of the .flv format to get to the speex data.Yes, I'm doing it: http://github.com/erlyvideo/erlmedia/blob/master/src/flv.erl#L191 I have a test: I open the file with speex, unpack it to the raw speex data, then pack back. File is playable.