Spaces:
Runtime error
Runtime error
default to v1 voice
Browse files
text_to_speech_service.py
CHANGED
|
@@ -7,8 +7,8 @@ from elevenlabs import generate, stream
|
|
| 7 |
|
| 8 |
|
| 9 |
class TextToSpeechService:
|
| 10 |
-
|
| 11 |
-
def __init__(self, voice_id="Bella", model_id="eleven_english_v2"):
|
| 12 |
account_sid = os.environ["ELEVENLABS_API_KEY"]
|
| 13 |
set_api_key(account_sid)
|
| 14 |
self._voice_id = voice_id
|
|
|
|
| 7 |
|
| 8 |
|
| 9 |
class TextToSpeechService:
|
| 10 |
+
def __init__(self, voice_id="Bella", model_id="eleven_monolingual_v1"):
|
| 11 |
+
# def __init__(self, voice_id="Bella", model_id="eleven_english_v2"):
|
| 12 |
account_sid = os.environ["ELEVENLABS_API_KEY"]
|
| 13 |
set_api_key(account_sid)
|
| 14 |
self._voice_id = voice_id
|