Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Garbled / Static-y output on windows only when output_file is stdout #607

Open
RickeyWard opened this issue Sep 21, 2024 · 0 comments
Open

Comments

@RickeyWard
Copy link

on windows with the latest release version:

Outputting a wav file directly sounds great!

echo "hello, this is a test" | ./piper.exe --model en_US-amy-medium.onnx --output_file hello.wav

Outputting raw and then playing it with ffmpeg, sounds great!

echo "hello, this is a test" | ./piper.exe --model en_US-amy-medium.onnx --output_raw -o - |  ffplay -nodisp -autoexit -f s16le -ar 22050 -ac 1 -

but if you use the stdoutput for wav file it is recognizable but extremely static-y. The riff headers are fine the audio is just busted.

echo "hello, this is a test" | ./piper.exe --model en_US-amy-medium.onnx --output_file - > hello.wav

trying this with ffplay yield the same aweful result

echo "hello, this is a test"| ./piper --model ./en_US-amy-medium.onnx --output_file - | ffplay -nodisp -autoexit -

I thought maybe this was an issue with the shell doing something weird, but piping raw into a file and playing it with ffplay sounds great but piping the file output into a file sounds bad.

I wanted to attach a sample but github doesn't allow it.

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

No branches or pull requests

1 participant