update separate stopnet flow to make it faster.

This commit is contained in:
Eren Golge
2019-05-17 16:15:43 +02:00
parent 788c8100ba
commit e62659da94
8 changed files with 110 additions and 69 deletions
+9
View File
@@ -57,6 +57,15 @@ def test_phoneme_to_sequence():
print(len(sequence))
assert text_hat == gt
# padding char
text = "_Be a _voice, not an! echo_"
sequence = phoneme_to_sequence(text, text_cleaner, lang)
text_hat = sequence_to_phoneme(sequence)
gt = "biː ɐ vɔɪs, nɑːt ɐn! ɛkoʊ"
print(text_hat)
print(len(sequence))
assert text_hat == gt
def test_text2phone():
text = "Recent research at Harvard has shown meditating for as little as 8 weeks can actually increase, the grey matter in the parts of the brain responsible for emotional regulation and learning!"