Category : alexa

I need to fill the slot value of intent depending on some conditions. I referred to the following documentation. https://developer.amazon.com/en-US/docs/alexa/custom-skills/delegate-dialog-to-alexa.html#node_delegate_default_values_example In this document, they do something like this. // fromCity.value is empty if the user has not filled the slot. In this example, // getUserDefaultCity() retrieves the user’s default city from persistent storage. if (!fromCity.value) ..

Read more

I’m making a virtual assistant project and when I say something and the command is done pyttsx3 is not waiting enough time to listen to the speech I’m saying import pyttsx3 import speech_recognition as sr import time listener = sr.Recognizer() engine = pyttsx3.init() voices = engine.getProperty(‘voices’) engine.setProperty(‘voice’ , voices[1].id) rate = 160 engine.setProperty(‘rate’, rate) engine.say(‘Hi, ..

Read more

I’m trying to make an alexa skill that checks if the slot value informed exists in an external API. This functionality will serve as an authentication. Until now, this is what I have: class VerificarCpfIntent(AbstractRequestHandler): """Handler for Verificar CPF Intent.""" def can_handle(self, handler_input): # type: (HandlerInput) -> bool return is_intent_name("VerificarCpfIntent")(handler_input) def handle(self, handler_input): # type: ..

Read more