Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/littledivy/deno_audio

Audio playback library for Deno
https://github.com/littledivy/deno_audio

Last synced: about 2 months ago
JSON representation

Audio playback library for Deno

Awesome Lists containing this project

README

        





deno_audio logo

deno_audio


Audio playback library for Deno.


[![stars](https://img.shields.io/github/stars/littledivy/deno_audio)](https://github.com/littledivy/deno_audio/stargazers)
[![issues](https://img.shields.io/github/issues/littledivy/deno_audio)](https://github.com/littledivy/deno_audio/issues)
![deno version](https://img.shields.io/badge/deno-1.19.0-success)

## Example

```typescript
import { play } from "https://deno.land/x/[email protected]/mod.ts";

// supports mp3, wav, vorbis, flac
await play("music.mp3");
```

## Building from source

### Prerequisites

- [deno](https://deno.land/)
- [rust](https://www.rust-lang.org/)
- [deno_bindgen](https://github.com/denoland/deno_bindgen)
- libasound2-dev - `apt-get install libasound2-dev`

## Building

```bash
$ deno_bindgen --release
```

## Example

```bash
$ deno run --unstable -A example.ts
```

### Contribution

Pull request, issues and feedback are very welcome. Code style is formatted with
`deno fmt` and commit messages are done following
[Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) spec.

## Copyright

Logo by [@carazmatic](https://picsart.com/i/284157719013211) at picsart.com
(cute, isn't it?)

deno_audio is licensed under the MIT license. Please see the [LICENSE](LICENSE)
file.