#2859 pyimod03_ctypes.install.<locals>.PyInstallerImportError: Failed to load dynlib/dll 'E:\\video\\_internal\\azure\\cogniti

2001:ee1* Posted at: 2 days ago 👁24

Traceback (most recent call last):
File "pyimod03_ctypes.py", line 77, in init
File "ctypes\__init__.py", line 374, in init
FileNotFoundError: Could not find module 'E:\video\_internal\azure\cognitiveservices\speech\Microsoft.CognitiveServices.Speech.core.dll' (or one of its dependencies). Try using the full path with constructor syntax.

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

Traceback (most recent call last):
File "videotrans\mainwin\_main_win.py", line 77, in _set_Ui_Text
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "videotrans\tts\__init__.py", line 9, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "videotrans\tts\_azuretts.py", line 5, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "azure\cognitiveservices\speech\__init__.py", line 8, in

from .speech import *

File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "azure\cognitiveservices\speech\speech.py", line 13, in

from .interop import (

File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "pyimod02_importers.py", line 457, in exec_module
File "azure\cognitiveservices\speech\interop.py", line 20, in

_sdk_lib = load_library.LoadLibrary(lib_path)

File "ctypes\__init__.py", line 452, in LoadLibrary
File "pyimod03_ctypes.py", line 79, in init
pyimod03_ctypes.install..PyInstallerImportError: Failed to load dynlib/dll 'E:\video\_internal\azure\cognitiveservices\speech\Microsoft.CognitiveServices.Speech.core.dll'. Most likely this dynlib/dll was not found when the application was frozen.


=
system:Windows-10-10.0.22631-SP0
version:v3.91
frozen:True
language:en
root_dir:E:/video

1 Replies

The error indicates that the Azure TTS module's core DLL file is missing from your installation. This is a known issue with the pre-packaged version of pyVideoTrans.

To resolve this, you need to manually download and place the missing DLL file.

  1. Download the missing DLL:

    • Go to the official Microsoft Azure Cognitive Services Speech SDK download page: https://aka.ms/csspeech/nuget
    • Look for the "Microsoft.CognitiveServices.Speech" package. You need the version 1.37.0.
    • Download the file named Microsoft.CognitiveServices.Speech.1.37.0.nupkg. It is a .nupkg file, which is a ZIP archive.
  2. Extract the DLL:

    • Rename the downloaded .nupkg file to have a .zip extension (e.g., Microsoft.CognitiveServices.Speech.1.37.0.zip).
    • Extract this ZIP file.
    • Navigate to the extracted folder, then go to runtimes\win-x64\native.
    • You will find the file Microsoft.CognitiveServices.Speech.core.dll.
  3. Place the DLL in the correct folder:

    • Copy the Microsoft.CognitiveServices.Speech.core.dll file.
    • Paste it into the following directory inside your pyVideoTrans folder:
      E:\video\_internal\azure\cognitiveservices\speech\
    • If the speech folder does not exist, create it.
  4. Restart the software: Close and restart sp.exe.

Alternative Quick Fix: If the above steps are complex, you can temporarily avoid using Azure TTS. Choose a different TTS engine like Edge-TTS or VITS-cnen from the配音 (TTS) dropdown menu in the main interface.

Please refer to the documentation for more information:

Post Your Reply