95de2cd5595a403bdd59565bcf6dc4b80b00dfa5,utils/text/symbols.py,,,#,10
Before Change
_phoneme_punctuations = ".!;:,?"
// TODO: include more phoneme characters for other languages.
_phonemes = ["l","ɹ","ɜ","ɚ","k","u","ʔ","ð","ɐ","ɾ","ɑ","ɔ","b","ɛ","t","v","n","m","ʊ","ŋ","s",
"ʌ","o","ʃ","i","p","æ","e","a","ʒ"," ","h","ɪ","ɡ","f","r","w","ɫ","ɬ","d","x","ː",
"ᵻ","ə","j","θ","z","ɒ"]
_phonemes = sorted(list(set(_phonemes)))
// Prepend "@" to ARPAbet symbols to ensure uniqueness (some are the same as uppercase letters):
_arpabet = ["@" + s for s in _phonemes]
After Change
_phoneme_punctuations = ".!;:,?"
// Phonemes definition
_vowels = "iyɨʉɯuɪʏʊeøɘəɵɤoɛœɜɞʌɔæɐaɶɑɒᵻ"
_non_pulmonic_consonants = "ʘɓǀɗǃʄǂɠǁʛ"
_pulmonic_consonants = "pbtdʈɖcɟkɡqɢʔɴŋɲɳnɱmʙrʀⱱɾɽɸβfvθðszʃʒʂʐçʝxɣχʁħʕhɦɬɮʋɹɻjɰlɭʎʟ"
_suprasegmentals = "ˈˌːˑ"
_other_symbols = "ʍwɥʜʢʡɕʑɺɧ"
_diacrilics = "ɚ˞ɫ"
_phonemes = sorted(list(_vowels + _non_pulmonic_consonants + _pulmonic_consonants + _suprasegmentals + _other_symbols + _diacrilics))
// Prepend "@" to ARPAbet symbols to ensure uniqueness (some are the same as uppercase letters):
_arpabet = ["@" + s for s in _phonemes]
// Export all symbols:
symbols = [_pad, _eos] + list(_characters) + _arpabet
phonemes = [_pad, _eos] + _phonemes + list(_punctuations)
if __name__ == "__main__":
print(" > TTS symbols {}".format(len(symbols)))
print(symbols)
print(" > TTS phonemes {}".format(len(phonemes)))
print(phonemes)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: mozilla/TTS
Commit Name: 95de2cd5595a403bdd59565bcf6dc4b80b00dfa5
Time: 2019-03-11
Author: fabriziogiovannetti@gmail.com
File Name: utils/text/symbols.py
Class Name:
Method Name:
Project Name: sobhe/hazm
Commit Name: 1463f45807433d3d7ca110ee0eed012bd58e1418
Time: 2013-11-25
Author: alireza.nournia@gmail.com
File Name: data.py
Class Name:
Method Name: create_words_file
Project Name: estnltk/estnltk
Commit Name: cf5f38373ec0a08518dae7051e53e44c316c166c
Time: 2015-07-28
Author: karl.valliste@gmail.com
File Name: estnltk/prettyprinter/prettyprinter.py
Class Name: PrettyPrinter
Method Name: render