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

This commit is contained in:
2025-12-03 15:42:56 -08:00
parent 30f3381f26
commit 615f4fe9b2

View File

@@ -29,8 +29,8 @@ syn_config = SynthesisConfig(
)
chunks = voice.synthesize(texttospeak, syn_config=syn_config) # Set up Piper to stream audio from TextToSpeak
Lenght = len(list(chunks))
print(f"There are {Lenght} Chunks.") # Print the amount of chunks
#Lenght = len(list(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
try: