Hello! I'm about to try to integrate SPEEX into the VOCAL project. If anyone has any pointers as to the best way to do this, please let me know. After reading the speex api man page, I have a few questions: 1) To encode, it appears I need an array of floats. If I am playing wav files, what is the best way to turn these into something speex can encode? 2) Are there any commercially available SIP phones that support Speex? 3) Any suggested SIP soft-phones that support Speex? Thanks, Ben -- Ben Greear <greearb@candelatech.com> Candela Technologies Inc http://www.candelatech.com <p>--- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
> I'm about to try to integrate SPEEX into the VOCAL project.Good. Just a detail, but the correct spelling in "Speex".> 1) To encode, it appears I need an array of floats. If > I am playing wav files, what is the best way to turn these > into something speex can encode?Speex version 1.0.x (stable) expects float's in the -32768 to +32767 range, so it's just a matter of simple short to float conversion. The current development version is 1.1.x (will lead to stable version 1.2) and in that version, the input and output are directly short's. It depends on which version you want to support (though supporting both wouldn't be really hard).> 2) Are there any commercially available SIP phones that support > Speex?No hardware phone that I know of (though there might be), but I at least a commercial SIP soft-phone called tkphone (http://www.thekompany.com/products/tkphone/). I don't know whether it's compilant with the IETF Speex draft. Also with the fixed-point port that's progressing, we may be closer to a hardware phone.> 3) Any suggested SIP soft-phones that support Speex?There's OpenH323 and all the derived phones (ohphone, gnomemeeting, ...). There's also a SIP phone called Linphone (http://www.linphone.org) which is at least compliant with the first draft of the RTP profile (don't know at the second one). I'd guess there are probably others. If you're working with SIP, I suggest you test for interoperability with Linphone. Jean-Marc -- Jean-Marc Valin, M.Sc.A., ing. jr. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Canada -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 190 bytes Desc: Ceci est une partie de message numériquement signée. Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20040114/a4c758d2/signature-0001.pgp
Jean-Marc Valin wrote:>>I'm about to try to integrate SPEEX into the VOCAL project. > > > Good. Just a detail, but the correct spelling in "Speex". > > >>1) To encode, it appears I need an array of floats. If >>I am playing wav files, what is the best way to turn these >>into something speex can encode? > > > Speex version 1.0.x (stable) expects float's in the -32768 to +32767 > range, so it's just a matter of simple short to float conversion. The > current development version is 1.1.x (will lead to stable version 1.2) > and in that version, the input and output are directly short's. It > depends on which version you want to support (though supporting both > wouldn't be really hard).Will do stable first, and I agree it will be easy to support both when 1.2 is stable. So, the floats are basically PCM, eh? For VOCAL's g.711 codec I've been pre-converting files to 8-bit pcm at 8000hz with sox. So I can just not down-sample the wave files so badly, and let Speex use the 16-bit pcm values converted to floats? I'll dig into the RTP rfc and see how that goes. Thanks! Ben -- Ben Greear <greearb@candelatech.com> Candela Technologies Inc http://www.candelatech.com <p>--- >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@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.