File size: 1,463 Bytes
8c70653
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from TTS.utils.synthesizer import Synthesizer 

#provide model params
# model_path = "/content/drive/MyDrive/TTS/recipes/ljspeech/tacotron2-DDC/tobi-ddc-December-07-2022_02+50AM-3191c5f/best_model.pth"
# config_path = "/content/drive/MyDrive/TTS/recipes/ljspeech/tacotron2-DDC/tobi-ddc-December-07-2022_02+50AM-3191c5f/config.json"
#Huu
# model_path = "/content/drive/MyDrive/SLT-TTS/best_model.pth"
# config_path = "/content/drive/MyDrive/SLT-TTS/config.json"
#Huu2
# model_path = "/content/drive/MyDrive/SLT-TTS/model-1701/best_model.pth"
# config_path = "/content/drive/MyDrive/SLT-TTS/config.json"

#New phoneme
model_path = "./tacotron/best_model.pth"
config_path = "./tacotron/config.json"
# vocoder_path = "/content/drive/MyDrive/Nancy/nancy_univnet/best_model.pth.tar"
# vocoder_config_path = "/content/drive/MyDrive/Nancy/nancy_univnet/config.json"
# vocoder_path = "/content/drive/MyDrive/TTS/recipes/ljspeech/tacotron2-DDC/univnet/tobi-univnet-December-29-2022_09+54AM-3191c5f/best_model.pth"
vocoder_config_path = "./vocoder/config.json"
vocoder_path = "./vocoder/best_model.pth"
synthesizer = Synthesizer(
        model_path,
        config_path,
        "",
        "",
        vocoder_path,
        vocoder_config_path,
        "",
        "",
        False
    )

# synthesizer = Synthesizer(
#         model_path,
#         config_path,
#         "",
#         "",
#         "",
#         "",
#         "",
#         "",
#         True
#     )