search for: modeid

Displaying 13 results from an estimated 13 matches for "modeid".

Did you mean: nodeid
2009 Sep 02
3
voice sound like robot voice :)
...e = NULL; } if ( pCodecDecoderState ) { speex_decoder_destroy( pCodecDecoderState ); speex_bits_destroy( &codecBits ); pCodecDecoderState = NULL; } } void TVoiceCodec::setSampleRate( int samplerate ) { sampleRate = samplerate; // determine the mode int modeID = -1; // speex has limits [6000 - 48000] if ( sampleRate > 48000 ) return; if ( sampleRate > 25000 ) modeID = SPEEX_MODEID_UWB; else if ( sampleRate > 12500 ) modeID = SPEEX_MODEID_WB; else if ( sampleRate >= 6000 ) modeID = SPEEX_MODEID_NB; e...
2004 Aug 06
0
Frozen upper spectrum in WB VBR CNG
...(using VBR without DTX), but there many still be some tuning do to on > the DTX. > > Jean-Marc > > > diff -u -r1.118 sb_celp.c > --- sb_celp.c 18 Mar 2003 06:13:30 -0000 1.118 > +++ sb_celp.c 4 May 2003 04:58:16 -0000 > @@ -351,6 +351,8 @@ > int modeid; > modeid = mode->nb_modes-1; > st->relative_quality+=1.0*(ratio+2); > + if (st->relative_quality<-1) > + st->relative_quality=-1; > while (modeid) > { > int v1; > @@ -361,7 +363,7 @@ >...
2009 Sep 03
1
Speex-dev Digest, Vol 64, Issue 2
...speex_bits_destroy( &codecBits ); > > pCodecDecoderState = NULL; > > } > > } > > > > > > void TVoiceCodec::setSampleRate( int samplerate ) > > { > > sampleRate = samplerate; > > > > // determine the mode > > int modeID = -1; > > > > // speex has limits [6000 - 48000] > > if ( sampleRate > 48000 ) > > return; > > > > if ( sampleRate > 25000 ) > > modeID = SPEEX_MODEID_UWB; > > else if ( sampleRate > 12500 ) > > modeID = SP...
2009 Sep 03
0
voice sound like robot voice :)
...peex_decoder_destroy( pCodecDecoderState ); > speex_bits_destroy( &codecBits ); > pCodecDecoderState = NULL; > } > } > > > void TVoiceCodec::setSampleRate( int samplerate ) > { > sampleRate = samplerate; > > // determine the mode > int modeID = -1; > > // speex has limits [6000 - 48000] > if ( sampleRate > 48000 ) > return; > > if ( sampleRate > 25000 ) > modeID = SPEEX_MODEID_UWB; > else if ( sampleRate > 12500 ) > modeID = SPEEX_MODEID_WB; > else if ( sampleRate &...
2004 Aug 06
1
Frozen upper spectrum in WB VBR CNG
Jean-Marc Valin (jean-marc.valin@hermes.usherb.ca) wrote: > > > I've been using Speex in my voice-over-IP program on Win32, in > > wideband (16kHz) mode. I just starting using VBR recently and > > have run into something that might be a problem within Speex: > > Are you turning on DTX in addition to VBR? Also, what version are you > using. As of 1.0, DTX is
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);
2006 Dec 29
0
using speex in C#
...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 */ int nbBits; /* Total number of bits stored...
2005 Aug 26
0
Segmentation fault in narrowband and wideband mode
...ng: Trying to encode in %s at %d Hz. I'll do it but I suggest you try ultra-wideband instead\n", mode->modeName , rate); causes this segmentation fault, because commenting it out (you find the line in speexenc.c after the check if it's a wav-file, if you follow the conditions: if (modeID!=-1 && rate), if (rate>25000), if (modeID != SPEEX_MODEID_UWB)) makes the encoding run through. Does anybody else have this problem? Or is that just my computer? Thanks, Bj?rn -- Important! Please recognize my new GPG Public Key! Bj?rn Thalheim gpg fingerprint: 0A29...
2008 Apr 04
0
speexdec 1.2.3
...*process_header(ogg_packet *op, spx_int32_t enh_enabled, spx_int32_t *frame_size, int *granule_frame_size, spx_int32_t *rate, int *nframes, int forceMode, int *channels, SpeexStereoState *stereo, int *extra_headers, int quiet) { void *st; const SpeexMode *mode; SpeexHeader *header; int modeID; SpeexCallback callback; header = speex_packet_to_header((char*)op->packet, op->bytes); if (!header) { fprintf (stderr, "Cannot read header\n"); return NULL; } if (header->mode >= SPEEX_NB_MODES || header->mode<0) { fprintf (...
2008 Apr 04
2
speexdec 1.2.3
On Fri, Apr 4, 2008 at 12:19 AM, Jean-Marc Valin <jean-marc.valin at usherbrooke.ca> wrote: > Jahn, Ray (R.) a ?crit : > > > Dear Speex codec community: > > > > I am working on conversion of voice files. I could not figure out how to use speexdec.exe 1.2.3 in piped mode in order to avoid the creation of the potentially large intermediate *.wav or *.pcm files. Any
2007 Feb 09
1
speex in C# please help
...t buf_size; /* Allocated size for buffer */ public int reserved1; /* Reserved for future use */ public void *reserved2; /* Reserved for future use */ } [StructLayout(LayoutKind.Sequential)] public struct SpeexMode { public void *mode; public IntPtr query; public char *modename; public int modeid; public int bitstream_version; public IntPtr enc_init; public IntPtr enc_destroy; public IntPtr enc; public IntPtr dec_init; public IntPtr dec_destroy; public IntPtr dec; public IntPtr enc_ctl; public IntPtr dec_ctl; } #endregion #region Exported Methods [DllImport(libpath)] public st...
2008 Jul 30
1
Speex in VB .NET
...' 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 Public dec_init As IntPtr Public dec_destroy As IntPtr Public dec As IntPtr Public enc_c...
2007 Feb 13
1
Re: Speex-dev Digest, Vol 33, Issue 10
...r future use */ > > public void *reserved2; /* Reserved for future use */ > > } > > [StructLayout(LayoutKind.Sequential)] > > public struct SpeexMode > > { > > public void *mode; > > public IntPtr query; > > public char *modename; > > public int modeid; > > public int bitstream_version; > > public IntPtr enc_init; > > public IntPtr enc_destroy; > > public IntPtr enc; > > public IntPtr dec_init; > > public IntPtr dec_destroy; > > public IntPtr dec; > > public IntPtr enc_ctl; > > public IntPtr d...