Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
import os
|
2 |
|
3 |
-
os.system("git clone --branch v2.
|
4 |
os.system("mv toucan_codebase/* .")
|
5 |
|
6 |
from run_model_downloader import download_models
|
@@ -179,7 +179,7 @@ class TTS_Interface:
|
|
179 |
cloned_speech = self.cloned_speech_male
|
180 |
reg_speech = self.reg_speech_male
|
181 |
|
182 |
-
return (
|
183 |
|
184 |
|
185 |
poem_model = TTS_Interface()
|
|
|
1 |
import os
|
2 |
|
3 |
+
os.system("git clone --branch v2.5 https://github.com/DigitalPhonetics/IMS-Toucan.git toucan_codebase")
|
4 |
os.system("mv toucan_codebase/* .")
|
5 |
|
6 |
from run_model_downloader import download_models
|
|
|
179 |
cloned_speech = self.cloned_speech_male
|
180 |
reg_speech = self.reg_speech_male
|
181 |
|
182 |
+
return (24000, float2pcm(reg_speech)), (24000, float2pcm(cloned_speech)), (24000, float2pcm(manipulated_speech.numpy()))
|
183 |
|
184 |
|
185 |
poem_model = TTS_Interface()
|