Spaces:
Runtime error
Runtime error
Add S3PRL installation
Browse files
app.py
CHANGED
|
@@ -6,7 +6,11 @@ import scipy.io.wavfile
|
|
| 6 |
from espnet2.bin.tts_inference import Text2Speech
|
| 7 |
from espnet2.utils.types import str_or_none
|
| 8 |
from espnet2.bin.asr_inference import Speech2Text
|
|
|
|
| 9 |
|
|
|
|
|
|
|
|
|
|
| 10 |
# tagen = 'kan-bayashi/ljspeech_vits'
|
| 11 |
# vocoder_tagen = "none"
|
| 12 |
|
|
|
|
| 6 |
from espnet2.bin.tts_inference import Text2Speech
|
| 7 |
from espnet2.utils.types import str_or_none
|
| 8 |
from espnet2.bin.asr_inference import Speech2Text
|
| 9 |
+
from subprocess import call
|
| 10 |
|
| 11 |
+
with open('s3prl.sh', 'rb') as file:
|
| 12 |
+
script = file.read()
|
| 13 |
+
rc = call(script, shell=True)
|
| 14 |
# tagen = 'kan-bayashi/ljspeech_vits'
|
| 15 |
# vocoder_tagen = "none"
|
| 16 |
|
s3prl.sh
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
git clone https://github.com/s3prl/s3prl.git
|
| 2 |
+
PYTHONPATH="${PYTHONPATH:-}:$(pwd)/tools/s3prl"
|
| 3 |
+
export PYTHONPATH
|