File size: 1,527 Bytes
d449983
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
d4452bc
 
d449983
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import os
os.system('wget -q https://storage.googleapis.com/vakyansh-open-models/tts/malayalam/ml-IN/female_voice_0/glow.zip && unzip -q glow.zip -d ttsv/checkpoints/female')
os.system('wget -q https://storage.googleapis.com/vakyansh-open-models/tts/malayalam/ml-IN/female_voice_0/hifi.zip && unzip -q hifi.zip -d ttsv/checkpoints/female')
os.system('rm glow.zip && rm hifi.zip')
os.system('wget -q https://storage.googleapis.com/vakyansh-open-models/tts/malayalam/ml-IN/male_voice_1/glow.zip && unzip -q glow.zip -d ttsv/checkpoints/male')
os.system('wget -q https://storage.googleapis.com/vakyansh-open-models/tts/malayalam/ml-IN/male_voice_1/hifi.zip && unzip -q hifi.zip -d ttsv/checkpoints/male')
os.system('wget -q https://storage.googleapis.com/vakyansh-open-models/translit_models.zip -P ttsv/checkpoints/ && unzip -q ttsv/checkpoints/translit_models.zip -d ttsv/checkpoints/')


for path, subdirs, files in os.walk('ttsv/checkpoints/'):
    print(subdirs)
    for name in files:
        print(os.path.join(path, name))

from ttsv.utils.inference.run_gradio import *
from argparse import Namespace

#os.system('python ttsv/utils/inference/run_gradio.py -a ttsv/checkpoints/glow/male -v ttsv/checkpoints/hifi/male -d cpu -L hi')


args = {
    'acoustic':'/home/user/app/ttsv/checkpoints/female/fe_glow,/home/user/app/ttsv/checkpoints/male/glow',
    'vocoder':'/home/user/app/ttsv/checkpoints/female/hifi,/home/user/app/ttsv/checkpoints/male/hifi',
    'device':'cpu',
    'lang':'ml'
}

build_gradio(Namespace(**args))