From 9c4444275fad7b77995b0e0d1dec9356452573aa Mon Sep 17 00:00:00 2001 From: "DHR.Mike" Date: Wed, 3 Dec 2025 15:38:24 -0800 Subject: [PATCH] Update Uptated-Prototype/TTS-Script-PiperTTS 2nd.py --- Uptated-Prototype/TTS-Script-PiperTTS 2nd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Uptated-Prototype/TTS-Script-PiperTTS 2nd.py b/Uptated-Prototype/TTS-Script-PiperTTS 2nd.py index c36d5a5..8f387b0 100644 --- a/Uptated-Prototype/TTS-Script-PiperTTS 2nd.py +++ b/Uptated-Prototype/TTS-Script-PiperTTS 2nd.py @@ -29,7 +29,7 @@ syn_config = SynthesisConfig( ) chunks = voice.synthesize(texttospeak, syn_config=syn_config) # Set up Piper to stream audio from TextToSpeak -Lenght = type(chunks) +Lenght = sum(1 for _ in 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