Skip to content
Discussion options

You must be logged in to vote

Yes. You can run SenseVoiceSmall fully offline, but model must point to the complete model directory, not to model.pt.

The directory needs the files referenced by its config, including at least:

SenseVoiceSmall/
├── config.yaml
├── model.pt
├── tokens.json
├── am.mvn
└── chn_jpn_yue_eng_ko_spectok.bpe.model

Use an absolute directory path and disable both update checks:

from funasr import AutoModel

model_dir = "/absolute/path/to/SenseVoiceSmall"

model = AutoModel(
    model=model_dir,
    hub="ms",
    device="cuda:0",
    disable_update=True,
    check_latest=False,
)

result = model.generate(
    input="/absolute/path/to/audio.wav",
    language="auto",
    use_itn=True,
)
print(result)

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LauraGPT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants