mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-08-08 16:45:46 +08:00
add english version
This commit is contained in:
parent
367cebca33
commit
1089cfd2b5
8
api.py
8
api.py
@ -1103,8 +1103,12 @@ async def tts_endpoint(
|
||||
sample_steps: int = 32,
|
||||
if_sr: bool = False
|
||||
):
|
||||
refer_wav_path = f"idols/{character}/{character}.wav"
|
||||
inp_refs = [f"idols/{character}/refs/{file}" for file in os.listdir(f"idols/{character}/refs") if file.endswith('.wav')]
|
||||
if text_language == "en" and character == "saotome":
|
||||
refer_wav_path = f"idols/{character}_eng/{character}.wav"
|
||||
inp_refs = [f"idols/{character}_eng/refs/{file}" for file in os.listdir(f"idols/{character}_eng/refs") if file.endswith('.wav')]
|
||||
else:
|
||||
refer_wav_path = f"idols/{character}/{character}.wav"
|
||||
inp_refs = [f"idols/{character}/refs/{file}" for file in os.listdir(f"idols/{character}/refs") if file.endswith('.wav')]
|
||||
|
||||
|
||||
print(f"the base path is {refer_wav_path}")
|
||||
|
BIN
idols/saotome_eng/refs/ref1.wav
Normal file
BIN
idols/saotome_eng/refs/ref1.wav
Normal file
Binary file not shown.
BIN
idols/saotome_eng/refs/ref2.wav
Normal file
BIN
idols/saotome_eng/refs/ref2.wav
Normal file
Binary file not shown.
BIN
idols/saotome_eng/refs/ref3.wav
Normal file
BIN
idols/saotome_eng/refs/ref3.wav
Normal file
Binary file not shown.
BIN
idols/saotome_eng/refs/ref4.wav
Normal file
BIN
idols/saotome_eng/refs/ref4.wav
Normal file
Binary file not shown.
BIN
idols/saotome_eng/refs/ref5.wav
Normal file
BIN
idols/saotome_eng/refs/ref5.wav
Normal file
Binary file not shown.
BIN
idols/saotome_eng/refs/ref6.wav
Normal file
BIN
idols/saotome_eng/refs/ref6.wav
Normal file
Binary file not shown.
BIN
idols/saotome_eng/saotome.wav
Normal file
BIN
idols/saotome_eng/saotome.wav
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user