mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
15 lines
365 B
Python
15 lines
365 B
Python
#!/usr/bin/env python3
|
|
# -*- encoding: utf-8 -*-
|
|
# Copyright FunASR (https://github.com/FunAudioLLM/SenseVoice). All Rights Reserved.
|
|
# MIT License (https://opensource.org/licenses/MIT)
|
|
|
|
from funasr import AutoModel
|
|
|
|
|
|
model_dir = "iic/SenseVoiceSmall"
|
|
model = AutoModel(
|
|
model=model_dir,
|
|
device="cuda:0",
|
|
)
|
|
|
|
res = model.export(type="onnx", quantize=False) |