grishka / libtgvoip

VoIP library for Telegram clients
The Unlicense
389 stars 158 forks source link

How to use the library to convert wav to opus #23

Closed mbrt closed 7 years ago

mbrt commented 7 years ago

This is more a question than an issue, but since I don't see any documentation I'm gonna ask here. Is it possible, and if so how, to use this library to convert PCM audio coming from a file to opus? This seems the only library able to output opus files that Telegram likes on all platforms. I tried without success by using ffmpeg, opusenc and oggenc.

grishka commented 7 years ago

This library doesn't output any ogg opus files, it streams raw opus-encoded data using its own protocol. You're looking for this.