Spaces:
Runtime error
Runtime error
Commit ·
28369b0
1
Parent(s): 1d04b9f
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ from pydub import AudioSegment
|
|
| 13 |
from pydub.playback import play
|
| 14 |
|
| 15 |
|
| 16 |
-
PATH_TO_MODEL = os.getcwd() + "/vosk-model-tts-ru-0.4-multi/"
|
| 17 |
|
| 18 |
|
| 19 |
with open(os.path.join(PATH_TO_MODEL, 'dictionary')) as file:
|
|
@@ -64,8 +64,8 @@ instruction = """
|
|
| 64 |
class VoiceGenerator:
|
| 65 |
|
| 66 |
def __init__(self):
|
| 67 |
-
print(PATH_TO_MODEL)
|
| 68 |
-
self.model = Model(
|
| 69 |
|
| 70 |
|
| 71 |
def generate(self, text, file_name='output.wav'):
|
|
|
|
| 13 |
from pydub.playback import play
|
| 14 |
|
| 15 |
|
| 16 |
+
# PATH_TO_MODEL = os.getcwd() + "/vosk-model-tts-ru-0.4-multi/"
|
| 17 |
|
| 18 |
|
| 19 |
with open(os.path.join(PATH_TO_MODEL, 'dictionary')) as file:
|
|
|
|
| 64 |
class VoiceGenerator:
|
| 65 |
|
| 66 |
def __init__(self):
|
| 67 |
+
# print(PATH_TO_MODEL)
|
| 68 |
+
self.model = Model("/home/user/app/vosk-model-tts-ru-0.4-multi/")
|
| 69 |
|
| 70 |
|
| 71 |
def generate(self, text, file_name='output.wav'):
|