[Speex-dev] Speex in flash player: how to work with?

Jozsef Vass jovass at adobe.com
Fri Mar 19 13:04:27 PDT 2010


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 Lapshin [mailto:max.lapshin at gmail.com] 
Sent: Thursday, March 18, 2010 10:57 PM
To: Jozsef Vass
Cc: speex-dev at xiph.org
Subject: Re: [Speex-dev] Speex in flash player: how to work with?

On Fri, Mar 19, 2010 at 3:27 AM, Jozsef Vass <jovass at adobe.com> wrote:
> First of all, Flash Player can only publish Speex at 16 kHz. 20 ms of audio (320 samples) will result in compressed payload size of 106 bytes (42.4 kbps). When Flash Player sends a TC message, there is 11 bytes TC message header and a single byte of audio message header.

So what sample size should I set to work with 106 bytes packets?

driver->den = speex_preprocess_state_init(320, 16);  - so?


More information about the Speex-dev mailing list