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

No silence between sentences #151

Closed
hubertlepicki opened this issue Jul 26, 2023 · 4 comments
Closed

No silence between sentences #151

hubertlepicki opened this issue Jul 26, 2023 · 4 comments

Comments

@hubertlepicki
Copy link
Contributor

When I run piper I get output that doesn't have any gaps between sentences.

echo "Hi there! How are things? There awas a princess and she lived in a castle. She was a pretty princess. A lot of knights wanted to steal her heart, but there was a big obstacle in their way: a dragon. The dragon was big and strong. He ate all of the knights. End." | ./piper --model /home/hubert/Pobrane/en_US-amy-medium.onnx --output_file hello.wav 

See attached output wav for result (zipped b/c GitHub won't allow me to upload Wav).

hello.zip

I have tried passing --silence_seconds 1, this had no effect. Looking through source code, I found that maybe it's --sentence_silence https://github.com/rhasspy/piper/blob/c00ffd33340afa417d69760dc2c92c73dacef5c8/src/cpp/main.cpp#L453C24-L453C42 but it didn't work either.

This is actually not a problem for me, because I already divide the text into sentences before running it through piper, but it probably needs fixing

@hubertlepicki
Copy link
Contributor Author

Actually I am testing it now and --sentence_silence works. So I think the only problem is that help screen lists is as --silence_seconds

@synesthesiam
Copy link
Contributor

This has been fixed in 1.2.0. Additionally, you can now modify the silence after any phoneme (including punctuation like commas).

@SirNate0
Copy link

SirNate0 commented Sep 7, 2023

Additionally, you can now modify the silence after any phoneme (including punctuation like commas).

How is this done?

@nicholascok
Copy link

Additionally, you can now modify the silence after any phoneme (including punctuation like commas).

How is this done?

They forgot to add this to the --help menu, but the option is --phoneme-silence <phoneme> <seconds>

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

4 participants