Open Nitinvermaa opened 3 years ago
Hi Team,
I tried with Multi-step requests, but I'm getting 'NoneType' object has no attribute 'request' error. Below is my code.
Code
from alexa_client import AlexaClient from alexa_client.alexa_client import helpers
client = AlexaClient( client_id='amzn1.application-oa2-client.ce399dfcf5c958b66c5d0c4cd1b03', secret='53a7c2f016764402f6c4bcf53ce7e8a0f47b9a37dfa46bf2fb31e3ccf099', refresh_token='Atzr|IwEBIEiWGBIY5fgZPrjzbdLgJfGdHInC6gDOTgTTGuCMM2H9aQWQ-7MZFn9NUmZXn-B_IHrRhG1WAi4geiE6PbohWIY81cMtK0tFAkYzkhGMDQNNXDoVMsVk1rTNr354ZopD3IQ5r1WSko8XzHLir-RskaaUERKyqEsOIEvqYlozmP6VjELnAJvglQYawtJFSf24QUsF24jYROqUXdZ87eIudvWWMh-i37D25fWLQo230LzLf5D9IABshQs7nra3PFF2cacKUcRkZ3IL3op7738tPzxf4q32GGECsvi5lXQHk0NlYU7JgjIa-adoKSIToE9ZHV2kf2-XB5jdqlpelMBeoB6d8wH9XjXB4ZpP-RNNx9EEAaP9p7YJ04EMY', )
dialog_request_id = helpers.generate_unique_id() directives_one = client.send_audio_file('C:/Users/nitin.verma/PycharmProjects/AwsPolly/resources/alexa_what_time_is_it.wav', dialog_request_id=dialog_request_id) directives_two = client.send_audio_file('C:/Users/nitin.verma/PycharmProjects/AwsPolly/resources/alexa_go_to_dark_forest.wav', dialog_request_id=dialog_request_id) directives_three = client.send_audio_file('C:/Users/nitin.verma/PycharmProjects/AwsPolly/resources/alexa_harumph.wav', dialog_request_id=dialog_request_id)
Hi Team,
I tried with Multi-step requests, but I'm getting 'NoneType' object has no attribute 'request' error. Below is my code.
Code
from alexa_client import AlexaClient from alexa_client.alexa_client import helpers
client = AlexaClient( client_id='amzn1.application-oa2-client.ce399dfcf5c958b66c5d0c4cd1b03', secret='53a7c2f016764402f6c4bcf53ce7e8a0f47b9a37dfa46bf2fb31e3ccf099', refresh_token='Atzr|IwEBIEiWGBIY5fgZPrjzbdLgJfGdHInC6gDOTgTTGuCMM2H9aQWQ-7MZFn9NUmZXn-B_IHrRhG1WAi4geiE6PbohWIY81cMtK0tFAkYzkhGMDQNNXDoVMsVk1rTNr354ZopD3IQ5r1WSko8XzHLir-RskaaUERKyqEsOIEvqYlozmP6VjELnAJvglQYawtJFSf24QUsF24jYROqUXdZ87eIudvWWMh-i37D25fWLQo230LzLf5D9IABshQs7nra3PFF2cacKUcRkZ3IL3op7738tPzxf4q32GGECsvi5lXQHk0NlYU7JgjIa-adoKSIToE9ZHV2kf2-XB5jdqlpelMBeoB6d8wH9XjXB4ZpP-RNNx9EEAaP9p7YJ04EMY', )
dialog_request_id = helpers.generate_unique_id() directives_one = client.send_audio_file('C:/Users/nitin.verma/PycharmProjects/AwsPolly/resources/alexa_what_time_is_it.wav', dialog_request_id=dialog_request_id) directives_two = client.send_audio_file('C:/Users/nitin.verma/PycharmProjects/AwsPolly/resources/alexa_go_to_dark_forest.wav', dialog_request_id=dialog_request_id) directives_three = client.send_audio_file('C:/Users/nitin.verma/PycharmProjects/AwsPolly/resources/alexa_harumph.wav', dialog_request_id=dialog_request_id)