#8837 配音阶段出错 [Edge-TTS(免费)] edge-tts error:target_audio='D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/tmp/6484/7252d0e0c5/20261

103.151**6 Posted at: 16 hours ago

配音阶段出错 [Edge-TTS(免费)] edge-tts error:target_audio='D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/tmp/6484/7252d0e0c5/20261118-101345-edgetts-txt-1794968100.5672474.mp3'
Traceback (most recent call last):

File "videotrans\task\_base.py", line 260, in _edgetts_single

File "edge_tts\communicate.py", line 588, in stream

File "edge_tts\communicate.py", line 562, in __stream

edge_tts.exceptions.NoAudioReceived: No audio was received. Please verify that your parameters are correct.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):

File "videotrans\task\job.py", line 35, in run

File "videotrans\task\job.py", line 152, in process_task

File "videotrans\task\dubbing.py", line 85, in dubbing

File "videotrans\task\dubbing.py", line 177, in _tts

File "asyncio\runners.py", line 44, in run

File "asyncio\base_events.py", line 649, in run_until_complete

File "videotrans\task\_base.py", line 271, in _edgetts_single

videotrans.configure.excepts.DubbingSrtError: edge-tts error:target_audio='D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/tmp/6484/7252d0e0c5/20261118-101345-edgetts-txt-1794968100.5672474.mp3'
trk=文字配音
self.cfg.name='D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/tmp/6484/20261118-101345.txt',
输出目录: D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/output/tts,
self.cfg.cache_folder='D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/tmp/6484/7252d0e0c5'
self.cfg.is_cuda=False
配音渠道:Edge-TTS(免费), 配音角色:Premwadee(Female/TH), 目标语言:th
Volume:+0%, Speed:-15%, 未选 配音加速
输出格式: mp3
未选 删字幕间静音, 未选 对齐字幕声音
已选 移除每条字幕配音开头结尾静音缓冲
静音移除力度: default
self.cfg=TaskCfgTTS(uuid='7252d0e0c5', name='D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/tmp/6484/20261118-101345.txt', dirname='D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/tmp/6484', noextname='20261118-101345', basename='20261118-101345.txt', ext='txt', target_dir='D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/output/tts', cache_folder='D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/tmp/6484/7252d0e0c5', is_cuda=False, source_language='', source_language_code='', source_sub=None, source_wav=None, source_wav_output=None, target_language='', target_language_code='th', target_sub='D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/tmp/6484/20261118-101345.txt', target_wav='D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/output/tts/20261118-101345.wav', target_wav_output=None, tts_type=0, volume='+0%', pitch='+2Hz', voice_rate='-15%', voice_role='Premwadee(Female/TH)', voice_autorate=False, video_autorate=False, remove_silent_mid=False, align_sub_audio=False)


=
system:Windows-10-10.0.22631-SP0
version:v4.18
frozen:True
language:zh_CN
root_dir:D:/pyVideoTrans/win-pyvideotrans-v4.18-1106

1 Replies

#1 DeepSeek reply at 16 hours ago

这是 Edge-TTS 微软接口对该行文本"零音频返回"(NoAudioReceived),并非软件 bug。常见触发条件有三类:待配音文本本身就是空行/纯符号/纯数字,或文本实际语言与所选泰语音色 Premwadee(Female/TH) 不匹配;网络请求被限流;代理设置异常导致连接被中断。

按以下顺序排查:

  1. 校验失败的那行文本

    • 打开日志中提到的 D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/tmp/6484/20261118-101345.txt,逐行检查是否存在空行、只有标点/数字/特殊符号的行。
    • 这是「文字配音」功能,txt 中若混有中文/英文行却选用泰语音色 Premwadee(Female/TH),Edge-TTS 很可能返回空音频。请确保文本语言与音色语言一致,或改用与文本语言相同的音色。
  2. 清空或修正代理

    • 主界面右侧「网络代理」文本框若填写了无效或未启动的代理地址,会直接导致 Edge-TTS 连接异常。请清空该框并保存。
    • 若确定需要代理但 Edge-TTS 仍失败,在 D:/pyVideoTrans/win-pyvideotrans-v4.18-1106/ 根目录下新建一个空文件 edgetts-noproxy.txt,强制 Edge-TTS 绕过代理。
  3. 降低请求频率避免限流

    • 菜单 → 工具/选项 → 高级选项 → 字幕配音调整:

      • EdgeTTS配音渠道配音并发数 设为 1
      • 配音后暂停秒 设为 5 ~ 10
    • 微软免费接口高频请求会被限流,表现为无音频或 403。
  4. 最小化验证

    • 新建一个只含一行泰文(如 สวัสดี)的 txt,用同一音色 Premwadee(Female/TH) 试配音。

      • 若成功 → 原 txt 中某行文本内容有问题(回到第 1 步逐行清理)。
      • 若同样失败 → 属于网络/接口侧问题(回到第 2、3 步)。
  5. 确认安装包完整

    • 请确认是在 2.6GB+ 完整包基础上启动的(不是仅覆盖了 sp.exe 的补丁包),并检查是否被安全软件拦截了网络请求。

若以上均排除仍报错,请提供失败那一行的具体文本内容(对应 20261118-101345.txt 中的那一行)以及 logs/ 文件夹下当日日志末尾约 30 行。

请查阅相关文档:

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
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.

Dondate via ko-fi.com

Related resource