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

feat: 增加语音识别切换,支持科大讯飞语音识别 #81

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

Conversation

liuhuapiaoyuan
Copy link

77a26bff4a8fdb79da4507e3ee26715

产品很好用~~不过在国内还是需要有一些国内的兼容能力
科大讯飞正好还有免费额度:
https://www.xfyun.cn/services/lfasr?target=price

引入Provider的概念
未来只要适配了WhisperResponse 的数据模型,原则上可以扩展更多的Provider

interface WhisperResponse {
    language: string;
    duration: number;
    text: string;
    offset: number;
    segments: {
        seek: number;
        start: number;
        end: number;
        text: string;
    }[];
}

@solidSpoon
Copy link
Owner

感谢,我待会看下

@liuhuapiaoyuan
Copy link
Author

感谢,我待会看下

我觉得得把翻译服务拆分下,允许配置不同的供应商,正好有空,要不要我来搞?

@solidSpoon
Copy link
Owner

我最近代码都写在 favourite-v1 分支里了,里面加了一些功能,后端代码改了好多,你可以基于那个分支改,我最近应该就是在那个分支修改一些细节然后准备发布。

@liuhuapiaoyuan
Copy link
Author

也可以,正好我打算把讯飞的包独立出来

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.

2 participants