#7121 No audio file was generated during the listening test.:{'text': 'नमस्ते, मेरे प्यारे दोस्त, मुझे आशा है कि आपका हर दिन स

103.206**8 Posted at: 12 hours ago

No audio file was generated during the listening test.:
{'text': 'नमस्ते, मेरे प्यारे दोस्त, मुझे आशा है कि आपका हर दिन सुंदर और सुखद हो!', 'rate': '+0%', 'role': 'Madhur(Male/IN)', 'filename': '/var/folders/m_/dyn8g_sn6cj_546p_kj8r1g80000gn/T/pyvideotrans/0-1788906943.68294.wav', 'tts_type': 0, 'language': 'hi', 'volume': '+0%', 'pitch': '+0Hz'}
Traceback (most recent call last):
File "/Users/kumarprashant/Local Files/pyvideotrans/videotrans/util/ListenVoice.py", line 21, in run

tts.run(

File "/Users/kumarprashant/Local Files/pyvideotrans/videotrans/tts/__init__.py", line 230, in run

return _cls(**kwargs).run()  # type:ignore

File "/Users/kumarprashant/Local Files/pyvideotrans/videotrans/tts/_base.py", line 124, in run

raise self.error if isinstance(self.error, Exception) else DubbingSrtError(str(self.error))

videotrans.configure.excepts.DubbingSrtError: No audio file was generated during the listening test.


=
system:macOS-26.6.2-arm64-arm-64bit
version:v4.12
frozen:False
language:en_US
root_dir:/Users/kumarprashant/Local Files/pyvideotrans
Python: 3.10.21 | packaged by conda-forge | (main, Aug 21 2026, 22:37:53) [Clang 19.1.7 ]

5 Replies

#1 DeepSeek reply at 12 hours ago

The error No audio file was generated during the listening test for the role Madhur(Male/IN) indicates that the Edge-TTS request was sent to Microsoft's servers, but no audio data was returned or saved to the temporary WAV file. This is almost always a network/connectivity issue or an Edge-TTS service endpoint issue on macOS source deployment.

Steps to resolve

1. Test Edge-TTS directly via command line
Run the following in your terminal to isolate the problem:

edge-tts --voice hi-IN-MadhurNeural --text "नमस्ते" --write-media /tmp/test_voice.mp3
  • If this succeeds, the issue is inside pyVideoTrans (e.g., a stale edge-tts package or a bad proxy setting).
  • If this fails, the problem is with your network, proxy, or Edge-TTS service blockage.

2. Check your network/proxy
Edge-TTS requires direct access to Microsoft's speech servers. If you have a proxy configured, it may break the connection. Create an empty file with this exact name in the software root directory (the folder containing sp.py):

edgetts-noproxy.txt

This forces Edge-TTS to bypass any proxy settings. Then retry the listening test.

3. Update the edge-tts package
Since you are running from source (frozen: False), the bundled edge-tts library may be outdated. Run:

uv sync
# or if not using uv:
pip install --upgrade edge-tts

Then restart the software.

4. Try a different voice or channel
If Edge-TTS remains unusable for Hindi, temporarily switch to another TTS channel (e.g., Qwen3-TTS(内置), OmniVoice-TTS(内置)) for the listening test. The OmniVoice-TTS channel supports voice cloning and covers Hindi well.

5. Check logs
If none of the above helps, look at logs/ in your software directory for today's log file and check for any network-level errors (e.g., 403, timeout, connection reset) around the time of the failure.


Notes on the voice name

The Edge-TTS voice name for the Madhur role should be hi-IN-MadhurNeural. The software normally maps Madhur(Male/IN) automatically, but if you manually entered a custom role name, verify it matches the exact Edge-TTS voice identifier.

#2 103.206**8 reply at 12 hours ago

[WARNING] 测试硬件编码器时失败:写入 /Users/kumarprashant/Local Files/pyvideotrans/tmp/41368/test_h264_videotoolbox_1788906576287.mp4 时权限被拒绝。 command=['ffmpeg', '-y', '-hide_banner', '-t', '1', '-i', '/Users/kumarprashant/Local Files/pyvideotrans/videotrans/styles/no-remove.mp4', '-c:v', 'h264_videotoolbox', '-f', 'mp4', '/Users/kumarprashant/Local Files/pyvideotrans/tmp/41368/test_h264_videotoolbox_1788906576287.mp4']
[WARNING] 测试硬件编码器时失败:写入 /Users/kumarprashant/Local Files/pyvideotrans/tmp/41368/test_hevc_videotoolbox_1788906576296.mp4 时权限被拒绝。 command=['ffmpeg', '-y', '-hide_banner', '-t', '1', '-i', '/Users/kumarprashant/Local Files/pyvideotrans/videotrans/styles/no-remove.mp4', '-c:v', 'hevc_videotoolbox', '-f', 'mp4', '/Users/kumarprashant/Local Files/pyvideotrans/tmp/41368/test_hevc_videotoolbox_1788906576296.mp4']
[ERROR] 执行 ffmpeg 时发生未知错误,cmd=['ffmpeg', '-hide_banner', '-nostdin', '-ignore_unknown', '-threads', '0', '-y', '-i', '/var/folders/m_/dyn8g_sn6cj_546p_kj8r1g80000gn/T/pyvideotran
......

  dist._finalize_license_expression()
  /Users/kumarprashant/.cache/uv/builds-v0/.tmpCWXNSD/lib/python3.10/site-packages/setuptools/dist.py:765:
  SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved :: Apache Software License

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
    self._finalize_license_expression()
  extensions/_pynini.cpp:1353:10: fatal error: 'fst/util.h' file not found
   1353 | #include 
        |          ^~~~~~~~~~~~
  1 error generated.
  error: Command '['c++', '-Wno-unused-result', '-Wsign-compare', '-Wunreachable-code', '-DNDEBUG',
  '-g', '-fwrapv', '-O3', '-Wall', '-O3', '-arch', 'arm64', '-mmacosx-version-min=11.0',
  '-Wno-nullability-completeness', '-Wno-expansion-to-defined', '-Wno-undef-prefix',
  '-fPIC', '-Iextensions', '-I/Users/kumarprashant/.cache/uv/builds-v0/.tmpCWXNSD/include',
  '-I/Users/kumarprashant/.local/share/uv/python/cpython-3.10.19-macos-aarch64-none/include/python3.10', '-c',
  'extensions/_pynini.cpp', '-o', 'build/temp.macosx-11.0-arm64-cpython-310/extensions/_pynini.o', '-std=c++17',
  '-Wno-register', '-Wno-deprecated-declarations', '-Wno-unused-function', '-Wno-unused-local-typedefs',
  '-funsigned-char', '-stdlib=libc++', '-mmacosx-version-min=10.12']' returned non-zero exit status 1.

  hint: This error likely indicates that you need to install a library that provides "fst/util.h" for
  `[email protected]`

help: pynini (v2.1.6) was included because pyvideotrans (v4.11) depends on pynini

#3 DeepSeek reply at 12 hours ago

Root cause:
The tmp/41368 directory (or one of its parent directories) is not writable by your user, so FFmpeg cannot create the test video files. The pynini compile error in your log is a separate install-time warning – your software may still run without it, but it is not the cause of the current failure.

Fix steps:

  1. Check and fix permissions
    Run the following commands in Terminal:

    chmod -R 777 "/Users/kumarprashant/Local Files/pyvideotrans/tmp"

    Or simply delete the whole tmp folder – pyVideoTrans will recreate it on next start:

    rm -rf "/Users/kumarprashant/Local Files/pyvideotrans/tmp"
  2. Verify FFmpeg can write to the temp path
    Test manually:

    ffmpeg -y -hide_banner -t 1 -i "/Users/kumarprashant/Local Files/pyvideotrans/videotrans/styles/no-remove.mp4" -c:v h264_videotoolbox -f mp4 "/Users/kumarprashant/Local Files/pyvideotrans/tmp/test_write.mp4"

    If this still fails with permission denied, check if macOS privacy settings are blocking access – go to System Settings → Privacy & Security → Full Disk Access and add your Terminal or the sp.py app.

  3. Restart pyVideoTrans after fixing permissions.
  4. If the problem persists:

    • Move the whole project to a simpler path (e.g., ~/pyvideotrans) – avoiding spaces in Local Files can help.
    • Run uv sync again to complete missing dependencies (including pynini) – the compile error indicates your environment may be incomplete.

      cd "/Users/kumarprashant/Local Files/pyvideotrans"
      uv sync
    • If uv sync fails on pynini, install OpenFST via Homebrew first:

      brew install opengrm-thrax

      Then retry uv sync.

#4 103.206**8 reply at 12 hours ago

(pvt) kumarprashant@Prashants-Mac-mini pyvideotrans % brew install opengrm-thrax
==> Downloading Homebrew API data
⠚ JSON API packages.arm64_tahoe.jws.json Downloading 15.5MB/




⠙ JSON API packages.arm64_tahoe.jws.json Downloading 15.5MB/


⠞ JSON API packages.arm64_tahoe.jws.json Downloading 15.5MB/


⠴ JSON API packages.arm64_tahoe.jws.json Downloading 15.5MB/


⠓ JSON API packages.arm64_tahoe.jws.json Downloading 15.5MB/


⠙ JSON API packages.arm64_tahoe.jws.json Downloading 15.5MB/


⠞ JSON API packages.arm64_tahoe.jws.json Downloading 15.5MB/


⠖ JSON API packages.arm64_tahoe.jws.json Downloading 15.5MB/


Warning: packages.arm64_tahoe.jws.json: update failed, falling back to cached version.
✔︎ JSON API packages.arm64_tahoe.jws.json Downloaded 15.5MB/ 15.5MB
Warning: No available formula with the name "opengrm-thrax". Did you mean openkermit?
==> Searching for similarly named formulae and casks...
==> Formulae
openkermit

To install openkermit, run:
brew install openkermit

==> Casks
openrct2 (disabled)

To install openrct2 (disabled), run:
brew install --cask openrct2 (disabled)

#5 DeepSeek reply at 12 hours ago

The brew formula opengrm-thrax does not exist. For pynini, you need OpenFST:

brew install openfst

Then rerun:

cd "/Users/kumarprashant/Local Files/pyvideotrans"
uv sync

However, the pynini compile error is a separate issue from your current failure.

The actual blocking error in your log is:

写入 /Users/kumarprashant/Local Files/pyvideotrans/tmp/41368/test_h264_videotoolbox_1788906576287.mp4 时权限被拒绝

That means the tmp folder (or a parent folder) is not writable by your user, so FFmpeg cannot create test files.

Fix the permission issue first:

rm -rf "/Users/kumarprashant/Local Files/pyvideotrans/tmp"

Or forcibly grant write permission:

chmod -R 777 "/Users/kumarprashant/Local Files/pyvideotrans/tmp"

Then restart pyVideoTrans.

If FFmpeg still reports permission denied, check macOS Privacy & Security → Full Disk Access and add your Terminal app (or the Python interpreter used by pyVideoTrans) to the allowed list.

The pynini issue will not cause the video translation to crash immediately, but it can cause other features to fail later. Fix it with brew install openfst and uv sync when you have time.

请查阅相关文档:

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