Spaces:
Build error
Build error
Commit
·
2b882ad
1
Parent(s):
551fffc
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import gradio as gr
|
|
| 4 |
import numpy as np
|
| 5 |
import torch
|
| 6 |
|
| 7 |
-
from
|
| 8 |
|
| 9 |
os.system("pip uninstall -y gradio")
|
| 10 |
os.system("pip install gradio==2.7.5.2")
|
|
@@ -49,18 +49,18 @@ class TTS_Interface:
|
|
| 49 |
'Italian' : "it",
|
| 50 |
}
|
| 51 |
self.speaker_path_lookup = {
|
| 52 |
-
"English Speaker's Voice" : "
|
| 53 |
-
"German Speaker's Voice" : "
|
| 54 |
-
"Greek Speaker's Voice" : "
|
| 55 |
-
"Spanish Speaker's Voice" : "
|
| 56 |
-
"Finnish Speaker's Voice" : "
|
| 57 |
-
"Russian Speaker's Voice" : "
|
| 58 |
-
"Hungarian Speaker's Voice" : "
|
| 59 |
-
"Dutch Speaker's Voice" : "
|
| 60 |
-
"French Speaker's Voice" : "
|
| 61 |
-
"Polish Speaker's Voice" : "
|
| 62 |
-
"Portuguese Speaker's Voice": "
|
| 63 |
-
"Italian Speaker's Voice" : "
|
| 64 |
}
|
| 65 |
self.model.set_utterance_embedding(self.speaker_path_lookup[self.current_speaker])
|
| 66 |
|
|
|
|
| 4 |
import numpy as np
|
| 5 |
import torch
|
| 6 |
|
| 7 |
+
from IMS-Toucan-modified import Meta_FastSpeech2
|
| 8 |
|
| 9 |
os.system("pip uninstall -y gradio")
|
| 10 |
os.system("pip install gradio==2.7.5.2")
|
|
|
|
| 49 |
'Italian' : "it",
|
| 50 |
}
|
| 51 |
self.speaker_path_lookup = {
|
| 52 |
+
"English Speaker's Voice" : "IMS-Toucan-modified/english.wav",
|
| 53 |
+
"German Speaker's Voice" : "IMS-Toucan-modified/german.wav",
|
| 54 |
+
"Greek Speaker's Voice" : "IMS-Toucan-modified/greek.wav",
|
| 55 |
+
"Spanish Speaker's Voice" : "IMS-Toucan-modified/spanish.wav",
|
| 56 |
+
"Finnish Speaker's Voice" : "IMS-Toucan-modified/finnish.wav",
|
| 57 |
+
"Russian Speaker's Voice" : "IMS-Toucan-modified/russian.wav",
|
| 58 |
+
"Hungarian Speaker's Voice" : "IMS-Toucan-modified/hungarian.wav",
|
| 59 |
+
"Dutch Speaker's Voice" : "IMS-Toucan-modified/dutch.wav",
|
| 60 |
+
"French Speaker's Voice" : "IMS-Toucan-modified/french.wav",
|
| 61 |
+
"Polish Speaker's Voice" : "IMS-Toucan-modified/polish.flac",
|
| 62 |
+
"Portuguese Speaker's Voice": "IMS-Toucan-modified/portuguese.wav",
|
| 63 |
+
"Italian Speaker's Voice" : "IMS-Toucan-modified/italian.flac",
|
| 64 |
}
|
| 65 |
self.model.set_utterance_embedding(self.speaker_path_lookup[self.current_speaker])
|
| 66 |
|