Hi All,
Can some one help me on - Progressive response using new sdk with python 3.6.
here is my sample code - but i am not aware how to create directive
def _progressive_response_(handler_input): #Call Alexa Directive Service. requestEnvelope = handler_input.request_envelope directiveServiceClient = handler_input.service_client_factory.get_directive_service() requestId = requestEnvelope.request.request_id endpoint = handler_input.request_envelope.context.system.api_endpoint accessToken = handler_input.request_envelope.context.system.api_access_token # main problem for me here - how to generate directive object for progressive response ( i am new to python) directive = ( header = { requestId, }, directive = { 'type' : 'VoicePlayer.Speak', 'speech' : 'your request is in progress please wait for few secs' } ) #send directive return directiveServiceClient.enqueue(directive,endpoint,accessToken)
Regards,
Rama