[ai-bridge] quick fix, added ESML support , gitignore

This commit is contained in:
2026-04-20 16:08:30 +03:00
parent 16fb3488a2
commit af84fa9dd8
8 changed files with 26 additions and 9 deletions

3
.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
/V3.1/build/ACTUALLY_OFFICIAL_SERVER_CLIENT
/V3.1/build/RobotVirtualMount

View File

@@ -1,7 +1,7 @@
{ {
"enabled": true, "enabled": true,
"mode": "TEXT", "mode": "TEXT",
"serverBaseUrl": "http://192.168.1.28:8020", "serverBaseUrl": "http://192.168.1.28:9000",
"recordSeconds": 5, "recordSeconds": 5,
"useDumpStateAudio": true, "useDumpStateAudio": true,

View File

@@ -2444,7 +2444,9 @@ AIBridge.prototype._speak = function (text) {
var ret; var ret;
try { try {
ret = self.jibo.tts.speak(String(text), { mode: self.jibo.tts.TTSMode.TEXT }); // Use SSML mode to support ESML tags (animations, pitch, breaks, etc.)
var ttsMode = self.jibo.tts.TTSMode ? self.jibo.tts.TTSMode.SSML : undefined;
ret = self.jibo.tts.speak(String(text), { mode: ttsMode });
} catch (e) { } catch (e) {
self.skill.log && self.skill.log.warn && self.skill.log.warn("AI Bridge TTS error", e); self.skill.log && self.skill.log.warn && self.skill.log.warn("AI Bridge TTS error", e);
if (rlog) { if (rlog) {

View File

@@ -12,9 +12,12 @@
"endpoint": "{service}.{region}.api.jibo.com", "endpoint": "{service}.{region}.api.jibo.com",
"wsendpoint": "ws://socket:8090" "wsendpoint": "ws://socket:8090"
}, },
"api/*": {
"endpoint": "http://192.168.1.28:9000",
"wsendpoint": "ws://192.168.1.28:9000"
},
"*/*": "globalSSL" "*/*": "globalSSL"
}, },
"patterns": { "patterns": {
"globalSSL": { "globalSSL": {
"endpoint": "https://{region}.jibo.com", "endpoint": "https://{region}.jibo.com",

View File

@@ -12,9 +12,12 @@
"endpoint": "{service}.{region}.api.jibo.com", "endpoint": "{service}.{region}.api.jibo.com",
"wsendpoint": "ws://socket:8090" "wsendpoint": "ws://socket:8090"
}, },
"api/*": {
"endpoint": "http://192.168.1.28:9000",
"wsendpoint": "ws://192.168.1.28:9000"
},
"*/*": "globalSSL" "*/*": "globalSSL"
}, },
"patterns": { "patterns": {
"globalSSL": { "globalSSL": {
"endpoint": "https://{region}.jibo.com", "endpoint": "https://{region}.jibo.com",

View File

@@ -12,9 +12,12 @@
"endpoint": "{service}.{region}.api.jibo.com", "endpoint": "{service}.{region}.api.jibo.com",
"wsendpoint": "ws://socket:8090" "wsendpoint": "ws://socket:8090"
}, },
"api/*": {
"endpoint": "http://192.168.1.28:9000",
"wsendpoint": "ws://192.168.1.28:9000"
},
"*/*": "globalSSL" "*/*": "globalSSL"
}, },
"patterns": { "patterns": {
"globalSSL": { "globalSSL": {
"endpoint": "https://{region}.jibo.com", "endpoint": "https://{region}.jibo.com",

View File

@@ -12,9 +12,12 @@
"endpoint": "{service}.{region}.api.jibo.com", "endpoint": "{service}.{region}.api.jibo.com",
"wsendpoint": "ws://socket:8090" "wsendpoint": "ws://socket:8090"
}, },
"api/*": {
"endpoint": "http://192.168.1.28:9000",
"wsendpoint": "ws://192.168.1.28:9000"
},
"*/*": "globalSSL" "*/*": "globalSSL"
}, },
"patterns": { "patterns": {
"globalSSL": { "globalSSL": {
"endpoint": "https://{region}.jibo.com", "endpoint": "https://{region}.jibo.com",

View File

@@ -16,10 +16,10 @@
"proactive_url": "/v1/proactive", "proactive_url": "/v1/proactive",
"listen_url": "/v1/listen", "listen_url": "/v1/listen",
"listen_language": "en-US", "listen_language": "en-US",
"xxx_override": { "override": {
"hub_port": 9000, "hub_port": 9000,
"hub_hostname": "172.24.84.137", "hub_hostname": "192.168.1.28",
"entrypoint_hostname": "dev-entrypoint.jibo.com" "entrypoint_hostname": "192.168.1.28"
}, },
"region-settings": { "region-settings": {
"comment": "This is a switch, selected by the 'region' field setting in the robot's /var/jibo/credentials.json file", "comment": "This is a switch, selected by the 'region' field setting in the robot's /var/jibo/credentials.json file",