From cfd7d544e509f6f5b86e9a98e41c052d86eb7678 Mon Sep 17 00:00:00 2001 From: "zhifu.gzf" Date: Mon, 17 Apr 2023 10:17:55 +0800 Subject: [PATCH] support funasr for mac MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加asr pipeline对于mac支持,在mac上自测没问题 Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/12341467 --- modelscope/preprocessors/asr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modelscope/preprocessors/asr.py b/modelscope/preprocessors/asr.py index dbb0f595..ea867775 100644 --- a/modelscope/preprocessors/asr.py +++ b/modelscope/preprocessors/asr.py @@ -241,7 +241,6 @@ class WavToScp(Preprocessor): def scp_generation_from_wav(self, inputs: Dict[str, Any]) -> List[Any]: """scp generation from waveform files """ - from easyasr.common import asr_utils # find all waveform files wav_list = [] @@ -251,6 +250,7 @@ class WavToScp(Preprocessor): if file_path.endswith('.wav') or file_path.endswith('.WAV'): wav_list.append(file_path) else: + from easyasr.common import asr_utils wav_dir: str = inputs['wav_path'] wav_list = asr_utils.recursion_dir_all_wav(wav_list, wav_dir)