From 77571877fad184cb41c555a4839b18beeb57e123 Mon Sep 17 00:00:00 2001 From: fithwum Date: Sat, 8 Nov 2025 15:15:24 -0800 Subject: [PATCH] Update Uptated-Prototype/TTS-Script-PiperTTS.py --- Uptated-Prototype/TTS-Script-PiperTTS.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Uptated-Prototype/TTS-Script-PiperTTS.py b/Uptated-Prototype/TTS-Script-PiperTTS.py index 6d9784b..bc3bd2e 100644 --- a/Uptated-Prototype/TTS-Script-PiperTTS.py +++ b/Uptated-Prototype/TTS-Script-PiperTTS.py @@ -6,7 +6,7 @@ print(os.popen('xsel').read()) # In Theory grab selected text and print ot to t TextToSpeak = os.popen('xsel').read() # In Theory grab selected text into Varible cakked TextToSpeak -voice = piper.load("path/to/en_US-amy-medium.onnx") # Load the model +voice = piper.load("~/en_US-amy-medium.onnx") # Load the model chunks = voice.synthesize(TextToSpeak) # Set up Piper to stream audio from TextToSpeak first_chunk = next(chunks) # Get the first chunk to set up audio stream configuration