mirror of
https://github.com/FunAudioLLM/SenseVoice.git
synced 2025-09-15 15:08:35 +08:00
fix demo onnx textnorm
This commit is contained in:
parent
530b2e3ce5
commit
4c6c6c61f3
@ -15,5 +15,5 @@ model = SenseVoiceSmall(model_dir, batch_size=10, quantize=True)
|
||||
# inference
|
||||
wav_or_scp = ["{}/.cache/modelscope/hub/{}/example/en.mp3".format(Path.home(), model_dir)]
|
||||
|
||||
res = model(wav_or_scp, language="auto", use_itn=True)
|
||||
res = model(wav_or_scp, language="auto", textnorm="withitn")
|
||||
print([rich_transcription_postprocess(i) for i in res])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user