Displaying 20 results from an estimated 300 matches similar to: "A question about speex_bits_write function"
2006 Dec 09
1
A question about speex_bits_write function
Hi everybody,
I need clarification about speex_bits_write function usage. There is an
example usage of it.
nbBytes = speex_bits_write(&bits, cbits, MAX_FRAME_BYTES);
I examine the content of this function and which value should I set to
MAX_FRAME_BYTE. In speexenc project, it is 2000 and in manual it is 200. For
example, I set it to 200 but the length of bits->chars is 250
2008 Mar 29
0
GCC/ELF Visibility patch
Hi,
I've attached a patch against SVN r14645 which adds GCC visibility
information to all symbols exported from libspeex.so and libspeexdsp.so.
It includes a configure.ac change to test that both the compiler flags and
__attribute__((visibility)) works, and if so will
#define EXPORT __attribute__((visibility("default")))
and if not
#define EXPORT
I've attached a diff output
2008 Mar 29
2
GCC/ELF Visibility patch (fwd)
Hi,
I've attached a patch against SVN r14645 which adds GCC visibility information
to all symbols exported from libspeex.so and libspeexdsp.so. It includes a
configure.ac change to test that both the compiler flags and
__attribute__((visibility)) works, and if so will
#define EXPORT __attribute__((visibility("default")))
and if not
#define EXPORT
I've attached a diff output
2009 Oct 29
1
speex_bits_write_whole_bytes problem
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/speex-dev/attachments/20091029/e587399d/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tmezo.vcf
Type: text/x-vcard
Size: 345 bytes
Desc: not available
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20091029/e587399d/attachment.vcf
2006 Aug 01
2
bits.c problem
I'm trying to use speex on OMAP's DSP using dsp gateway, and have some
questions. The code almost works (within few next days I'll post a some kind
tutorial and patches), but it seems to be a little bug in bits.c. The code
looks like this
void speex_bits_read_from(SpeexBits *bits, char *chars, int len)
{
////////////////// bla-bla-bla ///////////////////
for (i=0;i<len;i++)
2010 Jul 20
1
BYTES_PER_CHAR
Hello,
I'm porting CELT 0.7.1 to an embedded platform and unfortunately (at least
for me) CHAR is defined as 16 bits. I now got the vocoder compiling but
when i compare the encoded output with a windows build, they don't match.
Among the other problems i think that the char definition is one of the
biggest players. I've seen in arch.h the following definitions:
/* 2 on TI C5x DSP */
2004 Sep 16
0
speex on TI C5x fixed-point DSP
Hi Jamey,
Really cool to see Speex being ported to the C55xx and I'd be glad to
integrate the changes required in Speex (and the style's fine with me).
Here are a couple comments on the patch you sent (I looked at it, but
haven't compiled).
1) The changes you made to the pack un unpack functions would only work
if the 16-bit chars are "big endian" (relative to the two bytes
2004 Sep 16
3
speex on TI C5x fixed-point DSP
Greetings,
I've just started porting speex to a TI C5509 DSP. It doesn't look like
it's going to be too painful, but there are a couple of quirks about the
C5x.
1) chars are 16 bits because memory addresses are for 16bit words
2) ints and short are also 16 bits (so sizeof(char) = sizeof(short) =
sizeof(int) = 1)
3) the c5x is essentially big endian
My plan is to change int and
2006 Dec 09
1
one more question about speex_bits_insert_terminator and speex_bits_write
Hi everybody,
I have been examining on how I can use speex completely so I have one more
question. I looked at examples and source code and it goes on.
speex_bits_insert_terminator is called in speex_bits_write function. Shall I
call this method one more time anywhere? Because in speexenc project,
firstly speex_bits_insert_terminator is called then speex_bits_write is
called when we assume that
2006 Dec 29
0
using speex in C#
Hi SAITAMA Taro,
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
2004 Aug 06
0
SPEEX_SET_USER_HANDLER once again
Hi,
I think what happened is that you did not write the "message" length.
With user-callbacks, you also need to say how large the message. The
size is in bytes and encoded in 4 bits.
Besides, you're probably the first one to use user-callbacks. BTW, why
didn't you want to use Ogg. It's much simpler to use and overhead can be
made minimal anyway.
Jean-Marc
Le ven
2004 Aug 06
2
SPEEX_SET_USER_HANDLER once again
Hi,
Sorry! Marc Gimpel. I wrote it in a false thread before. It was my
first time. :-)
I have to write a small programm which should be able to record speeches
and in addition synchronize the recorded speeches with measuring data.
My idea is to record the speech in the normal way with speex and without
ogg. If a sync message was received, i write a custom in-band messages
using mode 13
2004 Aug 06
1
speex_bits_pack optimizations...
another optimization you can do for packing bits together...
the original one is :
-------------------------------------------------------------------------------------------------------------
void speex_bits_pack(SpeexBits *bits, int data, int nbBits)
{
int i;
unsigned int d=data;
if (bits->bytePtr+((nbBits+bits->bitPtr)>>3) >= bits->buf_size)
{
//remain
2004 Aug 06
0
some optimizations...
i'm optimizing some features....for exemple why not doing this :
-------------------------------------------------------------------------------
void speex_bits_advance(SpeexBits *bits, int n)
{
if (((bits->bytePtr<<3)+bits->bitPtr+n>bits->nbBits) || bits->overflow){
bits->overflow=1;
return;
}
bits->bytePtr += (bits->bitPtr+nbBits) >>
2004 Aug 06
2
bug found in speex_bits_read_whole_bytes
Hello there,
I thought I would contribute to this wonderful project
but noting a simple but problematic bug in
speex_bits_read_whole_bytes().
SITUATION:
I have a large stream of frames with NO breaks or
length indicators inbetween each frame. For this
reason, I call speex_bits_read_whole_bytes() and fill
it to MAXIMUM in a loop while calling speex_decode()
until there are no more bytes to read.
2005 Oct 09
0
Fw: problem in encoder/decoder
-------Original Message-------
From: Eid
Date: 10/09/05 14:07:44
To: speex-dev@xiph.org
Subject: problem in encoder/decoder
hi all,
I'm developing an app to broadcast voice over web. i tried to use speex and
download ver 1.04 documentation and use it to develop encoding and decoding
but after decoding voice is damaged i attach my encode/decode function.
BOOL
2011 Dec 22
2
Decoding only a certain frame results in different values than when decoding the entire file
To make it complete, here is the code that I am using to encode a large
file:
int __stdcall SpxEncode(unsigned char* inBuf, unsigned char* outBuf,
unsigned int inlen)
{
//char *testFile;
//FILE *ftest;
//testFile = "test";
//ftest = fopen(testFile, "wb");
//fwrite(inBuf,1,inlen,ftest);
//take every 320 bytes
//copy every short to float
2004 Aug 06
0
bug found in speex_bits_read_whole_bytes
OK, I fixed it but:
1) you shouldn't be using the MAX_BYTES_PER_FRAME constant (just moved
it to the .c where it belongs)
2) if you read more than MAX_BYTES_PER_FRAME the buffer will resize
automatically, so there's no problem. Just use the size you want.
Jean-Marc
Le lun 25/08/2003 à 02:27, Thomas S a écrit :
> Hello there,
> I thought I would contribute to this wonderful
2013 May 09
1
Moving from Speex to Opus (question 2)
Hello!
I was using Speex all the time, and I am now moving to Opus.
I had encapsulated the decoder a bit, I had the following cpp file:
#include "StdAfx.h"
#include "spxcodec.h"
#define MAX_FRAME_SIZE 2000
#define MAX_FRAME_BYTES 2000
CSpxCodec::CSpxCodec() : enh(1), rate(8000)
{
}
CSpxCodec::~CSpxCodec()
{
}
void CSpxCodec::Init()
{
speex_bits_init(&bits);
2011 Nov 28
1
Speex stereo encoding
Hi.
I trying to encode PCM16 8000Hz stereo data to speex and put it into the .flv file format. But at the output I can hear only noise. What I doing wrong? Here is the code:
void main()
{
SpeexBits bits;
void *enc_state;
int frame_size;
int quality = 10;
char cbits[MAX_FRAME_BYTES];
FILE *fin, *speex;
short input[MAX_FRAME_SIZE];
int nbBytes;
int channels =