{"id":15168667,"url":"https://github.com/denosaurs/opus","last_synced_at":"2025-10-25T13:31:17.713Z","repository":{"id":62421733,"uuid":"293658899","full_name":"denosaurs/opus","owner":"denosaurs","description":"🔊 Deno bindings for libopus","archived":false,"fork":false,"pushed_at":"2021-04-03T18:55:30.000Z","size":519,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-10-30T01:22:25.316Z","etag":null,"topics":["audio","deno","libopus","opus"],"latest_commit_sha":null,"homepage":"https://deno.land/x/opus","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/denosaurs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"open_collective":"denosaurs","github":"denosaurs"}},"created_at":"2020-09-08T00:16:05.000Z","updated_at":"2021-06-19T17:17:31.000Z","dependencies_parsed_at":"2022-11-01T17:31:59.880Z","dependency_job_id":null,"html_url":"https://github.com/denosaurs/opus","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fopus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fopus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fopus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/denosaurs%2Fopus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/denosaurs","download_url":"https://codeload.github.com/denosaurs/opus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238147600,"owners_count":19424291,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","deno","libopus","opus"],"created_at":"2024-09-27T06:40:17.844Z","updated_at":"2025-10-25T13:31:17.275Z","avatar_url":"https://github.com/denosaurs.png","language":"TypeScript","funding_links":["https://opencollective.com/denosaurs","https://github.com/sponsors/denosaurs"],"categories":[],"sub_categories":[],"readme":"# opus\n\n[![Tags](https://img.shields.io/github/release/denosaurs/opus)](https://github.com/denosaurs/opus/releases)\n[![CI Status](https://img.shields.io/github/workflow/status/denosaurs/opus/check)](https://github.com/denosaurs/opus/actions)\n[![License](https://img.shields.io/github/license/denosaurs/opus)](https://github.com/denosaurs/opus/blob/master/LICENSE)\n\n```typescript\nconst SAMPLE_RATE = 48000;\nconst FRAME = 20;\nconst CHANNELS = 2;\n\nawait Opus.load();\n\n// Optimize encoding for audio. Available applications are VOIP, AUDIO, and RESTRICTED_LOWDELAY\nlet encoder = new Opus(SAMPLE_RATE, CHANNELS, OpusApplication.AUDIO);\n\nlet frameSize = SAMPLE_RATE * FRAME / 1000;\n\n// Get PCM data from somewhere and encode it into opus\nlet pcmData = new Uint8Array();\nlet encodedPacket = encoder.encode(pcmData, frameSize);\n\n// Decode the opus packet back into PCM\nlet decodedPacket = encoder.decode(encodedPacket);\nconsole.log(decodedPacket);\n\n// Delete the encoder when finished with it (Emscripten does not automatically call C++ object destructors)\nencoder.delete();\n```\n\n## Maintainers\n\n- Filippo Rossi ([@qu4k](https://github.com/qu4k))\n\n## Other\n\n### Related\n\n- [opusscript](https://github.com/abalabahaha/opusscript) - nodejs bindings for libopus 1.3.1, ported with emscripten\n\n### Contribution\n\nPull request, issues and feedback are very welcome. Code style is formatted with `deno fmt` and commit messages are done following Conventional Commits spec.\n\n### Licence\n\nThis project is using the MIT license and is a port of [abalabahaha/opusscript](https://github.com/abalabahaha/opusscript)\nto deno.\n\nCopyright (c) 2016-2020 abalabahaha\nCopyright (c) 2020-2021 the denosaurs team\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenosaurs%2Fopus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdenosaurs%2Fopus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdenosaurs%2Fopus/lists"}