#5539 videotrans.configure.excepts.DubbingSrtError: All error for edge-tts voice must be str

2001:1308* Posted at: 1 hour ago

All error for edge-tts voice must be str:
Traceback (most recent call last):
File "videotrans\tts\_base.py", line 84, in run
RuntimeError: no running event loop

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 16, in run
File "videotrans\tts\__init__.py", line 192, in run
File "videotrans\tts\_base.py", line 88, in run
File "asyncio\base_events.py", line 649, in run_until_complete
File "videotrans\tts\_edgetts.py", line 200, in _exec
videotrans.configure.excepts.DubbingSrtError: All error for edge-tts voice must be str


=
system:Windows-10-10.0.26200-SP0
version:v4.03
frozen:True
language:en
root_dir:C:/doblaje

1 Replies

The error All error for edge-tts voice must be str combined with RuntimeError: no running event loop usually indicates one of two issues:

  1. The selected voice role is empty or not a valid string (e.g., an integer or None was passed).
  2. An asynchronous event loop conflict caused by high concurrency or conflicting proxy settings.

Steps to fix:

  1. Verify the voice role selection

    • On the main interface, ensure you have selected a target language first, then a voice from the Select Voice dropdown.
    • Make sure the dropdown shows a non-empty string like en-US-GuyNeural. If it's blank or shows an ID number, the role is invalid.
  2. Reduce Edge-TTS concurrency

    • Go to Menu → Tools → Advanced Options → Dubbing Settings.
    • Set EdgeTTS Dubbing Concurrent Threads to 1 and Pause Seconds after Dubbing to 5-10.
    • Save and restart the software.
  3. Check proxy settings

    • Clear the proxy field in the main interface (keep it empty) if you don't need a proxy.
    • If you use a proxy, make sure the format is correct (e.g., http://127.0.0.1:7890).
    • To force Edge-TTS to bypass proxy entirely, create an empty file named edgetts-noproxy.txt in the software root directory (where sp.exe is located).
  4. Update to the latest version

    • Your version is v4.03. The latest is v4.03-0626. Download the patch (≈260MB) from the official site and overwrite your installation folder.
  5. Test with a simple SRT file

    • Use the Batch Dubbing for Subtitles panel on the left.
    • Import a small SRT file, select Edge-TTS and a valid voice, and click start. If that works, the issue is specific to the video translation pipeline (likely event loop coupling).

If none of these resolves the problem, please provide the log file located in logs/ (the latest .log file) with the last ~30 lines of error details, along with your exact voice role name and any proxy settings.

Related documentation:

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. Dondate: ko-fi.com/jianchang512

Related resource