Displaying 12 results from an estimated 12 matches for "speex_set_vad".
2012 Jan 20
1
speex_encode_int performance iphone4 + iOS5
...? /**? ? ?* A bit rate of 8000? ? ?*/? ? val = default_sample_rate;? ??? ? /**? ? ?* Set the bit rate.? ? ?*/? ? speex_encoder_ctl(encoder_state_, SPEEX_SET_BITRATE, &val);? ??? ? /**? ? ?* Disable vad.? ? ?*/? ? val = 0;? ??? ? /**? ? ?* Disable vad.? ? ?*/? ? speex_encoder_ctl(encoder_state_, SPEEX_SET_VAD, &val);? ??? ? /**? ? ?* Disable dtx.? ? ?*/? ? val = 0;? ??? ? /**? ? ?* Disable dtx.? ? ?*/? ? speex_encoder_ctl(encoder_state_, SPEEX_SET_DTX, &val);? ??? ? /**? ? ?* Disable vbr.? ? ?*/? ? val = 0;? ??? ? /**? ? ?* Disable vbr.? ? ?*/? ? speex_encoder_ctl(encoder_state_, SPEEX_SET_VBR,...
2007 Dec 06
2
Some question about speexcodex 1.2 beta2 on linux
...ex_bits_init(&bits);
state = speex_encoder_init(&speex_nb_mode);
speex_encoder_ctl(state,SPEEX_RESET_STATE,NULL);
speex_encoder_ctl(state,SPEEX_RESET_STATE,NULL);
speex_encoder_ctl(state,SPEEX_GET_FRAME_SIZE,&m_frame_size);
speex_encoder_ctl(state,SPEEX_SET_VAD, &nOff);
speex_encoder_ctl(state,SPEEX_SET_DTX, &nOn);
speex_encoder_ctl(state,SPEEX_SET_MODE,&m_encMode);
speex_encoder_ctl(state,SPEEX_SET_BITRATE,&m_bitrate);
// speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp);
m_preProcesser = speex_pr...
2004 Aug 06
2
Memory leak in denoiser + a few questions
On Mar 28, 2004, at 8:23 PM, Jean-Marc Valin wrote:
>> The st->zeta pointer isn't freed in the
>> speex_preprocess_state_destroy()
>> function of the preprocess.c file (alloced in line 167). It's in
>> Speex 1.1.4
>> by the way.
>
> Oops... Thanks for letting me know. I'll change that for the next
> release (in the mean time, the fix is
2004 Aug 06
0
Memory leak in denoiser + a few questions
...> without needing frequency domain analysis. But before I go and start
> coding this, is there any simple optimizations that can be done to the
> preprocessor when it is being used only for the VAD decision?
Have you tried using the (less accurate) VAD that's in the codec itself
(SPEEX_SET_VAD)?
Jean-Marc
--
Jean-Marc Valin
http://www.xiph.org/~jm/
LABORIUS
Université de Sherbrooke, Québec, Canada
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Ceci est une partie de mess...
2004 Aug 06
0
How to set VAD for Speex ACM?
Hello all,
I'm trying this code in Delphi but it does not seem to work:
LStub1:= 1;
LStub2:= 0;
acmStreamMessage(hStream, ACMDM_USER+30, LStub1, LStub2); // 30 =
SPEEX_SET_VAD
Is there a way to turn VAD on for Speex ACM?
Thanks in advance, Ivan.
2009 Apr 13
0
encoding -> decoding doesnt work
...l(enc_state, SPEEX_SET_VBR, &tmp);
tmp = 4;
speex_encoder_ctl(enc_state, SPEEX_SET_VBR_QUALITY, &tmp);
tmp = 2;
speex_encoder_ctl( enc_state, SPEEX_SET_COMPLEXITY, &tmp );
tmp = 1;
speex_encoder_ctl( enc_state, SPEEX_SET_DTX, &tmp );
tmp = 1;
speex_encoder_ctl( enc_state, SPEEX_SET_VAD, &tmp );
int numBytesEncoded = 0;
int amountSamples = defaultfrequency * numchannels * 5; // frequency
is 16000, channels = 1, 5 is for 5 seconds
unsigned int total = 0;
char *encoded = NULL;
for( int j = 0; j < amountSamples/frame_size; j++ )
{
// Encode the voice data
speex...
2010 Jun 10
0
speex multi frame
...nt nQuality = 8;
speex_encoder_ctl(m_pSpeexEncStateOut, SPEEX_SET_SAMPLING_RATE,
&nSamplePerSec);
speex_encoder_ctl(m_pSpeexEncStateOut, SPEEX_SET_QUALITY, &nQuality);
//speex_encoder_ctl(m_pSpeexEncStateOut, SPEEX_SET_VBR, &nEhc);
//speex_encoder_ctl(m_pSpeexEncStateOut, SPEEX_SET_VAD, &nEhc);
//speex_encoder_ctl(m_pSpeexEncStateOut, SPEEX_SET_DTX, &nEhc);
speex_encoder_ctl(m_pSpeexEncStateOut, SPEEX_GET_FRAME_SIZE,
&m_nEncodeFrameSize);
//
speex_bits_init(&m_speexBitsIn);
m_pSpeexDecStateIn= speex_decoder_init(&speex_nb_mode);
speex_de...
2005 Dec 12
0
Real time in ARM - please help
...;
case '3':
BitRate = 15000;
break;
default:
BitRate = 8000;
break;
}
speex_encoder_ctl (state, SPEEX_SET_BITRATE, &BitRate);
if (VAD)
temp = 1;
else
temp = 0;
speex_encoder_ctl (state, SPEEX_SET_VAD, &temp);
speex_encoder_ctl (state, SPEEX_GET_FRAME_SIZE, &FrameSize);
temp = 1;
speex_encoder_ctl (state, SPEEX_SET_COMPLEXITY, &temp);
temp = 0; // Just making sure VBR is off. Probably unnecessary.
speex_encoder_ctl (state, SPEEX_SET_VBR, &temp);
temp = 8...
2005 Oct 09
0
Fw: problem in encoder/decoder
...bytes =0;
int complexity=4;
int bitrate =3;
speex_encoder_ctl(enc_state, SPEEX_SET_COMPLEXITY, &complexity);
//speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &rate);
speex_encoder_ctl(enc_state, SPEEX_SET_BITRATE, &bitrate);
int tmp=1;
// speex_encoder_ctl(enc_state, SPEEX_SET_VAD, &tmp);
while(pos<pMsg->m_nBufferSize && encoded_bytes<pMsg->m_nBufferSize)
{
if((pMsg->m_nBufferSize-pos)>frame_size)
{
CopyMemory(input_frame,pMsg->m_pBuffer+pos,frame_size);
pos += frame_size;
}
else
{
CopyMemory(input_frame,pMsg->m_pBuffer+pos,pM...
2004 Dec 28
5
Sound distorted after normalized.
> 16 bit ints have a range of -32768 to 32767. If you divide
> -32768 by 32767.0 you end up with -1.00003051850948 which
> is a bad thing.
>
> Try normalizing with a value of 32768.0.
No. Speex expects values in the +-32767 range, not +-1.0. Just
converting from int16 to float *is* the right thing to do.
Jean-Marc
--
Jean-Marc Valin <Jean-Marc.Valin@USherbrooke.ca>
2004 Aug 06
4
Memory leak in denoiser + a few questions
...nalysis. But before I go and start
>>coding this, is there any simple optimizations that can be done to the
>>preprocessor when it is being used only for the VAD decision?
>>
>>
>
>Have you tried using the (less accurate) VAD that's in the codec itself
>(SPEEX_SET_VAD)?
>
>
I'll take a look at that. In this case [in the conferencing
application], I'm not actually using speex encoding [these are PSTN
callers, I do VAD in clients when I control them], so I'd need to see if
I could rip it out of speex to use it.
Also, I do have a couple of...
2005 May 25
3
Speex on TI C6x, Problem with TI C5x Patch
...= (*(long*)ptr);
break;
case SPEEX_GET_LOW_MODE:
case SPEEX_GET_MODE:
(*(long*)ptr) = st->submodeID;
break;
case SPEEX_SET_VBR:
st->vbr_enabled = (*(long*)ptr);
break;
case SPEEX_GET_VBR:
(*(long*)ptr) = st->vbr_enabled;
break;
case SPEEX_SET_VAD:
st->vad_enabled = (*(long*)ptr);
break;
case SPEEX_GET_VAD:
(*(long*)ptr) = st->vad_enabled;
break;
case SPEEX_SET_DTX:
st->dtx_enabled = (*(long*)ptr);
break;
case SPEEX_GET_DTX:
(*(long*)ptr) = st->dtx_enabled;
break;
case S...