alexa / avs-device-sdk

An SDK for commercial device makers to integrate Alexa directly into connected products.
https://developer.amazon.com/alexa/alexa-voice-service
Apache License 2.0
1.26k stars 604 forks source link

wakeword indices sometimes fails after around 30 iterations #304

Closed simplistiq closed 6 years ago

simplistiq commented 7 years ago

Hello, We are observing a failure when we send wake-word indices in the JSON profile.

I keep a counter tracking the totalNumberOfBytes that are sent and then increment the start and the end indices by the 1/2 the number of bytes read. For us, 1 sample = 2 bytes. (16000). So I simply supply these values to the AIP. However, I do not reset them at all.

I am checking the spoken output on the web as well. https://alexa.amazon.com/spa/index.html#cards

After around 20 to 30 iterations, I see that I get a stop capture immediately while I am speaking.

Questions:

  1. Is there any reset of the indices required?
  2. I am seeing this more prominently if there is an issue in the command spoken i.e. if Alexa does not understand it and it responds without the command audio not seen in the Web URL. For example, if I speak simple commands it appears that everything goes on fine but as soon as the cloud fails to respond, I see this issue happening

Can you shed some light into this issue?

Here are the logs. The start indices is 2955200, end indices is 2965119.

I have added debug logs inside Reader::seek method. Using SDK 1.1

Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: ######################QTISoundTrigger::keywordRecognizedWithIndices()########################## ALEXA, 2955200, 2965119 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: [1B blob data] Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: QTISoundTrigger::onKeyWordDetected - KEYWORD DETECTED = 33 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: QTISoundTrigger::onKeyWordDetected WITH INDICES START = 2955200 END = 2965119 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: QTISoundTrigger::onKeyWordDetected() - m_client->notifyOfWakeWord() Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: QSTHWClient::getDOADirection() - [Session:1] in get parameters 0 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: [Session:1] param to get st_direction_of_arrival Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: process_get_param_data: target angle boundaries [50, 90] Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: QSTHWClient::getChannelIndex() - [Session:1] in get parameters 0 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: [Session:1] param to get st_channel_index Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: process_get_param_data: procsesing channel index params Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: process_get_param_data: target channel index - [1] Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: ######################## ABSOLUTE position ##############2736000 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: ######################## writeStartCursor position ##############2976000 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: ######################## ABSOLUTE position ##############2947200 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: ######################## writeStartCursor position ##############2976000 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: 2017-11-03 18:29:36.588 [ 3] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=7df4e64a-5dfa-4b89-b0e2-6ab23b118f6f,newValue=ec8deeee-7fbf-46b2-ad92-2d2b26c50e5f Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: ############################ Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: # Listening... # Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: ############################ Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: UIManager::onDialogUXStateChanged state = LISTENING Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: InteractionManager::onDialogUXStateChanged to LISTENING Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: QTISoundTrigger::getDOADirection() - DOA - m_dOAIndex = 1 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: LISTENING - DOA Index = 1 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: setAllON Called Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: setLEDState Called Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: LED file path : /sys/class/leds/ledsec1_g/brightnessQTISoundTrigger::onKeyWordDetected - startRecognition = 1 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: lab capture file : /data/SVA/lab_capture_file_1 Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: Starting LAB capture Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: setLEDState Called Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: LED file path : /sys/class/leds/ledsec2_g/brightness Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: setLEDState Called Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: LED file path : /sys/class/leds/ledsec3_g/brightness Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: setLEDState Called Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: LED file path : /sys/class/leds/ledsec4_g/brightness Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: setLEDState Called Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: LED file path : /sys/class/leds/ledsec5_g/brightness Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: setLEDState Called Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: LED file path : /sys/class/leds/ledsec6_g/brightness Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: setLEDState Called Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: LED file path : /sys/class/leds/ledsec7_g/brightness Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: setLEDState Called Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: LED file path : /sys/class/leds/ledsec8_g/brightness Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: setLEDState Called Nov 03 18:29:36 apq8017 AlexaClientApp[2498]: LED file path : /sys/class/leds/ledsec9_g/brightness Nov 03 18:29:37 apq8017 AlexaClientApp[2498]: 2017-11-03 18:29:37.592 [ 4] I DirectiveSequencer:onDirective:directive={"namespace\:"SpeechRecognizer"\,name\:"StopCapture"\,messageId\:"3ffd7b5a-163f-4d02-94e8-b043a197ed7d"\,dialogRequestId\:""} Nov 03 18:29:37 apq8017 AlexaClientApp[2498]: 2017-11-03 18:29:37.592 [ 5] I DirectiveRouter:preHandleDirective:messageId=3ffd7b5a-163f-4d02-94e8-b043a197ed7d,action=calling Nov 03 18:29:37 apq8017 AlexaClientApp[2498]: 2017-11-03 18:29:37.593 [ 6] I DirectiveRouter:handleDirective:messageId=3ffd7b5a-163f-4d02-94e8-b043a197ed7d,action=calling

frozenberg commented 7 years ago

Hi @simplistiq,

When sending up wakeword indices to AVS, 500ms of pre-roll is required (as per https://developer.amazon.com/docs/alexa-voice-service/streaming-requirements-for-cloud-based-wake-word-verification.html)

Maybe including a pre-roll will fix your issues? Check AudioInputProcessor.cpp (specifically executeRecognize()) for a working example of incorporating a pre-roll.

simplistiq commented 7 years ago

Hi frozenberg, Thanks. I have added the pre-roll. Is the reset of the indices on the application side required? Or is it handled by the reader? This is the sequence as an example.

lastIndexPosition = 0;

==> App starts Iteration 1: [start, end] = [8000, 16639] bytes read = 109440 lastIndexPosition = lastIndexPosition + 54720 [this is per the whole spoken text] = 54720

Iteration 2: <the pre-roll of 8000 is added to be 62720> [start, end] = [62720, 71039] bytes read = 151680 lastIndexPosition = lastIndexPosition + (151680/2) = 130560

frozenberg commented 7 years ago

No, the indices are into the SharedDataStream. These indices end up being derived from cursors into the SDS, which are never reset. There should be no need to reset them unless your application is running for extremely long.

simplistiq commented 7 years ago

Thanks frozenberg. Then there is an issue in the SDK. It may not appear for a regular sequence but trying long enough it happens.

Do you see anything missing in the logic I pasted below?

==> App starts Iteration 1: [start, end] = [8000, 16639] bytes read = 109440 lastIndexPosition = lastIndexPosition + 54720 [this is per the whole spoken text] = 54720

Iteration 2: <the pre-roll of 8000 is added to be 62720> [start, end] = [62720, 71039] bytes read = 151680 lastIndexPosition = lastIndexPosition + (151680/2) = 130560

==> Sequence continues ..

frozenberg commented 7 years ago

Shouldn't the preroll be being subtracted?

simplistiq commented 7 years ago

It is subtracted in the AudioInputProcessor.cpp. The "begin" has the preroll subtraction. Last line of the if statement.

Snippet from AudioInputProcessor::executeRecognize(...)

if (falseWakewordDetection) { // clang-format off initiatorPayloadJson << R"("wakeWordIndices":{)" R"("startIndexInSamples":)" << preroll << R"(,)" R"("endIndexInSamples":)" << preroll + end - begin << R"(})"; // clang-format on begin -= preroll; }

simplistiq commented 7 years ago

Hi, Can you please comment? Our test sequence is getting blocked because of these issues. Is it possible that since the buffer is not empty in the SDK (as it is circular), there is a sample that immediately causes end-of-speech to be detected?

I am not sure what I can do on the client side other than incrementing the indices. The indices are rightly positioned because I can see exactly what I have spoken on the alexa URL on the web. It just happens after like 30 iterations or so that I immediately receive a STOP CAPTURE (See discussion above). Looking at the sample code of the Sensory Application it is similar in approach.

Any help is appreciated.

sanjayrd commented 7 years ago

Hey @simplistiq,

It's a bit hard to tell what exactly may be the issue just from here. Would it be possible for you to provide us some x-amzn-requestids? Ideally, a few that show the successful iterations and then finally the failure. This way, we can take a look at the server logs to debug more.

Thanks, Sanjay

simplistiq commented 7 years ago

I just tried it on 1.2. I see it happening here as well.

Success dialog_request_id

dialog_request_id = 6ce6b1e3-e5e7-4346-8ea3-714f024b9eb9 x-amzn-requestids = 0a980afffe419492-00002331-0006b496-7ce8f932098cf91f-816f57a6-83

dialog_request_id = 450def2d-2fa9-4fb6-8ac5-a3e97e23fbe5 x-amzn-requestids = 0a980afffe419492-00002331-0006b496-7ce8f932098cf91f-816f57a6-101

+dialog_request_id = f93f8942-db9e-44b8-8ae7-60ccdc46a9c4 x-amzn-requestids = 0a980afffe419492-00002331-0006b496-7ce8f932098cf91f-816f57a6-113

Failed Dialog_Request_Id. There is no SPEAK directive received.

Logs below. Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: [1] Callback event received: 0 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: [1] Event detection timestamp 0 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: event_handler_thread: Success to acquire qti lock Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: [1] session params 0x2b6200, 5700 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: offset 1096, size 40 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: detection event status 0 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: detection event timestamp 0 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: version 1 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: [0]: key 0 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: key version 1 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: key size 4 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: conf levels 3 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: [0] kw_id level 99 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: [1] kw_id level 0 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: [2] kw_id level 0 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: [1]: key 1 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: key version 1 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: key size 8 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: class level keyword start index 2993280, last utterance index 2985280 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: keyword start index 8000 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: class level keyword stop index 3003199, last utterance index 2985280 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_detection_event: keyword stop index 17919 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: capture LAB data Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: Inside capture_lab_data Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: sample rate 16000, channels 1, samp sz 2, duration 5700 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: , total_bytes_to_read 182400 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: indices [start,end] [2993280,3003199] Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: calling keywordRecognizedWithIndices() 2993280 3003199 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: ######################QTISoundTrigger::keywordRecognizedWithIndices()########################## ALEXA, 2993280, 3003199 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: [1B blob data] Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: QTISoundTrigger::onKeyWordDetected - KEYWORD DETECTED = 36 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: QTISoundTrigger::onKeyWordDetected WITH INDICES START = 2993280 END = 3003199 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: QTISoundTrigger::onKeyWordDetected() - m_client->notifyOfWakeWord() Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: QSTHWClient::getDOADirection() - [Session:1] in get parameters 0 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: [Session:1] param to get st_direction_of_arrival Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_get_param_data: target angle boundaries [50, 90] Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: QSTHWClient::getChannelIndex() - [Session:1] in get parameters 0 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: [Session:1] param to get st_channel_index Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_get_param_data: procsesing channel index params Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: process_get_param_data: target channel index - [1] Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.248 [ a] 0 AudioInputProcessor:setState:from=IDLE,to=RECOGNIZING Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.249 [ d] 0 DialogUXStateAggregator:setState:from=IDLE,to=LISTENING Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.249 [ 6] 9 SpeakerManager:provideStateCalled Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: QTISoundTrigger::onKeyWordDetected - startRecognition = 1 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: lab capture file : /data/SVA/lab_capture_file_1 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: Starting LAB capture Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.250 [ 8] 9 SpeakerManager:executeProvideStateCalled Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.250 [ 8] 9 MediaPlayer:getSpeakerSettingsCalled Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: ############################ Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: # Listening... # Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: ############################ Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: UIManager::onDialogUXStateChanged state = LISTENING Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: InteractionManager::onDialogUXStateChanged to LISTENING Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: QTISoundTrigger::getDOADirection() - DOA - m_dOAIndex = 1 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: LISTENING - DOA Index = 1 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: setAllON Called Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec1_g/brightness Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.250 [ 2] 9 MediaPlayer:handleGetSpeakerSettingsCalled Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec2_g/brightness Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec3_g/brightness Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec4_g/brightness Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec5_g/brightness Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec6_g/brightness Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec7_g/brightness Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec8_g/brightness Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec9_g/brightness Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.253 [ 8] 9 MediaPlayer:getSpeakerSettingsCalled Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.253 [ 2] 9 MediaPlayer:handleGetSpeakerSettingsCalled Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.253 [ 8] 9 SpeakerManager:validateSpeakerSettingsConsistencyResult:consistent=true Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.254 [ 8] 9 SpeakerManager:validateSpeakerSettings:volume=10,mute=false Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.254 [ 8] 0 ContextManager:updateStateLocked:action=updatedState,state={"volume"\:10\,"muted"\:false},namespace=Speaker,name=VolumeState Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.254 [ 6] 0 ContextManager:buildContextSuccessful:context={"context"\:[{"header"\:{"namespace"\:"Speaker"\,"name"\:"VolumeState"}\,"payload"\:{"volume"\:10\,"muted"\:false}}\,{"header"\:{"namespace"\:"AudioPlayer"\,"name"\:"PlaybackState"}\,"payload"\:{"token"\:""\,"offsetInMilliseconds"\:0\,"playerActivity"\:"IDLE"}}\,{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"SpeechState"}\,"payload"\:{"token"\:"amzn1.as-ct.v1.Domain\:Application\:Weather#ACRI#9114402a-c1cc-414c-9928-665f0ba36f48#Alexa3P\:1.0/2017/11/06/20/c58470eef20d40ada536637eb9e08e02/42\:36\:\:TNIH_2V.433d2e2b-63bd-476c-988d-060d95a3cc3eZXV/0"\,"offsetInMilliseconds"\:0\,"playerActivity"\:"FINISHED"}}\,{"header"\:{"namespace"\:"Alerts"\,"name"\:"AlertsState"}\,"payload"\:{"allAlerts"\:[]\,"activeAlerts"\:[]}}\,{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"RecognizerState"}\,"payload"\:{"wakeword"\:"ALEXA"}}]} Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.254 [ a] 0 AudioInputProcessor:executeOnContextAvailable:jsonContext={"context"\:[{"header"\:{"namespace"\:"Speaker"\,"name"\:"VolumeState"}\,"payload"\:{"volume"\:10\,"muted"\:false}}\,{"header"\:{"namespace"\:"AudioPlayer"\,"name"\:"PlaybackState"}\,"payload"\:{"token"\:""\,"offsetInMilliseconds"\:0\,"playerActivity"\:"IDLE"}}\,{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"SpeechState"}\,"payload"\:{"token"\:"amzn1.as-ct.v1.Domain\:Application\:Weather#ACRI#9114402a-c1cc-414c-9928-665f0ba36f48#Alexa3P\:1.0/2017/11/06/20/c58470eef20d40ada536637eb9e08e02/42\:36\:\:TNIH_2V.433d2e2b-63bd-476c-988d-060d95a3cc3eZXV/0"\,"offsetInMilliseconds"\:0\,"playerActivity"\:"FINISHED"}}\,{"header"\:{"namespace"\:"Alerts"\,"name"\:"AlertsState"}\,"payload"\:{"allAlerts"\:[]\,"activeAlerts"\:[]}}\,{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"RecognizerState"}\,"payload"\:{"wakeword"\:"ALEXA"}}]} Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.254 [ a] 1 FocusManager:acquireChannel:channelName=Dialog,activityId=SpeechRecognizer.Recognize Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.254 [ a] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=333e9e02-595a-453f-9858-ad5267b461e0,newValue=ec06767e-9a9b-4e01-9c02-98415b9ab17f Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.254 [ a] 0 DirectiveProcessor:scrubDialogRequestIdLocked:dialogRequestId=333e9e02-595a-453f-9858-ad5267b461e0 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.254 [ a] 0 EventBuilder:buildJsonEventString:messageId=3d96ad2b-2090-41ff-9156-0d2e42632290,namespace=SpeechRecognizer,name=Recognize Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.255 [ a] 0 AudioInputProcessor:executeOnFocusChanged:newFocus=FOREGROUND Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.255 [ a] 9 HTTP2Transport:enqueueRequest Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.268 [ b] 0 HTTP2Transport:processNextOutgoingMessage Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.268 [ b] 0 HTTP2StreamPool:getStream:streamId=203,numAcquiredStreams=2 Nov 06 20:43:29 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:29.268 [ b] 9 HTTP2Transport:insertActiveStream:handle=0xd4a23a68 Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:31.359 [ e] 0 MessageInterpreter:receive:messageId=f3bb2240-f17b-4e2a-9aae-39ea611acbd2:No dialogRequestId attached to message. Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:31.360 [ e] I DirectiveSequencer:onDirective:directive={"namespace\:"SpeechRecognizer"\,name\:"StopCapture"\,messageId\:"f3bb2240-f17b-4e2a-9aae-39ea611acbd2"\,dialogRequestId\:""} Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:31.362 [ f] I DirectiveRouter:preHandleDirective:messageId=f3bb2240-f17b-4e2a-9aae-39ea611acbd2,action=calling Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:31.362 [ f] 0 CapabilityAgent:addingMessageIdToMap:messageId=f3bb2240-f17b-4e2a-9aae-39ea611acbd2 Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:31.363 [ 10] I DirectiveRouter:handleDirective:messageId=f3bb2240-f17b-4e2a-9aae-39ea611acbd2,action=calling Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:31.363 [ a] 0 AudioInputProcessor:stopCapture:stopImmediately=true Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:31.363 [ a] 0 AudioInputProcessor:setState:from=RECOGNIZING,to=BUSY Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:31.363 [ a] 0 DirectiveProcessor:onHandlingCompeted:messageId=f3bb2240-f17b-4e2a-9aae-39ea611acbd2,directiveBeingPreHandled=(nullptr) Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:31.364 [ a] 0 CapabilityAgent:removingMessageIdFromMap:messageId=f3bb2240-f17b-4e2a-9aae-39ea611acbd2 Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:31.364 [ d] 0 DialogUXStateAggregator:setState:from=LISTENING,to=THINKING Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:31.364 [ b] I InProcessAttachmentReader:readFailed:reason=SDS is closed Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ########################### Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: # Thinking... # Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ########################### Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: UIManager::onDialogUXStateChanged state = THINKING Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: InteractionManager::onDialogUXStateChanged to THINKING Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ######## QTISoundTrigger::stopRecording() 0 Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: QAHWManager::StopRecorder() 0 Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setAllOff Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec1_g/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec1_r/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec1_b/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec2_g/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec2_r/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec2_b/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec3_g/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec3_r/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec3_b/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec4_g/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec4_r/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec4_b/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec5_g/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec5_r/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec5_b/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec6_g/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec6_r/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec6_b/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec7_g/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec7_r/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec7_b/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec8_g/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec8_r/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec8_b/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec9_g/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec9_r/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec9_b/brightness Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> send_adm_topology Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> send_audtable Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> AUDIO_SET_AUDPROC_CAL Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> send_afe_topology Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 140, Topology Id 112fb Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> send_afe_cal Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: Failed to fetch the lookup information of the device 0000008C Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19 Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: Failed to fetch the lookup information of the device 0000008C Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: Error: ACDB AFE returned = -19 Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> AUDIO_SET_AFE_CAL Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> send_adm_topology Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> send_audtable Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> AUDIO_SET_AUDPROC_CAL Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> send_afe_topology Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 140, Topology Id 112fb Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> send_afe_cal Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: Failed to fetch the lookup information of the device 0000008C Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: Error: ACDB_CMD_GET_AFE_COMMON_TABLE_SIZE Returned = -19 Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: Failed to fetch the lookup information of the device 0000008C Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: Error: ACDB AFE returned = -19 Nov 06 20:43:31 apq8017 AlexaClientApp[2931]: ACDB -> AUDIO_SET_AFE_CAL Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: exited lab processing Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: counter of buffer lastWakeWordAndUserUtteranceEndIndex = 3037760bytes to read 182400 - old style, ignore, bytes read 104960 Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: event_handler_thread - exited capture_lab_data based on a call to doneLookahead() Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: event_handler_thread - qsthw_start_recognition Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: QTISoundTrigger::recognitionStateChanged - m_isRecognizing = 0 Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: [1] callback event processed, detection counter 36 Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: proceed with utterance or command Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: event_handler_thread: Success to release qti lock Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:32.079 [ b] 0 HTTP2Stream:receivedRequestId:value=x-amzn-requestid\: 0a980afffe419492-00002331-0006b496-7ce8f932098cf91f-816f57a6-203 Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:32.080 [ b] 0 AudioInputProcessor:onSendCompleted:status=SUCCESS_NO_CONTENT Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:32.080 [ b] 0 AudioInputProcessor:resetState:dueToStatus=SUCCESS_NO_CONTENT Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:32.080 [ b] 0 HTTP2Transport:cleanupFinishedStream:streamId=203,result=204 Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:32.080 [ b] 0 HTTP2StreamPool:releaseStream:streamId=203,numAcquiredStreams=1 Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:32.080 [ b] 0 CurlEasyHandleWrapper:reset:responseCode=HTTP_RESPONSE_SUCCESS_NO_CONTENT Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:32.080 [ a] 1 FocusManager:releaseChannel:channelName=Dialog Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:32.080 [ a] 0 AudioInputProcessor:setState:from=BUSY,to=IDLE Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:32.080 [ a] 0 AudioInputProcessor:executeOnFocusChanged:newFocus=NONE Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:32.080 [ a] 0 AudioInputProcessor:executeOnFocusChanged:reason=Lost focus Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: 2017-11-06 20:43:32.080 [ d] 0 DialogUXStateAggregator:setState:from=THINKING,to=IDLE Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: ######################################## Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: # Alexa is currently idle! # Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: ######################################## Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: UIManager::onDialogUXStateChanged state = IDLE Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: InteractionManager::onDialogUXStateChanged to IDLE Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: ######## QTISoundTrigger::stopRecording() 1 Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: QAHWManager::StopRecorder() 0 Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setAllOff Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec1_g/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec1_r/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec1_b/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec2_g/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec2_r/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec2_b/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec3_g/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec3_r/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec3_b/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec4_g/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec4_r/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec4_b/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec5_g/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec5_r/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec5_b/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec6_g/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec6_r/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec6_b/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec7_g/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec7_r/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec7_b/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec8_g/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec8_r/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec8_b/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec9_g/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec9_r/brightness Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: setLEDState Called Nov 06 20:43:32 apq8017 AlexaClientApp[2931]: LED file path : /sys/class/leds/ledsec9_b/brightness

simplistiq commented 7 years ago

Some other Observations for WAKE WORD profile:

simplistiq commented 6 years ago

Hi Sanjay, Did you take a look at the issue? Any findings?

sanjayrd commented 6 years ago

Hi @simplistiq,

After looking at the server side logs, it seems that something is going wrong with the indices you're sending up. The cloud is detecting a false wake word, meaning that it doesn't recognize any "Alexa" in the audio you're streaming up, even though you're detecting it locally.

With the successful iterations, "Alexa" is being streamed up to the cloud, along with the speech following "Alexa", so the cloud is successfully detecting the wake word and sending down the "Speak" directive. Can you verify on your end if the indices in the stream you're sending up include "Alexa"?

Since the initiator you're using is wake word, and you're providing both begin and end indices, false wake word detection is enabled in the cloud. See the documentation around the AudioInputProcessor::recognize() method for more info on this at CapabilityAgents/AIP/include/AIP/AudioInputProcessor.

Thanks, Sanjay

frozenberg commented 6 years ago

Closing due to lack of response.