Displaying 20 results from an estimated 182 matches for "speex_bits_writ".
Did you mean:
speex_bits_write
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 nframe=1. But according to manuel, only
speex_bits_write function is called. What does speex_bits_insert_termin...
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 len...
2006 Dec 11
0
A question about speex_bits_write function
...ur helps.
Yasemin
The last argument should simply be the size of your own buffer, i.e.
it's there to make sure there's no buffer overflow and that's it. If you
know that at the bit rate you're using the output is 20 bytes, then you
can choose to allocate a 20-byte buffer and let speex_bits_write() know
that. Same idea as e.g. strncpy(), which is safer than strcpy().
Jean-Marc
yaseminyilmaz wrote:
> 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_FRAM...
2006 Jan 29
1
is it ok to call speex_encode_int after speex_bits_write?
I'm reliably getting a corrupt stream when I do a certain encoding and
decoding test.
I've pegged it down to this: encoding some frames, calling
speex_bits_write() and then encoding another frame produces a corrupt
stream.
My question is, is this a speex bug or incorrect API use?
I can provide a test case (currently in python, will translate to c if
needed).
Thanks,
Micky
2008 Aug 28
2
speex encode and speex_bits_write buffer size
how many calls can I make to speex_encode_int before calling
speex_bits_write? Can I stuff 10 frames?
- farhan
2007 Nov 20
0
speex_bits_write / speex_bits_read_from - getting Static
...having a problem using Speex - I'm getting white noise/static from the
following process:
(Load File) -> (Encode) -> (Decode) -> (Play)
I know there's no issue with the loading or playing because (Load File)->
(Play) plays the file properly.
I believe the problem lies with the speex_bits_write and
speex_bits_read_from functions, because if I change my encode function to
return the whole SpeexBits struct and my decode function to accept a
SpeexBits struct, it plays the vocoded audio without any problem.
****************** Managed C++ Code ***********************************
//Public f...
2004 Aug 06
3
Multiple Frames per Packet
David,
Here's the trick ... do this just before your speex_bits_write():
speex_bits_insert_terminator(&bits);
Then, when decoding, keep calling speex_decode() until it returns -1
or speex_bits_remaining(&bits) returns 0.
Works for me, anyway.
Tom
David Barrett (dbarrett@quinthar.com) wrote:
>
> Hi, I'm using Speex and I want to pack multiple f...
2004 Aug 06
0
speex_bits_write()
...uld not recognize the end of the 3rd (and
last frame): speex_bits_remaining() keeps on returning value > 0, and a
4th attempt to decode (non-existant) frame will fail.
I do not have the number of frames available, and would rely on the
encoded data alone for decoding the 3 frames.
>From the Speex_bits_write(), it's unclear whether it returns # of bits
or bytes written. Is there an function to set the padding ?
<p>TBL
--- >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 'speex-dev-r...
2008 Aug 28
0
speex encode and speex_bits_write buffer size
Ashhar Farhan a ?crit :
> how many calls can I make to speex_encode_int before calling
> speex_bits_write? Can I stuff 10 frames?
Yes. Even if you put more, it'll just auto-resize the buffer. For 10
frames, it won't even have to resize.
Cheers,
Jean-Marc
2004 Aug 06
2
Speex/Linux/ALSA
...ility could also
replay the files that were stored. The next obvious step is compression.
I have yet to correlate the ASLA terminology with the terminology used
in the speex documentation, and this is probably my biggest problem.
With the speex API, I can create an executable, but when I run it,
speex_bits_write always returns 38 bytes no matter what I send it.
Here are some details of what I am doing, some questions I have,
and hopefully someone can point out what I am doing wrong.
The ALSA call to snd_pcm_hw_params_set_format is setting the sound
format to unsigned 8 bit SND_PCM_FORMAT_U8
Q - Do I hav...
2006 Apr 11
2
Major internal changes
Hi everyone,
I've recently done some major internal changes in Speex aimed at
reducing RAM (by nearly a factor of 2!) and improving quality of the
fixed-point. In doing so, I might have accidently broken a few things.
I'd like to hear feedback on the current svn code to make sure I fix any
regression before the next release. I'm already aware that
--enable-vorbis-psy is broken and
2005 Apr 22
1
writing issues on arm build !
...igned char* of raw wav data (8000 samples, 8 bits / sample, mono) and
encode it using speex, and have speex write it somewhere so I can do..
whatever with it.
Simple ? I thought it would be :P
The main issue I am having right now that is stopping me, is my program
execution will never get past speex_bits_write.. speex_encode works fine but
speex_bits_write blocks forever and my program simply hangs. If this is a
common issue please let me know and I'll be on my way :)
The only thing is, to be honest.. based on the documentation and the manual,
I can't seem to fully grasp what I need to set u...
2005 Jan 17
1
Programming questions
...nipulates audio one frame at the time, but what you do
> after that if up to you.
>
What about the section 4.5 of the manual called "Packing and in-band
signalling" where it is said that it is possible to encode more that one
frame per packets by calling repeatedly speex_encode then
speex_bits_write. Does this work with speex_encode_int ?
Alain Aubord
2004 Aug 06
1
LIB usage
...encoder_ctl(enc_state, SPEEX_GET_FRAME_SIZE, &frame_size);
for(n=0; n<100; n++)
{
read_from_dev(fd1, (float *)input_frame, 1024);
speex_bits_reset(&bits);
speex_encode(enc_state, input_frame, &bits);
nBytesFrame = speex_bits_nbytes(&bits);
nbBytes = speex_bits_write(&bits, byte_ptr, nBytesFrame);
write_to_file(fd2, byte_ptr, nbBytes);
}
speex_bits_destroy(&bits);
speex_encoder_destroy(enc_state);
<p>Thank you
Bruno Rodrigues
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg...
2007 Aug 07
1
Attempting to shrink speex: Are these functions necessary?
...function
(nb_decode_lost).
> these are the functions that I removed:
>
> In bits.c:
> speex_bits_init
> speex_bits_init_buffer
> speex_bits_destroy
> speex_bits_reset
> speex_bits_rewind
> speex_bits_read_from
> speex_bits_flush
> speex_bits_read_whole_bytes
> speex_bits_write
> speex_bits_write_whole_bytes
> speex_bits_unpack_signed
> speex_bits_peek_unsigned
> speex_bits_peek
> speex_bits_nbytes
> speex_bits_insert_terminator
You probably don't need most of these, but I'm surprised you're not at
least using speex_bits_init(), speex_bits_...
2010 Apr 13
1
Another newbie question on encoding
...char **outBuff,
UINT BufferFrames )
{
INT nBytes = 0;
float *pBuff = inBuff;
if (!spx_state_) return 0;
while (BufferFrames>0)
{
speex_bits_reset(&spx_bits_);
speex_encode(spx_state_, pBuff, &spx_bits_);
nBytes += speex_bits_write(&spx_bits_, outBuffer_, frameSize_);
pBuff += frameSize_;
BufferFrames -= frameSize_;
}
// Point the outBuff to the internal buffer
*outBuff = outBuffer_;
return nBytes;
};
2007 Aug 06
2
Attempting to shrink speex: Are these functions necessary?
...there anything else I can do to shrink the code or am I reaching
my limit? Thanks.
these are the functions that I removed:
In bits.c:
speex_bits_init
speex_bits_init_buffer
speex_bits_destroy
speex_bits_reset
speex_bits_rewind
speex_bits_read_from
speex_bits_flush
speex_bits_read_whole_bytes
speex_bits_write
speex_bits_write_whole_bytes
speex_bits_unpack_signed
speex_bits_peek_unsigned
speex_bits_peek
speex_bits_nbytes
speex_bits_insert_terminator
In cd_search.c:
noise_codebook_quant
noise_codebook_unquant
In filters.c:
compute_rms
syn_percep_zero16
qmf_decomp
qmf_synth
In ltp.c:
forced_pitch_qu...
2004 Aug 06
2
rgding VAD
hi,
How do i detect whether there is silence in media using speex?
Is there any API which decides that the audio data only contains
silence?
Basically i will have PCM linear data, I want to know whether it is
complete silence.
Is it that during encoding speex_bits_write will return a lesser
number if the audio at byte_ptr contains silence?
thanx,
Rahul
--
Rahul Arvind Jadhav
Web: http://rahuljadhav.tripod.com
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this li...
2007 Apr 03
2
Please help, very important (not for fun)
...rence 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'
sampleenc.cc:(.text+0x123): undefined reference to `speex_bits_write'
sampleenc.cc:(.text+0x181): undefined reference to `speex_encoder_destroy'
sampleenc.cc:(.text+0x18c): undefined reference to `speex_bits_destroy'
/tmp/ccXKa3LF.o:(.eh_frame+0x11): undefined reference to
`__gxx_personality_v0'
collect2: ld returned 1 exit status
Can anyone help...
2005 Apr 04
1
tgAudioCodec.zip
...for me. I'm pretty sure the problem is on my end but I haven't
figured it out yet...
I thought it might be related to packing multiple frames together. Can
you tell me if it's still ok to do speex_bits_init, call speex_encode
several times, then speex_bits_insert_terminator, then speex_bits_write +
speex_bits_destroy. And then on the decoding side do speex_bits_init,
speex_bits_read_from, and loop on speex_decode until either it returns -1
or speex_bits_remaining returns <= 0?
> If you still intend to work on your wrapper, it would be nice to keep it
> available for people wh...