Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import os
|
|
| 4 |
|
| 5 |
def text_to_speech(text):
|
| 6 |
test = os.environ.get("test")
|
| 7 |
-
endpoint = f"https://api.voicerss.org/?key={test}&src={text}&hl=en-us&v=
|
| 8 |
response = requests.get(endpoint)
|
| 9 |
with open("output.mp3", "wb") as f:
|
| 10 |
f.write(response.content)
|
|
|
|
| 4 |
|
| 5 |
def text_to_speech(text):
|
| 6 |
test = os.environ.get("test")
|
| 7 |
+
endpoint = f"https://api.voicerss.org/?key={test}&src={text}&hl=en-us&v=Mike"
|
| 8 |
response = requests.get(endpoint)
|
| 9 |
with open("output.mp3", "wb") as f:
|
| 10 |
f.write(response.content)
|