Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.42 KB

readme.md

File metadata and controls

34 lines (26 loc) · 1.42 KB

sst 抽象

npm

Sst 语音识别服务

实现该服务

imort { Context, Session, h } form 'koishi'
import Sst from '@initencounter/sst'
class Xxx extends Sst {
    constructor(ctx: Context) {
    super(ctx)
    }
    async audio2text(session: Session): Promise<string> { }
}

调用服务

imort { Context, Session } form 'koishi'
import { } from '@initencounter/sst'
ctx.sst.audio2text(session: Session)

示例插件

NPM REPO
Baidu-SST 百度智能云语音识别
TC-SST 腾讯云语音识别
Whisper-ASR OpenAI 语音识别