Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Save decoded mp3 to wave file #50

Open
manazoid opened this issue Sep 11, 2022 · 1 comment
Open

Save decoded mp3 to wave file #50

manazoid opened this issue Sep 11, 2022 · 1 comment

Comments

@manazoid
Copy link

I would like to convert audio files mp3 to wav and wav to mp3 with pure go.

I guess save bytes to file with .wav extension is not what I should do. Pure go mean not using lame or ffmpeg, other CLI tools... I want get a go app that can convert and mix audio files with export both formats. But I can't figure out how it do

@hajimehoshi
Copy link
Owner

hajimehoshi commented Sep 11, 2022

There is a wav decoder https://github.com/hajimehoshi/ebiten/blob/main/audio/wav/decode.go but not an encoder as far as I know. Unfortunately encoding is not a task go-mp3 should handle.

I would use sox to convert formats.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants