-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Text split to sentences.
又指一指自己的乳房, 然后隐没在云雾之中.
res长度: 22, res内容: [torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768]), torch.Size([768])]
word2phone长度: 23, 内容: [3, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 4, 4, 4, 4, 4, 4, 4, 4, 4, 2, 2]
警告:res长度(22)与word2phone长度(23)不匹配!
当前处理文本: 又指一指自己的乳房, 然后隐没在云雾之中.
分词结果: ['又', '指', '一', '指', '自', '己', '的', '乳', '房', ',', '然', '后', '隐', '没', '在', '云', '雾', '之', ' 中', '.']
Traceback (most recent call last):
File "D:\anaconda3\envs\melotts-win\lib\site-packages\gradio\queueing.py", line 667, in process_events
response = await route_utils.call_process_api(
File "D:\anaconda3\envs\melotts-win\lib\site-packages\gradio\route_utils.py", line 349, in call_process_api
output = await app.get_blocks().process_api(
File "D:\anaconda3\envs\melotts-win\lib\site-packages\gradio\blocks.py", line 2274, in process_api
result = await self.call_function(
File "D:\anaconda3\envs\melotts-win\lib\site-packages\gradio\blocks.py", line 1781, in call_function
prediction = await anyio.to_thread.run_sync( # type: ignore
File "D:\anaconda3\envs\melotts-win\lib\site-packages\anyio\to_thread.py", line 56, in run_sync
return await get_async_backend().run_sync_in_worker_thread(
File "D:\anaconda3\envs\melotts-win\lib\site-packages\anyio_backends_asyncio.py", line 2476, in run_sync_in_worker_thread
return await future
File "D:\anaconda3\envs\melotts-win\lib\site-packages\anyio_backends_asyncio.py", line 967, in run
result = context.run(func, *args)
File "D:\anaconda3\envs\melotts-win\lib\site-packages\gradio\utils.py", line 915, in wrapper
response = f(*args, **kwargs)
File "D:\AI\MeloTTS-Windows\melo\app.py", line 68, in synthesize
models[language].tts_to_file(text, models[language].hps.data.spk2id[speaker], temp_file.name, speed=speed, pbar=progress.tqdm)
File "D:\AI\MeloTTS-Windows\melo\api.py", line 100, in tts_to_file
bert, ja_bert, phones, tones, lang_ids = utils.get_text_for_tts_infer(t, language, self.hps, device, self.symbol_to_id)
File "D:\AI\MeloTTS-Windows\melo\utils.py", line 38, in get_text_for_tts_infer
bert = get_bert(norm_text, word2ph, language_str, device)
File "D:\AI\MeloTTS-Windows\melo\text_init_.py", line 34, in get_bert
bert = lang_bert_func_map[language](norm_text, word2ph, device)
File "D:\AI\MeloTTS-Windows\melo\text\chinese_mix.py", line 199, in get_bert_feature
return chinese_bert.get_bert_feature(text, word2ph, model_id='bert-base-multilingual-uncased', device=device)
File "D:\AI\MeloTTS-Windows\melo\text\chinese_bert.py", line 55, in get_bert_feature
repeat_feature = res[i].repeat(word2phone[i], 1)
IndexError: index 22 is out of bounds for dimension 0 with size 22