File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed
deepvoice3_pytorch/frontend Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 2525except ImportError :
2626 ko = None
2727
28+ # if you are going to use the frontend, you need to modify _characters in symbol.py:
29+ # _characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!\'(),-.:;? ' + '¡¿ñáéíóúÁÉÍÓÚÑ'
30+ try :
31+ from deepvoice3_pytorch .frontend import es
32+ except ImportError :
33+ es = None
Original file line number Diff line number Diff line change 1+ # coding: utf-8
2+ from deepvoice3_pytorch .frontend .text .symbols import symbols
3+
4+ import nltk
5+ from random import random
6+
7+ n_vocab = len (symbols )
8+
9+
10+ def text_to_sequence (text , p = 0.0 ):
11+ from deepvoice3_pytorch .frontend .text import text_to_sequence
12+ text = text_to_sequence (text , ["basic_cleaners" ])
13+ return text
14+
15+
16+ from deepvoice3_pytorch .frontend .text import sequence_to_text
You can’t perform that action at this time.
0 commit comments