Displaying 20 results from an estimated 138 matches for "speex_encoder_init".
2004 Aug 06
2
question on usage of the libraries
...g audio? The output I get 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_enco...
2005 Feb 09
1
encoding speex, (insanity looming)
Hi Tom,
Thanks for your reply, I'm having a few difficulty's following you
advise. You mention that I should be calling 'speex_encoder_int' &
'speex_decoder_int', I'm having problems finding 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, &qual...
2009 Feb 04
0
Problems with Speex Libary
today I try to compile a test-file from the Documentation.
I link the libarys correct but have only one error in this line:
state = speex_encoder_init(&speex_nb_mode);
The error:
main.cpp|21|undefined reference to `speex_nb_mode'|
The linking libarys:
"libspeex.lib" "libspeexdsp.lib"
I am assuming you are doing this in Windows. You need to change the code as
follows:
//state = speex_encoder_...
2006 Jun 27
3
Windows Mobile build, memory allocation
...his week, I
will also upload the binary builds of static library files to my site
www.phonestack.com.
I am porting our LTP (lightweight telephony protocol) to some embedded
systems. I require to run speex in an environment that doesn't support
memory allocations. How difficult is it to convert speex_encoder_init
and speex_decoder_init to use preallocated memory buffers (presumably
passed by the initilisatio functions themselves)?
- farhan
- farhan
-----Original Message-----
From: speex-dev-bounces@xiph.org [mailto:speex-dev-bounces@xiph.org] On
Behalf Of Gervase Markham
Sent: Wednesday, June 28, 2006 2:...
2005 Jun 23
1
Speex and DS
..._state;
#define FRAME_SIZE 160 //frame size in shorts,
#define BUFFERSIZE 4*FRAME_SIZE*sizeof(short)
#define SS sizeof(short)
short in[FRAME_SIZE];
float input[FRAME_SIZE];
int nbBytesenc;
int nbBytesdec;
SpeexBits bitsenc; //bits for encoding
SpeexBits bitsdec; //bits for decoding
enc_state = speex_encoder_init(&speex_nb_mode);
int tmp=10;
speex_encoder_ctl(enc_state, SPEEX_SET_QUALITY, &tmp);
speex_bits_init(&bitsenc);
FILE* fout = fopen("_ee.raw","w");
char* pbuffer = buffer;
int nFrames = BUFFERSIZE/FRAME_SIZE;
char cbitsenc[200];
for(int i = 0 ; i < nFrames ; i++)
{...
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);...
2007 Apr 03
2
Please help, very important (not for fun)
...documentation (after having
insalled the speex-devel-1.0.5-1.i386.rpm). However, when I compile.
gcc sampleenc.cc
Here is what I get:
/tmp/ccXKa3LF.o: In function `main':
sampleenc.cc:(.text+0x1a): undefined reference to `speex_nb_mode'
sampleenc.cc:(.text+0x1f): undefined reference to `speex_encoder_init'
sampleenc.cc:(.text+0x43): undefined reference to `speex_encoder_ctl'
sampleenc.cc:(.text+0x6f): undefined reference to `speex_bits_init'
sampleenc.cc:(.text+0xea): undefined reference to `speex_bits_reset'
sampleenc.cc:(.text+0x106): undefined reference to `speex_encode'
sampl...
2004 Aug 06
2
Bitrate in encoder
...ng the target bitrate in the encoder. Calling:
peex_encoder_ctl(globals->enc_state,SPEEX_GET_BITRATE, &bitrate);
Seems to set bitrate to 24600 no matter what the qualitysetting is.. The
functions used previous to this call is:
peex_bits_init(&globals->bits);
globals->enc_state = speex_encoder_init(&speex_nb_mode);
speex_encoder_ctl(globals->enc_state,SPEEX_SET_COMPLEXITY,..);
speex_encoder_ctl(globals->enc_state,SPEEX_SET_QUALITY, ..);
speex_encoder_ctl(globals->enc_state,SPEEX_GET_BITRATE, &bitrate);
The last line always sets the bitrate to 24600.. Why? In my previous
inst...
2005 Aug 11
1
About sampleenc and sampledec in appendix B
...his file? winxp, VC++ 6.0 My step is as below: -I built libspeex.dll with libspeex_dynamic.dsp(speex-1.1.10) -I built sampleenc, but error(sampleenc.obj : error LNK2001: unresolved external symbol _speex_nb_mode) happened (i set Project/settings/C/C++ and link in VC++) -I changed like below state = speex_encoder_init(&speex_nb_mode); -> const SpeexMode * mode; mode = speex_lib_get_mode(SPEEX_MODEID_NB); state = speex_encoder_init(mode); -speex_encoder_init was added in speex.def. -After above, sampleenc was built -Sampledec too -I excuted "sampleenc male.wav | sampledec male1.wav" -13 times, &q...
2005 Feb 09
2
encoding speex, (insanity looming)
...// encoder
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...
2005 Aug 10
0
About sampleenc and sampledec in appendix B
...pleenc.obj : error LNK2001: unresolved external symbol _speex_nb_mode) happened<BR>
(i set Project/settings/C/C++ and link in VC++)<BR>
-I changed like below<BR>
state = speex_encoder_init(&speex_nb_mode);<BR>
-><BR>
const SpeexMode * mode;<BR>
mode = speex_lib_get_mode(SPEEX_MOD...
2006 May 21
2
Re: High pitched whine with Speex
...8 -0.001
Input: -0.000 0.000 0.000 0.000 -0.000
Out: -0.029 -0.008 0.020 0.018 -0.001
Input: -0.000 -0.000 -0.000 -0.000 0.000
Out: -0.029 -0.008 0.020 0.018 -0.001
My samples are 4 byte floats.
My sample rate is 8000
Here's pretty much all my speex code:
ENCODING INIT:
channel->enc_state=speex_encoder_init(&speex_nb_mode);
speex_encoder_ctl(channel->enc_state, SPEEX_GET_FRAME_SIZE,
&channel->speexOutgoingFrameSampleCount);
DECODING INIT:
channel->dec_state=speex_decoder_init(&speex_nb_mode);
speex_decoder_ctl(channel->dec_state, SPEEX_GET_FRAME_SIZE,
&channel->speexI...
2006 Dec 29
0
using speex in C#
...I have been using speex-1.2beta1 dll in our voice application written with
C#. In order to use Speex correctly firstly I advice to you examination
speexenc and speexdec projects.
I have used unsafe code and fixed statements in C#. I have added following
method to library and I used that instead of speex_encoder_init simply.
void *speex_encoder_init_new(int modeID)
{
const SpeexMode *mode;
mode = speex_lib_get_mode(modeID);
return mode->enc_init(mode);
}
Maybe following codes that I have been using in a class can help you.
/* structs */
public struct SpeexBits
{
char *chars; /* "raw" data *...
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...
2004 Aug 06
0
question on usage of the libraries
...more important: if I pass it through zlib, it
> gets at least 50% smaller!
On regular data, gzip might get a 5% reduction, so I doubt you can get
50% unless you're encoding zeros or doing something wrong...
> if (sample_rate > 22050)
> libspeex_enc_state = speex_encoder_init(&speex_wb_mode);
> else
> libspeex_enc_state = speex_encoder_init(&speex_nb_mode);
In normal operation, narrowband is 8000 Hz, wideband is 16000 Hz and
ultra-wideband is 32000 Hz, so I'd change the 22050 for something like
12000 (and maybe have above 22050...
2004 Nov 03
2
libspeex.dll
...systems. As aforementioned the project will be
released as freeware under the bsd license. We have no commercial intentions
in mind.
One developer start to implement the speex codec to this project.
Unfortunately he has some problems to implement the 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_M...
2005 Jan 25
1
Is SPEEX_GET_QUALITY implemented ?
...Aubord
---------------------------test.c---------------------------------------
#include <stdio.h>
#include <stdlib.h>
#include <speex/speex.h>
int main(int argc,char * args[]){
SpeexBits bits;
void *enc_state;
int Quality=9,tmp;
speex_bits_init(&bits);
enc_state=speex_encoder_init(&speex_uwb_mode);
speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&Quality);
speex_encoder_ctl(enc_state,SPEEX_GET_QUALITY,&tmp);
printf("Quality is %d\n",tmp);
}
--------------------------------Result of program-----------------------
tsapi:audio 151> a.out
warning:...
2006 Dec 28
0
using speex in C#
...int reserved1; // Reserved for future use
IntPtr reserved2; // Reserved for future use
}
[DllImport("libspeex.dll")]
public static extern IntPtr speex_lib_get_mode(int mode); // Obtain one of the modes available
[DllImport("libspeex.dll")]
public static extern IntPtr speex_encoder_init(ref SpeexMode mode);
[DllImport("libspeex.dll")]
public static extern void speex_bits_init(ref SpeexBits bits);
[DllImport("libspeex.dll")]
public static extern int speex_encode_int(IntPtr state, Int16[] in_, ref SpeexBits bits);
SpeexBits bits = new SpeexBits();
SpeexM...
2007 Feb 28
1
Linking problem when using speex with visual studio 6.0
...f other libs;
use /NODEFAULTLIB:library
libspeex.lib(sb_celp.obj) : error LNK2001: unresolved external symbol
_lpc_window
libspeex.lib(nb_celp.obj) : error LNK2001: unresolved external symbol
_lpc_window
I compiled speex1.2beta1 under win32 directory and got the libspeex.lib,
however, when I call speex_encoder_init() the above linking error appears.
Anyone has any idea?
Min
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20070228/ee97c507/attachment.html
2008 May 30
1
trying to use latest but can't link now
...s. 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.
Thanks,
Kevin
_________________________________________________________________
Give to a good cause with every e-mail. Join the i?m Initiative from Microsoft.
http://im.live.com/Messenger/IM/J...