{"id":19646966,"url":"https://github.com/harmonyland/harmony_voice","last_synced_at":"2025-04-28T15:31:10.232Z","repository":{"id":130570896,"uuid":"358473000","full_name":"harmonyland/harmony_voice","owner":"harmonyland","description":"Discord Voice API implementation for Deno, built on modern Web Streams API.","archived":false,"fork":false,"pushed_at":"2022-01-15T12:45:40.000Z","size":22,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-22T12:08:00.019Z","etag":null,"topics":["deno","discord-voice","music","typescript","udp","voice","wasm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harmonyland.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},"funding":{"open_collective":"harmony"}},"created_at":"2021-04-16T04:15:27.000Z","updated_at":"2024-06-14T18:58:00.000Z","dependencies_parsed_at":"2023-04-06T10:00:41.241Z","dependency_job_id":null,"html_url":"https://github.com/harmonyland/harmony_voice","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.2857142857142857,"last_synced_commit":"c088e694ac3342c9aaa25b07d6040b14428295a1"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmonyland%2Fharmony_voice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmonyland%2Fharmony_voice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmonyland%2Fharmony_voice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harmonyland%2Fharmony_voice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harmonyland","download_url":"https://codeload.github.com/harmonyland/harmony_voice/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251231325,"owners_count":21556254,"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":["deno","discord-voice","music","typescript","udp","voice","wasm"],"created_at":"2024-11-11T14:41:40.426Z","updated_at":"2025-04-28T15:31:10.196Z","avatar_url":"https://github.com/harmonyland.png","language":"TypeScript","funding_links":["https://opencollective.com/harmony"],"categories":[],"sub_categories":[],"readme":"# harmony_voice\r\n\r\nDiscord Voice API implementation for Deno.\r\n\r\n## Features\r\n\r\n- Built on modern Web Streams API.\r\n- Works with any Discord API library with some effort.\r\n- Experimental Voice Receive support.\r\n\r\n## Usage\r\n\r\n```ts\r\nconst conn = new VoiceConnect(botUserID);\r\n// Obtained from VOICE_STATE_UPDATE Gateway Event\r\nconn.voiceStateUpdate({ channelID, guildID, sessionID });\r\n// Obtained from VOICE_SERVER_UPDATE\r\nconn.voiceServerUpdate({ token, endpoint });\r\n\r\nconn.connect();\r\n\r\n// To play something\r\nconst player = conn.player();\r\npcmStreamFromSomewhere.pipeTo(player.writable);\r\n\r\n// ytdl_core example\r\nconst player = conn.player();\r\nconst info = await getInfo(\"id\"); // from x/ytdl_core\r\n\r\nnew PCMStream(stream.formats.find((e) =\u003e e.hasAudio \u0026\u0026 !e.hasVideo)!.url)\r\n  .pipeTo(player.writable);\r\n```\r\n\r\n## License\r\n\r\nCheck [LICENSE](./LICENSE) for more info.\r\n\r\nCopyright 2022 © DjDeveloperr\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmonyland%2Fharmony_voice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharmonyland%2Fharmony_voice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharmonyland%2Fharmony_voice/lists"}