From c7c97cb0fe91b06dcbc391b5a7dee92d496dc894 Mon Sep 17 00:00:00 2001
From: aky15 <ankeyuthu@gmail.com>
Date: 星期四, 11 一月 2024 17:52:27 +0800
Subject: [PATCH] Update rwkv_encoder.py

---
 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