From 6f639ca60a5d9a03e2c093d301b43ab63e13d2a6 Mon Sep 17 00:00:00 2001 From: cam Date: Tue, 5 Nov 2019 11:20:05 +1300 Subject: [PATCH 1/2] fixed audio test --- speaker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speaker.go b/speaker.go index e42f10a..a759c3e 100644 --- a/speaker.go +++ b/speaker.go @@ -61,7 +61,7 @@ func playTestAudio() ([]byte, error) { if wav == nil { return nil, errors.New("unable to load test audio") } - cmd := exec.Command("play", "-t", "wav", "--norm", "-q", "-") + cmd := exec.Command("play", "-t", "wav", "--norm=-5", "-q", "-") stdin, err := cmd.StdinPipe() if err != nil { return nil, fmt.Errorf("unable to play audio: %v", err) From 87c815760862e357997764c6073469d54fde5036 Mon Sep 17 00:00:00 2001 From: Cameron Ryan-Pears Date: Tue, 5 Nov 2019 11:25:02 +1300 Subject: [PATCH 2/2] Update speaker.go --- speaker.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/speaker.go b/speaker.go index a759c3e..f2e2b0c 100644 --- a/speaker.go +++ b/speaker.go @@ -61,7 +61,7 @@ func playTestAudio() ([]byte, error) { if wav == nil { return nil, errors.New("unable to load test audio") } - cmd := exec.Command("play", "-t", "wav", "--norm=-5", "-q", "-") + cmd := exec.Command("play", "-t", "wav", "--norm=-3", "-q", "-") stdin, err := cmd.StdinPipe() if err != nil { return nil, fmt.Errorf("unable to play audio: %v", err)