Skip to content

In what type is encoded the audio output? #215

Answered by snakers4
tonymacx86PRO asked this question in Q&A
Discussion options

You must be logged in to vote

The correct way is to keep audios in memory as WAV files and just concatenate them before writing. You may have to convert to int16 before writing.

If this is too memory intensive, you can write a WAV file in a streaming fashion.

If you would like to save in a more proper format like ogg/opus or ogg/vorbis, this may require a bit more fiddling to do to find a streaming writer.

Options to explore - torchaudio, pysounsfile, wave, scipy WAV writer, if you use python.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by snakers4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants