#Is raw opus audio stream supported?

1 messages · Page 1 of 1 (latest)

thick herald
#

Reading through the docs and some past help questions left me a bit confused.

Docs indicate that streaming requests are supported for opus and that encoding can be set to opus

But docs (and another support reply that I've seen here) indicates that opus should not have encoding or sampleRate set as parameters because that's only for raw audio.

The distinction is important though: opus is neither raw audio nor a containerised format. .opus files are normally ogg-containerised, while the raw opus streaming format needs to be separated by frame because it is encoded and otherwise has no boundary segmentation

So what's reasonably clear to me is that raw audio is supported in streaming, and opus-encoded ogg files are also supported in a streaming format -- but what about streaming of raw opus frames?

Testing with the streaming websocket (using both ?encoding=opus&sampleRate=24000&channels=1 and without specifying any params) yields no transcription replies at all, so I think the answer is no.

dull kestrelBOT
#

Thanks for asking your question. Please be sure to reply with as much detail as possible so we can assist you efficiently. Such as:

  • Provide the request_id if you've a question about a transcription response.
  • The options you used or the api.deepgram.com URL you sent your request to, including parameters.
  • Any code snippets you can include.
  • Any audio you can include, or if you can't share it here please email it to us at [email protected] and provide a link to this thread.
thick herald
#

For clarity, I imagined that websocket-frame-segmented-opus-packets might have worked.

I see now though that https://developers.deepgram.com/docs/encoding actually lists "opus" as meaning ogg-opus, so I suspect that the answer is indeed no

tired geyser
#

I have not tried opus or ogg-opus myself. Will have to get back to you on that and check it out.