Skip to content

Commit

Permalink
adapt to new infrastructure
Browse files Browse the repository at this point in the history
  • Loading branch information
gooofy committed Feb 23, 2017
1 parent 8ba3dc6 commit b5844d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion speech_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
from speech_lexicon import Lexicon

DEFAULT_MARY = False # switch between mary and sequitur default g2p
SEQUITUR_MODEL = 'data/models/sequitur-voxforge-de-r20161117'

def play_wav(ts):

Expand Down Expand Up @@ -132,7 +133,7 @@ def lex_set_token(token):
if DEFAULT_MARY:
ipas = tts.gen_ipa (lex_base)
else:
ipas = sequitur_gen_ipa (lex_base)
ipas = sequitur_gen_ipa (SEQUITUR_MODEL, lex_base)

lex_entry = {'ipa': ipas}
lex[lex_token] = lex_entry
Expand Down

0 comments on commit b5844d0

Please sign in to comment.