diff --git a/tonetest.go b/tonetest.go index 53c8f5b..95d929c 100644 --- a/tonetest.go +++ b/tonetest.go @@ -82,7 +82,7 @@ type AudioFileSaver struct { // // ffmpeg -f s16le -ar 48000 -ac 2 -i output.wav func NewAudioFileSaver(path string) (*AudioFileSaver, error) { - f, err := os.Create(path) + f, err := os.OpenFile(path, os.O_WRONLY|os.O_CREATE|os.O_EXCL, 0600) if err != nil { return nil, err }