Update Uptated-Prototype/TTS-Script-PiperTTS 2nd.py
This commit is contained in:
@@ -23,7 +23,7 @@ voice = PiperVoice.load(model)
|
||||
|
||||
syn_config = SynthesisConfig(
|
||||
volume=0.5, # half as loud
|
||||
length_scale=2.0, # twice as slow
|
||||
length_scale=1.0, # twice as slow
|
||||
noise_scale=0.0, # more audio variation
|
||||
noise_w_scale=0.0, # more speaking variation
|
||||
normalize_audio=False, # use raw audio from voice
|
||||
@@ -56,7 +56,6 @@ stream.write(first_chunk.audio_int16_bytes) # Play the first chunk
|
||||
for chunk in chunks: # Play subsequent chunks of audio
|
||||
stream.write(chunk.audio_int16_bytes)
|
||||
|
||||
|
||||
# Function called on Exit
|
||||
def Registered_Exit():
|
||||
# Cleanup
|
||||
|
||||
Reference in New Issue
Block a user