#542 RuntimeError: Parameter `emo_ref_path` is not a valid key-word argument. Please click on 'view API' in the footer of the

123.245* Posted at: 1 month ago 👁107

Parameter emo_ref_path is not a valid key-word argument. Please click on 'view API' in the footer of the Gradio app to see usage.F5TTS:Traceback (most recent call last):

File "videotrans\util\ListenVoice.py", line 18, in run

File "videotrans\tts\__init__.py", line 501, in run

File "videotrans\tts\_base.py", line 142, in run

RuntimeError: Parameter emo_ref_path is not a valid key-word argument. Please click on 'view API' in the footer of the Gradio app to see usage.F5TTS

=====

Windows-10-10.0.26100-SP0

version:v3.80

frozen:True

language:zh

5 Replies

Admin

使用 index-tts2

index-tts2不知道为什么速度太慢了,推理速度实在是慢的不行

Admin

正常,2就是比1慢很多

2太慢用,用的是1.5也遇到了类似这样的错误?有解决方法吗?

这个错误是因为您使用的 index-tts2 模型不支持 emo_ref_path 参数。请按以下步骤解决:

  1. 切换回 index-tts1:在 TTS 配音设置中,将模型从 index-tts2 切换回 index-tts1。正如您提到的,index-tts2 确实比1慢很多,这是正常现象。
  2. 检查高级选项

    • 在菜单栏选择 工具/选项 -> 高级选项
    • 在"配音调整"区域,确保没有设置 emo_ref_path 相关参数
    • 如果之前有自定义设置,建议重置为默认值
  3. 关于 index-tts1.5

    • 如果您使用的是 index-tts1.5 也遇到类似错误,同样需要检查是否设置了不支持的参数
    • 建议在 TTS 设置中重新选择一次模型,确保参数配置正确
  4. 性能优化

    • 如果使用本地 TTS 模型速度过慢,可以尝试:

      • 勾选"CUDA加速"(如果有 NVIDIA 显卡)
      • 在高级选项中减少"同时配音字幕数"
      • 考虑使用在线 TTS 服务如 Edge-TTS

如果问题仍然存在,请提供 videotrans/logs/ 目录下的最新日志文件以便进一步分析。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions