Skip to content

Commit

Permalink
Merge pull request #15 from hafeoz/master
Browse files Browse the repository at this point in the history
Use audio filter instead of vol
  • Loading branch information
duo authored Jun 25, 2023
2 parents d015176 + d182032 commit 6de66dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ func silk2ogg(rawData []byte) ([]byte, error) {
defer os.Remove(wavFile.Name())
{
cmd := exec.Command(
"ffmpeg", "-f", "s16le", "-ar", "24000", "-ac", "1", "-vol", "2000", "-y", "-i", pcmFile.Name(), "-f", "wav", wavFile.Name())
"ffmpeg", "-f", "s16le", "-ar", "24000", "-ac", "1", "-y", "-i", pcmFile.Name(), "-f", "wav", "-af", "volume=7.812500", wavFile.Name())
if err := cmd.Start(); err != nil {
return nil, err
}
Expand Down

0 comments on commit 6de66dc

Please sign in to comment.