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:
zhifu.gzf
2023-04-17 10:17:55 +08:00
committed by hemu
parent 2590605029
commit cfd7d544e5

View File

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