From fc002fd5a43d7adc66b72a5402ac217291b0ffea Mon Sep 17 00:00:00 2001 From: "DHR.Mike" Date: Sun, 16 Nov 2025 09:03:51 -0800 Subject: [PATCH] Update Uptated-Prototype/TTS-Script-PiperTTS.py --- Uptated-Prototype/TTS-Script-PiperTTS.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Uptated-Prototype/TTS-Script-PiperTTS.py b/Uptated-Prototype/TTS-Script-PiperTTS.py index 43f2b49..26fcf37 100644 --- a/Uptated-Prototype/TTS-Script-PiperTTS.py +++ b/Uptated-Prototype/TTS-Script-PiperTTS.py @@ -1,14 +1,13 @@ # Theoretical Upgrade Test from piper.voice import PiperVoice # Backbone of text to speech import pyaudio -import subprocess -import cmd import os +import subprocess -texttospeak = subprocess.Popen(["xsel","--clipboard"], stdout=subprocess.PIPE) # In Theory grab selected text into Varible cakked TextToSpeak) # In Theory grab selected text and print ot to terminal +texttospeak = subprocess.Popen(["xsel"], text=True) print(texttospeak) -texttospeak = "Welcome to the world of speech synthesis! This is an example of text-to-speech using Piper TTS." +# texttospeak = "Welcome to the world of speech synthesis! This is an example of text-to-speech using Piper TTS." #voice = PiperVoice.load("~/en_US-amy-medium.onnx") # Load the model