chore: replace dca-rs (#1240)

* chore: replace dca-rs

* Update examples/airhorn/README.md

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>

Co-authored-by: Fedor Lapshin <fe.lap.prog@gmail.com>
This commit is contained in:
Jordhan Carvalho 2022-11-19 13:16:23 -03:00 committed by GitHub
parent e580734d0b
commit 128f34bee6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,13 +39,11 @@ The below example shows how to start the bot from the airhorn example folder.
Airhorn bot uses [DCA](https://github.com/bwmarrin/dca) files, which are Airhorn bot uses [DCA](https://github.com/bwmarrin/dca) files, which are
pre-computed files that are easy to send to Discord. pre-computed files that are easy to send to Discord.
If you would like to create your own DCA files, please use:
* [dca-rs](https://github.com/nstafie/dca-rs)
See the below example of creating a DCA file from a WAV file. This also works See the below example of creating a DCA file from a MP3 file. This also works
with MP3, FLAC, and many other file formats. Of course, you will need to with WAV, FLAC, and many other file formats. Of course, you will need to [install](https://github.com/bwmarrin/dca/tree/master/cmd/dca#Getting-Started)
[install](https://github.com/nstafie/dca-rs#installation) dca-rs first :) FFmpeg and the DCA CLI first.
```sh ```sh
./dca-rs -i <input wav file> --raw > <output file> ffmpeg -i test.mp3 -f s16le -ar 48000 -ac 2 pipe:1 | dca > test.dca
``` ```