Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add SenseVoice as a library. #790

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Vaibhavs10
Copy link
Member

No description provided.

@@ -200,6 +200,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
filter: true,
countDownloads: `path:"pytorch_model.bin"`,
},
SenseVoice: {
Copy link
Contributor

@Wauplin Wauplin Jul 10, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's lowercase it to be consistent with other libraries. It requires to update https://huggingface.co/FunAudioLLM/SenseVoiceSmall/discussions/1 as well.

Suggested change
SenseVoice: {
sensevoice: {

(EDIT: or sense-voice if you prefer it this way)

@@ -200,6 +200,13 @@ export const MODEL_LIBRARIES_UI_ELEMENTS = {
filter: true,
countDownloads: `path:"pytorch_model.bin"`,
},
SenseVoice: {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we also add funasr?

repoName: "SenseVoice",
repoUrl: "https://github.com/FunAudioLLM/SenseVoice",
filter: false,
countDownloads: `path:"model.pt"`,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to add this rule. The repo has a config.yaml file which is part of the default set

prettyLabel: "SenseVoice",
repoName: "SenseVoice",
repoUrl: "https://github.com/FunAudioLLM/SenseVoice",
filter: false,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add a snippt similar to

from model import SenseVoiceSmall

model_dir = "iic/SenseVoiceSmall"
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="auto", # "zn", "en", "yue", "ja", "ko", "nospeech"
    use_itn=False,
    **kwargs,
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants