Pipe1213 commited on
Commit
fc9aa86
1 Parent(s): 12984b2

Upload 3 files

Browse files
Files changed (3) hide show
  1. text/symbols_ftgra.py +17 -0
  2. text/symbols_gra.py +17 -0
  3. text/symbols_pho.py +17 -0
text/symbols_ftgra.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ from https://github.com/keithito/tacotron """
2
+
3
+ '''
4
+ Defines the set of symbols used in text input to the model.
5
+ '''
6
+ #_pad = '_'
7
+ #_punctuation = '+/…;:,.!?¡¿—-–<>*)…"«»“”~̃ '
8
+ #_numbers = '0123456789'
9
+ #_letters = 'ABCÇDEFGHIJKLMNOPQRSTUVWXYZÂÊÎÏÔÛâêîïôûéÉèåÅÈàÀüùÙÌìëöõabcçdefghijklmnopqrstuvwxyz'
10
+ #_letters_ipa = "&°ɑɐɒæɓʙβɔɕçɗɖðʤəɘɚɛɜɝɞɟʄɡɠɢʛɦɧħɥʜɨɪʝɭɬɫɮʟɱɯɰŋɳɲɴøɵɸθœɶʘɹɺɾɻʀʁɽʂʃʈʧʉʊʋⱱʌɣɤʍχʎʏʑʐʒʔʡʕʢǀǁǂǃˈˌːˑʼʴʰʱʲʷˠˤ˞↓↑→↗↘'̩'ᵻ"
11
+ _letters_ipa_lisn = " !,./0123456789:?@ACDEILMNOPSUXYZ_abcdefghijklmnoprstuvwxyz|~"
12
+
13
+ # Export all symbols:
14
+ symbols = list(_letters_ipa_lisn) #[_pad] + list(_punctuation) + list(_letters) + list(_numbers) + list(_letters_ipa)
15
+
16
+ # Special symbol ids
17
+ SPACE_ID = symbols.index(" ")
text/symbols_gra.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ from https://github.com/keithito/tacotron """
2
+
3
+ '''
4
+ Defines the set of symbols used in text input to the model.
5
+ '''
6
+ #_pad = '_'
7
+ #_punctuation = '+/…;:,.!?¡¿—-–<>*)…"«»“”~̃ '
8
+ #_numbers = '0123456789'
9
+ #_letters = 'ABCÇDEFGHIJKLMNOPQRSTUVWXYZÂÊÎÏÔÛâêîïôûéÉèåÅÈàÀüùÙÌìëöõabcçdefghijklmnopqrstuvwxyz'
10
+ #_letters_ipa = "&°ɑɐɒæɓʙβɔɕçɗɖðʤəɘɚɛɜɝɞɟʄɡɠɢʛɦɧħɥʜɨɪʝɭɬɫɮʟɱɯɰŋɳɲɴøɵɸθœɶʘɹɺɾɻʀʁɽʂʃʈʧʉʊʋⱱʌɣɤʍχʎʏʑʐʒʔʡʕʢǀǁǂǃˈˌːˑʼʴʰʱʲʷˠˤ˞↓↑→↗↘'̩'ᵻ"
11
+ _letters_ipa_lisn = " !,./0123456789:?@ACDEILMNOPSUXYZ_abcdefghijklmnoprstuvwxyz|~"
12
+
13
+ # Export all symbols:
14
+ symbols = list(_letters_ipa_lisn) #[_pad] + list(_punctuation) + list(_letters) + list(_numbers) + list(_letters_ipa)
15
+
16
+ # Special symbol ids
17
+ SPACE_ID = symbols.index(" ")
text/symbols_pho.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """ from https://github.com/keithito/tacotron """
2
+
3
+ '''
4
+ Defines the set of symbols used in text input to the model.
5
+ '''
6
+ #_pad = '_'
7
+ #_punctuation = '+/…;:,.!?¡¿—-–<>*)…"«»“”~̃ '
8
+ #_numbers = '0123456789'
9
+ #_letters = 'ABCÇDEFGHIJKLMNOPQRSTUVWXYZÂÊÎÏÔÛâêîïôûéÉèåÅÈàÀüùÙÌìëöõabcçdefghijklmnopqrstuvwxyz'
10
+ #_letters_ipa = "&°ɑɐɒæɓʙβɔɕçɗɖðʤəɘɚɛɜɝɞɟʄɡɠɢʛɦɧħɥʜɨɪʝɭɬɫɮʟɱɯɰŋɳɲɴøɵɸθœɶʘɹɺɾɻʀʁɽʂʃʈʧʉʊʋⱱʌɣɤʍχʎʏʑʐʒʔʡʕʢǀǁǂǃˈˌːˑʼʴʰʱʲʷˠˤ˞↓↑→↗↘'̩'ᵻ"
11
+ _letters_ipa_lisn = " !,./0123456789:?@ACDEILMNOPSUXYZ_abcdefghijklmnoprstuvwxyz|~"
12
+
13
+ # Export all symbols:
14
+ symbols = list(_letters_ipa_lisn) #[_pad] + list(_punctuation) + list(_letters) + list(_numbers) + list(_letters_ipa)
15
+
16
+ # Special symbol ids
17
+ SPACE_ID = symbols.index(" ")