语音识别 使能

This commit is contained in:
Irene-Maxine
2025-05-25 15:57:53 +08:00
parent 5c9404a377
commit defeeb3bd1
4 changed files with 26 additions and 2 deletions

View File

@@ -1,6 +1,14 @@
import { Boards } from 'mixly';
//voice part
export const VOICE_RECOGNITION_CONTROL = function (_, generator) {
var version = Boards.getSelectedBoardKey().split(':')[2];
generator.definitions_['import_' + version + '_onboard_bot'] = 'from ' + version + ' import onboard_bot';
var control = this.getFieldValue('control');
var code = 'onboard_bot.asr_en('+ control +')\n';
return code;
}
export const CI130X_IDENTIFY_AND_SAVE_SANT = function (_, generator) {
var version = Boards.getSelectedBoardKey().split(':')[2];
if(version == 'mixgo_sant'){