Search code examples
oggspeex

Wrap Raw Speex in OGG Container


are there any libraries that allow one to pack raw speex into an ogg container? I know Jspeex, but - as far as I can see - this library only handles Ogg/Speex and PCM. But I already have a Speex stream and want to wrap this in an Ogg container.

Thanks for your support


Solution

  • For Java, there is Ogg for Java.

    For C, you can use libogg or liboggz. Here is an example which uses liboggz to encapsulate an audio stream encoded by libfishsound: