No commit activity in last 3 years
No release in over 3 years
Checks an utterance against an invocation keyword from the available skills and returns an Alexa formatted response to be passed to the skill's endpoint service.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.5, >= 0.5.2
>= 0.2.0, ~> 0.2
 Project Readme

Introducing the alexa_utteranceresponder gem

Usage

require 'rsc'
require 'alexa_utteranceresponder'

rsc = RSC.new('rse.home')


modelmds = ['dfs://dfs.home/www/jamesrobertson.eu/alexa/leo.txt']
userid = 'amzn1.ask.account.someid'
deviceid = "amzn1.ask.device.somedevice"
aur = AlexaUtteranceResponder.new(modelmds, userid: userid, deviceid: deviceid, debug: true)
utterance = 'ask Leo what can I say'
aur.ask(utterance) do |h|

  puts 'h: ' + h.inspect
  rsc.alexa.skillresponse.run h

end

Provide an utterance, deviceid, userid, to allow the gem to verify the utterance matches with the known skill using the invocation name. Then it runs the intent through the alexa_skillresponse gem to process the response.

Resources

alexa alexautteranceresponder