Spaces:
Running
Running
aigmixer
commited on
Commit
•
f69f274
1
Parent(s):
7febfc4
updating app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import piper
|
|
4 |
|
5 |
def synthesize_speech(text):
|
6 |
# Command to execute Piper-TTS CLI
|
7 |
-
command = ['piper
|
8 |
subprocess.run(command, capture_output=True)
|
9 |
|
10 |
if os.path.exists('output.wav'):
|
|
|
4 |
|
5 |
def synthesize_speech(text):
|
6 |
# Command to execute Piper-TTS CLI
|
7 |
+
command = ['piper', '--text', text, '--output', 'output.wav']
|
8 |
subprocess.run(command, capture_output=True)
|
9 |
|
10 |
if os.path.exists('output.wav'):
|