Update Uptated-Prototype/TTS-Script-PiperTTS 2nd.py

This commit is contained in:
2025-12-03 08:43:10 -08:00
parent 890cc0177c
commit 6f8be98472

View File

@@ -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