{"id":20313552,"url":"https://github.com/66origin/node-rodio","last_synced_at":"2025-07-26T09:37:44.709Z","repository":{"id":137684711,"uuid":"140639670","full_name":"66Origin/node-rodio","owner":"66Origin","description":"Rodio (Rust audio playback library) bindings for Node.js with Neon","archived":false,"fork":false,"pushed_at":"2018-09-20T13:49:54.000Z","size":5388,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-06-12T22:04:21.000Z","etag":null,"topics":["neon","node-rodio","rodio"],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/66Origin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2018-07-12T00:09:43.000Z","updated_at":"2023-03-23T14:30:21.000Z","dependencies_parsed_at":null,"dependency_job_id":"ee15489e-a5cd-46f9-9070-5d295022b19d","html_url":"https://github.com/66Origin/node-rodio","commit_stats":null,"previous_names":["yellowinnovation/node-rodio"],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/66Origin/node-rodio","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/66Origin%2Fnode-rodio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/66Origin%2Fnode-rodio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/66Origin%2Fnode-rodio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/66Origin%2Fnode-rodio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/66Origin","download_url":"https://codeload.github.com/66Origin/node-rodio/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/66Origin%2Fnode-rodio/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265560416,"owners_count":23788182,"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":["neon","node-rodio","rodio"],"created_at":"2024-11-14T18:11:46.301Z","updated_at":"2025-07-26T09:37:44.679Z","avatar_url":"https://github.com/66Origin.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node-rodio\n\n[![npm (scoped)](https://img.shields.io/npm/v/@yellowinnovation/node-rodio.svg)](https://www.npmjs.com/package/@yellowinnovation/node-rodio)\n[![David](https://img.shields.io/david/YellowInnovation/node-rodio.svg)](https://www.npmjs.com/package/@yellowinnovation/node-rodio)\n\n\n[Rodio](https://github.com/tomaka/rodio) (Rust audio playback library) bindings for Node.js, built with [Neon](https://www.neon-bindings.com/)\n\n## Installation\n\n`npm install @yellowinnovation/node-rodio`\n\nor\n\n```json\n{\n    \"dependencies\": {\n        \"@yellowinnovation/node-rodio\": \"0.0.9\"\n    }\n}\n```\n\n## Usage\n\n```javascript\n\nconst rodio = require('@yellowinnovation/node-rodio');\n\ntry {\n    console.log(rodio.defaultInputDevice()); // { name: \"Your default microphone\" ... sample rate, format etc }\n    console.log(rodio.defaultOutputDevice()); // { name: \"Your default speakers/headphones\" ... sample rate, format etc }\n    console.log(rodio.devices()); // Lists all devices on the machine\n    console.log(rodio.inputDevices()); // Lists all input devices on the machine\n    console.log(rodio.outputDevices()); // Lists all output devices on the machine\n\n    const player = new rodio.Player(); // Initializes a new player\n\n    player.append(\"./samples/music.mp3\"); // Loads a file in the queue\n    player.append(\"./samples/beep.wav\"); // Another one that will play after the music.mp3\n    player.volume(0.5); // Sets volume to 50%; CANNOT BE USED DURING PLAYBACK OR IT WILL THROW, it'll behave fine here though\n    // If you'd like to get sounds in parallel, just create another player and make them .play(); at the same time!\n    player.play(() =\u003e { // Starts playback, expects a callback that is executed when the queue is over\n        console.log('done!');\n    });\n    player.pause(); // Pauses playback\n    player.resume(); // Resumes playback\n    player.volume(1.0); // Sets the volume to 100%; CANNOT BE USED DURING PLAYBACK OR IT WILL THROW, it will throw here for example\n    player.stop(); // Stops playback completely and empties queue.\n    // player is not usable at this point since we killed the background thread.\n} catch (e) {\n    console.error(e); // all functions can throw in case there's a problem with system configuration or you did something wrong\n}\n```\n\n## License\n\nLicensed under:\n\n* Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)), or\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or [http://opensource.org/licenses/MIT](http://opensource.org/licenses/MIT))\n\n## Credits\n\n* Huge props to [@tomaka](https://github.com/tomaka) for his amazing work on [rodio](https://github.com/tomaka/rodio) \u0026 [cpal](https://github.com/tomaka/cpal)\n\n## Yellow Innovation\n\nYellow Innovation is the innovation laboratory of the French postal service: La Poste.\n\nWe create innovative user experiences and journeys through services with a focus on IoT lately.\n\n[Yellow Innovation's website and works](http://yellowinnovation.fr/en/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F66origin%2Fnode-rodio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F66origin%2Fnode-rodio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F66origin%2Fnode-rodio/lists"}