28 lines
507 B
Plaintext
28 lines
507 B
Plaintext
|
|
import { CallbackType, InitModelData, SpeechResultCallback, RedultType, DownloadCallback } from '../interface.uts';
|
|
|
|
/**
|
|
* 初始化模型
|
|
*/
|
|
export function initVoskModel(option : InitModelData, cb : (result : CallbackType) => void) {
|
|
}
|
|
|
|
/**
|
|
* 开始识别
|
|
*/
|
|
@UTSJS.keepAlive
|
|
export function startSpeechVoice(cb : SpeechResultCallback) {
|
|
}
|
|
|
|
/**
|
|
* 停止识别
|
|
*/
|
|
export function stopSpeechVoice() {
|
|
}
|
|
|
|
/**
|
|
* 下载模型
|
|
*/
|
|
export function downloadModel(url : string, cb : DownloadCallback) {
|
|
|
|
} |