- This topic has 2 replies, 2 voices, and was last updated 2 hours, 57 minutes ago by .
Viewing 2 reply threads
Viewing 2 reply threads
- You must be logged in to reply to this topic.
› Forums › Speech Synthesis › Festival › [Bug] SynthAndFlatPrintSentences ignores line break after the string ” I.”
As in title. For instance, with a text file like this:
du n no I.
that’s gone.
and somehow allegedly didn’t see anything I I.
you genuinely saw nothing.
like when I.
it’s a picture.
You get this output from Festival, where Lines 1&2, Lines 3&4, and Lines 5&6 are merged into a single utterance:
utt00000001 <{(1 d uu )}{(1 e n )}{(1 n ou )}{(1 ai )}{(1 dh a t s )}{(1 g o n )}> _BB
utt00000002 <{(1 a n d )}{(1 s uh m )(3 h ow )}{(0 @ )(1 l e jh )(0 i d )(0 l iy )}{(1 d i d )(0 n! t )}{(1 s ii )}{(1 e )(0 n i )(0 th i ng )}{(1 ai )}{(1 ai )}{(1 y uu )}{(1 jh e )(0 n y uw )(0 i n )(0 l iy )}{(1 s oo )}{(1 n uh )(0 th i ng )}> _BB
utt00000003 <{(1 l ai k )}{(1 w e n )}{(1 ai )}{(1 i t s )}{(1 ei )}{(1 p i k )(0 ch @ )}> _BB
This isn’t related to the “SynthAndFlatPrintSentences” per se, but rather how Festival interprets the text in your file.
The script you’re using just uses Festival’s standard textfile processing – if you look at the code in the “synthAndSaveSentences.scm” scheme code file, you’ll see it just calls “(tts_file text)”. In that text file processing, line breaks have no special meaning, and sentences can span multiple lines. I guess in the example you give above Festival is interpreting “I.” as an abbreviation, and not the end of a sentence. That’s why all those lines get concatenated into a single sentence – this is not a bug, this is how festival is interpreting your text file.
makes sense, thank you!
Some forums are only available if you are logged in. Searching will only return results from those forums if you log in.
Copyright © 2025 · Balance Child Theme on Genesis Framework · WordPress · Log in