From 7838a76108e26bfcfc62cb270d6320f45d80d7bd Mon Sep 17 00:00:00 2001 From: "DHR.Mike" Date: Wed, 3 Dec 2025 15:47:06 -0800 Subject: [PATCH] Update Uptated-Prototype/TTS-Script-PiperTTS 2nd.py --- Uptated-Prototype/TTS-Script-PiperTTS 2nd.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Uptated-Prototype/TTS-Script-PiperTTS 2nd.py b/Uptated-Prototype/TTS-Script-PiperTTS 2nd.py index 5588f35..2567525 100644 --- a/Uptated-Prototype/TTS-Script-PiperTTS 2nd.py +++ b/Uptated-Prototype/TTS-Script-PiperTTS 2nd.py @@ -29,10 +29,13 @@ 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 first_chunk = next(chunks) # Get the first chunk to set up audio stream configuration + +try: + print(len(list(chunks))) # Print the amount of chunks +except: + print("Failed getting Chunk Count") try: print(first_chunk.sample_rate) except: