{"id":13760514,"url":"https://github.com/EvandroLG/ts-audio","last_synced_at":"2025-05-10T11:30:22.510Z","repository":{"id":10247135,"uuid":"12353347","full_name":"EvandroLG/ts-audio","owner":"EvandroLG","description":":musical_score: ts-audio is an agnostic library that makes it easy to work with AudioContext and create audio playlists in the browser","archived":false,"fork":false,"pushed_at":"2025-05-01T03:50:01.000Z","size":12379,"stargazers_count":333,"open_issues_count":1,"forks_count":23,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-01T04:30:42.573Z","etag":null,"topics":["audio","audiocontext-api","client-side","song","typescript"],"latest_commit_sha":null,"homepage":"","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/EvandroLG.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":"2013-08-25T03:01:42.000Z","updated_at":"2025-05-01T03:50:02.000Z","dependencies_parsed_at":"2023-07-13T14:24:45.680Z","dependency_job_id":"f23e53ec-a122-4ecf-b3c2-bf04c86f4c76","html_url":"https://github.com/EvandroLG/ts-audio","commit_stats":{"total_commits":306,"total_committers":8,"mean_commits":38.25,"dds":"0.21568627450980393","last_synced_commit":"02a29fa2fb6f89fe83f8465bec0c85e39d08d18e"},"previous_names":["evandrolg/audiojs"],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvandroLG%2Fts-audio","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvandroLG%2Fts-audio/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvandroLG%2Fts-audio/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/EvandroLG%2Fts-audio/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/EvandroLG","download_url":"https://codeload.github.com/EvandroLG/ts-audio/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253409879,"owners_count":21903984,"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","audiocontext-api","client-side","song","typescript"],"created_at":"2024-08-03T13:01:11.886Z","updated_at":"2025-05-10T11:30:21.455Z","avatar_url":"https://github.com/EvandroLG.png","language":"TypeScript","readme":"# \u003cimg alt=\"ts-audio\" src=\"https://github.com/EvandroLG/ts-audio/blob/master/.github/logo.svg?sanitize=true\" width=\"144\"\u003e \u0026middot; [![license](https://badgen.now.sh/badge/license/MIT)](./LICENSE)\n\n`ts-audio` is an agnostic and easy-to-use library to work with the `AudioContext` API and create Playlists.\n\n## Features\n\n- Simple API that abstracts the complexity of the AudioContext API\n- Cross-browser support\n- Makes easy to create audio playlist\n- Works with any language that compiles to JavaScript\n- Supports to Types\n- Zero-dependecy\n\n## Installation\n\nTo install `ts-audio`, execute:\n\n```sh\n$ npm install ts-audio\n```\n\nor\n\n```sh\n$ yarn add ts-audio\n```\n\n## Quickstart\n\n`ts-audio` has two components at its core: `Audio` and `AudioPlaylist`. Both components are functions that you can call with certain parameters.\u003cbr\u003e\u003cbr\u003e\nBelow is an example of how to use the `Audio`:\n\n```js\nimport { Audio } from 'ts-audio';\n\nconst audio = Audio({\n  file: './song.mp3',\n  loop: true,\n  volume: 0.2,\n});\n\naudio.play();\n```\n\n- [Complete example](https://codesandbox.io/s/ts-audio-audio-m54u5)\n\nTo use the `AudioPlaylist` component is also quite simple:\n\n```js\nimport { AudioPlaylist } from 'ts-audio';\n\nconst playlist = AudioPlaylist({\n  files: ['./songOne.mp3', './songTwo.mp3', './songThree.mp3'],\n  volume: 0.7,\n});\n\nplaylist.play();\n```\n\n- [Complete example](https://codesandbox.io/s/ts-audio-playlist-ovynj)\n\n## Docs\n\n- Audio\n\n  - [Parameters](https://github.com/EvandroLG/ts-audio/wiki/Audio:-Parameters)\n  - [Properties](https://github.com/EvandroLG/ts-audio/wiki/Audio:-Properties)\n  - [Methods](https://github.com/EvandroLG/ts-audio/wiki/Audio:-Methods)\n  - [Events](https://github.com/EvandroLG/ts-audio/wiki/Audio:-Events)\n\n* AudioPlaylist\n  - [Parameters](https://github.com/EvandroLG/ts-audio/wiki/AudioPlaylist:-Parameters)\n  - [Properties](https://github.com/EvandroLG/ts-audio/wiki/AudioPlaylist:-Properties)\n  - [Methods](https://github.com/EvandroLG/ts-audio/wiki/AudioPlaylist:-Methods)\n  - [Events](https://github.com/EvandroLG/ts-audio/wiki/AudioPlaylist:-Events)\n\n## License\n\n[MIT](https://github.com/EvandroLG/ts-audio/tree/master/LICENSE)\n","funding_links":[],"categories":["Video/Audio","typescript","TypeScript","Built with TypeScript","视频/音频"],"sub_categories":["Other","Libraries","其它"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEvandroLG%2Fts-audio","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FEvandroLG%2Fts-audio","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FEvandroLG%2Fts-audio/lists"}