From 50735f395d06f18d002f959c809d438d5b979897 Mon Sep 17 00:00:00 2001 From: "DHR.Mike" Date: Wed, 3 Dec 2025 16:12:39 -0800 Subject: [PATCH] Update Uptated-Prototype/TTS-Script-PiperTTS 2nd.py --- Uptated-Prototype/TTS-Script-PiperTTS 2nd.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Uptated-Prototype/TTS-Script-PiperTTS 2nd.py b/Uptated-Prototype/TTS-Script-PiperTTS 2nd.py index 44092b5..891a868 100644 --- a/Uptated-Prototype/TTS-Script-PiperTTS 2nd.py +++ b/Uptated-Prototype/TTS-Script-PiperTTS 2nd.py @@ -32,13 +32,12 @@ syn_config = SynthesisConfig( chunks = voice.synthesize(texttospeak, syn_config=syn_config) # Set up Piper to stream audio from TextToSpeak first_chunk = next(chunks) # Get the first chunk to set up audio stream configuration -''' try: - result = len(list(chunks)) + tempchunks = chunks + result = len(list(tempchunks)) print(result) # Print the amount of chunks except: print("Failed getting Chunk Count") -''' try: print(first_chunk.sample_rate) except: