Displaying 20 results from an estimated 47 matches for "speexmod".
Did you mean:
speexmode
2004 Nov 03
2
libspeex.dll
...ortunately 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_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 +++ htt...
2008 Mar 29
0
GCC/ELF Visibility patch
...ys/audioio.h)
XIPH_PATH_OGG([src="src"], [src=""])
Index: libspeex/modes_wb.c
===================================================================
--- libspeex/modes_wb.c (revision 14645)
+++ libspeex/modes_wb.c (working copy)
@@ -52,7 +52,7 @@
#define NULL 0
#endif
-const SpeexMode * const speex_mode_list[SPEEX_NB_MODES] = {&speex_nb_mode, &speex_wb_mode, &speex_uwb_mode};
+EXPORT const SpeexMode * const speex_mode_list[SPEEX_NB_MODES] = {&speex_nb_mode, &speex_wb_mode, &speex_uwb_mode};
extern const signed char hexc_table[];
extern const signed c...
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
...ys/audioio.h)
XIPH_PATH_OGG([src="src"], [src=""])
Index: libspeex/modes_wb.c
===================================================================
--- libspeex/modes_wb.c (revision 14645)
+++ libspeex/modes_wb.c (working copy)
@@ -52,7 +52,7 @@
#define NULL 0
#endif
-const SpeexMode * const speex_mode_list[SPEEX_NB_MODES] = {&speex_nb_mode, &speex_wb_mode, &speex_uwb_mode};
+EXPORT const SpeexMode * const speex_mode_list[SPEEX_NB_MODES] = {&speex_nb_mode, &speex_wb_mode, &speex_uwb_mode};
extern const signed char hexc_table[];
extern const signed c...
2005 Feb 19
2
memory usage
Hi
I am currently trying to port speex v1.1.6 to a microcontroller with
very limited memory (<64Kbyte RAM).
what I found when initialising the encoder, a chunk of 32Kb was
attempted to be alloced, which failed:
src/nb_celp.c:
void *nb_encoder_init(const SpeexMode *m)
{
/* snip */
st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(spx_sig_t));
/* snip */
}
same goes for the decoder:
void *nb_decoder_init(const SpeexMode *m)
{
/* snip */
st = (DecState *)speex_alloc(sizeof(DecState)+4000*sizeof(spx_sig_t));
/* snip */
}
I tried to...
2006 Dec 28
0
using speex in C#
...erved 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();
SpeexMode mode = (S...
2008 Aug 06
1
speex_nb_mode declaration problem
...am using the speex APIs in a gnuradio block.
I used the similar code as in the sampleenc.c/sampledec.c which works
perfectly fine.
My compilation does not give any error, but when I run the python test, it
complains that speex_nb_mode is undefined.
I tried to declare it explicitly then it as const SpeexMode *mode = NULL ,
then i get an error that i cannot initialize the const SpeexMode type.
Can someone help me with this problem?
Thanks for your time and attention.
Regards,
Kshama
2006 Dec 29
0
using speex in 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 */
int nbBits; /* Total number of bits stored in the
stream*/
in...
2008 Jul 30
1
Speex in VB .NET
...id data Public buf_size As Integer ' Allocated size for buffer Public reserved1 As Integer ' Reserved for future use Public reserved2 As IntPtr ' Reserved for future use
End Structure Public Structure SpeexMode Public mode As IntPtr Public query As IntPtr Public modeName As String Public modeID As Integer Public bitstream_version As Integer Public enc_init As IntPtr Public enc_destroy As IntPtr Public enc As IntPtr...
2017 Nov 03
1
[PATCH] Check for _WIN32 instead of WIN32 in preprocessor checks
...| 2 +-
src/skeleton.h | 2 +-
tmv/config.h | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/include/speex/speex.h b/include/speex/speex.h
index 28c4b44d..34919e2f 100644
--- a/include/speex/speex.h
+++ b/include/speex/speex.h
@@ -412,7 +412,7 @@ extern const SpeexMode * const speex_mode_list[SPEEX_NB_MODES];
/** Obtain one of the modes available */
const SpeexMode * speex_lib_get_mode (int mode);
-#ifndef WIN32
+#ifndef _WIN32
/* We actually override the function in the narrowband case so that we can avoid linking in the wideband stuff */
#define speex_li...
2004 Aug 06
4
Framesize for UWB vs. WB encoding
Hi there.
I am having a little trouble understanding the frame sizes chosen
by the codec.
testenc_uwb.c from the speex-1.0 source distribution has a framesize
of 640 hardcoded and makes use of this value exclusively.
However, a mode query on the actual codec returns 320 as a framesize
for this mode.
int tmp;
speex_mode_query(&speex_uwb_mode, SPEEX_MODE_FRAME_SIZE, &tmp);
2011 Nov 16
2
Just getting noise
...Bytes;
? ? ? ? ? ? ? ? ? ? ? ?/*Holds the state of the encoder*/
? ? ? ? ? ? ? ? ? ? ? ?void *state;
? ? ? ? ? ? ? ? ? ? ? ?/*Holds bits so they can be read and written to
by the Speex routines*/
? ? ? ? ? ? ? ? ? ? ? ?SpeexBits bits;
? ? ? ? ? ? ? ? ? ? ? ?int i, tmp;
? ? ? ? ? ? ? ? ? ? ? ?const SpeexMode* mode;
? ? ? ? ? ? ? ? ? ? ? ?mode = speex_lib_get_mode (SPEEX_MODEID_NB);
? ? ? ? ? ? ? ? ? ? ? ?/*Create a new encoder state in narrowband mode*/
? ? ? ? ? ? ? ? ? ? ? ?state = speex_encoder_init(mode);
? ? ? ? ? ? ? ? ? ? ? ?/*Set the quality to 8 (15 kbps)*/
? ? ? ? ? ? ? ? ? ? ? ?tmp=8;
? ?...
2004 Aug 06
2
SPEEX_GET_SAMPLING_RATE of encoder is wrong
...er_ctl ( m_pDecoderState, SPEEX_GET_SAMPLING_RATE,
&m_SampleRate );
I debugged the encoder and the stack trace is as follows:
-> speex_encoder_ctl ( m_pEncoderState, SPEEX_GET_SAMPLING_RATE,
&m_SampleRate );
-> int speex_encoder_ctl(void *state, int request, void *ptr)
return (*((SpeexMode**)state))->enc_ctl(state, request, ptr);
-> int sb_encoder_ctl(void *state, int request, void *ptr)
...
case SPEEX_GET_SAMPLING_RATE:
(*(int*)ptr)=st->sampling_rate;
break;
...
And st->sampling_rate is 2.
I debugged some further and it seems:
sb_encoder_init
calls
speex_de...
2010 Jul 20
2
[SPAM] [BombData][alltestmode] Re: Speex Echo Cancellation
As for me - speex_echo_cancellation is a better choise. Try using it in
capture thread instead
of those speex_echo_capture and speex_echo_playback functions.
And please, describe your problem in details. Cause the fact that you
"didn get echo cancellation"
doesn't mean you are doing smth wrong.
Regards,
Anton A. Shpakovsky
-----Original Message-----
From: speex-dev-bounces at
2011 Nov 16
2
Just getting noise
...*/
>> ? ? ? ? ? ? ? ? ? ? ? ?void *state;
>> ? ? ? ? ? ? ? ? ? ? ? ?/*Holds bits so they can be read and written to
>> by the Speex routines*/
>> ? ? ? ? ? ? ? ? ? ? ? ?SpeexBits bits;
>> ? ? ? ? ? ? ? ? ? ? ? ?int i, tmp;
>>
>> ? ? ? ? ? ? ? ? ? ? ? ?const SpeexMode* mode;
>> ? ? ? ? ? ? ? ? ? ? ? ?mode = speex_lib_get_mode (SPEEX_MODEID_NB);
>>
>> ? ? ? ? ? ? ? ? ? ? ? ?/*Create a new encoder state in narrowband mode*/
>> ? ? ? ? ? ? ? ? ? ? ? ?state = speex_encoder_init(mode);
>>
>> ? ? ? ? ? ? ? ? ? ? ? ?/*Set the qualit...
2004 Aug 06
1
Where can I find the implementation of function speex_encode( )
Hi, Guys
I am starting looking the source code of Speex. Maybe a little silly, but
I can not find the implementation of the function speex_encode().
Only something like below
void speex_encode(void *state, float *in, SpeexBits *bits)
{
(*((SpeexMode**)state))->enc(state, in, bits);
}
Does that mean some of the detail implementation is embedded in lib
without source code?
I am new in these Open Source Code project. Thank you for your time.
Best regards
--- Shanghai Jiaotong University Alumni Email System http://mail.sjtu.edu ---
---...
2004 Aug 06
1
One Minor Bug (Typo) in Speex 1.0
Speex 1.0 - in file sb_celp.c line 218 change speex_decoder_ctl(...) to
speex_encoder_ctl(...):
void *sb_encoder_init(SpeexMode *m)
{
.
.
.
--> speex_decoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE,
&st->sampling_rate); // Replace
<-- speex_encoder_ctl(st->st_low, SPEEX_GET_SAMPLING_RATE,
&st->sampling_rate);
st->sampling_rate*=2;
return st;
}
--
Best regards
Robert Milharci...
2004 Sep 13
1
problem with dynamic speex library under windows
...unresolved external symbol _speex_uwb_mode
codec_speex.obj : error LNK2001: unresolved external symbol _speex_wb_mode
codec_speex.obj : error LNK2001: unresolved external symbol _speex_nb_mode
..\..\pd\bongo\bongo~.dll : fatal error LNK1120: 3 unresolved externals
It seems as if the three default SpeexMode modes can't be found. I guess
I'm doing something stupid, but I can't understand what. I'm using
Windows XP and Microsoft Visual C++ 6.0 if that is of any help. I
compile the project files for Visual C++ that are included with the
speex library when I build the static and dynam...
2005 Feb 19
0
memory usage
...t; I am currently trying to port speex v1.1.6 to a microcontroller with
> very limited memory (<64Kbyte RAM).
>
> what I found when initialising the encoder, a chunk of 32Kb was
> attempted to be alloced, which failed:
>
> src/nb_celp.c:
>
> void *nb_encoder_init(const SpeexMode *m)
> {
> /* snip */
> st = (EncState*)speex_alloc(sizeof(EncState)+8000*sizeof(spx_sig_t));
> /* snip */
> }
>
>
> same goes for the decoder:
>
> void *nb_decoder_init(const SpeexMode *m)
> {
> /* snip */
> st = (DecState *)speex_alloc(size...
2009 Apr 13
0
encoding -> decoding doesnt work
...ex and then decode it and write it back in
the same buffer.
no compiling errors and no errors during runtime, but from the sample of 5
seconds only a short noise is all I get.
I hope you have any ideas!
kind regards juergen
SpeexBits bits;
void *enc_state;
speex_bits_init(&bits);
const SpeexMode *mode;
mode = speex_lib_get_mode (SPEEX_MODEID_WB);
enc_state = speex_encoder_init(mode);
int frame_size = 0;
speex_encoder_ctl(enc_state,SPEEX_GET_FRAME_SIZE,&frame_size);
int tmp = 16000;
speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &tmp);
tmp = 4;
speex_encoder_ctl(e...
2010 Jul 20
0
[SPAM] [BombData][alltestmode] Re: Speex Echo Cancellation
...veInFun)
In CAudiosrc ::OnWaveInFun() i am calling
speex_echo_capture,speex_preprocess_run,speex_encode_int.
void CspxEnDe::Init(int mode)
{
speex_mode = mode;
initialized = 1;
speex_bits_init(&bits);
int hz = 16000; // 8khz sampling
if (speex_mode == SPEEX_MODE_ENCODE)
{
const SpeexMode * mode = speex_lib_get_mode (SPEEX_MODEID_WB);
enc_state = speex_encoder_init(mode); // For Wideband
speex_wb_mode ,Narrowband speex_nb_mode
speex_encoder_ctl(enc_state, SPEEX_SET_SAMPLING_RATE, &hz);
int quality= 8;
speex_encoder_ctl(enc_state,SPEEX_SET_QUALITY,&quality);
q...