You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importChatTTSimporttorchimporttorchaudiomodel_path="/tmp/ai_data/ai_models/audio_models/AI-ModelScope/ChatTTS"chat=ChatTTS.Chat()
torch_device=torch.device("cuda:1")
is_model_loaded=chat.load(compile=False, custom_path=model_path, device=torch_device)
texts= ["PUT YOUR 1st TEXT HERE", "PUT YOUR 2nd TEXT HERE"]
wavs=chat.infer(texts)
foriinrange(len(wavs)):
""" In some versions of torchaudio, the first line works but in other versions, so does the second line. """try:
torchaudio.save(f"basic_output{i}.wav", torch.from_numpy(wavs[i]).unsqueeze(0), 24000)
except:
torchaudio.save(f"basic_output{i}.wav", torch.from_numpy(wavs[i]), 24000)
提示如下错误:
The above exception was the direct cause of the following exception:
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='gitea.seku.su', port=443): Max retries exceeded with url: /fumiama/RVC-Models-Downloader/raw/branch/main/dns.yaml (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7fe5d4b4c250>: Failed to establish a new connection: [Errno 101] Network is unreachable'))
During handling of the above exception, another exception occurred:
The text was updated successfully, but these errors were encountered:
我将模型下载到本地了,机器无网络,我想知道参数如何指定我下载的路径,ChatTTS 是通过pip 安装的,使用如下代码会下载模型:
提示如下错误:
The text was updated successfully, but these errors were encountered: