{"id":19746215,"url":"https://github.com/itzmanish/avmuxer","last_synced_at":"2026-06-12T17:33:15.948Z","repository":{"id":251624315,"uuid":"837951509","full_name":"itzmanish/avmuxer","owner":"itzmanish","description":"Library for audio Multiplexing and Transcoding in go","archived":false,"fork":false,"pushed_at":"2025-03-06T09:41:48.000Z","size":7613,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-21T17:02:52.233Z","etag":null,"topics":["audio","audio-processing","g711","golang","multiplexing","opus","pcm","pcma","pcmu","transcoding"],"latest_commit_sha":null,"homepage":"","language":"Go","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/itzmanish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-04T14:27:33.000Z","updated_at":"2025-04-07T14:08:00.000Z","dependencies_parsed_at":"2024-11-12T02:13:55.773Z","dependency_job_id":"6b10af3e-a96b-4239-8ab2-ccbd22c13dd2","html_url":"https://github.com/itzmanish/avmuxer","commit_stats":null,"previous_names":["itzmanish/audio-multiplexer-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/itzmanish/avmuxer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzmanish%2Favmuxer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzmanish%2Favmuxer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzmanish%2Favmuxer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzmanish%2Favmuxer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itzmanish","download_url":"https://codeload.github.com/itzmanish/avmuxer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itzmanish%2Favmuxer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34256180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-12T02:00:06.859Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","audio-processing","g711","golang","multiplexing","opus","pcm","pcma","pcmu","transcoding"],"created_at":"2024-11-12T02:13:49.024Z","updated_at":"2026-06-12T17:33:15.930Z","avatar_url":"https://github.com/itzmanish.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Audio Multiplexer And Transcoder\n\nThe `avmuxer` package provides functionality to manage multiple Opus and G711 audio streams, decode Opus/G711 data to PCM, interleave and multiplex PCM data, and re-encode the multiplexed PCM data back to Opus format. This is useful for real-time audio mixing, VoIP applications, and multi-participant audio conferencing systems.\n\n## Features\n\n- **Manage Multiple Audio Streams**: Add and handle multiple Opus and G711 audio streams, each with its own decoder and buffer.\n- **Decode Opus/G711 Data**: Convert Opus-encoded data to PCM (Pulse Code Modulation) format.\n- **Multiplex Audio Streams**: Interleave and combine PCM data from multiple streams into a single output.\n- **Encode PCM to Opus/G711**: Convert the combined PCM data back into Opus/G711-encoded format for efficient transmission or storage.\n\n# Usage\n\n## Creating an Multiplexer\n\n```go\n\nmultiplexer, err := NewMultiplexer()\nif err != nil {\n    log.Fatalf(\"Failed to create multiplexer: %v\", err)\n}\n```\n\n## Reading PCM data\n\n```go\npcmData := multiplexer.ReadPCM16()\nif len(pcmData) == 0 {\n    log.Println(\"No PCM data available\")\n}\n```\n\n## Reading Opus Data\n\n```go\nbuf:=make([]byte, 2048)\nn, err := multiplexer.Read(buf)\nif err != nil {\n    log.Fatalf(\"Failed to read Opus bytes: %v\", err)\n}\nif n == 0 {\n    log.Println(\"No Opus data available\")\n}\n```\n\n# Testing\n\nA comprehensive test suite is provided to ensure the end-to-end functionality of the multiplexer, including decoding, multiplexing, and re-encoding audio data. To run the tests, use the following command:\n\n```sh\ngo test ./...\n```\n\n# License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n\n# Contributing\n\nContributions are welcome! Please open an issue or submit a pull request on GitHub.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzmanish%2Favmuxer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitzmanish%2Favmuxer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitzmanish%2Favmuxer/lists"}