#1344 OSError: [Errno 22] Invalid argument

171.241* Posted at: 17 hours ago 👁16

System Error (22): Invalid argument:
Traceback (most recent call last):
File "videotrans\util\ListenVoice.py", line 18, in run
File "videotrans\tts\__init__.py", line 281, in run
File "videotrans\tts\_base.py", line 182, in run
File "tenacity\__init__.py", line 480, in call
File "videotrans\tts\_elevenlabs.py", line 48, in _run
File "httpx\_client.py", line 687, in init
File "httpx\_client.py", line 730, in _init_transport
File "httpx\_transports\default.py", line 153, in init
File "httpx\_config.py", line 35, in create_ssl_context
File "ssl.py", line 765, in create_default_context
OSError: [Errno 22] Invalid argument


=
Windows-10-10.0.26100-SP0
version:v3.81
frozen:True
language:en

1 Replies

This error indicates an SSL/TLS context creation failure when connecting to the ElevenLabs TTS service. It's likely related to your system's SSL certificates or network configuration.

Here are the steps to resolve this issue:

  1. Check ElevenLabs API Key: Ensure your ElevenLabs API key is correctly configured in the software's TTS settings menu. An invalid key can cause connection issues.
  2. Use System Proxy (if applicable): If you are behind a corporate firewall or use a proxy, configure the system-wide proxy settings in Windows, or try setting the proxy within the software via the menu: Translate Settings -> Set Network Proxy.
  3. Update Root Certificates: This is the most likely solution. Update your Windows root certificates:

    • Press Win + R, type wsreset.exe, and press Enter. This resets the Windows Store cache, which can help update certificates.
    • Alternatively, visit the Microsoft Update Catalog website to manually download and install the latest root certificate updates for your version of Windows.
  4. Switch TTS Service: As a temporary workaround, switch to a different TTS service like Edge-TTS (free) or OpenAI TTS in the TTS settings menu to continue your work.

If the problem persists after trying these steps, please provide the complete log file from the videotrans/logs/ directory for further analysis.

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

Similar issues already exist

Trending Questions