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

This commit is contained in:
2025-12-03 15:13:22 -08:00
parent ab113c6396
commit ea5e8068d8

View File

@@ -29,7 +29,8 @@ syn_config = SynthesisConfig(
) )
chunks = voice.synthesize(texttospeak, syn_config=syn_config) # Set up Piper to stream audio from TextToSpeak chunks = voice.synthesize(texttospeak, syn_config=syn_config) # Set up Piper to stream audio from TextToSpeak
print(f"There are {len(chunks)} Chunks.") # Print the amount of chunks Lenght = len(chunks)
print(f"There are {Lenght} Chunks.") # Print the amount of chunks
first_chunk = next(chunks) # Get the first chunk to set up audio stream configuration first_chunk = next(chunks) # Get the first chunk to set up audio stream configuration
try: try: