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

This commit is contained in:
2025-12-03 16:12:39 -08:00
parent ca247733cd
commit 50735f395d

View File

@@ -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: