游雁 commited on
Commit ·
72963f9
1
Parent(s): 7470a36
update
Browse filesFiles changed (3)
- README.md+5-2
- README_zh.md+5-2
- demo.pyAdded+27
10 unmodified lines1112131415141516174 unmodified lines2223242526272829303110 unmodified lines
<div align="center"> <h4><a href="https://www.modelscope.cn/studios/iic/SenseVoice"> Online Demo </a>|<a href="https://fun-audio-llm.github.io/"> Homepage </a><a href="https://fun-audio-llm.github.io/"> Homepage </a>|<a href="#What's News"> What's News </a>|<a href="#Benchmarks"> Benchmarks </a>|<a href="#Install"> Install </a>4 unmodified linesModel Zoo:[modelscope](https://www.modelscope.cn/models/iic/SenseVoiceSmall), [huggingface](https://huggingface.co/FunAudioLLM/SenseVoiceSmall)
Online Demo:[modelscope demo](https://www.modelscope.cn/studios/iic/SenseVoice), [huggingface space](https://huggingface.co/spaces/FunAudioLLM/SenseVoice)
</div>
9 unmodified lines1011121314131415165 unmodified lines222324252627282930319 unmodified lines[//]: # (<div align="center"><img src="image/sensevoice2.png" width="700"/> </div>) <h4><a href="https://www.modelscope.cn/studios/iic/SenseVoice"> 在线体验 </a>|<a href="#What's New"> 文档主页 </a><a href="#What's New"> 文档主页 </a>|<a href="#核心功能"> 核心功能 </a></h4><h4>5 unmodified lines</h4>
模型仓库:中国大陆用户推荐 [modelscope](https://www.modelscope.cn/models/iic/SenseVoiceSmall),海外用户推荐 [huggingface](https://huggingface.co/FunAudioLLM/SenseVoiceSmall)
在线体验:[modelscope demo](https://www.modelscope.cn/studios/iic/SenseVoice), [huggingface space](https://huggingface.co/spaces/FunAudioLLM/SenseVoice)
</div>
<a name="核心功能"></a>123456789101112131415161718192021222324252627from funasr import AutoModelfrom funasr.utils.postprocess_utils import rich_transcription_postprocess
model_dir = "FunAudioLLM/SenseVoiceSmall"
model = AutoModel( model=model_dir, vad_model="fsmn-vad", vad_kwargs={"max_single_segment_time": 30000}, device="cuda:0", hub="hf",)
# enres = model.generate( input=f"{model.model_path}/example/en.mp3", cache={}, language="auto", # "zn", "en", "yue", "ja", "ko", "nospeech" use_itn=True, batch_size_s=60, merge_vad=True, # merge_length_s=15,)text = rich_transcription_postprocess(res[0]["text"])print(text)
README.md+5-2
README_zh.md+5-2
demo.pyAdded+27