Skip to content

Instantly share code, notes, and snippets.

German Viscuso germanviscuso

View GitHub Profile
@germanviscuso
germanviscuso / es-ES.json
Created Apr 3, 2019
Alexa Skills Basic: Intent Chaining
View es-ES.json
{
"interactionModel": {
"languageModel": {
"invocationName": "feliz cumple",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
@germanviscuso
germanviscuso / es-ES.json
Last active Mar 16, 2019
Technovation Workshop (Fact es-ES)
View es-ES.json
{
"interactionModel": {
"languageModel": {
"invocationName": "curiosidades del universo",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
@germanviscuso
germanviscuso / audioconv.sh
Last active Feb 3, 2019
Audio file conversion for Alexa skills
View audioconv.sh
# 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>
View Detect display and APL support
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');
}
@germanviscuso
germanviscuso / en-US.json
Created Jan 2, 2019
Alexa Skill Basics: Reminders API using the Request library
View en-US.json
{
"interactionModel": {
"languageModel": {
"invocationName": "demo of reminders",
"types": [
],
"intents": [
{
"name": "AMAZON.CancelIntent",
@germanviscuso
germanviscuso / en-US.json
Last active Feb 20, 2019
Alexa Skill Basics: Global Persistence with the DynamoDB persistence adapter or the S3 Persistence adapter
View en-US.json
{
"interactionModel": {
"languageModel": {
"invocationName": "global persistence demo",
"intents": [
{
"name": "AMAZON.CancelIntent",
"samples": []
},
{
@germanviscuso
germanviscuso / README.MD
Created Dec 31, 2018
Enable type checking on Visual Studio Code
View README.MD
@germanviscuso
germanviscuso / script.sh
Created Dec 30, 2018
Manage multiple versions of Python (Mac OSX)
View script.sh
brew install pyenv
cd
echo 'eval "$(pyenv init -)"' >> ~/.bash_profile
source ~/.bash_profile
pyenv install -l | grep -ow [0-9].[0-9].[0-9]
pyenv install 3.7.1
pyenv versions
pyenv local 3.7.1
pyenv global 3.7.1
python -V
@germanviscuso
germanviscuso / script.sh
Created Dec 30, 2018
List the packages installed globally by npm
View script.sh
npm list -g --depth 0
View PoliticaDePrivacidadyTerminosDeUso
Política de privacidad y términos de uso de nuestra skill de Alexa
Esta política describe cómo protegemos tu privacidad y tus datos. Antes de utilizar nuestra Skills de Alexa, lee atentamente nuestras políticas y términos de uso, al igual que los términos de uso de Alexa y las políticas de privacidad de Amazon Digital Services LLC (con sus afiliadas, “Amazon).
Con respecto a Amazon, “Alexa” significa el Servicio de voz de Alexa que incluye servicios de terceros (como nuestras skills) y otro Software relacionado.
Si utilizas una de nuestras skills, acepta completamente esta política de privacidad.
GENERAL
You can’t perform that action at this time.