Update Uptated-Prototype/TTS-Script-PiperTTS 2nd.py
This commit is contained in:
@@ -29,7 +29,7 @@ syn_config = SynthesisConfig(
|
|||||||
)
|
)
|
||||||
|
|
||||||
chunks = voice.synthesize(texttospeak, syn_config=syn_config) # Set up Piper to stream audio from TextToSpeak
|
chunks = voice.synthesize(texttospeak, syn_config=syn_config) # Set up Piper to stream audio from TextToSpeak
|
||||||
Lenght = sum(1 for _ in chunks)
|
Lenght = len(list(chunks))
|
||||||
print(f"There are {Lenght} Chunks.") # Print the amount of 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
|
first_chunk = next(chunks) # Get the first chunk to set up audio stream configuration
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user