英語も発話しなくなった
This commit is contained in:
@@ -128,20 +128,22 @@ app.post('/speak', async function(req, res) {
|
|||||||
|
|
||||||
console.log(' -> ' + target.accountName + ' (type=' + target.deviceType + ', serial=' + target.serialNumber + ')');
|
console.log(' -> ' + target.accountName + ' (type=' + target.deviceType + ', serial=' + target.serialNumber + ')');
|
||||||
|
|
||||||
var sequenceObj = {
|
var ssml = '<speak>' + text + '</speak>';
|
||||||
|
|
||||||
|
var sequenceObj = {
|
||||||
'@type': 'com.amazon.alexa.behaviors.model.Sequence',
|
'@type': 'com.amazon.alexa.behaviors.model.Sequence',
|
||||||
startNode: {
|
startNode: {
|
||||||
'@type': 'com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode',
|
'@type': 'com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode',
|
||||||
type: 'Alexa.SpeakSsml', // ← ここ変更
|
type: 'Alexa.SpeakSsml',
|
||||||
operationPayload: {
|
operationPayload: {
|
||||||
deviceType: target.deviceType,
|
deviceType: target.deviceType,
|
||||||
deviceSerialNumber: target.serialNumber,
|
deviceSerialNumber: target.serialNumber,
|
||||||
customerId: customerId,
|
customerId: customerId,
|
||||||
locale: 'ja-JP',
|
locale: 'ja-JP',
|
||||||
textToSpeak: text
|
textToSpeak: ssml
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
var bodyStr = JSON.stringify({
|
var bodyStr = JSON.stringify({
|
||||||
behaviorId: 'PREVIEW',
|
behaviorId: 'PREVIEW',
|
||||||
|
|||||||
Reference in New Issue
Block a user