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

This commit is contained in:
2025-12-03 16:42:37 -08:00
parent 50735f395d
commit 10db472b7b

View File

@@ -33,9 +33,7 @@ chunks = voice.synthesize(texttospeak, syn_config=syn_config) # Set up Piper to
first_chunk = next(chunks) # Get the first chunk to set up audio stream configuration first_chunk = next(chunks) # Get the first chunk to set up audio stream configuration
try: try:
tempchunks = chunks print(first_chunk.sample_width) # Print the amount of chunks
result = len(list(tempchunks))
print(result) # Print the amount of chunks
except: except:
print("Failed getting Chunk Count") print("Failed getting Chunk Count")
try: try: