Yabin Li
2023-07-05 664dfaf1bcaffc177ac50b11c2a1db6bf920f7f0
Update funasr_wss_client.py
1个文件已修改
6 ■■■■ 已修改文件
funasr/runtime/python/websocket/funasr_wss_client.py 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
funasr/runtime/python/websocket/funasr_wss_client.py
@@ -296,9 +296,9 @@
            wav_name = wav_splits[0] if len(wav_splits) > 1 else "demo"
            wav_path = wav_splits[1] if len(wav_splits) > 1 else wav_splits[0]
            audio_type = os.path.splitext(wav_path)[-1].lower()
            if audio_type not in SUPPORT_AUDIO_TYPE_SETS:
                raise NotImplementedError(
                    f'Not supported audio type: {audio_type}')
            # if audio_type not in SUPPORT_AUDIO_TYPE_SETS:
            #    raise NotImplementedError(
            #        f'Not supported audio type: {audio_type}')
        total_len = len(wavs)
        if total_len >= args.thread_num: