From 5eabdd444ea07038b6e814a022a212e8a87f6a9a Mon Sep 17 00:00:00 2001
From: 夜雨飘零 <yeyupiaoling@foxmail.com>
Date: 星期四, 30 十一月 2023 00:44:17 +0800
Subject: [PATCH] 修复为支持新版本的热词 (#1137)
---
funasr/utils/whisper_utils/audio.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/funasr/utils/whisper_utils/audio.py b/funasr/utils/whisper_utils/audio.py
index 004bd0d..6dd4cb1 100644
--- a/funasr/utils/whisper_utils/audio.py
+++ b/funasr/utils/whisper_utils/audio.py
@@ -1,8 +1,11 @@
import os
from functools import lru_cache
from typing import Union
+try:
+ import ffmpeg
+except:
+ print("Please Requires the ffmpeg CLI and `ffmpeg-python` package to be installed.")
-import ffmpeg
import numpy as np
import torch
import torch.nn.functional as F
--
Gitblit v1.9.1