aws-amplify / aws-sdk-android

AWS SDK for Android. For more information, see our web site:
https://docs.amplify.aws
Other
1.03k stars 551 forks source link

Amazon Lex - InteractiveVoiceView - Override MicrophoneListener #383

Closed MichZipp closed 6 years ago

MichZipp commented 6 years ago

Hi,

I'm using Amazon Lex and I'm wondering, if it is possible to override the MicrophoneListener. In my case, I would like to implement my own logic, if the user didn't respond within the speech time out limit.

Greetings, Michael

mutablealligator commented 6 years ago

Hi @MichZipp, Are you trying to create a class that implements MicrophoneListener and let the new listener be used by the SDK?

MichZipp commented 6 years ago

Yes exactly! The implementation of my own MicrophoneListener isn't the Problem. But how can I set the Listener in my main Activity? For the Voice Interaction I use the InteractiveVoiceView, which only provides a method to set the InteractiveVoiceListener.

MichZipp commented 6 years ago

Problem solved, I used the InteractionClient instead of the InteractiveVoiceView!