Skip to content

Commit

Permalink
Fix ssml and remove invocation name
Browse files Browse the repository at this point in the history
Change-Id: Iaaad7290caf0ac92a25992d283e8d2f390b2906c
  • Loading branch information
Leon Nicholls committed Nov 29, 2016
1 parent e632e78 commit 85f3802
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
3 changes: 0 additions & 3 deletions agent.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
"agentInfo": {
"languageCode": "en-US",
"projectId": "hello",
"invocationNames": [
"Hello Action"
],
"voiceName": "male_1",
"privateKey": "MY_SECRET_KEY"
},
Expand Down
7 changes: 2 additions & 5 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ app.post('/', function (request, response) {
console.log('mainIntent');
let inputPrompt = assistant.buildInputPrompt(true, '<speak>Hi! <break time="1"/> ' +
'I can read out an ordinal like ' +
'<say-as interpret-as="ordinal">123</say-as></speak>');
'<say-as interpret-as="ordinal">123</say-as>. Say a number.</speak>');
assistant.ask(inputPrompt, [{'intent': RAW_INTENT}]);
}

Expand All @@ -51,10 +51,7 @@ app.post('/', function (request, response) {
if (assistant.getRawInput() === 'bye') {
assistant.tell('Goodbye!');
} else {
let inputPrompt = assistant.buildInputPrompt(true, '<speak>You said, ' + assistant.getRawInput() +
'<break time="2" /> ' +
'<audio src="https://storage.googleapis.com/agent-compat-ssml-demo.appspot.com/sounds/airplane_1.wav">' +
'an audio file</audio></speak>');
let inputPrompt = assistant.buildInputPrompt(true, '<speak>You said, <say-as interpret-as="ordinal">' + assistant.getRawInput() + '</say-as></speak>');
assistant.ask(inputPrompt, [{'intent': RAW_INTENT}]);
}
}
Expand Down

0 comments on commit 85f3802

Please sign in to comment.