-
Hey, I'm using an API that can stream results as either MP3 or raw PCM ("S16LE, 16kHz sample rate"). The following works for reading the results in MP3 format:
However, when
I'm guessing I have to somehow tell PyAV the exact format of the input stream since it won't have any container headers indicating sample rate etc. The How can I convince PyAV to read frames from a raw PCM stream? Or maybe I just need to read raw bytes myself and construct |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I ended up asking ChatGPT (GPT-4) and to my surprise it came up with code that actually works… What a time to be alive.
|
Beta Was this translation helpful? Give feedback.
I ended up asking ChatGPT (GPT-4) and to my surprise it came up with code that actually works… What a time to be alive.