search for: framesperpacket

Displaying 7 results from an estimated 7 matches for "framesperpacket".

2010 Mar 19
4
Speex in flash player: how to work with?
Nicer way: void* speexState = speex_encoder_init(&speex_wb_mode); int speexFrameSize, speexRate; speex_encoder_ctl(speexState, SPEEX_GET_FRAME_SIZE, &speexFrameSize); speex_encoder_ctl(speexState, SPEEX_GET_SAMPLING_RATE, &speexRate); SpeexPreprocessState* speexPreprocessState = speex_preprocess_state_init(speexFrameSize, speexRate); Jozsef -----Original Message----- From: Max
2009 Jul 16
1
Encoding/Decoding doubts
Flash player encodes speex at 16 kHz, mono, 16 bit. Fields in the format byte should be ignored if the format is speex. You can set the quality by Microphone.encodeQuality (default 6). You can also set the number of speex frames per tc message using Microphone.framesPerPacket. Flash player can only decode speex at 16 kHz, so make sure you have the proper sample rate. Jozsef > > Message: 2 > Date: Sun, 12 Jul 2009 18:36:28 +0100 > From: Daniel Rosado <dsrosado at gmail.com> > Subject: [Speex-dev] Encoding/Decoding doubts > To: speex-dev at xip...
2010 Mar 30
0
Speex in flash player: how to work with?
...ate = speex_preprocess_state_init(speexFrameSize, speexRate); > Jozsef, would you kindly help me. Both, this code: _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: speex_bits_init(&driver-&gt...
2010 Mar 31
1
Speex in flash player: how to work with?
...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...
2010 Mar 31
1
Speex in flash player: how to work with?
...ate = speex_preprocess_state_init(speexFrameSize, speexRate); > Jozsef, would you kindly help me. Both, this code: _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: speex_bits_init(&driver-&gt...
2010 Mar 19
2
Speex in flash player: how to work with?
...e: text/plain; charset=UTF-8 Hi everyone. I want to work with Speex audio, that sends Flash player, but I don't understand how. These are settings in flash: _microphone.setSilenceLevel(0); _microphone.codec = SoundCodec.SPEEX; _microphone.encodeQuality = 10; _microphone.rate = 8; _microphone.framesPerPacket = 1; _microphone.gain = 70; _microphone.setUseEchoSuppression(false); With this settings I get frames exactly 106 bytes. speexdec.c has a hardcoded constant of 160 shorts. How must I initialize speex_decoder to work with flash audio stream? I've seen that someone here in list succeded with i...
2010 May 03
1
Help decompressing Speex audio
I have an audio file compressed by JSpeex that I'm trying to decompress on the iPhone. I've been trying to work from the speexdec example in an attempt to port the core logic to ObjC. I have a class that does the decode and passes the result back to another class. (currently the other class is a unit test.) My other class is writing the converted output to disk. I compare the results of my