#1123 MemoryError

163.125* Posted at: 18 hours ago 👁11

语音识别阶段出错:[faster-whisper(本地)] 运行时错误:Traceback (most recent call last):
File "videotrans\process\_overall.py", line 56, in run
File "faster_whisper\transcribe.py", line 834, in transcribe
File "faster_whisper\audio.py", line 55, in decode_audio
MemoryError
:
Traceback (most recent call last):
File "videotrans\task\job.py", line 105, in run
File "videotrans\task\trans_create.py", line 331, in recogn
File "videotrans\recognition\__init__.py", line 222, in run
File "videotrans\recognition\_base.py", line 78, in run
File "videotrans\recognition\_overall.py", line 195, in _exec
RuntimeError: Traceback (most recent call last):
File "videotrans\process\_overall.py", line 56, in run
File "faster_whisper\transcribe.py", line 834, in transcribe
File "faster_whisper\audio.py", line 55, in decode_audio
MemoryError


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

1 Replies

这个错误是内存不足导致的,faster-whisper 在处理音频文件时无法分配足够的内存。请尝试以下解决方案:

  1. 关闭其他占用内存的程序:确保没有运行其他大型软件,释放系统内存。
  2. 检查音频文件大小:如果音频文件过大,尝试分割成较小的片段进行处理。
  3. 降低处理参数

    • 在语音识别设置中,尝试选择更小的模型(如 small 而不是 large)
    • 在高级选项中,减小"每次处理的音频时长(秒)"
  4. 使用其他识别渠道

    • 暂时切换到其他语音识别渠道,如"openai-whisper(本地)"或在线API
    • 或者使用"阿里FunASR(本地)"作为替代方案
  5. 增加虚拟内存

    • 在Windows设置中增加系统虚拟内存大小

如果以上方法仍无法解决,请提供更详细的信息:

  • 处理的音频文件大小和时长
  • 系统可用内存大小
  • 在语音识别设置中选择的具体模型大小
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