Replies: 1 comment
-
Ok, I am able to do half of work )) The question is how to encode frame to opus codec and get result bytes? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I want to get opus packet (60ms, 16000, mono) stream from any url source, trying to do something like this
here I want accumulate samples in audio_buffer, but don't understand how to do it properly
first version is to use f.to_ndarray()
second version is use bytes()
maybe you can help me to choose?
In result I want get AudioFrame('s16', 'mono', SAMPLE_RATE) with duration 60ms
and make encode to opus format
I am planning do it with something like
and I need this encoded data without container and in bytes format
Can you get me direction?
thanks!
Beta Was this translation helpful? Give feedback.
All reactions