Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opus codec #7675

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Opus codec #7675

wants to merge 4 commits into from

Conversation

dholth
Copy link

@dholth dholth commented Mar 4, 2023

This is a rough start on an Opus audio codec extension for circuitpython, which is an excellent audio codec. It expects https://github.com/dholth/arduino-libopus to be checked out next to the circuitpython checkout. Not sure it has a place in circuitpython in this state, but it might be interesting to someone. This began as a micropython extension, but crashed on-device when instantiating oggz.oggz(f), and I haven't investigated that with a JTAG probe.

Usage

import oggz
nyan = open('nyancat.opus', 'rb')
opus = oggz.oggz(nyan0
buffer = bytearray(960*4)
content_type, samples, bytes_read, buffer_length = opus.decode_opus(buffer)

@microdev1 microdev1 marked this pull request as draft March 10, 2023 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants