Closed OscarVanL closed 4 years ago
Ohh I see its not an error in the processor its just u didn't add grammar to ur mapper so it cant convert it to pause/silence token :)
,.? etc. shouldn't be considered pauses in a phoneme way so this is working as intended basically you can just add extra mapper urself.
Here u can just add extra tokens to map it into silence tokens :)
I understand now :) Thank you
Hi,
I'm trying to use the Libritts AutoProcessor for inference on my FastSpeech2 Model.
The above
processor.mode = False
is added because the text_to_sequence function does not convert the text to Phonemes by default:https://github.com/TensorSpeech/TensorFlowTTS/blob/e42595abbf21208c81e0fabaa0b1eaeaca2c4053/tensorflow_tts/processor/libritts.py#L89-L95
But then when I process a text sequence, it will fail with some edge cases such as grammar.
Processing error
```python KeyError Traceback (most recent call last)This problem has previously been discussed in https://github.com/TensorSpeech/TensorFlowTTS/issues/243. One approach was to replace the grammar with pauses. Is there any reason the included processor does not do this by itself?