Displaying 20 results from an estimated 55 matches for "speex_wb_mod".
Did you mean:
speex_wb_mode
2004 Aug 06
2
SPEEX_GET_SAMPLING_RATE of encoder is wrong
Hi,
I'm using speex 1.1.4 and when I query SPEEX_GET_SAMPLING_RATE
as in
speex_encoder_ctl ( m_pEncoderState, SPEEX_GET_SAMPLING_RATE,
&m_SampleRate );
I get
2
The encoder is initialized with
m_pEncoderState = speex_encoder_init ( &speex_wb_mode );
On the decoder side, the correct sampling rate is returned:
m_pDecoderState = speex_decoder_init ( &speex_wb_mode );
speex_decoder_ctl ( m_pDecoderState, SPEEX_GET_SAMPLING_RATE,
&m_SampleRate );
I debugged the encoder and the stack trace is as follows:
-> speex_encoder_ctl ( m_pEn...
2004 Aug 06
1
SPEEX_GET_SAMPLING_RATE of encoder is wrong
Hi,
No, it only happens with speex_wb_mode.
But like I said, it is because in wideband mode, the function
sb_encoder_init
is called and this function initializes the sampling rate using
speex_*de*coder_ctl
instead of
speex_*en*coder_ctl
In narrowband mode, the sampling rate is just initialized to 8000
st->sampling_rate=8000;
BTW, I saw...
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
-----Orig...
2008 May 30
1
trying to use latest but can't link now
Greetings. I just upgraded to the latest 1.2beta3 and now I get the following link error:
unresolved external symbol speex_wb_mode. Using VS2005.
If I put back the old libspeex.lib it compiles just fine, but I would like to upgrade to use the new AEC stuff if I can.
My code looks like:
enc_state = speex_encoder_init(&speex_wb_mode) ;
Worked before the upgrade so did the API change? Any help greatly appreciated....
2005 Feb 09
2
encoding speex, (insanity looming)
...void *enc_state;
SpeexBits enc_bits;
// decoder
void *dec_state;
SpeexBits dec_bits
// quaility and rate
int quality = 8, rate = 16000;
// setup encoder
speex_bits_init(&enc_bits);
enc_state = speex_encoder_init(&speex_wb_mode);
speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality);
speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &rate);
// setup decoder
speex_bits_init(&dec_bits);
dec_state = speex_decoder_init(&speex_wb_mode);
speex_encoder_ctl(dec_s...
2005 Feb 09
1
encoding speex, (insanity looming)
...these functions in
the speex header. I am currenlty calling speex_encoder_init &
speex_decoder_init in my test code, I have repeated the relevent bits
of the example bellow. My version of speex is 1.1.6.
Thanks once again for your help,
David.
enc_state = speex_encoder_init(&speex_wb_mode);
speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality);
speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &rate);
// setup decoder
speex_bits_init(&dec_bits);
dec_state = speex_decoder_init(&speex_wb_mode);
On Wed, 9 Feb 2005 09:08:47 -0500...
2007 Apr 02
1
Problems with stereo data
...Express Edition.
Best regards,
Peter.
// Encoder
#include <speex/speex.h>
#include <speex/speex_stereo.h>
#include <stdio.h>
#pragma comment(lib, "libspeex.lib")
int main(int argc, char* argv[]) {
const int FrameSize = 320;
void* State = speex_encoder_init(&speex_wb_mode);
int Temp;
float Tmp;
Temp = 1;
Tmp = 2;
speex_encoder_ctl(State, SPEEX_SET_VBR, &Temp);
speex_encoder_ctl(State, SPEEX_SET_VBR_QUALITY, &Tmp);
FILE* fin = fopen(argv[1], "rb");
FILE* fout = fopen(argv[2], "wb");
SpeexBits Bits;
speex_bits_init(&Bits);
s...
2004 Aug 06
0
SPEEX_GET_SAMPLING_RATE of encoder is wrong
Hi,
Do you get that problem with speex_nb_mode too (or only speex_wb_mode)?
Jean-Marc
Le lun 29/03/2004 à 05:35, Chris Flerackers a écrit :
> Hi,
>
> I'm using speex 1.1.4 and when I query SPEEX_GET_SAMPLING_RATE
> as in
> speex_encoder_ctl ( m_pEncoderState, SPEEX_GET_SAMPLING_RATE,
> &m_SampleRate );
> I get
> 2
> The enco...
2004 Nov 03
2
libspeex.dll
...speex headers.
According to the manual "speex_encoder_init" expect a pointer of
"speex_nb_mode". Sadly, this constant is not exported by the windows dll
(see export table of "libspeex.dll" v1.1.6).
Just as extern const SpeexMode speex_nb_mode; extern const SpeexMode
speex_wb_mode; extern const SpeexMode *speex_mode_list[SPEEX_NB_MODES];
Unfortunately we could not find any further information or other
implemantations of libspeex to solve our problem.
regards,
Grigory Fishilevich
--
NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Ta...
2007 Dec 12
1
Speex 1.2beta3 is out!
On 12/13/07, Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> wrote:
> > I am a newbie here and just started using speex in our lab.
> > During compiling my voice application with windows-compiled version provided
> > today, I am getting "unresolved external symbol _speex_wb_mode".
> > I am probably missing some setting with VS6.0 linker... (I am a bit new to
> > windows too)
> > If anyone could point it out, I would appreciate it.
Try to use "speex_lib_get_mode(SPEEX_MODEID_WB)" call instead of
using "speex_wb_mode" directly in...
2008 Mar 25
1
link problem with VC 2008
Hi,
I use the pre-compiled libs of speex, version beta3. I've got this link problem when I use the fonction speex_encoder_init(&speex_wb_mode)
error LNK2001: unresolved external symbol _speex_wb_mode
I made the link with the librairies libspeex.lib and libspeexdsp.lib in my properties' project.
I used the dumpbin executable of VC to see the external variable defined in the libs, and it's true _speex_wb_mode doesn't exist...
2010 Mar 30
0
Speex in flash player: how to work with?
On Sat, Mar 20, 2010 at 12:04 AM, Jozsef Vass <jovass at adobe.com> wrote:
> 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)...
2010 Mar 31
1
Speex in flash player: how to work with?
...]
Sent: Tuesday, March 30, 2010 8:53 AM
To: Jozsef Vass
Cc: speex-dev at xiph.org
Subject: Re: [Speex-dev] Speex in flash player: how to work with?
On Sat, Mar 20, 2010 at 12:04 AM, Jozsef Vass <jovass at adobe.com> wrote:
> 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)...
2012 Mar 14
0
Audio file is corrupted after decoding
...->GetStringUTFChars(env,dir1,0);
const char *outFile= (*env)->GetStringUTFChars(env,dir2,0);
FILE *fin;
FILE *fout;
short in[FRAME_SIZE];
float input[FRAME_SIZE];
char cbits[360];
int nbBytes;
void *state;
SpeexBits bits;
int i, tmp;
state = speex_encoder_init(&speex_wb_mode);
tmp=8;
speex_encoder_ctl(state, SPEEX_SET_QUALITY, &tmp);
fin = fopen(inFile, "r");
fout=fopen(outFile,"w");
speex_bits_init(&bits);
int bool=1;
while (!feof(fin))
{
if(bool==1)
{
/* skip wav header */
fseek ( fin , 44...
2004 Nov 05
1
Encoding problem
...order of diphones to be joined after decoding is
determined at runtime.
Therefore I have to encode each diphone independent of others.
I find out that when I encode diphones in order of their concatenation with
out reinitializing the encoder for each diphone
enc_state = speex_encoder_init(&speex_wb_mode);
After decoding and concatenation it worked fine.
If the order is not maintained concatenated wave output is not as clear as
when maintaining the order. The problem is traced at the joining point of
those diphones.
However when I encode diphones after reinitializing encoder for each
diphone,...
2004 Aug 06
4
Framesize for UWB vs. WB encoding
..._mode, SPEEX_MODE_FRAME_SIZE, &tmp);
<p>testenc_wb.c from the speex-1.0 source distribution has a framesize
of 320 hardcoded and makes use of this value exclusively.
However, a mode query on the actual codec returns 160 as a framesize
for this mode.
int tmp;
speex_mode_query(&speex_wb_mode, SPEEX_MODE_FRAME_SIZE, &tmp);
How can this discrepancy be explained?
Could anyone shed some light here? ;) thanks.
Christian
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'sp...
2005 Apr 27
2
speex corrupting input buffer?
...----------------------------------
#include <speex.h>
#include <stdio.h>
int main(int argc, const char *argv[])
{
void *speexState;
int frame_size;
SpeexBits bits;
float *buf;
int i;
speex_bits_init(&(bits));
speexState = speex_encoder_init(&speex_wb_mode);
speex_encoder_ctl(speexState, SPEEX_GET_FRAME_SIZE, &(frame_size));
buf = (float *)calloc(1, frame_size * sizeof(float));
for (i = 0; i < frame_size; i ++)
{
if (buf[i] != 0.0)
{
printf("error, input buf not all zeros\n");
exit(1);
}
}...
2004 Aug 06
2
question on usage of the libraries
...t is so
extremely small, but what is more important: if I pass it through zlib, it
gets at least 50% smaller!
Init:
int bitrate = max_bandwidth * 8;
speex_bits_init(&libspeex_bits);
if (sample_rate > 22050)
libspeex_enc_state = speex_encoder_init(&speex_wb_mode);
else
libspeex_enc_state = speex_encoder_init(&speex_nb_mode);
speex_encoder_ctl(libspeex_enc_state, SPEEX_SET_SAMPLING_RATE,
&sample_rate);
speex_encoder_ctl(libspeex_enc_state, SPEEX_SET_BITRATE, &bitrate);
speex_encoder_ctl(libspeex_e...
2005 Feb 09
0
encoding speex, (insanity looming)
...void *enc_state;
SpeexBits enc_bits;
// decoder
void *dec_state;
SpeexBits dec_bits
// quaility and rate
int quality = 8, rate = 16000;
// setup encoder
speex_bits_init(&enc_bits);
enc_state = speex_encoder_init(&speex_wb_mode);
speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &quality);
speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &rate);
// setup decoder
speex_bits_init(&dec_bits);
dec_state = speex_decoder_init(&speex_wb_mode);
speex_encoder_ctl(dec_s...
2005 Oct 04
1
Strange Problem
...m. I have integrated speex
codec's narrowband mode in my SIP based server. Then I
tried to integrate the wideband mode. But the program
crashes mysteriously. My encode and decode codes for
wide band mode are exact similiar to that of
narrowband, except the mode initialization, where I
put "speex_wb_mode" instead of "speex_nb_mode".
My encoding code:
bool
SPEEX16::Encode(const std::string& raw, std::string&
encoded)
{
speex_bits_r...