Skip to content

Open-source speech recognition toolkit for training, inference, streaming ASR, VAD, punctuation, speaker diarization pipelines, and OpenAI-compatible/MCP serving.

ffmpeg

游雁27c7f88643e8
diff --git a/funasr/utils/load_utils.py b/funasr/utils/load_utils.py
index 5dc9bdea6..02926cd5f 100644
--- a/funasr/utils/load_utils.py
+++ b/funasr/utils/load_utils.py
@@ -19,11 +19,9 @@ from subprocess import CalledProcessError, run
def is_ffmpeg_installed():
try:
- # 尝试运行ffmpeg命令并获取其版本信息
output = subprocess.check_output(['ffmpeg', '-version'], stderr=subprocess.STDOUT)
return 'ffmpeg version' in output.decode('utf-8')
except (subprocess.CalledProcessError, FileNotFoundError):
- # 若运行ffmpeg命令失败,则认为ffmpeg未安装
return False
use_ffmpeg=False