英語も発話しなくなった

This commit is contained in:
Akira
2026-03-03 10:54:38 +09:00
parent 9eb3c41584
commit dcbf599015

View File

@@ -128,20 +128,22 @@ app.post('/speak', async function(req, res) {
console.log(' -> ' + target.accountName + ' (type=' + target.deviceType + ', serial=' + target.serialNumber + ')');
var sequenceObj = {
'@type': 'com.amazon.alexa.behaviors.model.Sequence',
startNode: {
'@type': 'com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode',
type: 'Alexa.SpeakSsml', // ← ここ変更
operationPayload: {
deviceType: target.deviceType,
deviceSerialNumber: target.serialNumber,
customerId: customerId,
locale: 'ja-JP',
textToSpeak: text
},
},
};
var ssml = '<speak>' + text + '</speak>';
var sequenceObj = {
'@type': 'com.amazon.alexa.behaviors.model.Sequence',
startNode: {
'@type': 'com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode',
type: 'Alexa.SpeakSsml',
operationPayload: {
deviceType: target.deviceType,
deviceSerialNumber: target.serialNumber,
customerId: customerId,
locale: 'ja-JP',
textToSpeak: ssml
},
},
};
var bodyStr = JSON.stringify({
behaviorId: 'PREVIEW',