Update funasr_wss_client.py

This commit is contained in:
Yabin Li 2023-07-05 18:53:06 +08:00 committed by GitHub
parent dd3c52c67b
commit 664dfaf1bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -296,9 +296,9 @@ if __name__ == '__main__':
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: