speechDictHandler package
- class speechDictHandler.SpeechDictEntry(pattern, replacement, comment, caseSensitive=True, type=0)
Bases:
object
- sub(text: str) str
- class speechDictHandler.SpeechDict(iterable=(), /)
Bases:
list
- fileName = None
- load(fileName)
- save(fileName=None)
- sub(text)
- speechDictHandler.processText(text)
- speechDictHandler.initialize()
- speechDictHandler.loadVoiceDict(synth)
Loads appropriate dictionary for the given synthesizer. It handles case when the synthesizer doesn’t support voice setting.
Submodules
speechDictHandler.dictFormatUpgrade module
Upgrade speech dict files
- speechDictHandler.dictFormatUpgrade.createVoiceDictFileName(synthName, voiceName)
Creates a filename used for the voice dictionary files. this is in the format synthName-voiceName.dic
- speechDictHandler.dictFormatUpgrade.doAnyUpgrades(synth)
Do any upgrades required for the synth passed in.
- speechDictHandler.dictFormatUpgrade._doSynthVoiceDictBackupAndMove(synthName, oldFileNameToNewFileNameList=None)
Move all files for the synth to the backup dir for each file in the backup dir copy it to the synthvoice dir using the new name if it we have one.
- speechDictHandler.dictFormatUpgrade._doEspeakDictUpgrade()