code --diff file1.cs file2.cs
git config --global diff.tool vscode git config --global difftool.vscode.cmd "code --wait --diff $LOCAL $REMOTE"
git config --global core.editor "code --wait"
How do I set up an Alexa-hosted skill to use resources on a personal AWS account? | |
With the AWS Lambda execution role ARN, you can seamlessly use resources on a personal AWS account to expand the functionality of your Alexa-hosted skill. For example, you can connect the Alexa-hosted skill to an Amazon DynamoDB table. Take the following steps to set up your Alexa-hosted skill to use resources on a personal AWS account: | |
In the Alexa developer console, open your Alexa-hosted skill, and then in the code editor click the icon that has hover text AWS Lambda Role Execution ARN. Copy the ARN. | |
If you have not done so already, on your personal AWS account, in the Identity and Access Management (IAM) dashboard, create a role that allows access to the resource that you want your Alexa-hosted skill to access. | |
In the IAM dashboard, click Roles, click the name of the role you want to edit, and then click the Trust relationships tab. | |
Edit the trust relationship to include the sts:AssumeRole action, and specify the AWS Lambda |
module.exports = Object.freeze({ | |
translation: { | |
welcome: 'Howdy', | |
images: [ | |
{ | |
background: 'https://image/en-US.png' | |
}, | |
{ | |
background: 'https://image/en-US2.png' | |
}, |
sendProgressiveResponseMessage("Please wait!", handlerInput); | |
public static void sendProgressiveResponseMessage(final String message, | |
final HandlerInput handlerInput){ | |
final SpeakDirective speakDirective = SpeakDirective.builder() | |
.withSpeech(message) | |
.build(); | |
final String requestId = handlerInput.getRequestEnvelope().getRequest().getRequestId(); |
const APLHomeCardRequestInterceptor = { | |
process(handlerInput) { | |
const withSimpleCard = handlerInput.responseBuilder.withSimpleCard; | |
const withStandardCard = handlerInput.responseBuilder.withStandardCard; | |
function withSimpleAPLCard(cardTitle, cardContent){ | |
if(supportsAPL(handlerInput)){ | |
handlerInput.responseBuilder.addDirective({ | |
type: 'Alexa.Presentation.APL.RenderDocument', | |
version: '1.0', | |
document: APLDoc, |
code --diff file1.cs file2.cs
git config --global diff.tool vscode git config --global difftool.vscode.cmd "code --wait --diff $LOCAL $REMOTE"
git config --global core.editor "code --wait"
{ | |
"interactionModel": { | |
"languageModel": { | |
"invocationName": "feliz cumple", | |
"intents": [ | |
{ | |
"name": "AMAZON.CancelIntent", | |
"samples": [] | |
}, | |
{ |
This document covers how to use Dynamo DB persistence in your Alexa skill using a direct connection the AWS SDK rather than using the ASK SDK persistence adapter (you can see how to use the adapter here).
This readme assumes you have your developer environment ready to go and that you have some familiarity with CLI (Command Line Interface) Tools, AWS, and the ASK Developer Portal.
{ | |
"interactionModel": { | |
"languageModel": { | |
"invocationName": "curiosidades espaciales", | |
"intents": [ | |
{ | |
"name": "AMAZON.CancelIntent", | |
"samples": [] | |
}, | |
{ |
# Convert audio to SSML compatible mp3 | |
ffmpeg -i <input-file> -ac 2 -codec:a libmp3lame -b:a 48k -ar 16000 <output-file.mp3> | |
# Normalize audio | |
ffmpeg -i <input-file.mp3> -af loudnorm=I=-14:TP=-3:LRA=11:print_format=json -b:a 48k -ar 16000 <output-file.mp3> | |
# Do both at the same time | |
ffmpeg -i <input-file.mp3> -ac 2 -codec:a libmp3lame -af loudnorm=I=-16:TP=-3:LRA=11:print_format=json -b:a 48k -ar 16000 <output-file.mp3> |
function supportsDisplay(handlerInput) { | |
// returns true if the skill is running on a device with a display (Echo Show, Echo Spot, etc.) | |
// Enable your skill for display as shown here: https://alexa.design/enabledisplay | |
return handlerInput.requestEnvelope.context && | |
handlerInput.requestEnvelope.context.System && | |
handlerInput.requestEnvelope.context.System.device && | |
handlerInput.requestEnvelope.context.System.device.supportedInterfaces && | |
handlerInput.requestEnvelope.context.System.device.supportedInterfaces.Display && | |
handlerInput.requestEnvelope.context.System.device.supportedInterfaces.hasOwnProperty('Alexa.Presentation.APL'); | |
} |