mirror of
https://github.com/modelscope/modelscope.git
synced 2026-02-24 20:19:51 +01:00
support funasr for mac
增加asr pipeline对于mac支持,在mac上自测没问题 Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/12341467
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user