问题修改

This commit is contained in:
Irene-Maxine
2025-07-03 22:30:10 +08:00
parent 7e8da836f3
commit 2addeae14f
7 changed files with 38 additions and 4 deletions

View File

@@ -18,6 +18,20 @@ export const VOICE_RECOGNITION_CONTROL = {
this.setInputsInline(true);
}
}
export const CI130X_OPEN_AND_CLOSE = {
init: function () {
this.setColour(AI_LOCAL_VOICE_HUE);
this.appendDummyInput("")
.appendField(Blockly.Msg.MIXLY_AipSpeech_asr)
.appendField(new Blockly.FieldDropdown([
[Blockly.Msg.MIXLY_ON,"1"],
[Blockly.Msg.MIXLY_OFF,"0"]
]),"status")
this.setPreviousStatement(true);
this.setNextStatement(true);
this.setInputsInline(true);
}
}
export const CI130X_IDENTIFY_AND_SAVE_SANT = {
init: function () {
@@ -116,7 +130,8 @@ export const CI130X_GET_THE_RECOGNIZED_CMD_SANT = {
.appendField(new Blockly.FieldDropdown([
[Blockly.Msg.MIXLY_RECOGNIZED_STATE, "status1"],
[Blockly.Msg.MIXLY_WHETHER_BROADCAST, "status2"],
[Blockly.Msg.MIXLY_THE_RECOGNIZED_CMD, "result"]
[Blockly.Msg.MIXLY_THE_RECOGNIZED_CMD, "result"],
[Blockly.Msg.MIXLY_ENABLE_STATUS,"status3"]
]), "key")
this.setOutput(true);
this.setInputsInline(true);