#7303 Error during TTS dubbing stage [Edge-TTS (Free)] edge-tts error:target_audio='D:/SOFTS/PyVideoTrans/win-pyvideotrans-v4.

1.54**6 Posted at: 1 hour ago

Error during TTS dubbing stage [Edge-TTS (Free)] edge-tts error:target_audio='D:/SOFTS/PyVideoTrans/win-pyvideotrans-v4.12-0913/tmp/2656/758e8a7bf1/Đặc Vụ Báo Thù - The Suspect (2013) - Phim Nhựa.vi-edgetts-txt-1789442850.1344109.mp3'
Traceback (most recent call last):

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

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

File "edge_tts\communicate.py", line 541, 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 156, in process_task

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

File "videotrans\task\dubbing.py", line 138, 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 270, in _edgetts_single

videotrans.configure.excepts.DubbingSrtError: edge-tts error:target_audio='D:/SOFTS/PyVideoTrans/win-pyvideotrans-v4.12-0913/tmp/2656/758e8a7bf1/Đặc Vụ Báo Thù - The Suspect (2013) - Phim Nhựa.vi-edgetts-txt-1789442850.1344109.mp3'
[DubbingSrt]语音合成: self.out_ext='mp3',self.is_multi_role=False
[TaskCfgTTS]
原始输入文件名: E:/PHIMHD/Le/Đặc Vụ Báo Thù - The Suspect (2013) - Phim Nhựa.vi.srt,
输出结果保存到文件夹: D:/SOFTS/PyVideoTrans/win-pyvideotrans-v4.12-0913/output/tts,
临时文件夹: D:/SOFTS/PyVideoTrans/win-pyvideotrans-v4.12-0913/tmp/2656/758e8a7bf1
已启用CUDA加速
TTS Service:Edge-TTS (Free), 角色:NamMinh(Male/VN), 配音语言:vi
音量:+0%, 语速:+0%, 未选 音频加速
已选 移除字幕间空隙, 未选 强制对齐字幕和声音


=
system:Windows-10-10.0.26200-SP0
version:v4.12
frozen:True
language:en_US
root_dir:D:/SOFTS/PyVideoTrans/win-pyvideotrans-v4.12-0913

1 Replies

#1 DeepSeek reply at 1 hour ago

The error No audio was received from Edge-TTS is typically caused by one of the following:

  1. Network / proxy issue — Edge-TTS cannot reach Microsoft's servers, or the audio stream was blocked by a proxy.
  2. The subtitle file path contains special characters — your path /PHIMHD/Le/Đặc Vụ Báo Thù - The Suspect (2013) - Phim Nhựa.vi.srt contains Vietnamese diacritics, spaces, parentheses, dots and a hyphen. Combined with the long path depth this can break the Edge-TTS request or the temp-file handling.

Action steps:

  1. Rename and relocate the source file to a simple ASCII path, e.g. move Đặc Vụ Báo Thù - The Suspect (2013) - Phim Nhựa.vi.srt to D:/srt/1.srt (only letters, numbers, underscore). Long paths and non-ASCII names are a common cause of FFmpeg/Edge-TTS failures.
  2. Check your network proxy. Edge-TTS is a Microsoft online service and requires internet access. If you are using a VPN/proxy, ensure it works; if the proxy is unstable, disable it. If Edge-TTS keeps failing with proxy errors, create an empty file named edgetts-noproxy.txt in the software root directory (D:/SOFTS/PyVideoTrans/win-pyvideotrans-v4.12-0913/) to force Edge-TTS to bypass the proxy. Also make sure the proxy field is not filled with an invalid address.
  3. Reduce request frequency — Edge-TTS gets rate-limited (403 / no audio). Go to 菜单 -> 工具/选项 -> 高级选项 -> 字幕配音调整, set:

    • EdgeTTS配音渠道配音并发数 = 1
    • 配音后暂停秒 = 5~10
    • Increase EdgeTTS配音渠道失败重试次数
  4. Verify the voice role — confirm NamMinh(Male/VN) (Vietnamese) is a valid Edge-TTS voice for target language vi. Try switching to another Vietnamese voice to test.
  5. If the problem persists, switch to another TTS channel (e.g. gTTS, or a local built-in channel) to confirm whether the issue is specific to Edge-TTS.

请查阅相关文档:

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