Update Uptated-Prototype/TTS-Script-PiperTTS.py
This commit is contained in:
@@ -4,7 +4,7 @@ import pyaudio
|
|||||||
import os
|
import os
|
||||||
# print(os.popen('xsel').read()) # In Theory grab selected text and print ot to terminal
|
# print(os.popen('xsel').read()) # In Theory grab selected text and print ot to terminal
|
||||||
|
|
||||||
texttospeak = "Hello This is a Test!" #os.popen('xsel').read() # In Theory grab selected text into Varible cakked TextToSpeak
|
texttospeak = "Welcome to the world of speech synthesis! This is an example of text-to-speech using Piper TTS." #os.popen('xsel').read() # In Theory grab selected text into Varible cakked TextToSpeak
|
||||||
|
|
||||||
voice = PiperVoice.load("~/en_US-amy-medium.onnx") # Load the model
|
voice = PiperVoice.load("~/en_US-amy-medium.onnx") # Load the model
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user