Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Beamup mod #3

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions Step-0-Initialize-your-Ship-Commander/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ const LaunchRequestHandler = {
&& handlerInput.requestEnvelope.request.intent.name === 'ReturnHomeIntent');
},
handle(handlerInput) {
const speechText = "Welcome to the Ship Commander skill. You are the captain of our space exploration. "
+ "To get started you can say things like, analyze the ship status or read the captains log. "
+ "Time to embark on an adventure into the unknown!";
const speechText = "Welcome Captain. You are now in command of the Starship YummyFries, in it's "
+ "continuing mission to seek out new sources of french fries and new ways to cook them. "
+ "To get started, you can say things like, analyze the ship status or read the captains log. "
+ "Time to embark on another adventure into the unknown!";

return handlerInput.responseBuilder
.speak(speechText)
Expand Down Expand Up @@ -74,7 +75,7 @@ const BeamMeUpIntentHandler = {
&& handlerInput.requestEnvelope.request.intent.name === 'BeamMeUpIntent';
},
handle(handlerInput) {
const speechText = "Prepare to beam. Engage.";
const speechText = "Initializing transport process. Transporting... Wait... I forgot to beam up your clothes... One second, Captain... Beam process successful!";

return handlerInput.responseBuilder
.speak(speechText)
Expand Down
5 changes: 1 addition & 4 deletions Step-1-Add-SSML-Sound-Effects-and-Amazon-Polly/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@ const BeamMeUpIntentHandler = {
&& handlerInput.requestEnvelope.request.intent.name === 'BeamMeUpIntent';
},
handle(handlerInput) {
const speechText = "<voice name='Amy'>Prepare to beam "
+ "<audio src='soundbank://soundlibrary/scifi/amzn_sfx_scifi_engines_on_large_01'/> "
+ "Engage</voice> "
+ "<audio src='soundbank://soundlibrary/scifi/amzn_sfx_scifi_engines_on_short_burst_01'/>";
const speechText = "Initializing transport process. Transporting... <audio src='soundbank://soundlibrary/alarms/buzzers/buzzers_06'/> Wait... I forgot to beam up your clothes... One second, Captain... <audio src='soundbank://soundlibrary/alarms/beeps_and_bloops/boing_02'/> Beam process successful!";

return handlerInput.responseBuilder
.speak(speechText)
Expand Down