mirror of
https://github.com/wassname/TTS.git
synced 2026-09-09 11:16:00 +08:00
change import statements
This commit is contained in:
@@ -11,7 +11,7 @@ import subprocess
|
||||
import numpy as np
|
||||
from collections import OrderedDict
|
||||
from torch.autograd import Variable
|
||||
from utils.text import text_to_sequence
|
||||
from TTS.utils.text import text_to_sequence
|
||||
|
||||
|
||||
class AttrDict(dict):
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import re
|
||||
from utils.text import cleaners
|
||||
from utils.text.symbols import symbols
|
||||
from TTS.utils.text import cleaners
|
||||
from TTS.utils.text.symbols import symbols
|
||||
|
||||
# Mappings from symbol to numeric ID and vice versa:
|
||||
_symbol_to_id = {s: i for i, s in enumerate(symbols)}
|
||||
|
||||
@@ -5,7 +5,7 @@ Defines the set of symbols used in text input to the model.
|
||||
The default is a set of ASCII characters that works well for English or text that has been run
|
||||
through Unidecode. For other data, you can modify _characters. See TRAINING_DATA.md for details.
|
||||
'''
|
||||
from utils.text import cmudict
|
||||
from TTS.utils.text import cmudict
|
||||
|
||||
_pad = '_'
|
||||
_eos = '~'
|
||||
|
||||
Reference in New Issue
Block a user