mirror of
https://github.com/FunAudioLLM/SenseVoice.git
synced 2025-09-15 15:08:35 +08:00
update
This commit is contained in:
parent
cb67057138
commit
7b7d13a274
@ -105,7 +105,7 @@ m, kwargs = SenseVoiceSmall.from_pretrained(model=model_dir)
|
||||
|
||||
res = m.inference(
|
||||
data_in="https://isv-data.oss-cn-hangzhou.aliyuncs.com/ics/MaaS/ASR/test_audio/asr_example_zh.wav",
|
||||
language="zh",
|
||||
language="zh", # "zn", "en", "yue", "ja", "ko", "nospeech"
|
||||
use_itn=False,
|
||||
**kwargs,
|
||||
)
|
||||
@ -131,7 +131,7 @@ model = AutoModel(model=model_dir,
|
||||
res = model.generate(
|
||||
input=input_file,
|
||||
cache={},
|
||||
language="zh",
|
||||
language="zh", # "zn", "en", "yue", "ja", "ko", "nospeech"
|
||||
use_itn=False,
|
||||
batch_size_s=0,
|
||||
)
|
||||
@ -147,7 +147,7 @@ model = AutoModel(model=model_dir, trust_remote_code=True, device="cuda:0")
|
||||
res = model.generate(
|
||||
input=input_file,
|
||||
cache={},
|
||||
language="zh",
|
||||
language="zh", # "zn", "en", "yue", "ja", "ko", "nospeech"
|
||||
use_itn=False,
|
||||
batch_size=64,
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user