Update Uptated-Prototype/TTS-Script-PiperTTS 2nd.py
This commit is contained in:
@@ -19,7 +19,7 @@ voicedir = os.path.expanduser('~') #Where onnx model files are stored on my mach
|
|||||||
model = voicedir+"/en_GB-alba-medium.onnx"
|
model = voicedir+"/en_GB-alba-medium.onnx"
|
||||||
voice = PiperVoice.load(model)
|
voice = PiperVoice.load(model)
|
||||||
|
|
||||||
syn_config = voice.SynthesisConfig(
|
syn_config = SynthesisConfig(
|
||||||
volume=0.5, # half as loud
|
volume=0.5, # half as loud
|
||||||
length_scale=2.0, # twice as slow
|
length_scale=2.0, # twice as slow
|
||||||
noise_scale=0.0, # more audio variation
|
noise_scale=0.0, # more audio variation
|
||||||
|
|||||||
Reference in New Issue
Block a user