gopxl / beep

A little package that brings sound to any Go application. Suitable for playback and audio-processing.
MIT License
265 stars 11 forks source link

how can I play .ape with beep? #190

Open queryDuan opened 6 days ago

queryDuan commented 6 days ago

I have some music and their suffix is .ape . How can I play them with beep?Or how can I play it with other library? Thank you!

MarkKremer commented 5 days ago

Beep doesn't currently support the ape audio format. If you can find another library that can decode .ape to raw samples, you could implement Beep's Streamer interface to process or play the audio through Beep.

dusk125 commented 3 days ago

If you don't mind converting things like Mark suggested, you could use ffmpeg to translated them into wav

ffmpeg -i file.ape file.wav

You might could also execute ffmpeg from go and pipe the output into beep via the wav decoder for realtime translation... but I don't know the command offhand to do that