#1681 videotrans.configure._except.StopRetry: Preset role - not found in configuration.

64.238* Posted at: 9 days ago 👁35

Connection reset, network may be unstable:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 267, in run
File "videotrans\tts\_base.py", line 177, in run
File "videotrans\tts\_cosyvoice.py", line 155, in _item_task
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 439, in result
File "concurrent\futures\_base.py", line 391, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_cosyvoice.py", line 153, in _run
File "videotrans\tts\_cosyvoice.py", line 99, in _item_cosyvoice_api
videotrans.configure._except.StopRetry: Preset role - not found in configuration.


=
system:Windows-10-10.0.26100-SP0
version:v3.83
frozen:True
language:en
root_dir:C:/Users/pietro/Documents/pyVideoTrans/win-videotrans-v3.83

1 Replies

The error "Preset role - not found in configuration" indicates that the CosyVoice TTS role you selected is not properly configured. Here's how to fix it:

  1. Go to the main interface and click the "Set more parameters" button next to "TTS Voice".
  2. In the "TTS Settings" window, ensure you have selected a valid CosyVoice role from the dropdown list.
  3. If the role list is empty or the issue persists:

    • Make sure you have properly set up CosyVoice (either local deployment or API configuration).
    • Check if your CosyVoice service is running and accessible.
    • Try switching to a different TTS provider like Edge-TTS (free) as a temporary solution.

The connection reset error is likely a consequence of the failed role configuration attempt.

If you need to use CosyVoice, please verify your CosyVoice setup according to the official 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.

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

Trending Questions