[speex-dev] Raw Speex?

Rib Rdb ribrdb at ribrdb.com
Wed Apr 28 17:46:38 PDT 2004


I would guess that the sampleenc and sampledec programs (I think 
they're in the doc dir) would be closer to what you want.
On Apr 28, 2004, at 3:18 PM, Gervase Markham wrote:

> Hi,
>
> I want to take a .wav and generate a bytestream that I can feed direct 
> to speex_decode(). The speexenc program appears to produce it wrapped 
> up in an ogg stream, and it doesn't have any sort of "raw" mode. I've 
> tried hacking on it to remove the ogg parts, but I must have got it 
> wrong, as my decode dies after decoding 160 bytes (which I believe is 
> one frame) with an error about a corrupted stream. How can I turn a 
> .wav into a stream of raw speex data?
>
> Also, the above question leads to the following request for 
> clarification: when decoding, is the "frame size" for a particular 
> codec the amount of bytes that will get written to the output buffer 
> per call? Or is it the amount of data you have to give to each call to 
> speex_bits_read_from()? Or both? Or neither?
>
> Gerv
> --- >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-request at xiph.org'
> containing only the word 'unsubscribe' in the body.  No subject is 
> needed.
> Unsubscribe messages sent to the list will be ignored/filtered.
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2363 bytes
Desc: smime.p7s
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20040428/8f12de2d/smime-0001.bin


More information about the Speex-dev mailing list