opus
A nim wrapper for the opus audio decoder
Summary
| Latest Version | 0.1.0 |
|---|---|
| License | BSD-3-Clause |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-09-01 07:17 |
Tags
Authors
- Carlo Capocasa
Installation
nimble install opus
choosenim install opus
git clone https://github.com/capocasa/nim-opus
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| opus | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Dependencies
| Package | Version | Optional |
|---|---|---|
| nim >= | 1.4.2 | No |
| nimterop | - | No |
Source
| Repository | https://github.com/capocasa/nim-opus |
|---|---|
| Homepage | https://github.com/capocasa/nim-opus |
| Registry Source | nimble_official |
README
nim-opus
A nim wrapper for opus, the latest and greatest freely usable audio codec
Portable and liberally licensed
Usage
# Get data as an array-like structure from a demultiplexer
let encodedData = getMyEncodedData()
let decoder = newDecoder()
let samples = decoder.decode(encodedData)
for i in 0..<samples.len:
echo $samples.data[i]
Documentation
Please see auto-generated documentation at https://capocasa.github.io/nim-opus/opus.html
Further information
For a full usage example of the opus decoder, see the lov video player, https://github.com/capocasa/lov
Design and project status also applies to nim-opus as well.