Displaying 4 results from an estimated 4 matches for "audioencoderspeex".
2010 Apr 10
2
Is Speex 1.0 and >=1.1 compatible?
...Speex as possible. I am streaming multi frame
Speex blocks over a TCP connection which works fine as long as the version of
Speex is the same on both sides. When using a newer Speex (1.1.?) to encode
and an older version to decode (1.0.5), it does not work.
The encoder code look like this:
int AudioEncoderSpeex::writeSamples(const float *samples, int count)
{
for (int i=0; i<count; ++i)
{
sample_buf[buf_len++] = samples[i] * 32767.0;
if (buf_len == frame_size)
{
speex_encode(enc_state, sample_buf, &bits);
buf_len = 0;
if (++frame_cnt == 4) // Four frames pe...
2010 Apr 11
2
Is Speex 1.0 and >=1.1 compatible?
...r 1.2rc1 and decoding with ver 1.0.5. Do you agree
or have I done something wrong in my code? The full code can be found here:
http://svxlink.svn.sf.net/viewvc/svxlink/trunk/src/async/audio/AsyncAudioDecoderSpeex.cpp?view=markup
http://svxlink.svn.sf.net/viewvc/svxlink/trunk/src/async/audio/AsyncAudioEncoderSpeex.cpp?view=markup
I guess I could solve this problem by transmitting the frame count out-of-band
but if Speex can handle it, it's better.
Regards,
Tobias
>
> Jean-Marc
>
> On 2010-04-10 15:44, Tobias wrote:
> > Hi list,
> >
> > I'm trying to figure out h...
2010 Apr 10
0
Is Speex 1.0 and >=1.1 compatible?
...ing multi frame
> Speex blocks over a TCP connection which works fine as long as the version of
> Speex is the same on both sides. When using a newer Speex (1.1.?) to encode
> and an older version to decode (1.0.5), it does not work.
>
> The encoder code look like this:
>
> int AudioEncoderSpeex::writeSamples(const float *samples, int count)
> {
> for (int i=0; i<count; ++i)
> {
> sample_buf[buf_len++] = samples[i] * 32767.0;
>
> if (buf_len == frame_size)
> {
> speex_encode(enc_state, sample_buf,&bits);
> buf_len = 0;
&g...
2010 Apr 11
0
Is Speex 1.0 and >=1.1 compatible?
...ing with ver 1.0.5. Do you agree
> or have I done something wrong in my code? The full code can be found here:
>
> http://svxlink.svn.sf.net/viewvc/svxlink/trunk/src/async/audio/AsyncAudioDecoderSpeex.cpp?view=markup
> http://svxlink.svn.sf.net/viewvc/svxlink/trunk/src/async/audio/AsyncAudioEncoderSpeex.cpp?view=markup
>
> I guess I could solve this problem by transmitting the frame count out-of-band
> but if Speex can handle it, it's better.
>
> Regards,
> Tobias
>
>
>>
>> Jean-Marc
>>
>> On 2010-04-10 15:44, Tobias wrote:
>>> Hi list,...