智能相关 S3和C2修改
This commit is contained in:
@@ -24,8 +24,6 @@ export const init_xunfei_vi = {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
export const init_xunfei_Spark_Ultra = {
|
||||
init: function () {
|
||||
this.setColour(AI_CLOUD_VOICE_HUE);
|
||||
@@ -64,6 +62,31 @@ export const init_xunfei_Spark_Ultra = {
|
||||
}
|
||||
};
|
||||
|
||||
export const init_xunfei_Chinese_Model = {
|
||||
init: function () {
|
||||
this.setColour(AI_CLOUD_VOICE_HUE);
|
||||
this.appendValueInput('VAR')
|
||||
.appendField(Blockly.Msg.MIXLY_MICROPYTHON_SOCKET_MAKE);
|
||||
this.appendDummyInput()
|
||||
.appendField(Blockly.Msg.MIXLY_SETUP + Blockly.Msg.MIXLY_AS + Blockly.Msg.MIXLY_XUFEI+Blockly.Msg.MIXLY_CHINESE_RECOGNIZION+Blockly.Msg.MIXLY_LARGE_LANGUAGE_MODEL );
|
||||
this.appendValueInput('APPID')
|
||||
.setCheck(String)
|
||||
.appendField('APPID');
|
||||
this.appendValueInput('APISecret')
|
||||
.setCheck(String)
|
||||
.appendField('APISecret');
|
||||
this.appendValueInput('APIKey')
|
||||
.setCheck(String)
|
||||
.appendField('APIKey');
|
||||
this.appendValueInput('HW')
|
||||
.setCheck(String)
|
||||
.appendField(Blockly.Msg.MIXLY_HOT_WORD + 'ID');
|
||||
this.setInputsInline(true);
|
||||
this.setPreviousStatement(true);
|
||||
this.setNextStatement(true);
|
||||
}
|
||||
};
|
||||
|
||||
export const xunfei_vi_run = {
|
||||
init: function () {
|
||||
this.setColour(AI_CLOUD_VOICE_HUE);
|
||||
|
||||
@@ -370,11 +370,21 @@ export const GET_PICTURE_DATA_EXACT = {
|
||||
this.setColour(AI_LOCAL_GRAPH_HUE);
|
||||
this.appendDummyInput()
|
||||
.appendField(Blockly.Msg.MIXLY_GET_PICTURE_DATA)
|
||||
// .appendField(new Blockly.FieldDropdown([
|
||||
// ["RGB565" + Blockly.Msg.MIXLY_SD_DATA,"0"],
|
||||
// ["JPG" + Blockly.Msg.MIXLY_SD_DATA,"1"],
|
||||
// [Blockly.Msg.MIXLY_JPG_base64_CODE + Blockly.Msg.MIXLY_SD_DATA ,"2"]
|
||||
// ]),"kind")
|
||||
this.setOutput(true);
|
||||
this.setInputsInline(true);
|
||||
}
|
||||
};
|
||||
|
||||
export const GET_PICTURE_WIDTH_HEIGHT_DEVICE = {
|
||||
init: function () {
|
||||
this.setColour(AI_LOCAL_GRAPH_HUE);
|
||||
this.appendDummyInput()
|
||||
.appendField(Blockly.Msg.MIXLY_GET)
|
||||
.appendField(new Blockly.FieldDropdown([
|
||||
[Blockly.Msg.MIXLY_SMARTCAMERA+Blockly.Msg.MIXLY_MICROBIT_IMAGE+Blockly.Msg.MIXLY_WIDTH,"get_pixel_width"],
|
||||
[Blockly.Msg.MIXLY_SMARTCAMERA+Blockly.Msg.MIXLY_MICROBIT_IMAGE+Blockly.Msg.MIXLY_HEIGHT,"get_pixel_height"],
|
||||
[Blockly.Msg.MIXLY_SMARTCAMERA+Blockly.Msg.MIXLY_MODEL_NUMBER,"get_sensor_name"]
|
||||
]),"kind")
|
||||
this.setOutput(true);
|
||||
this.setInputsInline(true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user