sant 加语音合成

This commit is contained in:
whm1216
2025-12-04 21:24:43 +08:00
parent f9536ed279
commit 0c56f02226
6 changed files with 49 additions and 1 deletions

View File

@@ -127,6 +127,17 @@ export const CI130X_BROADCAST_SYSTEM_TIME = function (_, generator) {
return code;
}
export const CI130X_PLAY_SYSTEM_CMD_SANT = function (_, generator) {
var version = Boards.getSelectedBoardKey().split(':')[2];
if(version == 'mixgo_sant'){
generator.definitions_['import_sant_tts'] = 'import sant_tts';
var text = generator.valueToCode(this, 'text', generator.ORDER_ATOMIC) || '"你们,米思齐"';
var speed = this.getFieldValue('speed') || '3';
var code = 'sant_tts.play(' + text + ', speed=' + speed + ')\n';
}
return code;
}
//graph part
export const CREATE_CAMERA = function (_, generator) {
var version = Boards.getSelectedBoardKey().split(':')[2];