mirror of
https://github.com/EvolutionAPI/evolution-audio-converter.git
synced 2025-07-13 15:14:50 -06:00
fix indetation
This commit is contained in:
parent
c08e5637d2
commit
a0d446204f
4
main.go
4
main.go
@ -83,9 +83,9 @@ func convertAudio(inputData []byte, inputFormat string, outputFormat string) ([]
|
||||
case "mp3":
|
||||
cmd = exec.Command("ffmpeg", "-i", "pipe:0", "-f", "mp3", "pipe:1")
|
||||
case "wav":
|
||||
cmd = exec.Command("ffmpeg", "-i", "pipe:0", "-f", "wav", "pipe:1")
|
||||
cmd = exec.Command("ffmpeg", "-i", "pipe:0", "-f", "wav", "pipe:1")
|
||||
default:
|
||||
if inputFormat == "webm" {
|
||||
if inputFormat == "webm" {
|
||||
// Custom settings for webm to ogg conversion
|
||||
fmt.Println("Conversão de webm para ogg")
|
||||
cmd = exec.Command("ffmpeg", "-i", "pipe:0", "-acodec", "libopus", "-b:a", "16k", "-vbr", "on", "-compression_level", "10", "-ac", "1", "-ar", "16000", "-f", "ogg", "pipe:1")
|
||||
|
Loading…
Reference in New Issue
Block a user