Skip to content

Instantly share code, notes, and snippets.

@boyce-xx
Created November 21, 2017 11:24
Show Gist options
  • Save boyce-xx/6a73140bb39698fe001162419370d6f5 to your computer and use it in GitHub Desktop.
Save boyce-xx/6a73140bb39698fe001162419370d6f5 to your computer and use it in GitHub Desktop.
stopCapture directive will take too long time to return back
/usr/nut2_avs # ./Nut2AVS
************** Nut2AVS version is: v3.3 build on 20171121, AVS sdk version: 1.1.0 **************
Registered Wifi signal!
mkdir: cannot create directory '/data/nut2_avs/': File exists
rm: cannot remove '/data/nut2_avs/volume.txt': No such file or directory
SKU detect: CX/SB
Current SKU is: CX
Loading settings file: /usr/nut2_avs/cx_settings.cfg
&&& SettingParameters:: &&& --> wakeWordDetector = 1
&&& SettingParameters:: &&& --> recordingSource = 1
&&& SettingParameters:: &&& --> enablePreRecSoundPrompt = 1
&&& SettingParameters:: &&& --> enablePostRecSoundPrompt = 1
&&& SettingParameters:: &&& --> svaKeywordConfidenceLevel = 45
&&& SettingParameters:: &&& --> svaNumberOfKeywords = 3
&&& SettingParameters:: &&& --> svaNumberOfUsersPerKeyword = 1
&&& SettingParameters:: &&& --> recordingTimeout = 6
&&& SettingParameters:: &&& --> waitDirectiveTimeout = 1500
&&& SettingParameters:: &&& --> waitForResponseTimeout = 7
&&& SettingParameters:: &&& --> syncNTPServer = pool.ntp.org
&&& SettingParameters:: &&& --> pingAddress = www.bing.com
&&& SettingParameters:: &&& --> enableSoundWhenReceivedPhoneCmd = 0
&&& SettingParameters:: &&& --> otaFTPServer = mhdqftp.wistron.com.tw
&&& SettingParameters:: &&& --> otaFTPUserName = Nut2rw
&&& SettingParameters:: &&& --> otaFTPPassword = ie02dent
&&& SettingParameters:: &&& --> otaFTPRemoteVersionFilePath = /Internal/SW/temp/Nut2_OTA_test/version.txt
Nut2AVS: Wifi configure file is exist, so skip Soft AP mode......
Nut2AVS: checkNetworkStateThreadError = 0
start:: turn on LED
Start to open < SYSTEM_ERROR > LED --> 2017-11-20 15:50:10:672
2017-11-20 07:50:10.673 [ 1] E MediaPlayer:createCalled
end:: turn on LED
>>> Start to wait Wifi module ready --> 2017-11-20 15:50:10:736
*** Wifi module is ready --> 2017-11-20 15:50:10:737
>>> Start to check IP address --> 2017-11-20 15:50:10:737
ifconfig wlan0: 10.42.0.14
*** Get IP address --> 2017-11-20 15:50:10:824
>>> Start to ping --> 2017-11-20 15:50:10:824
ping command is: ping -I wlan0 -c 2 www.bing.com
ACDB -> found 0 form factor & soundcard independant files
ACDB -> Load file: /etc//Bluetooth_cal.acdb
ACDB -> Load file: /etc//General_cal.acdb
ACDB -> Load file: /etc//Global_cal.acdb
ACDB -> Load file: /etc//Handset_cal.acdb
ACDB -> Load file: /etc//Hdmi_cal.acdb
ACDB -> Load file: /etc//Headset_cal.acdb
ACDB -> Load file: /etc//Speaker_cal.acdb
ACDB -> Load file: /etc//workspaceFile.qwsp
ACDB -> ACDB_CMD_INITIALIZE_V2
[ACDB Command]->SW Minor/Major/Revision version info for /etc//Bluetooth_cal.acdb
[ACDB Command]->ACDB Sw Major = 9, ACDB Sw Minor = 0, ACDB Sw Revision = 4, ACDB Sw Cpl Number = 0
[ACDB Command]->ACDB File Major = 9, ACDB File Minor = 0, ACDB File Revision = 11
[ACDB Command]->SW Minor/Major/Revision version info for /etc//General_cal.acdb
[ACDB Command]->ACDB Sw Major = 9, ACDB Sw Minor = 0, ACDB Sw Revision = 4, ACDB Sw Cpl Number = 0
[ACDB Command]->ACDB File Major = 9, ACDB File Minor = 0, ACDB File Revision = 11
[ACDB Command]->SW Minor/Major/Revision version info for /etc//Global_cal.acdb
[ACDB Command]->ACDB Sw Major = 9, ACDB Sw Minor = 0, ACDB Sw Revision = 4, ACDB Sw Cpl Number = 0
[ACDB Command]->ACDB File Major = 9, ACDB File Minor = 0, ACDB File Revision = 11
[ACDB Command]->SW Minor/Major/Revision version info for /etc//Handset_cal.acdb
[ACDB Command]->ACDB Sw Major = 9, ACDB Sw Minor = 0, ACDB Sw Revision = 4, ACDB Sw Cpl Number = 0
[ACDB Command]->ACDB File Major = 9, ACDB File Minor = 0, ACDB File Revision = 11
[ACDB Command]->SW Minor/Major/Revision version info for /etc//Hdmi_cal.acdb
[ACDB Command]->ACDB Sw Major = 9, ACDB Sw Minor = 0, ACDB Sw Revision = 4, ACDB Sw Cpl Number = 0
[ACDB Command]->ACDB File Major = 9, ACDB File Minor = 0, ACDB File Revision = 11
[ACDB Command]->SW Minor/Major/Revision version info for /etc//Headset_cal.acdb
[ACDB Command]->ACDB Sw Major = 9, ACDB Sw Minor = 0, ACDB Sw Revision = 4, ACDB Sw Cpl Number = 0
[ACDB Command]->ACDB File Major = 9, ACDB File Minor = 0, ACDB File Revision = 11
[ACDB Command]->SW Minor/Major/Revision version info for /etc//Speaker_cal.acdb
[ACDB Command]->ACDB Sw Major = 9, ACDB Sw Minor = 0, ACDB Sw Revision = 4, ACDB Sw Cpl Number = 0
[ACDB Command]->ACDB File Major = 9, ACDB File Minor = 0, ACDB File Revision = 11
[ACDB Command]->SW Minor/Major/Revision version info for /etc//workspaceFile.qwsp
[ACDB Command]->ACDB Sw Major = 9, ACDB Sw Minor = 0, ACDB Sw Revision = 4, ACDB Sw Cpl Number = 0
[ACDB Command]->ACDB File Major = 9, ACDB File Minor = 0, ACDB File Revision = 11
ACDB -> ACPH INIT
[ACPH]->Online service registered with ACPH
[ACPH]->ACPH init success
ACDB -> RTAC INIT
[ACPH]->DSP RTC service registered with ACPH
ACDB -> ADIE RTAC INIT
[ACPH]->ADIE RTC service registered with ACPH
ACDB -> ACDB_CMD_GET_VOC_PROC_DYNAMIC_TABLE_SIZE
ACDB -> send_common_custom_topology
ACDB -> ACDB_CMD_GET_AVCS_CUSTOM_TOPO_INFO
ACDB -> ACDB_CMD_GET_AVCS_CUSTOM_TOPO_INFO: size:0x74 ret=0
ACDB -> CORE_CUSTOM_TOPOLOGIES
ACDB -> acdb_loader_send_common_custom_topology: Common custom topology in useACDB -> init done!
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001A
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001A
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001A
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001B
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001B
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001B
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001C
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001C
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001C
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001D
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001D
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001D
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001E
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001E
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001E
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001F
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001F
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 0000001F
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 00000067
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 00000067
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 00000067
Error: ACDB ANC returned = -19
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 00000056
Error: ACDB ANC returned = -20
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 00000056
Error: ACDB ANC returned = -20
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 00000056
Error: ACDB ANC returned = -20
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 00000059
Error: ACDB ANC returned = -20
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 00000059
Error: ACDB ANC returned = -20
ACDB -> ACDB_CMD_GET_ANC_SETTING
Failed to fetch the lookup information of the device 00000059
Error: ACDB ANC returned = -20
send mbhc data
ACDB -> MBHC ACDB_PID_GENERAL_CONFIG
ACDB -> MBHC ACDB_PID_PLUG_REMOVAL_DETECTION
ACDB -> MBHC ACDB_PID_PLUG_TYPE_DETECTION
ACDB -> MBHC ACDB_PID_BUTTON_PRESS_DETECTION
ACDB -> MBHC ACDB_PID_IMPEDANCE_DETECTION
send vbat data
ACDB -> VBAT ACDB_PID_ADC_CAL
ACDB -> VBAT ACDB_PID_GAIN_PROC
send vbat data, calling convert_vbat_data
Vbat Registers Size: 17
copied vbat cal size =72
2017-11-20 07:50:11.117 [ 1] E MediaPlayer:MediaPlayer::create() - qahw module LOADED!
2017-11-20 07:50:11.256 [ 1] E MediaPlayer:setObserverCalled
2017-11-20 07:50:11.257 [ 2] E MediaPlayer:handleSetObserverCalled
------------> Please press and hold VolUp and VolDown at the same time for more than 3 seconds to reboot device to Wifi AP mode...
Nut2AVS: volUpKeyDetectError = 0, volDownKeyDetectError = 0, micMuteKeyDetectError = 0
Nut2AVS: UDP IP:: waiting for new command...
WisCommon::pingAddress--> PING www.bing.com (202.89.233.100): 56 data bytes
WisCommon::pingAddress--> 64 bytes from 202.89.233.100: seq=0 ttl=247 time=46.677 ms
WisCommon::pingAddress--> 64 bytes from 202.89.233.100: seq=1 ttl=247 time=77.018 ms
WisCommon::pingAddress-->
WisCommon::pingAddress--> --- www.bing.com ping statistics ---
WisCommon::pingAddress--> 2 packets transmitted, 2 packets received, 0% packet loss
WisCommon::pingAddress--> round-trip min/avg/max = 46.677/61.847/77.018 ms
*** Ping operation is done --> 2017-11-20 15:50:12:300
>>> Start to sync NTP server --> 2017-11-20 15:50:12:301
sync Ntp server command is: ntpdate pool.ntp.org;echo $?
WisCommon::syncNtpServer--> 21 Nov 07:44:45 ntpdate[3804]: step time server 173.255.246.13 offset 86063.939925 sec,86
WisCommon::syncNtpServer--> 0,1
WisCommon::syncNtpServer result is--> 0
*** Sync NTP server done --> 2017-11-21 15:44:45:681
Nut2AVS: findMeError = 0
Nut2AVS: avsProductDataThreadError = 0
socket created success!!!
********** AVS_SDK Start test AVS ********** --> 2017-11-21 15:44:45:872
Muticast address is: 224.0.0.251
[==========] Running 1 test from 1 test case.
[----------] Global test environment set-up.
[----------] 1 test from QCSVA_AlexaAudioTestbinded success!!!
Nut2AVS: findMe:: waiting for new command...
[ RUN ] QCSVA_AlexaAudioTest.avsFunctionTest
2017-11-21 07:44:45.876 [ 3] I ConfigurationNode:initializeSuccess
2017-11-21 07:44:45.911 [ 3] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=SetEndpoint,handler=0xa9130224,policy=NON_BLOCKING
2017-11-21 07:44:45.911 [ 3] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=System,name=ResetUserInactivity,handler=0xa9130224,policy=NON_BLOCKING
2017-11-21 07:44:45.912 [ 3] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=ExpectSpeech,handler=0xa9130468,policy=NON_BLOCKING
2017-11-21 07:44:45.912 [ 3] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechRecognizer,name=StopCapture,handler=0xa9130468,policy=NON_BLOCKING
2017-11-21 07:44:45.914 [ 3] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:44:45.915 [ 3] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
2017-11-21 07:44:45.959 [ 3] E MediaPlayer:createCalled
2017-11-21 07:44:45.961 [ 3] E MediaPlayer:setObserverCalled
2017-11-21 07:44:45.961 [ 2] E MediaPlayer:handleSetObserverCalled
2017-11-21 07:44:45.961 [ 3] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=SpeechSynthesizer,name=Speak,handler=0xa914a890,policy=BLOCKING
2017-11-21 07:44:45.962 [ 3] E MediaPlayer:createCalled
2017-11-21 07:44:45.964 [ 3] E MediaPlayer:setObserverCalled
2017-11-21 07:44:45.964 [ 2] E MediaPlayer:handleSetObserverCalled
2017-11-21 07:44:45.965 [ 3] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=ClearQueue,handler=0xa914ceb0,policy=NON_BLOCKING
2017-11-21 07:44:45.965 [ 3] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Stop,handler=0xa914ceb0,policy=NON_BLOCKING
2017-11-21 07:44:45.965 [ 3] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=AudioPlayer,name=Play,handler=0xa914ceb0,policy=NON_BLOCKING
2017-11-21 07:44:45.965 [ 3] E MediaPlayer:createCalled
2017-11-21 07:44:45.966 [ 3] E MediaPlayer:setObserverCalled
2017-11-21 07:44:45.966 [ 2] E MediaPlayer:handleSetObserverCalled
2017-11-21 07:44:45.968 [ 3] E SQLiteMessageStorage:openFailed::File specified does not exist.:file path=/usr/nut2_avs/inputs/certifiedSender.db
2017-11-21 07:44:45.969 [ 3] I CertifiedSender:init : Database file does not exist. Creating.
2017-11-21 07:44:46.002 [ 3] E SQLiteAlertStorage:openFailed::File specified does not exist.:file path=/usr/nut2_avs/inputs/alerts.db
2017-11-21 07:44:46.002 [ 3] I AlertScheduler:initialize::storage file does not exist. Creating.
2017-11-21 07:44:46.091 [ 3] I AlertScheduler:executeScheduleNextAlertForRendering::no work to do.
2017-11-21 07:44:46.093 [ 3] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=DeleteAlert,handler=0xa91849a0,policy=NON_BLOCKING
2017-11-21 07:44:46.093 [ 3] I DirectiveRouter:addDirectiveHandlers:action=added,namespace=Alerts,name=SetAlert,handler=0xa91849a0,policy=NON_BLOCKING
2017-11-21 07:44:46.096 [ 3] E SQLiteSettingsStorage:openFailed:reason=FileAlreadyExists,FilePath=/usr/nut2_avs/inputs/settings.db
2017-11-21 07:44:46.096 [ 3] I Settings:initialize::database file does not exist. Creating.
King AVSConnectionManager::onConnectionStatusChanged: status = 1, reason=0
--> King:: AudioPlayer executeProvideState start ...
--> King:: AudioPlayer executeProvideState update payload to: {"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}
--> King:: AudioPlayer executeProvideState update Success!!!
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:44:48:3
King AVSConnectionManager::onConnectionStatusChanged: status = 2, reason=0
DB20_demo_tool: volUpKeyDetectError = 0
file name: /data/nut2_avs/refreshtoken.json
start AVS test
>>>>>>>>> AVS: AVS is ready......
--> 2017-11-21 15:44:51:730
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:44:51:731
end:: turn on LED
LOCAL_AUDIO_FILE_PATH=/usr/nut2_avs/iamready.mp3
2017-11-21 07:44:51.872 [ 3] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:44:51.873 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:44:51.873 [ 2] E MediaPlayer:tearDownTransientPipelineElements
LocalMediaPlayer setSource success
TEST_F setMediaPlayerSource
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:44:52.077 [ 3] E MediaPlayer:playCalled
2017-11-21 07:44:52.077 [ 3] E MediaPlayer:playCalled 2
2017-11-21 07:44:52.077 [ 3] E MediaPlayer:playCalled 3
2017-11-21 07:44:52.077 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:44:52.078 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:44:52.078 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:44:52.078 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:44:52.081 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:44:52.082 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.082 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.082 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.082 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.083 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.083 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.083 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:44:52.084 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.084 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.084 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:44:52.085 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.085 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:44:52.184 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.185 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.311 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.311 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.341 [ 4] E MediaPlayer:onPadAddedCalled
2017-11-21 07:44:52.342 [ 2] E MediaPlayer:handlePadAddedSignalCalled
2017-11-21 07:44:52.343 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.343 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:44:52.352 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:44:52.353 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:44:52.354 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.354 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.354 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:44:52.354 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:44:52.355 [ 2] E MediaPlayer:messageReceived:messageType=new-clock
2017-11-21 07:44:52.355 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.356 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.362 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.362 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.362 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.362 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.362 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.363 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:44:52.363 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:44:52.363 [ 2] E MediaPlayer:callingOnPlaybackStarted
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
2017-11-21 07:44:52.770 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:44:53.889 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:44:53.889 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:44:54.228 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:44:54.230 [ 3] E MediaPlayer:stopCalled
2017-11-21 07:44:54.230 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:44:54.235 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:44:54.237 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:44:54.239 [ 2] E MediaPlayer:doStopSuccess
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:44:54:242
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:44:54:252
2017-11-21 07:44:54.256 [ 5] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:44:54.257 [ 5] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0x9d411848, size 640, handle(2457)-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:44:54:261
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:45:05.442 [ 6] E MediaPlayer:stopCalled
2017-11-21 07:45:05.443 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:45:05.443 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:05.443 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:45:05.443 [ 6] E MediaPlayer:stopCalled
2017-11-21 07:45:05.444 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:45:05.445 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:45:05.446 [ 6] E MediaPlayer:stopCalled
2017-11-21 07:45:05.446 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:45:05.447 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 166320, endIndex = 174720,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 316640
--> RingBufferConsumer m_read_offset = 316640
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:45:05:470
consumer is done
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:45:05:543
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 12000, endIndex = 20400,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 12000, endIndex = 20400
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":16400}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:45:05:721
2017-11-21 07:45:05.721 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=,newValue=85d64ed1-131c-4661-bec8-155ce118eb0b
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"1288b847-0587-4a47-91b4-60c49d0d1487","dialogRequestId":"85d64ed1-131c-4661-bec8-155ce118eb0b"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":16400}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:45:06:467
2017-11-21 07:45:09.116 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"73f2869c-45a4-45b5-b3df-645ac5725ac8"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:45:09:116
-----> For Vick: mThis->m_wisStatusChanged->isStopCaptureFlag
End Recording!!!!!!! --> 2017-11-21 15:45:09:132
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:45:09:173
SKU detect: CX/SB
Current SKU is: CX
--> m_wisStatusChanged->isStopCaptureFlag = 1
---> Recognize done! --> 2017-11-21 15:45:09:190
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
2017-11-21 07:45:09.191 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
SKU is CX: To play postRecording sound cue
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:45:09:240
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:45:09:243
2017-11-21 07:45:09.244 [ a] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:45:09.244 [ a] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xabb3f3f8, size 640, handle(2457)end:: turn on LED
2017-11-21 07:45:09.246 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"73f2869c-45a4-45b5-b3df-645ac5725ac8"}\,"payload"\:{}}}
2017-11-21 07:45:09.247 [ b] I DirectiveRouter:preHandleDirective:messageId=73f2869c-45a4-45b5-b3df-645ac5725ac8,action=calling
2017-11-21 07:45:09.247 [ c] I DirectiveRouter:handleDirective:messageId=73f2869c-45a4-45b5-b3df-645ac5725ac8,action=calling
AudioInputProcessor::handleDirective --------StopCapture-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:45:09:248
2017-11-21 07:45:09.248 [ 7] E AudioInputProcessor:executeStopCaptureFailed:reason=invalidState,expectedState=RECOGNIZING,state=IDLE
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:45:10:161
##### End recording!
2017-11-21 07:45:10.615 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"02e68d4c-ca14-4e0b-b44d-b87d74f0c735"\,"dialogRequestId"\:"85d64ed1-131c-4661-bec8-155ce118eb0b"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_01e6adde-994f-45bc-a7cc-b615b2edac5f_1837668988"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_01e6adde-994f-45bc-a7cc-b615b2edac5f"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:45:10:616
end:: turn on LED
2017-11-21 07:45:10.722 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"02e68d4c-ca14-4e0b-b44d-b87d74f0c735"\,"dialogRequestId"\:"85d64ed1-131c-4661-bec8-155ce118eb0b"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_01e6adde-994f-45bc-a7cc-b615b2edac5f_1837668988"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_01e6adde-994f-45bc-a7cc-b615b2edac5f"}}}
2017-11-21 07:45:10.722 [ b] I DirectiveRouter:preHandleDirective:messageId=02e68d4c-ca14-4e0b-b44d-b87d74f0c735,action=calling
2017-11-21 07:45:10.722 [ c] I DirectiveRouter:handleDirective:messageId=02e68d4c-ca14-4e0b-b44d-b87d74f0c735,action=calling
2017-11-21 07:45:10.724 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:45:10.724 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:45:10.724 [ 2] E MediaPlayer:tearDownTransientPipelineElements
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:45:10.727 [ d] E MediaPlayer:playCalled
2017-11-21 07:45:10.727 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:45:10.727 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:45:10.727 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:45:10.728 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:10.728 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:45:10.728 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:45:10.730 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:45:10.730 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.730 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.730 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.731 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.731 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.731 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.731 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:45:10.731 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.731 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.732 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:45:10.732 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.732 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:45:10.732 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2017-11-21 07:45:10.757 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.757 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.760 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.760 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.763 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.763 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.764 [ e] E MediaPlayer:onPadAddedCalled
2017-11-21 07:45:10.764 [ 2] E MediaPlayer:handlePadAddedSignalCalled
2017-11-21 07:45:10.766 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.766 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:45:10.770 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:45:10.770 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:45:10.770 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:45:10.771 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.771 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.771 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:45:10.771 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:45:10.771 [ 2] E MediaPlayer:messageReceived:messageType=new-clock
2017-11-21 07:45:10.772 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.778 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.779 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.779 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.780 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.780 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.780 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.780 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.781 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:10.781 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:45:10.781 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:45:10.781 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:45:10.782 [ 2] E MediaPlayer:handleGetOffsetCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"e97e3c17-3323-403e-b5c7-927642785717"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_01e6adde-994f-45bc-a7cc-b615b2edac5f"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:45:10:783
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
end:: turn on LED
2017-11-21 07:45:11.044 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:45:12.923 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:45:12.923 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:45:13.171 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:45:13.172 [ 2] E MediaPlayer:doStopSuccess
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"237411d8-3c79-4849-b858-2428c05c1451"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_01e6adde-994f-45bc-a7cc-b615b2edac5f"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:45:13:172
end:: turn on LED
2017-11-21 07:45:13.230 [ d] E MediaPlayer:stopCalled
2017-11-21 07:45:13.230 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:45:13.230 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:13.230 [ 2] E MediaPlayer:doStopSuccess
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:45:22.954 [ f] E MediaPlayer:stopCalled
2017-11-21 07:45:22.954 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:45:22.954 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:22.954 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:45:22.955 [ f] E MediaPlayer:stopCalled
2017-11-21 07:45:22.955 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:45:22.955 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:22.955 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:45:22.956 [ f] E MediaPlayer:stopCalled
2017-11-21 07:45:22.956 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:45:22.956 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 205440, endIndex = 216480,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 394880
--> RingBufferConsumer m_read_offset = 394880
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:45:22:964
consumer is done
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:45:23:30
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play preRecording sound cue
Playing sample: 2 ch, 48000 hz, 16 bit
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 89520, endIndex = 100320,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 89520, endIndex = 100320
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":18800}
m_expectingSpeechTimer.stop...
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:45:23:226
2017-11-21 07:45:23.227 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=85d64ed1-131c-4661-bec8-155ce118eb0b,newValue=393d5ba8-0b04-4905-82f0-8b93ba211b58
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_01e6adde-994f-45bc-a7cc-b615b2edac5f","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"fddc8451-1136-45fd-954b-60cdf06220ed","dialogRequestId":"393d5ba8-0b04-4905-82f0-8b93ba211b58"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":18800}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:45:23:942
2017-11-21 07:45:27.202 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"141e29f3-64d4-4340-9660-f7cc5a70f45f"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:45:27:203
-----> For Vick: mThis->m_wisStatusChanged->isStopCaptureFlag
End Recording!!!!!!! --> 2017-11-21 15:45:27:223
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:45:27:267
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
--> m_wisStatusChanged->isStopCaptureFlag = 1
---> Recognize done! --> 2017-11-21 15:45:27:288
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
end:: turn on LED
2017-11-21 07:45:27.292 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"141e29f3-64d4-4340-9660-f7cc5a70f45f"}\,"payload"\:{}}}
2017-11-21 07:45:27.292 [ b] I DirectiveRouter:preHandleDirective:messageId=141e29f3-64d4-4340-9660-f7cc5a70f45f,action=calling
2017-11-21 07:45:27.292 [ c] I DirectiveRouter:handleDirective:messageId=141e29f3-64d4-4340-9660-f7cc5a70f45f,action=calling
AudioInputProcessor::handleDirective --------StopCapture
2017-11-21 07:45:27.292 [ 7] E AudioInputProcessor:executeStopCaptureFailed:reason=invalidState,expectedState=RECOGNIZING,state=IDLE
2017-11-21 07:45:27.295 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:45:27:339
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:45:27:340
2017-11-21 07:45:27.340 [ 10] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:45:27.341 [ 10] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xa3ddbb18, size 640, handle(2457)-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:45:27:342
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:45:28:259
##### End recording!
2017-11-21 07:45:28.628 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"d08bd851-d0de-475f-a516-7f956b7ce8e5"\,"dialogRequestId"\:"393d5ba8-0b04-4905-82f0-8b93ba211b58"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_d29e2a7c-c46f-4d73-87cd-4dc1a417cfc1_343427572"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.HouseholdSpeechlet#ACRI#DeviceTTSRendererV4_d29e2a7c-c46f-4d73-87cd-4dc1a417cfc1"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:45:28:629
end:: turn on LED
2017-11-21 07:45:28.692 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"d08bd851-d0de-475f-a516-7f956b7ce8e5"\,"dialogRequestId"\:"393d5ba8-0b04-4905-82f0-8b93ba211b58"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_d29e2a7c-c46f-4d73-87cd-4dc1a417cfc1_343427572"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.HouseholdSpeechlet#ACRI#DeviceTTSRendererV4_d29e2a7c-c46f-4d73-87cd-4dc1a417cfc1"}}}
2017-11-21 07:45:28.692 [ b] I DirectiveRouter:preHandleDirective:messageId=d08bd851-d0de-475f-a516-7f956b7ce8e5,action=calling
2017-11-21 07:45:28.693 [ c] I DirectiveRouter:handleDirective:messageId=d08bd851-d0de-475f-a516-7f956b7ce8e5,action=calling
2017-11-21 07:45:28.694 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:45:28.694 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:45:28.694 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:45:28.694 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:28.694 [ 2] E MediaPlayer:doStopSuccess
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:45:28.696 [ d] E MediaPlayer:playCalled
2017-11-21 07:45:28.696 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:45:28.696 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:45:28.696 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:45:28.696 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:28.696 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:45:28.696 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:45:28.698 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:45:28.698 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.698 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.698 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.698 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.698 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.698 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.699 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:45:28.699 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.699 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.699 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:45:28.699 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.699 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:45:28.700 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2017-11-21 07:45:28.712 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.712 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.715 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.715 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.719 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.719 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.721 [ 11] E MediaPlayer:onPadAddedCalled
2017-11-21 07:45:28.721 [ 2] E MediaPlayer:handlePadAddedSignalCalled
2017-11-21 07:45:28.723 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.724 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:45:28.729 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:45:28.729 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:45:28.730 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:45:28.730 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.730 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.730 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:45:28.730 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:45:28.731 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.732 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.740 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.740 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.740 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.741 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.741 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.741 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.741 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:28.741 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:45:28.741 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:45:28.742 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:45:28.742 [ 2] E MediaPlayer:handleGetOffsetCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"1fe3b4ab-211d-48c0-a44e-15a1ce783eb5"},"payload":{"token":"amzn1.as-ct.v1.HouseholdSpeechlet#ACRI#DeviceTTSRendererV4_d29e2a7c-c46f-4d73-87cd-4dc1a417cfc1"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:45:28:743
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
end:: turn on LED
2017-11-21 07:45:29.010 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:45:31.770 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:45:31.770 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:45:32.028 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:45:32.028 [ 2] E MediaPlayer:doStopSuccess
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"63bd5415-fcd9-4f11-abc6-ac611dda9615"},"payload":{"token":"amzn1.as-ct.v1.HouseholdSpeechlet#ACRI#DeviceTTSRendererV4_d29e2a7c-c46f-4d73-87cd-4dc1a417cfc1"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:45:32:29
end:: turn on LED
2017-11-21 07:45:32.081 [ d] E MediaPlayer:stopCalled
2017-11-21 07:45:32.081 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:45:32.081 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:32.081 [ 2] E MediaPlayer:doStopSuccess
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:45:37.532 [ 12] E MediaPlayer:stopCalled
2017-11-21 07:45:37.532 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:45:37.533 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:37.533 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:45:37.533 [ 12] E MediaPlayer:stopCalled
2017-11-21 07:45:37.533 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:45:37.533 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:37.533 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:45:37.534 [ 12] E MediaPlayer:stopCalled
2017-11-21 07:45:37.534 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:45:37.535 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 149520, endIndex = 158880,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 283040
--> RingBufferConsumer m_read_offset = 283040
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:45:37:539
consumer is done
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:45:37:606
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 178080, endIndex = 187440,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 178080, endIndex = 187440
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":17360}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:45:37:793
2017-11-21 07:45:37.794 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=393d5ba8-0b04-4905-82f0-8b93ba211b58,newValue=644b55fa-d9d3-4acf-9c94-f1d0d3aabe73
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.HouseholdSpeechlet#ACRI#DeviceTTSRendererV4_d29e2a7c-c46f-4d73-87cd-4dc1a417cfc1","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"b55eba81-2b45-4ee9-a2e3-f2284d4d42ae","dialogRequestId":"644b55fa-d9d3-4acf-9c94-f1d0d3aabe73"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":17360}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:45:38:535
2017-11-21 07:45:42.022 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"25efbe5d-079b-4085-a28b-a7bbdb350d7d"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:45:42:22
-----> For Vick: mThis->m_wisStatusChanged->isStopCaptureFlag
End Recording!!!!!!! --> 2017-11-21 15:45:42:38
closing input, handle(2457)
closing input
--> m_wisStatusChanged->isStopCaptureFlag = 1
---> Recognize done! --> 2017-11-21 15:45:42:70
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
2017-11-21 07:45:42.074 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:45:42:79
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
end:: turn on LED
2017-11-21 07:45:42.115 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"25efbe5d-079b-4085-a28b-a7bbdb350d7d"}\,"payload"\:{}}}
2017-11-21 07:45:42.115 [ b] I DirectiveRouter:preHandleDirective:messageId=25efbe5d-079b-4085-a28b-a7bbdb350d7d,action=calling
2017-11-21 07:45:42.115 [ c] I DirectiveRouter:handleDirective:messageId=25efbe5d-079b-4085-a28b-a7bbdb350d7d,action=calling
AudioInputProcessor::handleDirective --------StopCapture
2017-11-21 07:45:42.116 [ 7] E AudioInputProcessor:executeStopCaptureFailed:reason=invalidState,expectedState=RECOGNIZING,state=IDLE
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:45:42:121
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:45:42:122
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xa9201800, size 640, handle(2457)-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:45:42:123
2017-11-21 07:45:42.124 [ 13] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:45:42.125 [ 13] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:45:43:51
##### End recording!
2017-11-21 07:45:43.208 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"d83b15b0-d8aa-4a09-b8c7-cd81105e710c"\,"dialogRequestId"\:"644b55fa-d9d3-4acf-9c94-f1d0d3aabe73"}\,"payload"\:{"url"\:"cid\:38103e4d-664c-465e-8cb0-c6a473c11d92#Alexa3P\:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/45\:38\:\:TNIH_2V.b902926a-e5e5-4123-96cd-7e936bedfd13ZXV/1_1067498072"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:Weather#ACRI#38103e4d-664c-465e-8cb0-c6a473c11d92#Alexa3P\:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/45\:38\:\:TNIH_2V.b902926a-e5e5-4123-96cd-7e936bedfd13ZXV/1"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:45:43:209
end:: turn on LED
2017-11-21 07:45:43.274 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"d83b15b0-d8aa-4a09-b8c7-cd81105e710c"\,"dialogRequestId"\:"644b55fa-d9d3-4acf-9c94-f1d0d3aabe73"}\,"payload"\:{"url"\:"cid\:38103e4d-664c-465e-8cb0-c6a473c11d92#Alexa3P\:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/45\:38\:\:TNIH_2V.b902926a-e5e5-4123-96cd-7e936bedfd13ZXV/1_1067498072"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:Weather#ACRI#38103e4d-664c-465e-8cb0-c6a473c11d92#Alexa3P\:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/45\:38\:\:TNIH_2V.b902926a-e5e5-4123-96cd-7e936bedfd13ZXV/1"}}}
2017-11-21 07:45:43.274 [ b] I DirectiveRouter:preHandleDirective:messageId=d83b15b0-d8aa-4a09-b8c7-cd81105e710c,action=calling
2017-11-21 07:45:43.274 [ c] I DirectiveRouter:handleDirective:messageId=d83b15b0-d8aa-4a09-b8c7-cd81105e710c,action=calling
2017-11-21 07:45:43.275 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:45:43.275 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:45:43.275 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:45:43.275 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:43.275 [ 2] E MediaPlayer:doStopSuccess
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:45:43.277 [ d] E MediaPlayer:playCalled
2017-11-21 07:45:43.277 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:45:43.277 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:45:43.277 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:45:43.277 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:43.277 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:45:43.277 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:45:43.278 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:45:43.279 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.279 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.279 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.279 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.279 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.279 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.279 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:45:43.279 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.279 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.279 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:45:43.279 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.279 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:45:43.293 [ 14] E MediaPlayer:onPadAddedCalled
2017-11-21 07:45:43.542 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.542 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.542 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.542 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.543 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.543 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.543 [ 2] E MediaPlayer:handlePadAddedSignalCalled
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
2017-11-21 07:45:43.940 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.940 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:45:43.940 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:45:43.940 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:45:43.940 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:45:43.940 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:43.941 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:45:43.942 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:45:43.942 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:45:43.942 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:45:43.942 [ 2] E MediaPlayer:handleGetOffsetCalled
2017-11-21 07:45:43.942 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"835d7892-c244-4ac3-8bac-0cffa1c3bfb3"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:Weather#ACRI#38103e4d-664c-465e-8cb0-c6a473c11d92#Alexa3P:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/45:38::TNIH_2V.b902926a-e5e5-4123-96cd-7e936bedfd13ZXV/1"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:45:43:944
end:: turn on LED
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:45:47.384 [ 15] E MediaPlayer:stopCalled
2017-11-21 07:45:47.384 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:45:47.385 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:47.385 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:45:47.385 [ 15] E MediaPlayer:stopCalled
2017-11-21 07:45:47.386 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:45:47.670 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:45:47.671 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:45:47.671 [ 15] E MediaPlayer:stopCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"dd005bf0-56cd-4dfb-9910-9245aa3defda"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:Weather#ACRI#38103e4d-664c-465e-8cb0-c6a473c11d92#Alexa3P:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/45:38::TNIH_2V.b902926a-e5e5-4123-96cd-7e936bedfd13ZXV/1"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:45:47:672
2017-11-21 07:45:47.672 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:45:47.673 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 71520, endIndex = 80640,
consumer is done
___________________________________AIP isExpectDirectStatus: 0
lightLED:: Wait the previous operation done!
--> handleOneSpeechBySensory::readOffset = 127040
--> RingBufferConsumer m_read_offset = 127040
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
lightLED:: Wait the previous operation done!
end:: turn on LED
2017-11-21 07:45:47.765 [ d] E MediaPlayer:stopCalled
2017-11-21 07:45:47.766 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:45:47.766 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:47.766 [ 2] E MediaPlayer:doStopSuccess
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:45:47:795
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:45:47:861
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 269280, endIndex = 278400,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 269280, endIndex = 278400
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":17120}
m_expectingSpeechTimer.stop...
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:45:47:967
2017-11-21 07:45:47.968 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=644b55fa-d9d3-4acf-9c94-f1d0d3aabe73,newValue=a48c51de-43a0-4a7d-a18e-0a37fb89dbed
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"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#38103e4d-664c-465e-8cb0-c6a473c11d92#Alexa3P:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/45:38::TNIH_2V.b902926a-e5e5-4123-96cd-7e936bedfd13ZXV/1","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"314aa14a-6738-400a-8905-0a7fde9596ab","dialogRequestId":"a48c51de-43a0-4a7d-a18e-0a37fb89dbed"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":17120}}}}}}
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:45:48:795
2017-11-21 07:45:52.933 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"8332ac0b-4bc4-4b97-a7c6-dcb0f428069b"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:45:52:933
-----> For Vick: mThis->m_wisStatusChanged->isStopCaptureFlag
End Recording!!!!!!! --> 2017-11-21 15:45:52:940
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:45:52:982
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
end:: turn on LED
2017-11-21 07:45:53.012 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"8332ac0b-4bc4-4b97-a7c6-dcb0f428069b"}\,"payload"\:{}}}
2017-11-21 07:45:53.012 [ b] I DirectiveRouter:preHandleDirective:messageId=8332ac0b-4bc4-4b97-a7c6-dcb0f428069b,action=calling
2017-11-21 07:45:53.013 [ c] I DirectiveRouter:handleDirective:messageId=8332ac0b-4bc4-4b97-a7c6-dcb0f428069b,action=calling
AudioInputProcessor::handleDirective --------StopCapture
--> m_wisStatusChanged->isStopCaptureFlag = 1
---> Recognize done! --> 2017-11-21 15:45:53:25
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:45:53:81
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:45:53:82
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xabb22900, size 640, handle(2457)-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:45:53:84
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
2017-11-21 07:45:53.086 [ 16] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Playing sample: 2 ch, 48000 hz, 16 bit
2017-11-21 07:45:53.087 [ 16] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
2017-11-21 07:45:53.229 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:45:53:950
##### End recording!
2017-11-21 07:45:54.190 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"26eb32e6-8001-405f-9764-b7492d84e8dc"\,"dialogRequestId"\:"a48c51de-43a0-4a7d-a18e-0a37fb89dbed"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_48eb7acf-9249-45b6-b8bb-1d1aff08d2cb_2001810420"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_48eb7acf-9249-45b6-b8bb-1d1aff08d2cb"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:45:54:191
end:: turn on LED
2017-11-21 07:45:54.281 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"26eb32e6-8001-405f-9764-b7492d84e8dc"\,"dialogRequestId"\:"a48c51de-43a0-4a7d-a18e-0a37fb89dbed"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_48eb7acf-9249-45b6-b8bb-1d1aff08d2cb_2001810420"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_48eb7acf-9249-45b6-b8bb-1d1aff08d2cb"}}}
2017-11-21 07:45:54.281 [ b] I DirectiveRouter:preHandleDirective:messageId=26eb32e6-8001-405f-9764-b7492d84e8dc,action=calling
2017-11-21 07:45:54.281 [ c] I DirectiveRouter:handleDirective:messageId=26eb32e6-8001-405f-9764-b7492d84e8dc,action=calling
2017-11-21 07:45:54.282 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:45:54.283 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:45:54.283 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:45:54.283 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:54.283 [ 2] E MediaPlayer:doStopSuccess
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:45:54.286 [ d] E MediaPlayer:playCalled
2017-11-21 07:45:54.286 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:45:54.286 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:45:54.286 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:45:54.287 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:54.287 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:45:54.287 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:45:54.288 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:45:54.289 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.289 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.289 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.290 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.290 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.290 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.290 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:45:54.290 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.291 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.291 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:45:54.291 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.291 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:45:54.292 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2017-11-21 07:45:54.307 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.307 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.311 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.312 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.316 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.316 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.319 [ 17] E MediaPlayer:onPadAddedCalled
2017-11-21 07:45:54.319 [ 2] E MediaPlayer:handlePadAddedSignalCalled
2017-11-21 07:45:54.321 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.321 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:45:54.329 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:45:54.330 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:45:54.330 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:45:54.330 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.330 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.330 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:45:54.330 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:45:54.331 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.339 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.340 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.340 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.341 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.341 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.341 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.341 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.342 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:45:54.342 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:45:54.342 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:45:54.342 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:45:54.342 [ 2] E MediaPlayer:handleGetOffsetCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"d965b0b0-09a6-41ea-b69b-8b59a6f4ec11"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_48eb7acf-9249-45b6-b8bb-1d1aff08d2cb"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:45:54:343
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
end:: turn on LED
2017-11-21 07:45:54.589 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:45:56.468 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:45:56.468 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:45:56.702 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:45:56.702 [ 2] E MediaPlayer:doStopSuccess
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"6a4a5907-2505-47e3-bc40-ef502e96b4d3"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_48eb7acf-9249-45b6-b8bb-1d1aff08d2cb"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:45:56:702
end:: turn on LED
2017-11-21 07:45:56.760 [ d] E MediaPlayer:stopCalled
2017-11-21 07:45:56.761 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:45:56.761 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:45:56.761 [ 2] E MediaPlayer:doStopSuccess
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:46:08:82
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:46:12.814 [ 18] E MediaPlayer:stopCalled
2017-11-21 07:46:12.815 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:46:12.815 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:46:12.815 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:46:12.815 [ 18] E MediaPlayer:stopCalled
2017-11-21 07:46:12.815 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:46:12.815 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:46:12.815 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:46:12.816 [ 18] E MediaPlayer:stopCalled
2017-11-21 07:46:12.816 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:46:12.816 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 303600, endIndex = 312480,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 66912
--> RingBufferConsumer m_read_offset = 66912
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:46:12:833
consumer is done
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:46:12:899
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 375600, endIndex = 384480,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 375600, endIndex = 384480
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":16880}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:46:13:71
2017-11-21 07:46:13.072 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=a48c51de-43a0-4a7d-a18e-0a37fb89dbed,newValue=7faa6a0f-37a7-4c2e-ba3c-a8fff03e71f7
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_48eb7acf-9249-45b6-b8bb-1d1aff08d2cb","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"5ab6bbae-5386-4082-b886-bd284914fdc2","dialogRequestId":"7faa6a0f-37a7-4c2e-ba3c-a8fff03e71f7"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":16880}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:46:13:829
2017-11-21 07:46:15.990 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"26d63823-2783-4819-9d24-a4b966188565"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:46:15:990
-----> For Vick: mThis->m_wisStatusChanged->isStopCaptureFlag
End Recording!!!!!!! --> 2017-11-21 15:46:15:997
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:46:16:39
SKU detect: CX/SB
Current SKU is: CX
--> m_wisStatusChanged->isStopCaptureFlag = 1
---> Recognize done! --> 2017-11-21 15:46:16:49
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
2017-11-21 07:46:16.051 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
SKU is CX: To play postRecording sound cue
end:: turn on LED
2017-11-21 07:46:16.066 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"26d63823-2783-4819-9d24-a4b966188565"}\,"payload"\:{}}}
2017-11-21 07:46:16.066 [ b] I DirectiveRouter:preHandleDirective:messageId=26d63823-2783-4819-9d24-a4b966188565,action=calling
2017-11-21 07:46:16.067 [ c] I DirectiveRouter:handleDirective:messageId=26d63823-2783-4819-9d24-a4b966188565,action=calling
AudioInputProcessor::handleDirective --------StopCapture
2017-11-21 07:46:16.067 [ 7] E AudioInputProcessor:executeStopCaptureFailed:reason=invalidState,expectedState=RECOGNIZING,state=IDLE
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:46:16:100
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-02-01 00:00:00:101
2017-11-21 07:46:16.101 [ 19] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xa91007f0, size 640, handle(2457)2017-11-21 07:46:16.102 [ 19] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:46:16:103
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
Playing sample: 2 ch, 48000 hz, 16 bit
2017-11-21 07:46:16.861 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"fec6cd9f-9895-4fc7-af44-16367ecc6d6a"\,"dialogRequestId"\:"7faa6a0f-37a7-4c2e-ba3c-a8fff03e71f7"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_0a867bc9-2235-40cb-99a7-025a82611e72_482710028"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_0a867bc9-2235-40cb-99a7-025a82611e72"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:46:16:862
end:: turn on LED
2017-11-21 07:46:16.928 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"fec6cd9f-9895-4fc7-af44-16367ecc6d6a"\,"dialogRequestId"\:"7faa6a0f-37a7-4c2e-ba3c-a8fff03e71f7"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_0a867bc9-2235-40cb-99a7-025a82611e72_482710028"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_0a867bc9-2235-40cb-99a7-025a82611e72"}}}
2017-11-21 07:46:16.928 [ b] I DirectiveRouter:preHandleDirective:messageId=fec6cd9f-9895-4fc7-af44-16367ecc6d6a,action=calling
2017-11-21 07:46:16.930 [ c] I DirectiveRouter:handleDirective:messageId=fec6cd9f-9895-4fc7-af44-16367ecc6d6a,action=calling
2017-11-21 07:46:16.931 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:46:16.932 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:46:16.932 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:46:16.932 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:46:16.933 [ 2] E MediaPlayer:doStopSuccess
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:46:16.936 [ d] E MediaPlayer:playCalled
2017-11-21 07:46:16.936 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:46:16.936 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:46:16.937 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:46:16.937 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:46:16.938 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:46:16.938 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:46:16.942 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:46:16.943 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.943 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.943 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.944 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.944 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.944 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.945 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:46:16.945 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.945 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.946 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:46:16.946 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.947 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:46:16.948 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2017-11-21 07:46:16.964 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.964 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.967 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.967 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.970 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.970 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.972 [ 1a] E MediaPlayer:onPadAddedCalled
2017-11-21 07:46:16.972 [ 2] E MediaPlayer:handlePadAddedSignalCalled
2017-11-21 07:46:16.973 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.974 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:46:16.979 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:46:16.979 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:46:16.979 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:46:16.980 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.980 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.980 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:46:16.980 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:46:16.981 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.989 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.989 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.990 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.990 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.990 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.991 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.991 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.991 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:16.991 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:46:16.991 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:46:16.991 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:46:16.992 [ 2] E MediaPlayer:handleGetOffsetCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"2cc05cba-bfb1-4a90-9bbb-963d3858faa1"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_0a867bc9-2235-40cb-99a7-025a82611e72"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:46:16:993
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
end:: turn on LED
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:46:17:131
##### End recording!
2017-11-21 07:46:17.261 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:46:19.099 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:46:19.099 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:46:19.342 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:46:19.343 [ 2] E MediaPlayer:doStopSuccess
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"47473688-648b-4e7e-ad4f-f43452b58296"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_0a867bc9-2235-40cb-99a7-025a82611e72"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:46:19:344
end:: turn on LED
2017-11-21 07:46:19.436 [ d] E MediaPlayer:stopCalled
2017-11-21 07:46:19.436 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:46:19.437 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:46:19.437 [ 2] E MediaPlayer:doStopSuccess
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:46:31:101
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:46:41.977 [ 1b] E MediaPlayer:stopCalled
2017-11-21 07:46:41.977 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:46:41.977 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:46:41.977 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:46:41.978 [ 1b] E MediaPlayer:stopCalled
2017-11-21 07:46:41.978 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:46:41.978 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:46:41.978 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:46:41.978 [ 1b] E MediaPlayer:stopCalled
2017-11-21 07:46:41.979 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:46:41.979 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 402720, endIndex = 410400,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 265152
--> RingBufferConsumer m_read_offset = 265152
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:46:41:994
consumer is done
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:46:42:61
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 444000, endIndex = 451680,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 444000, endIndex = 451680
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":15680}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:46:42:227
2017-11-21 07:46:42.227 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=7faa6a0f-37a7-4c2e-ba3c-a8fff03e71f7,newValue=a5a79a96-9c22-48a8-8e3a-ceb10d0d0311
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_0a867bc9-2235-40cb-99a7-025a82611e72","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"97ad827c-bf91-4d95-997a-ae2654feaf15","dialogRequestId":"a5a79a96-9c22-48a8-8e3a-ceb10d0d0311"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":15680}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:46:43:22
2017-11-21 07:46:46.212 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"3e8ca500-b928-4aaa-85b6-b7f8095ce52f"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:46:46:212
-----> For Vick: mThis->m_wisStatusChanged->isStopCaptureFlag
End Recording!!!!!!! --> 2017-11-21 15:46:46:219
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:46:46:262
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
end:: turn on LED
2017-11-21 07:46:46.287 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"3e8ca500-b928-4aaa-85b6-b7f8095ce52f"}\,"payload"\:{}}}
2017-11-21 07:46:46.287 [ b] I DirectiveRouter:preHandleDirective:messageId=3e8ca500-b928-4aaa-85b6-b7f8095ce52f,action=calling
2017-11-21 07:46:46.287 [ c] I DirectiveRouter:handleDirective:messageId=3e8ca500-b928-4aaa-85b6-b7f8095ce52f,action=calling
AudioInputProcessor::handleDirective --------StopCapture
2017-11-21 07:46:46.291 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
--> m_wisStatusChanged->isStopCaptureFlag = 1
---> Recognize done! --> 2017-11-21 15:46:46:309
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:46:46:361
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:46:46:362
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xa9203000, size 640, handle(2457)-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:46:46:363
2017-11-21 07:46:46.365 [ 1c] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:46:46.365 [ 1c] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
Playing sample: 2 ch, 48000 hz, 16 bit
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:46:47:253
##### End recording!
2017-11-21 07:46:47.326 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"0e79e3c0-faa6-40f9-b789-8f774172dd80"\,"dialogRequestId"\:"a5a79a96-9c22-48a8-8e3a-ceb10d0d0311"}\,"payload"\:{"url"\:"cid\:79493b83-0ce2-40f7-9d53-813097038e1e#Alexa3P\:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/46\:43\:\:TNIH_2V.01c3127c-f939-41e4-84e1-ddaba8e44449ZXV/1_272795490"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:Knowledge#ACRI#79493b83-0ce2-40f7-9d53-813097038e1e#Alexa3P\:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/46\:43\:\:TNIH_2V.01c3127c-f939-41e4-84e1-ddaba8e44449ZXV/1"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:46:47:327
end:: turn on LED
2017-11-21 07:46:47.401 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"0e79e3c0-faa6-40f9-b789-8f774172dd80"\,"dialogRequestId"\:"a5a79a96-9c22-48a8-8e3a-ceb10d0d0311"}\,"payload"\:{"url"\:"cid\:79493b83-0ce2-40f7-9d53-813097038e1e#Alexa3P\:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/46\:43\:\:TNIH_2V.01c3127c-f939-41e4-84e1-ddaba8e44449ZXV/1_272795490"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:Knowledge#ACRI#79493b83-0ce2-40f7-9d53-813097038e1e#Alexa3P\:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/46\:43\:\:TNIH_2V.01c3127c-f939-41e4-84e1-ddaba8e44449ZXV/1"}}}
2017-11-21 07:46:47.401 [ b] I DirectiveRouter:preHandleDirective:messageId=0e79e3c0-faa6-40f9-b789-8f774172dd80,action=calling
2017-11-21 07:46:47.402 [ c] I DirectiveRouter:handleDirective:messageId=0e79e3c0-faa6-40f9-b789-8f774172dd80,action=calling
2017-11-21 07:46:47.403 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:46:47.404 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:46:47.404 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:46:47.404 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:46:47.404 [ 2] E MediaPlayer:doStopSuccess
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:46:47.406 [ d] E MediaPlayer:playCalled
2017-11-21 07:46:47.406 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:46:47.407 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:46:47.407 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:46:47.407 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:46:47.407 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:46:47.407 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:46:47.410 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:46:47.410 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:47.411 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:47.411 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:47.411 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:47.411 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:47.411 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:47.411 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:46:47.411 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:47.412 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:47.412 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:46:47.412 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:47.412 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:46:47.428 [ 1d] E MediaPlayer:onPadAddedCalled
2017-11-21 07:46:48.402 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.403 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.404 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.404 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.404 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.405 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.406 [ 2] E MediaPlayer:handlePadAddedSignalCalled
2017-11-21 07:46:48.410 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.411 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:46:48.411 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2017-11-21 07:46:48.424 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:46:48.424 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:46:48.424 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:46:48.424 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.424 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.425 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:46:48.425 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:46:48.425 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.432 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.432 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.433 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.433 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.433 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.433 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.433 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.434 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:46:48.434 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:46:48.434 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:46:48.434 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:46:48.434 [ 2] E MediaPlayer:handleGetOffsetCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"ada6f546-2fe8-457c-9971-4ae0c04b92bc"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:Knowledge#ACRI#79493b83-0ce2-40f7-9d53-813097038e1e#Alexa3P:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/46:43::TNIH_2V.01c3127c-f939-41e4-84e1-ddaba8e44449ZXV/1"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:46:48:435
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
end:: turn on LED
2017-11-21 07:46:48.683 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:46:53.243 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:46:53.243 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:46:53.472 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:46:53.472 [ 2] E MediaPlayer:doStopSuccess
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"d2181214-e314-42b1-b82b-9526e9c85ff7"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:Knowledge#ACRI#79493b83-0ce2-40f7-9d53-813097038e1e#Alexa3P:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/46:43::TNIH_2V.01c3127c-f939-41e4-84e1-ddaba8e44449ZXV/1"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:46:53:473
end:: turn on LED
2017-11-21 07:46:53.544 [ d] E MediaPlayer:stopCalled
2017-11-21 07:46:53.544 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:46:53.544 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:46:53.544 [ 2] E MediaPlayer:doStopSuccess
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:47:01:362
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:47:05.168 [ 1e] E MediaPlayer:stopCalled
2017-11-21 07:47:05.169 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:47:05.169 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:47:05.169 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:47:05.169 [ 1e] E MediaPlayer:stopCalled
2017-11-21 07:47:05.170 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:47:05.170 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:47:05.170 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:47:05.170 [ 1e] E MediaPlayer:stopCalled
2017-11-21 07:47:05.170 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:47:05.170 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 286320, endIndex = 296640,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 32352
--> RingBufferConsumer m_read_offset = 32352
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:47:05:179
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:47:05:250
SKU detect: CX/SB
Current SKU is: CX
consumer is done
SKU is CX: To play preRecording sound cue
Playing sample: 2 ch, 48000 hz, 16 bit
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 529920, endIndex = 540000,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 529920, endIndex = 540000
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":18080}
m_expectingSpeechTimer.stop...
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:47:05:454
2017-11-21 07:47:05.454 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=a5a79a96-9c22-48a8-8e3a-ceb10d0d0311,newValue=e1a1e15d-400c-44e3-9db3-9d46af1033e1
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:Knowledge#ACRI#79493b83-0ce2-40f7-9d53-813097038e1e#Alexa3P:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/46:43::TNIH_2V.01c3127c-f939-41e4-84e1-ddaba8e44449ZXV/1","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"f882d1f1-d042-4e59-a4c6-764df23baea8","dialogRequestId":"e1a1e15d-400c-44e3-9db3-9d46af1033e1"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":18080}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:47:06:171
2017-11-21 07:47:10.164 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"1f219812-b1c4-4460-be63-d01b0f44a8e7"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:47:10:165
-----> For Vick: mThis->m_wisStatusChanged->isStopCaptureFlag
End Recording!!!!!!! --> 2017-11-21 15:47:10:178
closing input, handle(2457)
closing input
--> m_wisStatusChanged->isStopCaptureFlag = 1
---> Recognize done! --> 2017-11-21 15:47:10:212
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
2017-11-21 07:47:10.218 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:47:10:219
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:47:10:262
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
2017-11-21 07:47:10.264 [ 1f] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:47:10:265
2017-11-21 07:47:10.265 [ 1f] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0x2a6400, size 640, handle(2457)-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:47:10:267
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
end:: turn on LED
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
2017-11-21 07:47:10.270 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"1f219812-b1c4-4460-be63-d01b0f44a8e7"}\,"payload"\:{}}}
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
2017-11-21 07:47:10.270 [ b] I DirectiveRouter:preHandleDirective:messageId=1f219812-b1c4-4460-be63-d01b0f44a8e7,action=calling
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
2017-11-21 07:47:10.270 [ c] I DirectiveRouter:handleDirective:messageId=1f219812-b1c4-4460-be63-d01b0f44a8e7,action=calling
Failed to fetch the lookup information of the device 00000004
AudioInputProcessor::handleDirective --------StopCapture
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
2017-11-21 07:47:10.271 [ 7] E AudioInputProcessor:executeStopCaptureFailed:reason=invalidState,expectedState=RECOGNIZING,state=IDLE
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:47:11:209
##### End recording!
checkAvsResponseTimeout: have not a valid directive, so restore the default light------ --> 2017-11-21 15:47:11:665
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:47:11:665
end:: turn on LED
2017-11-21 07:47:11.839 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"6b5ac30e-d1c7-417a-bc29-3f3d4233614e"\,"dialogRequestId"\:"e1a1e15d-400c-44e3-9db3-9d46af1033e1"}\,"payload"\:{"url"\:"cid\:b0c9314a-5a42-426d-8279-ac68708ea0d9#Alexa3P\:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/47\:06\:\:TNIH_2V.c10ee8c8-0143-42e9-b6d5-4a7515204ffdZXV/1_679617235"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:Knowledge#ACRI#b0c9314a-5a42-426d-8279-ac68708ea0d9#Alexa3P\:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/47\:06\:\:TNIH_2V.c10ee8c8-0143-42e9-b6d5-4a7515204ffdZXV/1"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:47:11:840
end:: turn on LED
2017-11-21 07:47:11.950 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"6b5ac30e-d1c7-417a-bc29-3f3d4233614e"\,"dialogRequestId"\:"e1a1e15d-400c-44e3-9db3-9d46af1033e1"}\,"payload"\:{"url"\:"cid\:b0c9314a-5a42-426d-8279-ac68708ea0d9#Alexa3P\:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/47\:06\:\:TNIH_2V.c10ee8c8-0143-42e9-b6d5-4a7515204ffdZXV/1_679617235"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:Knowledge#ACRI#b0c9314a-5a42-426d-8279-ac68708ea0d9#Alexa3P\:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/47\:06\:\:TNIH_2V.c10ee8c8-0143-42e9-b6d5-4a7515204ffdZXV/1"}}}
2017-11-21 07:47:11.950 [ b] I DirectiveRouter:preHandleDirective:messageId=6b5ac30e-d1c7-417a-bc29-3f3d4233614e,action=calling
2017-11-21 07:47:11.950 [ c] I DirectiveRouter:handleDirective:messageId=6b5ac30e-d1c7-417a-bc29-3f3d4233614e,action=calling
2017-11-21 07:47:11.951 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:47:11.951 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:47:11.951 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:47:11.951 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:47:11.951 [ 2] E MediaPlayer:doStopSuccess
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:47:11.953 [ d] E MediaPlayer:playCalled
2017-11-21 07:47:11.953 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:47:11.953 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:47:11.953 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:47:11.953 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:47:11.953 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:47:11.953 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:47:11.955 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:47:11.955 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:11.955 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:11.955 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:11.955 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:11.955 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:11.955 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:11.956 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:47:11.956 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:11.956 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:11.956 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:47:11.956 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:11.956 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:47:11.970 [ 20] E MediaPlayer:onPadAddedCalled
2017-11-21 07:47:12.324 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.324 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.325 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.325 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.326 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.326 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.327 [ 2] E MediaPlayer:handlePadAddedSignalCalled
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
2017-11-21 07:47:12.519 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.519 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:47:12.519 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:47:12.519 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:47:12.519 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:47:12.520 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:47:12.521 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2017-11-21 07:47:12.522 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:47:12.522 [ 2] E MediaPlayer:handleGetOffsetCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"871c84a5-7e2d-4de8-be8c-6009fa6d572f"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:Knowledge#ACRI#b0c9314a-5a42-426d-8279-ac68708ea0d9#Alexa3P:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/47:06::TNIH_2V.c10ee8c8-0143-42e9-b6d5-4a7515204ffdZXV/1"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:47:12:523
end:: turn on LED
2017-11-21 07:47:12.604 [ 2] E MediaPlayer:messageReceived:messageType=tag
findMe:: receive from 10.42.0.92
Nut2AVS: findMe:: Run action with command...find_devices:
Nut2AVS: findMe:: find devices...
WisCommon getDeviceName: NUT2_06b4ad22
ifconfig wlan0: 10.42.0.14
WisCommon getIPAddress: 10.42.0.14
socketfd = 56
send content is: device:name=NUT2_06b4ad22,ip=10.42.0.14
send avs data ok
Nut2AVS: findMe:: waiting for new command...
2017-11-21 07:47:18.363 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:47:18.364 [ 2] E MediaPlayer:tearDownTransientPipelineElements
findMe:: receive from 10.42.0.92
Nut2AVS: findMe:: Run action with command...find_devices:
Nut2AVS: findMe:: find devices...
WisCommon getDeviceName: NUT2_06b4ad22
ifconfig wlan0: 10.42.0.14
WisCommon getIPAddress: 10.42.0.14
socketfd = 53
send content is: device:name=NUT2_06b4ad22,ip=10.42.0.14
send avs data ok
Nut2AVS: findMe:: waiting for new command...
2017-11-21 07:47:18.602 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:47:18.602 [ 2] E MediaPlayer:doStopSuccess
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"1297e311-7d38-4200-b303-255abf16da7d"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:Knowledge#ACRI#b0c9314a-5a42-426d-8279-ac68708ea0d9#Alexa3P:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/47:06::TNIH_2V.c10ee8c8-0143-42e9-b6d5-4a7515204ffdZXV/1"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:47:18:603
end:: turn on LED
2017-11-21 07:47:18.670 [ d] E MediaPlayer:stopCalled
2017-11-21 07:47:18.670 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:47:18.670 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:47:18.670 [ 2] E MediaPlayer:doStopSuccess
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:47:25:264
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:47:40:766
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:47:56:269
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:48:11:770
findMe:: receive from 10.42.0.92
Nut2AVS: findMe:: Run action with command...find_devices:
Nut2AVS: findMe:: find devices...
WisCommon getDeviceName: NUT2_06b4ad22
ifconfig wlan0: 10.42.0.14
WisCommon getIPAddress: 10.42.0.14
socketfd = 53
send content is: device:name=NUT2_06b4ad22,ip=10.42.0.14
send avs data ok
Nut2AVS: findMe:: waiting for new command...
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:48:27:273
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:48:42:774
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:48:45.919 [ 21] E MediaPlayer:stopCalled
2017-11-21 07:48:45.919 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:48:45.920 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:48:45.920 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:48:45.920 [ 21] E MediaPlayer:stopCalled
2017-11-21 07:48:45.920 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:48:45.921 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:48:45.921 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:48:45.921 [ 21] E MediaPlayer:stopCalled
2017-11-21 07:48:45.921 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:48:45.922 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 1517760, endIndex = 1526640,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 398080
--> RingBufferConsumer m_read_offset = 398080
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:48:45:933
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:48:46:11
consumer is done
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 629760, endIndex = 638880,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 629760, endIndex = 638880
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":17120}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:48:46:198
2017-11-21 07:48:46.199 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=e1a1e15d-400c-44e3-9db3-9d46af1033e1,newValue=bfaea7a0-edb3-4182-ab4f-69550ae08926
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:Knowledge#ACRI#b0c9314a-5a42-426d-8279-ac68708ea0d9#Alexa3P:1.0/2017/11/21/07/30cda942574346bfae629edb63ae8f22/47:06::TNIH_2V.c10ee8c8-0143-42e9-b6d5-4a7515204ffdZXV/1","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"ecd551ee-0c09-4134-9c1a-f8f42ce15007","dialogRequestId":"bfaea7a0-edb3-4182-ab4f-69550ae08926"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":17120}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:48:46:935
Test for session with handle(2457) completed.
End Recording!!!!!!! --> 2017-11-21 15:48:52:7
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:48:52:55
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:48:53:34
##### End recording!
2017-11-21 07:48:53.265 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"d358e3a5-7ce4-4266-97f0-3e7e5fbee74a"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
--> m_wisStatusChanged->isStopCaptureFlag = 1
start:: turn on LED
---> Recognize done! --> 2017-11-21 15:48:53:265
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
Start to open < THINKING > LED --> 2017-11-21 15:48:53:265
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:48:53:316
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:48:53:317
2017-11-21 07:48:53.317 [ 22] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:48:53.318 [ 22] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0x2a3000, size 640, handle(2457)-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:48:53:320
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
end:: turn on LED
2017-11-21 07:48:53.331 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"d358e3a5-7ce4-4266-97f0-3e7e5fbee74a"}\,"payload"\:{}}}
2017-11-21 07:48:53.331 [ b] I DirectiveRouter:preHandleDirective:messageId=d358e3a5-7ce4-4266-97f0-3e7e5fbee74a,action=calling
2017-11-21 07:48:53.331 [ c] I DirectiveRouter:handleDirective:messageId=d358e3a5-7ce4-4266-97f0-3e7e5fbee74a,action=calling
AudioInputProcessor::handleDirective --------StopCapture
2017-11-21 07:48:53.332 [ 7] E AudioInputProcessor:executeStopCaptureFailed:reason=invalidState,expectedState=RECOGNIZING,state=IDLE
2017-11-21 07:48:54.034 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
checkAvsResponseTimeout: have not a valid directive, so restore the default light------ --> 2017-11-21 15:48:54:766
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:48:54:766
end:: turn on LED
2017-11-21 07:48:57.242 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"cb9576e8-b462-4f7e-b79d-4203e25449f3"\,"dialogRequestId"\:"bfaea7a0-edb3-4182-ab4f-69550ae08926"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_1b49b93a-35bb-49b1-a631-42bc6591638b_2064094934"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_1b49b93a-35bb-49b1-a631-42bc6591638b"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:48:57:243
end:: turn on LED
2017-11-21 07:48:57.314 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"cb9576e8-b462-4f7e-b79d-4203e25449f3"\,"dialogRequestId"\:"bfaea7a0-edb3-4182-ab4f-69550ae08926"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_1b49b93a-35bb-49b1-a631-42bc6591638b_2064094934"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_1b49b93a-35bb-49b1-a631-42bc6591638b"}}}
2017-11-21 07:48:57.314 [ b] I DirectiveRouter:preHandleDirective:messageId=cb9576e8-b462-4f7e-b79d-4203e25449f3,action=calling
2017-11-21 07:48:57.315 [ c] I DirectiveRouter:handleDirective:messageId=cb9576e8-b462-4f7e-b79d-4203e25449f3,action=calling
2017-11-21 07:48:57.315 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:48:57.316 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:48:57.316 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:48:57.316 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:48:57.316 [ 2] E MediaPlayer:doStopSuccess
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:48:57.318 [ d] E MediaPlayer:playCalled
2017-11-21 07:48:57.318 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:48:57.318 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:48:57.318 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:48:57.318 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:48:57.318 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:48:57.318 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:48:57.320 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:48:57.320 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.320 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.320 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.320 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.320 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.321 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.321 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:48:57.321 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.321 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.321 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:48:57.321 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.321 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:48:57.321 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2017-11-21 07:48:57.334 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.334 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.336 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.337 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.340 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.340 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.341 [ 23] E MediaPlayer:onPadAddedCalled
2017-11-21 07:48:57.342 [ 2] E MediaPlayer:handlePadAddedSignalCalled
2017-11-21 07:48:57.343 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.344 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:48:57.349 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:48:57.349 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:48:57.350 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:48:57.350 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.350 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.350 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:48:57.350 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:48:57.351 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.361 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.362 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.362 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.362 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.363 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.363 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.363 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.363 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:48:57.363 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:48:57.364 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:48:57.364 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:48:57.365 [ 2] E MediaPlayer:handleGetOffsetCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"2ed23e55-8bdd-4350-b219-e6e2f3b395eb"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_1b49b93a-35bb-49b1-a631-42bc6591638b"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:48:57:366
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
end:: turn on LED
2017-11-21 07:48:57.639 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:48:59.157 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:48:59.157 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:48:59.383 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:48:59.383 [ 2] E MediaPlayer:doStopSuccess
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"0d4826ed-f264-4b89-9941-3c494e68231f"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_1b49b93a-35bb-49b1-a631-42bc6591638b"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:48:59:384
end:: turn on LED
2017-11-21 07:48:59.441 [ d] E MediaPlayer:stopCalled
2017-11-21 07:48:59.441 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:48:59.441 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:48:59.441 [ 2] E MediaPlayer:doStopSuccess
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:49:05.190 [ 24] E MediaPlayer:stopCalled
2017-11-21 07:49:05.190 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:49:05.190 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:49:05.191 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:49:05.191 [ 24] E MediaPlayer:stopCalled
2017-11-21 07:49:05.191 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:49:05.191 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:49:05.191 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:49:05.191 [ 24] E MediaPlayer:stopCalled
2017-11-21 07:49:05.192 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:49:05.192 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 177360, endIndex = 186000,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 338720
--> RingBufferConsumer m_read_offset = 338720
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:49:05:195
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:49:05:268
SKU detect: CX/SB
Current SKU is: CX
consumer is done
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 746160, endIndex = 755040,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 746160, endIndex = 755040
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":16880}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:49:05:452
2017-11-21 07:49:05.452 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=bfaea7a0-edb3-4182-ab4f-69550ae08926,newValue=7bfeed1c-b997-411a-b8bb-4c3257a9a6bb
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_1b49b93a-35bb-49b1-a631-42bc6591638b","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"c9250862-5bcd-46d2-8be1-151af385b008","dialogRequestId":"7bfeed1c-b997-411a-b8bb-4c3257a9a6bb"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":16880}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:49:06:203
2017-11-21 07:49:08.547 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"4183c0e5-4e5c-4450-8dcf-ab96161d065f"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:49:08:548
-----> For Vick: mThis->m_wisStatusChanged->isStopCaptureFlag
End Recording!!!!!!! --> 2017-11-21 15:49:08:558
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:49:08:601
SKU detect: CX/SB
Current SKU is: CX
end:: turn on LED
2017-11-21 07:49:08.619 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"4183c0e5-4e5c-4450-8dcf-ab96161d065f"}\,"payload"\:{}}}
2017-11-21 07:49:08.619 [ b] I DirectiveRouter:preHandleDirective:messageId=4183c0e5-4e5c-4450-8dcf-ab96161d065f,action=calling
2017-11-21 07:49:08.620 [ c] I DirectiveRouter:handleDirective:messageId=4183c0e5-4e5c-4450-8dcf-ab96161d065f,action=calling
AudioInputProcessor::handleDirective --------StopCapture
2017-11-21 07:49:08.620 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
SKU is CX: To play postRecording sound cue
--> m_wisStatusChanged->isStopCaptureFlag = 1
---> Recognize done! --> 2017-11-21 15:49:08:623
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:49:08:673
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:49:08:674
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xabb39400, size 640, handle(2457)2017-11-21 07:49:08.675 [ 25] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:49:08:675
2017-11-21 07:49:08.675 [ 25] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:49:09:581
##### End recording!
checkAvsResponseTimeout: have not a valid directive, so restore the default light------ --> 2017-11-21 15:49:10:48
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:49:10:48
end:: turn on LED
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:49:23:675
2017-11-21 07:49:29.914 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"eead30bb-3407-4611-8f65-b312593db861"\,"dialogRequestId"\:"7bfeed1c-b997-411a-b8bb-4c3257a9a6bb"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_e49db254-492e-402c-be76-05054f34a82b_54644064"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_e49db254-492e-402c-be76-05054f34a82b"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:49:29:915
end:: turn on LED
2017-11-21 07:49:29.994 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"eead30bb-3407-4611-8f65-b312593db861"\,"dialogRequestId"\:"7bfeed1c-b997-411a-b8bb-4c3257a9a6bb"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_e49db254-492e-402c-be76-05054f34a82b_54644064"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_e49db254-492e-402c-be76-05054f34a82b"}}}
2017-11-21 07:49:29.995 [ b] I DirectiveRouter:preHandleDirective:messageId=eead30bb-3407-4611-8f65-b312593db861,action=calling
2017-11-21 07:49:29.995 [ c] I DirectiveRouter:handleDirective:messageId=eead30bb-3407-4611-8f65-b312593db861,action=calling
2017-11-21 07:49:29.995 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:49:29.996 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:49:29.996 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:49:29.996 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:49:29.996 [ 2] E MediaPlayer:doStopSuccess
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:49:29.997 [ d] E MediaPlayer:playCalled
2017-11-21 07:49:29.997 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:49:29.997 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:49:29.998 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:49:29.998 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:49:29.998 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:49:29.998 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:49:29.999 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:49:29.999 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:29.999 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:29.999 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:29.999 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:29.999 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.000 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.000 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:49:30.000 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.000 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.000 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:49:30.000 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.000 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:49:30.000 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2017-11-21 07:49:30.010 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.010 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.012 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.013 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.016 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.016 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.017 [ 26] E MediaPlayer:onPadAddedCalled
2017-11-21 07:49:30.018 [ 2] E MediaPlayer:handlePadAddedSignalCalled
2017-11-21 07:49:30.020 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.020 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:49:30.025 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:49:30.025 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:49:30.025 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:49:30.026 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.026 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.026 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:49:30.026 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:49:30.027 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.035 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.036 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.037 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.037 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.037 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.037 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.037 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.038 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:49:30.038 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:49:30.038 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:49:30.039 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:49:30.039 [ 2] E MediaPlayer:handleGetOffsetCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"1d30b414-3b6f-4314-9c3e-ce0211105b91"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_e49db254-492e-402c-be76-05054f34a82b"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:49:30:40
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
end:: turn on LED
2017-11-21 07:49:30.304 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:49:31.863 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:49:31.863 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:49:32.121 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:49:32.122 [ 2] E MediaPlayer:doStopSuccess
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"94e1e995-ae17-4bff-b223-656c2809f8f7"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_e49db254-492e-402c-be76-05054f34a82b"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:49:32:123
end:: turn on LED
2017-11-21 07:49:32.236 [ d] E MediaPlayer:stopCalled
2017-11-21 07:49:32.237 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:49:32.237 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:49:32.237 [ 2] E MediaPlayer:doStopSuccess
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:49:39:178
findMe:: receive from 10.42.0.92
Nut2AVS: findMe:: Run action with command...find_devices:
Nut2AVS: findMe:: find devices...
WisCommon getDeviceName: NUT2_06b4ad22
ifconfig wlan0: 10.42.0.14
WisCommon getIPAddress: 10.42.0.14
socketfd = 53
send content is: device:name=NUT2_06b4ad22,ip=10.42.0.14
send avs data ok
Nut2AVS: findMe:: waiting for new command...
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:49:54:679
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:50:10:180
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:50:25:681
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:50:32.784 [ 27] E MediaPlayer:stopCalled
2017-11-21 07:50:32.785 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:50:32.785 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:50:32.785 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:50:32.785 [ 27] E MediaPlayer:stopCalled
2017-11-21 07:50:32.786 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:50:32.786 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:50:32.786 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:50:32.786 [ 27] E MediaPlayer:stopCalled
2017-11-21 07:50:32.786 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:50:32.786 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 1334160, endIndex = 1343280,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 30880
--> RingBufferConsumer m_read_offset = 30880
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:50:32:803
consumer is done
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:50:32:879
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 819600, endIndex = 828240,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 819600, endIndex = 828240
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":16640}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:50:33:57
2017-11-21 07:50:33.058 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=7bfeed1c-b997-411a-b8bb-4c3257a9a6bb,newValue=c00d9d14-33fd-4c85-9ce8-798bd478fb80
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_e49db254-492e-402c-be76-05054f34a82b","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"f75f897e-1920-425c-b5b8-9cad07522d92","dialogRequestId":"c00d9d14-33fd-4c85-9ce8-798bd478fb80"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":16640}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:50:33:802
2017-11-21 07:50:35.722 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"866e1466-8a0c-4ee6-966c-bd1f53bdc5df"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:50:35:723
-----> For Vick: mThis->m_wisStatusChanged->isStopCaptureFlag
End Recording!!!!!!! --> 2017-11-21 15:50:35:737
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:50:35:785
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
--> m_wisStatusChanged->isStopCaptureFlag = 1
---> Recognize done! --> 2017-11-21 15:50:35:819
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
end:: turn on LED
2017-11-21 07:50:35.822 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"866e1466-8a0c-4ee6-966c-bd1f53bdc5df"}\,"payload"\:{}}}
2017-11-21 07:50:35.822 [ b] I DirectiveRouter:preHandleDirective:messageId=866e1466-8a0c-4ee6-966c-bd1f53bdc5df,action=calling
2017-11-21 07:50:35.822 [ c] I DirectiveRouter:handleDirective:messageId=866e1466-8a0c-4ee6-966c-bd1f53bdc5df,action=calling
AudioInputProcessor::handleDirective --------StopCapture
2017-11-21 07:50:35.823 [ 7] E AudioInputProcessor:executeStopCaptureFailed:reason=invalidState,expectedState=RECOGNIZING,state=IDLE
2017-11-21 07:50:35.826 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:50:35:870
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:50:35:870
2017-11-21 07:50:35.871 [ 28] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:50:35.872 [ 28] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xa92978e8, size 640, handle(2457)-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:50:35:873
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
Playing sample: 2 ch, 48000 hz, 16 bit
isNetworkChecking = 0
received SIGUSR1
ifconfig wlan0: 10.42.0.14
WisCommon getIPAddress: 10.42.0.14
Wifi connected...
2017-11-21 07:50:36.663 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"bb34fc59-21f5-4e34-9717-95befdf70f3b"\,"dialogRequestId"\:"c00d9d14-33fd-4c85-9ce8-798bd478fb80"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_266e8b03-e7b7-4948-b136-746f960a19b6_176061929"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_266e8b03-e7b7-4948-b136-746f960a19b6"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:50:36:664
end:: turn on LED
2017-11-21 07:50:36.731 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"bb34fc59-21f5-4e34-9717-95befdf70f3b"\,"dialogRequestId"\:"c00d9d14-33fd-4c85-9ce8-798bd478fb80"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_266e8b03-e7b7-4948-b136-746f960a19b6_176061929"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_266e8b03-e7b7-4948-b136-746f960a19b6"}}}
2017-11-21 07:50:36.731 [ b] I DirectiveRouter:preHandleDirective:messageId=bb34fc59-21f5-4e34-9717-95befdf70f3b,action=calling
2017-11-21 07:50:36.732 [ c] I DirectiveRouter:handleDirective:messageId=bb34fc59-21f5-4e34-9717-95befdf70f3b,action=calling
2017-11-21 07:50:36.732 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:50:36.733 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:50:36.733 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:50:36.733 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:50:36.733 [ 2] E MediaPlayer:doStopSuccess
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:50:36.735 [ d] E MediaPlayer:playCalled
2017-11-21 07:50:36.735 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:50:36.735 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:50:36.736 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:50:36.736 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:50:36.736 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:50:36.736 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:50:36.738 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:50:36.738 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.738 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.738 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.738 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.738 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.738 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.738 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:50:36.738 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.739 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.739 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:50:36.739 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.739 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:50:36.739 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2017-11-21 07:50:36.754 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.754 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.754 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.755 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.755 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.756 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.757 [ 29] E MediaPlayer:onPadAddedCalled
2017-11-21 07:50:36.757 [ 2] E MediaPlayer:handlePadAddedSignalCalled
2017-11-21 07:50:36.759 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.759 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:50:36.765 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:50:36.765 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:50:36.765 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:50:36.766 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.766 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.766 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:50:36.766 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:50:36.768 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:50:36:777
##### End recording!
2017-11-21 07:50:36.778 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.779 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.780 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.780 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.780 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.780 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.780 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.781 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:50:36.781 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:50:36.781 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:50:36.781 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:50:36.781 [ 2] E MediaPlayer:handleGetOffsetCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"7d769df0-80e5-4e02-aee0-1ecf876962d6"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_266e8b03-e7b7-4948-b136-746f960a19b6"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:50:36:782
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
end:: turn on LED
2017-11-21 07:50:37.053 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:50:38.612 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:50:38.612 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:50:38.859 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:50:38.859 [ 2] E MediaPlayer:doStopSuccess
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"e8670427-e728-4872-9bf9-c4ba7caf8e13"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_266e8b03-e7b7-4948-b136-746f960a19b6"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:50:38:860
end:: turn on LED
2017-11-21 07:50:38.953 [ d] E MediaPlayer:stopCalled
2017-11-21 07:50:38.953 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:50:38.954 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:50:38.954 [ 2] E MediaPlayer:doStopSuccess
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:50:50:871
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:51:21:873
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:51:37:376
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:51:52:878
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:52:05.971 [ 2a] E MediaPlayer:stopCalled
2017-11-21 07:52:05.971 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:52:05.971 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:52:05.971 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:52:05.972 [ 2a] E MediaPlayer:stopCalled
2017-11-21 07:52:05.972 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:52:05.972 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:52:05.972 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:52:05.972 [ 2a] E MediaPlayer:stopCalled
2017-11-21 07:52:05.972 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:52:05.973 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 1429680, endIndex = 1438800,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 221920
--> RingBufferConsumer m_read_offset = 221920
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:52:05:988
consumer is done
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:52:06:58
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 884400, endIndex = 893280,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 884400, endIndex = 893280
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":16880}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:52:06:228
2017-11-21 07:52:06.229 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=c00d9d14-33fd-4c85-9ce8-798bd478fb80,newValue=fbdbb60d-1534-42a1-bbc1-6396841c4a5f
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_266e8b03-e7b7-4948-b136-746f960a19b6","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"270e6431-6c50-4142-8485-dda3090f1808","dialogRequestId":"fbdbb60d-1534-42a1-bbc1-6396841c4a5f"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":16880}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:52:07:17
2017-11-21 07:52:09.246 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"1907d864-fe95-440c-832e-d4b4f4d8783c"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:52:09:246
-----> For Vick: mThis->m_wisStatusChanged->isStopCaptureFlag
End Recording!!!!!!! --> 2017-11-21 15:52:09:259
closing input, handle(2457)
closing input
--> m_wisStatusChanged->isStopCaptureFlag = 1
---> Recognize done! --> 2017-11-21 15:52:09:299
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
2017-11-21 07:52:09.302 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:52:09:304
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
end:: turn on LED
2017-11-21 07:52:09.333 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"1907d864-fe95-440c-832e-d4b4f4d8783c"}\,"payload"\:{}}}
2017-11-21 07:52:09.333 [ b] I DirectiveRouter:preHandleDirective:messageId=1907d864-fe95-440c-832e-d4b4f4d8783c,action=calling
2017-11-21 07:52:09.334 [ c] I DirectiveRouter:handleDirective:messageId=1907d864-fe95-440c-832e-d4b4f4d8783c,action=calling
AudioInputProcessor::handleDirective --------StopCapture
2017-11-21 07:52:09.334 [ 7] E AudioInputProcessor:executeStopCaptureFailed:reason=invalidState,expectedState=RECOGNIZING,state=IDLE
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:52:09:349
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:52:09:350
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0x2a4918, size 640, handle(2457)2017-11-21 07:52:09.351 [ 2b] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:52:09.351 [ 2b] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:52:09:352
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:52:10:355
##### End recording!
2017-11-21 07:52:10.713 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"ba5fb1ea-9579-4741-a988-ace0de6b990d"\,"dialogRequestId"\:"fbdbb60d-1534-42a1-bbc1-6396841c4a5f"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_3b740d6e-5419-4afa-bafa-4461671bf02e_2109530918"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.HouseholdSpeechlet#ACRI#DeviceTTSRendererV4_3b740d6e-5419-4afa-bafa-4461671bf02e"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:52:10:714
end:: turn on LED
2017-11-21 07:52:10.781 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"ba5fb1ea-9579-4741-a988-ace0de6b990d"\,"dialogRequestId"\:"fbdbb60d-1534-42a1-bbc1-6396841c4a5f"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_3b740d6e-5419-4afa-bafa-4461671bf02e_2109530918"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.HouseholdSpeechlet#ACRI#DeviceTTSRendererV4_3b740d6e-5419-4afa-bafa-4461671bf02e"}}}
2017-11-21 07:52:10.781 [ b] I DirectiveRouter:preHandleDirective:messageId=ba5fb1ea-9579-4741-a988-ace0de6b990d,action=calling
2017-11-21 07:52:10.781 [ c] I DirectiveRouter:handleDirective:messageId=ba5fb1ea-9579-4741-a988-ace0de6b990d,action=calling
2017-11-21 07:52:10.782 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:52:10.782 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:52:10.783 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:52:10.783 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:52:10.783 [ 2] E MediaPlayer:doStopSuccess
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:52:10.785 [ d] E MediaPlayer:playCalled
2017-11-21 07:52:10.785 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:52:10.785 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:52:10.785 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:52:10.785 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:52:10.785 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:52:10.785 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:52:10.787 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:52:10.787 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.787 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.787 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.787 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.787 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.787 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.787 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:52:10.788 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.788 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.788 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:52:10.788 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.788 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:52:10.788 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2017-11-21 07:52:10.804 [ 2c] E MediaPlayer:onPadAddedCalled
2017-11-21 07:52:10.805 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.805 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.805 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.805 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.805 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.805 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.805 [ 2] E MediaPlayer:handlePadAddedSignalCalled
2017-11-21 07:52:10.806 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.807 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:52:10.811 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:52:10.812 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:52:10.812 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:52:10.812 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.812 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.812 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:52:10.812 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:52:10.813 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.822 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.823 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.823 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.823 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.823 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.823 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.823 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.824 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:10.824 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:52:10.824 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:52:10.824 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:52:10.825 [ 2] E MediaPlayer:handleGetOffsetCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"7612ab94-4efa-4e2a-aedf-7a915dcb9fe2"},"payload":{"token":"amzn1.as-ct.v1.HouseholdSpeechlet#ACRI#DeviceTTSRendererV4_3b740d6e-5419-4afa-bafa-4461671bf02e"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:52:10:826
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
end:: turn on LED
2017-11-21 07:52:11.092 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:52:13.848 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:52:13.849 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:52:14.118 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:52:14.118 [ 2] E MediaPlayer:doStopSuccess
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"64ea2f14-e709-4174-8ae3-da40ff42bf9e"},"payload":{"token":"amzn1.as-ct.v1.HouseholdSpeechlet#ACRI#DeviceTTSRendererV4_3b740d6e-5419-4afa-bafa-4461671bf02e"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:52:14:120
end:: turn on LED
2017-11-21 07:52:14.245 [ d] E MediaPlayer:stopCalled
2017-11-21 07:52:14.245 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:52:14.245 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:52:14.245 [ 2] E MediaPlayer:doStopSuccess
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:52:18.132 [ 2d] E MediaPlayer:stopCalled
2017-11-21 07:52:18.134 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:52:18.134 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:52:18.134 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:52:18.136 [ 2d] E MediaPlayer:stopCalled
2017-11-21 07:52:18.137 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:52:18.137 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:52:18.137 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:52:18.139 [ 2d] E MediaPlayer:stopCalled
2017-11-21 07:52:18.140 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:52:18.141 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 125040, endIndex = 136320,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 234080
--> RingBufferConsumer m_read_offset = 234080
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:52:18:150
consumer is done
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:52:18:241
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play preRecording sound cue
Playing sample: 2 ch, 48000 hz, 16 bit
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 954960, endIndex = 966000,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 954960, endIndex = 966000
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":19040}
m_expectingSpeechTimer.stop...
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:52:18:450
2017-11-21 07:52:18.451 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=fbdbb60d-1534-42a1-bbc1-6396841c4a5f,newValue=b867eb09-ee23-4107-84ed-d512dd22adda
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.HouseholdSpeechlet#ACRI#DeviceTTSRendererV4_3b740d6e-5419-4afa-bafa-4461671bf02e","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"e75e262a-80c5-4390-bf7c-a961a47d2600","dialogRequestId":"b867eb09-ee23-4107-84ed-d512dd22adda"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":19040}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:52:19:173
2017-11-21 07:52:22.084 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"9dfa3fc1-9558-429b-b9cd-813f1f5a0100"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:52:22:86
-----> For Vick: mThis->m_wisStatusChanged->isStopCaptureFlag
End Recording!!!!!!! --> 2017-11-21 15:52:22:123
closing input, handle(2457)
closing input
--> m_wisStatusChanged->isStopCaptureFlag = 1
---> Recognize done! --> 2017-11-21 15:52:22:129
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
2017-11-21 07:52:22.134 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:52:22:169
SKU detect: CX/SB
Current SKU is: CX
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:52:22:180
___________________________________AIP isExpectDirectStatus: 0
2017-11-21 07:52:22.182 [ 2e] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:52:22.183 [ 2e] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:52:22:186
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xa3df4b40, size 640, handle(2457)-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:52:22:187
end:: turn on LED
2017-11-21 07:52:22.194 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"9dfa3fc1-9558-429b-b9cd-813f1f5a0100"}\,"payload"\:{}}}
2017-11-21 07:52:22.194 [ b] I DirectiveRouter:preHandleDirective:messageId=9dfa3fc1-9558-429b-b9cd-813f1f5a0100,action=calling
2017-11-21 07:52:22.194 [ c] I DirectiveRouter:handleDirective:messageId=9dfa3fc1-9558-429b-b9cd-813f1f5a0100,action=calling
AudioInputProcessor::handleDirective --------StopCapture
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
2017-11-21 07:52:22.195 [ 7] E AudioInputProcessor:executeStopCaptureFailed:reason=invalidState,expectedState=RECOGNIZING,state=IDLE
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
SKU is CX: To play postRecording sound cue
Playing sample: 2 ch, 48000 hz, 16 bit
2017-11-21 07:52:23.069 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"4ee91108-bc6f-48ac-a7be-2dbc086ffdc9"\,"dialogRequestId"\:"b867eb09-ee23-4107-84ed-d512dd22adda"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_b9db5546-2cfa-4a50-b7f1-f0c599df1154_2003298629"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_b9db5546-2cfa-4a50-b7f1-f0c599df1154"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:52:23:70
end:: turn on LED
2017-11-21 07:52:23.160 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"4ee91108-bc6f-48ac-a7be-2dbc086ffdc9"\,"dialogRequestId"\:"b867eb09-ee23-4107-84ed-d512dd22adda"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_b9db5546-2cfa-4a50-b7f1-f0c599df1154_2003298629"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_b9db5546-2cfa-4a50-b7f1-f0c599df1154"}}}
2017-11-21 07:52:23.160 [ b] I DirectiveRouter:preHandleDirective:messageId=4ee91108-bc6f-48ac-a7be-2dbc086ffdc9,action=calling
2017-11-21 07:52:23.160 [ c] I DirectiveRouter:handleDirective:messageId=4ee91108-bc6f-48ac-a7be-2dbc086ffdc9,action=calling
2017-11-21 07:52:23.161 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:52:23.161 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:52:23.161 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:52:23.162 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:52:23.162 [ 2] E MediaPlayer:doStopSuccess
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:52:23.163 [ d] E MediaPlayer:playCalled
2017-11-21 07:52:23.163 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:52:23.163 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:52:23.164 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:52:23.164 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:52:23.164 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:52:23.164 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:52:23.165 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:52:23.165 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.165 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.165 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.165 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.165 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.166 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.166 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:52:23.166 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.166 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.166 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:52:23.166 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.166 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:52:23.167 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2017-11-21 07:52:23.178 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.178 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:52:23:178
##### End recording!
2017-11-21 07:52:23.181 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.181 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.183 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.183 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.185 [ 2f] E MediaPlayer:onPadAddedCalled
2017-11-21 07:52:23.185 [ 2] E MediaPlayer:handlePadAddedSignalCalled
2017-11-21 07:52:23.186 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.186 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:52:23.191 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:52:23.191 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:52:23.192 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:52:23.192 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.192 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.192 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:52:23.193 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:52:23.193 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.193 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.202 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.203 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.204 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.204 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.204 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.205 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.205 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:52:23.205 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:52:23.205 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:52:23.206 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:52:23.206 [ 2] E MediaPlayer:handleGetOffsetCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"005f5a43-f2ce-4c4d-a706-efb28d31df5b"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_b9db5546-2cfa-4a50-b7f1-f0c599df1154"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:52:23:207
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
end:: turn on LED
2017-11-21 07:52:23.476 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:52:24.995 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:52:24.995 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:52:25.283 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:52:25.284 [ 2] E MediaPlayer:doStopSuccess
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"4e6bebb5-3433-4793-891d-deb9cf19a018"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_b9db5546-2cfa-4a50-b7f1-f0c599df1154"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:52:25:285
end:: turn on LED
2017-11-21 07:52:25.391 [ d] E MediaPlayer:stopCalled
2017-11-21 07:52:25.391 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:52:25.391 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:52:25.391 [ 2] E MediaPlayer:doStopSuccess
findMe:: receive from 10.42.0.62
Nut2AVS: findMe:: Run action with command...find_devices:
Nut2AVS: findMe:: find devices...
WisCommon getDeviceName: NUT2_06b4ad22
ifconfig wlan0: 10.42.0.14
WisCommon getIPAddress: 10.42.0.14
socketfd = 53
send content is: device:name=NUT2_06b4ad22,ip=10.42.0.14
send avs data ok
Nut2AVS: findMe:: waiting for new command...
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:52:37:182
findMe:: receive from 10.42.0.62
Nut2AVS: findMe:: Run action with command...find_devices:
Nut2AVS: findMe:: find devices...
WisCommon getDeviceName: NUT2_06b4ad22
ifconfig wlan0: 10.42.0.14
WisCommon getIPAddress: 10.42.0.14
socketfd = 53
send content is: device:name=NUT2_06b4ad22,ip=10.42.0.14
send avs data ok
Nut2AVS: findMe:: waiting for new command...
findMe:: receive from 10.42.0.62
Nut2AVS: findMe:: Run action with command...find_devices:
Nut2AVS: findMe:: find devices...
WisCommon getDeviceName: NUT2_06b4ad22
ifconfig wlan0: 10.42.0.14
WisCommon getIPAddress: 10.42.0.14
socketfd = 53
send content is: device:name=NUT2_06b4ad22,ip=10.42.0.14
send avs data ok
Nut2AVS: findMe:: waiting for new command...
findMe:: receive from 10.42.0.92
Nut2AVS: findMe:: Run action with command...find_devices:
Nut2AVS: findMe:: find devices...
WisCommon getDeviceName: NUT2_06b4ad22
ifconfig wlan0: 10.42.0.14
WisCommon getIPAddress: 10.42.0.14
socketfd = 53
send content is: device:name=NUT2_06b4ad22,ip=10.42.0.14
send avs data ok
Nut2AVS: findMe:: waiting for new command...
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:52:52:684
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:53:08:187
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:53:21.995 [ 30] E MediaPlayer:stopCalled
2017-11-21 07:53:21.996 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:53:21.996 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:53:21.996 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:53:21.996 [ 30] E MediaPlayer:stopCalled
2017-11-21 07:53:21.996 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:53:21.996 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:53:21.996 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:53:21.997 [ 30] E MediaPlayer:stopCalled
2017-11-21 07:53:21.997 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:53:21.997 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 944880, endIndex = 954240,
___________________________________AIP isExpectDirectStatus: 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:53:21:999
--> handleOneSpeechBySensory::readOffset = 300896
--> RingBufferConsumer m_read_offset = 300896
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:53:22:75
SKU detect: CX/SB
Current SKU is: CX
consumer is done
SKU is CX: To play preRecording sound cue
Playing sample: 2 ch, 48000 hz, 16 bit
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 1038480, endIndex = 1047840,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 1038480, endIndex = 1047840
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":17360}
m_expectingSpeechTimer.stop...
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:53:22:280
2017-11-21 07:53:22.280 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=b867eb09-ee23-4107-84ed-d512dd22adda,newValue=c9d98385-6eb5-415c-b175-15ce397f5cca
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_b9db5546-2cfa-4a50-b7f1-f0c599df1154","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"d2ffbc55-4cda-412c-a6a4-99c8c5cabdf4","dialogRequestId":"c9d98385-6eb5-415c-b175-15ce397f5cca"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":17360}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:53:23:0
Test for session with handle(2457) completed.
End Recording!!!!!!! --> 2017-11-21 15:53:28:14
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:53:28:73
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:53:29:95
##### End recording!
Can't detect a stopCapture directure ------
--> m_wisStatusChanged->isStopCaptureFlag = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:53:29:531
end:: turn on LED
get recording file count: 0
To execute copy command: cp /data/nut2_avs/hal_rec_test_rec_send.wav /data/nut2_avs/recording/recording_20171121075329.wav
---> Recognize done! --> 2017-11-21 15:53:29:738
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:53:29:788
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:53:29:789
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xa3ddccf8, size 640, handle(2457)2017-11-21 07:53:29.790 [ 31] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:53:29:791
2017-11-21 07:53:29.790 [ 31] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:53:44:791
2017-11-21 07:53:52.361 [ 9] I HTTP2Transport:streamProgressTimedOut:streamId=77
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:54:00:293
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:54:15:794
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:54:31:295
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:54:46:796
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:55:02:296
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:55:17:797
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:55:33:298
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:55:48:799
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:56:04:300
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:56:18.606 [ 32] E MediaPlayer:stopCalled
2017-11-21 07:56:18.606 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:56:18.606 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:56:18.606 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:56:18.607 [ 32] E MediaPlayer:stopCalled
2017-11-21 07:56:18.607 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:56:18.607 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:56:18.607 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:56:18.607 [ 32] E MediaPlayer:stopCalled
2017-11-21 07:56:18.608 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:56:18.608 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 2690400, endIndex = 2697840,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 121920
--> RingBufferConsumer m_read_offset = 121920
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:56:18:617
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:56:18:693
SKU detect: CX/SB
Current SKU is: CX
consumer is done
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 1151760, endIndex = 1159200,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 1151760, endIndex = 1159200
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":15440}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:56:18:856
2017-11-21 07:56:18.857 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=c9d98385-6eb5-415c-b175-15ce397f5cca,newValue=308b85c2-642f-487c-8521-3b557cd7bc14
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_b9db5546-2cfa-4a50-b7f1-f0c599df1154","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"b8a8b166-2d6e-4d58-acff-e98ce8a18d53","dialogRequestId":"308b85c2-642f-487c-8521-3b557cd7bc14"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":15440}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:56:19:661
Test for session with handle(2457) completed.
End Recording!!!!!!! --> 2017-11-21 15:56:25:12
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:56:25:67
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:56:26:38
##### End recording!
Can't detect a stopCapture directure ------
--> m_wisStatusChanged->isStopCaptureFlag = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:56:26:586
end:: turn on LED
mkdir: cannot create directory '/data/nut2_avs/recording': File exists
get recording file count: 2
To execute copy command: cp /data/nut2_avs/hal_rec_test_rec_send.wav /data/nut2_avs/recording/recording_20171121075626.wav
---> Recognize done! --> 2017-11-21 15:56:26:749
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:56:26:799
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:56:26:800
2017-11-21 07:56:26.801 [ 33] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
-----> For Vick: qahw_open_input_stream...
2017-11-21 07:56:26.801 [ 33] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
input opened, buffer 0xa3df36f8, size 640, handle(2457)-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:56:26:802
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:56:41:800
2017-11-21 07:56:48.874 [ 9] I HTTP2Transport:streamProgressTimedOut:streamId=79
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:56:53.762 [ 34] E MediaPlayer:stopCalled
2017-11-21 07:56:53.762 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:56:53.762 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:56:53.762 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:56:53.763 [ 34] E MediaPlayer:stopCalled
2017-11-21 07:56:53.763 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:56:53.763 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:56:53.763 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:56:53.763 [ 34] E MediaPlayer:stopCalled
2017-11-21 07:56:53.763 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:56:53.764 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 418800, endIndex = 428160,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 297312
--> RingBufferConsumer m_read_offset = 297312
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:56:53:774
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:56:53:851
SKU detect: CX/SB
Current SKU is: CX
consumer is done
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 1271040, endIndex = 1280640,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 1271040, endIndex = 1280640
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":17600}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:56:54:31
2017-11-21 07:56:54.032 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=308b85c2-642f-487c-8521-3b557cd7bc14,newValue=a607f296-fb24-4ac7-bee8-11af511086f9
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_b9db5546-2cfa-4a50-b7f1-f0c599df1154","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"e67a2b89-cb98-4b3c-b25d-bc4c97f96212","dialogRequestId":"a607f296-fb24-4ac7-bee8-11af511086f9"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":17600}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:56:54:792
Test for session with handle(2457) completed.
End Recording!!!!!!! --> 2017-11-21 15:57:00:10
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:57:00:63
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:57:01:54
##### End recording!
Can't detect a stopCapture directure ------
--> m_wisStatusChanged->isStopCaptureFlag = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:57:01:592
end:: turn on LED
mkdir: cannot create directory '/data/nut2_avs/recording': File exists
get recording file count: 3
To execute copy command: cp /data/nut2_avs/hal_rec_test_rec_send.wav /data/nut2_avs/recording/recording_20171121075701.wav
---> Recognize done! --> 2017-11-21 15:57:01:775
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:57:01:825
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:57:01:826
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xa3df4f90, size 640, handle(2457)2017-11-21 07:57:01.827 [ 35] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:57:01.827 [ 35] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:57:01:827
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:57:16:827
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:57:17.331 [ 36] E MediaPlayer:stopCalled
2017-11-21 07:57:17.332 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:57:17.332 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:57:17.332 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:57:17.332 [ 36] E MediaPlayer:stopCalled
2017-11-21 07:57:17.333 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:57:17.333 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:57:17.333 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:57:17.333 [ 36] E MediaPlayer:stopCalled
2017-11-21 07:57:17.333 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:57:17.333 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 235200, endIndex = 245280,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 454400
--> RingBufferConsumer m_read_offset = 454400
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:57:17:342
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:57:17:413
SKU detect: CX/SB
Current SKU is: CX
consumer is done
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 1389840, endIndex = 1400160,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 1389840, endIndex = 1400160
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":18320}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:57:17:602
2017-11-21 07:57:17.603 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=a607f296-fb24-4ac7-bee8-11af511086f9,newValue=1cc594ab-8b4f-4bc7-9f19-f5a24896e3c2
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_b9db5546-2cfa-4a50-b7f1-f0c599df1154","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"dffd6c1e-61b5-40d2-95e0-d2442fe51d5a","dialogRequestId":"1cc594ab-8b4f-4bc7-9f19-f5a24896e3c2"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":18320}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:57:18:347
Test for session with handle(2457) completed.
End Recording!!!!!!! --> 2017-11-21 15:57:24:2
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:57:24:59
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
2017-11-21 07:57:24.121 [ 9] I HTTP2Transport:streamProgressTimedOut:streamId=81
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:57:25:72
##### End recording!
Can't detect a stopCapture directure ------
--> m_wisStatusChanged->isStopCaptureFlag = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:57:25:543
end:: turn on LED
mkdir: cannot create directory '/data/nut2_avs/recording': File exists
get recording file count: 4
To execute copy command: cp /data/nut2_avs/hal_rec_test_rec_send.wav /data/nut2_avs/recording/recording_20171121075725.wav
---> Recognize done! --> 2017-11-21 15:57:25:728
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:57:25:779
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:57:25:784
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xa3dddc00, size 640, handle(2457)2017-11-21 07:57:25.787 [ 37] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:57:25:789
2017-11-21 07:57:25.788 [ 37] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:57:40:785
2017-11-21 07:57:54.132 [ 9] I HTTP2Transport:streamProgressTimedOut:streamId=83
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:57:56:287
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:58:01.332 [ 38] E MediaPlayer:stopCalled
2017-11-21 07:58:01.332 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:58:01.332 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:58:01.333 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:58:01.333 [ 38] E MediaPlayer:stopCalled
2017-11-21 07:58:01.333 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:58:01.333 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:58:01.333 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:58:01.333 [ 38] E MediaPlayer:stopCalled
2017-11-21 07:58:01.333 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:58:01.333 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 556320, endIndex = 565920,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 48064
--> RingBufferConsumer m_read_offset = 48064
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:58:01:351
consumer is done
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:58:01:419
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 1515360, endIndex = 1524960,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 1515360, endIndex = 1524960
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":17600}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:58:01:603
2017-11-21 07:58:01.604 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=1cc594ab-8b4f-4bc7-9f19-f5a24896e3c2,newValue=dd3acb84-433b-4968-827e-93dcc484d691
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_b9db5546-2cfa-4a50-b7f1-f0c599df1154","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"8831a160-c84d-4b28-9b51-6de43486dca3","dialogRequestId":"dd3acb84-433b-4968-827e-93dcc484d691"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":17600}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:58:02:342
Test for session with handle(2457) completed.
End Recording!!!!!!! --> 2017-11-21 15:58:08:11
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:58:08:64
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play postRecording sound cue
Playing sample: 2 ch, 48000 hz, 16 bit
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:58:09:68
##### End recording!
Can't detect a stopCapture directure ------
--> m_wisStatusChanged->isStopCaptureFlag = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:58:09:582
end:: turn on LED
mkdir: cannot create directory '/data/nut2_avs/recording': File exists
get recording file count: 5
To execute copy command: cp /data/nut2_avs/hal_rec_test_rec_send.wav /data/nut2_avs/recording/recording_20171121075809.wav
---> Recognize done! --> 2017-11-21 15:58:09:766
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:58:09:817
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:58:09:818
2017-11-21 07:58:09.819 [ 39] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:58:09.819 [ 39] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xa3ddde88, size 640, handle(2457)-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:58:09:820
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:58:24:818
2017-11-21 07:58:31.694 [ 9] I HTTP2Transport:streamProgressTimedOut:streamId=85
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:58:40:319
2017-11-21 07:58:52.392 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"c0cabae8-38c2-4581-a691-15ebb71e2f88"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 0
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:58:52:394
end:: turn on LED
2017-11-21 07:58:52.492 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"c0cabae8-38c2-4581-a691-15ebb71e2f88"}\,"payload"\:{}}}
2017-11-21 07:58:52.492 [ b] I DirectiveRouter:preHandleDirective:messageId=c0cabae8-38c2-4581-a691-15ebb71e2f88,action=calling
2017-11-21 07:58:52.492 [ c] I DirectiveRouter:handleDirective:messageId=c0cabae8-38c2-4581-a691-15ebb71e2f88,action=calling
AudioInputProcessor::handleDirective --------StopCapture
2017-11-21 07:58:52.493 [ 7] E AudioInputProcessor:executeStopCaptureFailed:reason=invalidState,expectedState=RECOGNIZING,state=IDLE
checkAvsResponseTimeout: have not a valid directive, so restore the default light------ --> 2017-11-21 15:58:53:895
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:58:53:895
end:: turn on LED
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:58:55:820
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:59:11:322
*** testKeyWordObserverDebug:: onKeyWordDetected
openFMDuringTest : isFMOpened = 0
stopMediaPlayer 11111
stopLocalMediaPlayer 222
2017-11-21 07:59:21.062 [ 3a] E MediaPlayer:stopCalled
2017-11-21 07:59:21.063 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:59:21.063 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:59:21.063 [ 2] E MediaPlayer:doStopSuccess
stopSpeakMediaPlayer 33333
2017-11-21 07:59:21.063 [ 3a] E MediaPlayer:stopCalled
2017-11-21 07:59:21.064 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:59:21.064 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:59:21.064 [ 2] E MediaPlayer:doStopSuccess
stopMediaPlayer m_rendererMediaPlayer
2017-11-21 07:59:21.064 [ 3a] E MediaPlayer:stopCalled
2017-11-21 07:59:21.064 [ 2] E MediaPlayer:handleStopCalled
(Nut2AVS:3776): GStreamer-CRITICAL **: gst_element_get_state: assertion 'GST_IS_ELEMENT (element)' failed
2017-11-21 07:59:21.064 [ 2] E MediaPlayer:doStopFailed:reason=gstElementGetStateFailed
stopMediaPlayer 44444
Nut2AVS King:: testKeyWordObserverDebug::onKeyWordDetected.....beginIndex = 1127280, endIndex = 1135920,
___________________________________AIP isExpectDirectStatus: 0
--> handleOneSpeechBySensory::readOffset = 141408
--> RingBufferConsumer m_read_offset = 141408
exitAVS = 0, m_wisStatusChanged->isStopCaptureFlag = 0, isRecordingFinish = 0
start:: turn on LED
Start to open < LISTENING > LED --> 2017-11-21 15:59:21:69
consumer is done
end:: turn on LED
##### Start recording!
Start to play med_ui_voice_start_listening.wav --> 2017-11-21 15:59:21:148
SKU detect: CX/SB
Current SKU is: CX
SKU is CX: To play preRecording sound cue
Nut2AVS King:: wakeWordTrigger::onKeyWordDetected.....beginIndex = 1640640, endIndex = 1649280,
Nut2AVS King:: wakeWordTrigger::Sensory recognize.....beginIndex = 1640640, endIndex = 1649280
*** AudioInputProcessor::executeRecognize initiatorPayloadJson="wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":16640}
m_expectingSpeechTimer.stop...
Playing sample: 2 ch, 48000 hz, 16 bit
10
current mediaPlayer voluem value: 10 --> 2017-11-21 15:59:21:322
2017-11-21 07:59:21.323 [ 7] I DirectiveProcessor:setDialogRequestIdLocked:oldValue=dd3acb84-433b-4968-827e-93dcc484d691,newValue=4f45b49b-ef90-469b-a4a4-eb35539970b4
AudioInputProcessor::executeOnFocusChanged***********************
AVSConnectionManager::sendMessage {"context":[{"header":{"namespace":"AudioPlayer","name":"PlaybackState"},"payload":{"token":"","offsetInMilliseconds":0,"playerActivity":"IDLE"}},{"header":{"namespace":"SpeechSynthesizer","name":"SpeechState"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_b9db5546-2cfa-4a50-b7f1-f0c599df1154","offsetInMilliseconds":0,"playerActivity":"FINISHED"}},{"header":{"namespace":"Alerts","name":"AlertsState"},"payload":{"allAlerts":[],"activeAlerts":[]}},{"header":{"namespace":"SpeechRecognizer","name":"RecognizerState"},"payload":{"wakeword":"alexa"}},{"header":{"namespace":"Speaker","name":"VolumeState"},"payload":{"volume":100,"muted":0}}],"event":{"header":{"namespace":"SpeechRecognizer","name":"Recognize","messageId":"b497d0ea-4ecd-4506-927f-e7af59b67dd8","dialogRequestId":"4f45b49b-ef90-469b-a4a4-eb35539970b4"},"payload":{"profile":"NEAR_FIELD","format":"AUDIO_L16_RATE_16000_CHANNELS_1","initiator":{"type":"WAKEWORD","payload":{"wakeWordIndices":{"startIndexInSamples":8000,"endIndexInSamples":16640}}}}}}
End play med_ui_voice_start_listening.wav --> 2017-11-21 15:59:22:72
2017-11-21 07:59:24.706 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"8efbce85-40e8-4817-93e6-188281bea142"}\,"payload"\:{}}}
...onDirectiveArrived...
onDirectiveArrived: To stop recording..., sensoryKeyWordDetected = 1
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:59:24:706
-----> For Vick: mThis->m_wisStatusChanged->isStopCaptureFlag
End Recording!!!!!!! --> 2017-11-21 15:59:24:726
closing input, handle(2457)
closing input
-----> For Vick: qahw_in_standby...
-----> For Vick: qahw_close_input_stream...
The audio recording has been saved to /data/nut2_avs/hal_rec_test_rec_original.wav. Please use adb pull to get the file and play it using audacity. The audio data has the following characteristics:
Sample rate: 16000
Format: 1
Num channels: 1, handle(2457)
-----> For Vick: qahw_unload_module...
Done with hal record test
producer is done
Start to play med_ui_voice_stop_listening.wav --> 2017-11-21 15:59:24:769
SKU detect: CX/SB
Current SKU is: CX
end:: turn on LED
2017-11-21 07:59:24.790 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechRecognizer"\,"name"\:"StopCapture"\,"messageId"\:"8efbce85-40e8-4817-93e6-188281bea142"}\,"payload"\:{}}}
2017-11-21 07:59:24.791 [ b] I DirectiveRouter:preHandleDirective:messageId=8efbce85-40e8-4817-93e6-188281bea142,action=calling
2017-11-21 07:59:24.791 [ c] I DirectiveRouter:handleDirective:messageId=8efbce85-40e8-4817-93e6-188281bea142,action=calling
AudioInputProcessor::handleDirective --------StopCapture
2017-11-21 07:59:24.793 [ 9] I InProcessAttachmentReader:readFailed:reason=SDS is closed
--> m_wisStatusChanged->isStopCaptureFlag = 1
---> Recognize done! --> 2017-11-21 15:59:24:797
^_^^^_^^^^_^^^^^^_^^^^^^_^^^^^^^^_^^^^ testCycleIndex: 1
executeResetState m_expectingSpeechTimer.stop...
AudioInputProcessor::executeOnFocusChanged***********************
executeResetState m_expectingSpeechTimer.stop...
SKU is CX: To play postRecording sound cue
Start execute handleOneSpeechBySensory() --> 2017-11-21 15:59:24:847
___________________________________AIP isExpectDirectStatus: 0
********** start hal_rec_test recording *********
-----> For Vick: qahw_load_module...
start first record thread
qahw_open_input_stream...... --> 2017-11-21 15:59:24:848
-----> For Vick: qahw_open_input_stream...
input opened, buffer 0xa9102000, size 640, handle(2457)-----> For Vick: qahw_in_set_parameters...
Please speak into the microphone for 6 seconds, handle(2457)
Start Recording!!!!!!! Start Recording!!!!!!! Start Recording!!!!!!! --> 2017-11-21 15:59:24:850
2017-11-21 07:59:24.849 [ 3b] I SensoryKeywordDetector:License expires on 01 Feb 2018 00:00:00 GMT
2017-11-21 07:59:24.851 [ 3b] I SensoryKeywordDetector:Sensory library license does not expire for at least 60 more days.
ACDB -> send_audio_cal, acdb_id = 4, path = 1, app id = 0x11132, sample rate = 16000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
Failed to fetch the lookup information of the device 00000004
Error: ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE Returned = -19
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB audproc returned = -19
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
Failed to fetch the lookup information of the device 00000004
Error: ACDB AudProc vol returned = -19
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 16
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 4, Topology Id 112fb
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
Failed to fetch the lookup information of the device 00000004
Error: ACDB AFE returned = -19
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 4 path = 1
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
Playing sample: 2 ch, 48000 hz, 16 bit
2017-11-21 07:59:25.566 [ 8] I DirectiveSequencer:onDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"09a2d400-cc5b-4056-8692-58f2281a6218"\,"dialogRequestId"\:"4f45b49b-ef90-469b-a4a4-eb35539970b4"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_31f0c05e-2fdf-4865-b9f3-24a2d468ce73_1147263479"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_31f0c05e-2fdf-4865-b9f3-24a2d468ce73"}}}
...onDirectiveArrived...
start:: turn on LED
Start to open < THINKING > LED --> 2017-11-21 15:59:25:567
end:: turn on LED
2017-11-21 07:59:25.670 [ b] I DirectiveRouter:preHandleDirective:UnparsedDirective={"directive"\:{"header"\:{"namespace"\:"SpeechSynthesizer"\,"name"\:"Speak"\,"messageId"\:"09a2d400-cc5b-4056-8692-58f2281a6218"\,"dialogRequestId"\:"4f45b49b-ef90-469b-a4a4-eb35539970b4"}\,"payload"\:{"url"\:"cid\:DeviceTTSRendererV4_31f0c05e-2fdf-4865-b9f3-24a2d468ce73_1147263479"\,"format"\:"AUDIO_MPEG"\,"token"\:"amzn1.as-ct.v1.Domain\:Application\:NotificationsV4#ACRI#DeviceTTSRendererV4_31f0c05e-2fdf-4865-b9f3-24a2d468ce73"}}}
2017-11-21 07:59:25.670 [ b] I DirectiveRouter:preHandleDirective:messageId=09a2d400-cc5b-4056-8692-58f2281a6218,action=calling
2017-11-21 07:59:25.671 [ c] I DirectiveRouter:handleDirective:messageId=09a2d400-cc5b-4056-8692-58f2281a6218,action=calling
2017-11-21 07:59:25.672 [ d] E MediaPlayer:setSourceCalled:sourceType=AttachmentReader
2017-11-21 07:59:25.672 [ 2] E MediaPlayer:handleSetSourceCalled
2017-11-21 07:59:25.672 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:59:25.673 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:59:25.673 [ 2] E MediaPlayer:doStopSuccess
>>>>>>>>>>>MediaPlayer::play 1
>>>>>>>>>>>MediaPlayer::play 2
2017-11-21 07:59:25.674 [ d] E MediaPlayer:playCalled
2017-11-21 07:59:25.674 [ d] E MediaPlayer:playCalled 2
2017-11-21 07:59:25.674 [ d] E MediaPlayer:playCalled 3
2017-11-21 07:59:25.675 [ 2] E MediaPlayer:handlePlayCalled
2017-11-21 07:59:25.675 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:59:25.675 [ 2] E MediaPlayer:doStopSuccess
2017-11-21 07:59:25.675 [ 2] E MediaPlayer:handlePlay:attemptBuffering=0
2017-11-21 07:59:25.676 [ 2] E MediaPlayer:handlePlay:startingState=PLAYING,stateReturn=ASYNC
2017-11-21 07:59:25.676 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.677 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.677 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.677 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.677 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.677 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.677 [ 2] E MediaPlayer:State Change:oldState=NULL,newState=READY,pendingState=PLAYING
2017-11-21 07:59:25.677 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.677 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.677 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:59:25.677 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.677 [ 2] E MediaPlayer:messageReceived:messageType=stream-status
2017-11-21 07:59:25.678 [ 2] I InProcessAttachmentReader:readFailed:reason=SDS is closed
2017-11-21 07:59:25.691 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.692 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.695 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.696 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.700 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.701 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.702 [ 3c] E MediaPlayer:onPadAddedCalled
2017-11-21 07:59:25.703 [ 2] E MediaPlayer:handlePadAddedSignalCalled
2017-11-21 07:59:25.704 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.705 [ 2] E MediaPlayer:messageReceived:messageType=stream-start
2017-11-21 07:59:25.711 [ 2] E MediaPlayer:messageReceived:messageType=latency
2017-11-21 07:59:25.711 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:59:25.712 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:59:25.712 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.712 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.712 [ 2] E MediaPlayer:State Change:oldState=READY,newState=PAUSED,pendingState=PLAYING
2017-11-21 07:59:25.712 [ 2] E MediaPlayer:messageReceived:messageType=async-done
2017-11-21 07:59:25.713 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.725 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.726 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.726 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.726 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.726 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.726 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.727 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.727 [ 2] E MediaPlayer:messageReceived:messageType=state-changed
2017-11-21 07:59:25.727 [ 2] E MediaPlayer:State Change:oldState=PAUSED,newState=PLAYING,pendingState=VOID_PENDING
2017-11-21 07:59:25.727 [ 2] E MediaPlayer:callingOnPlaybackStarted
2017-11-21 07:59:25.727 [ d] E MediaPlayer:getOffsetCalled
2017-11-21 07:59:25.728 [ 2] E MediaPlayer:handleGetOffsetCalled
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechStarted","messageId":"f55de58a-e3d4-4061-bc18-578d3e1a904f"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_31f0c05e-2fdf-4865-b9f3-24a2d468ce73"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 1, newState = 0
start:: turn on LED
Start to open < SPEAKING > LED --> 2017-11-21 15:59:25:729
ACDB -> send_audio_cal, acdb_id = 14, path = 0, app id = 0x11130, sample rate = 48000
ACDB -> send_asm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TOPOLOGY_ID
ACDB -> send_adm_topology
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TOPOLOGY_ID
ACDB -> send_audtable
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE_SIZE
ACDB -> ACDB_CMD_GET_AUDPROC_COMMON_TABLE
ACDB -> AUDIO_SET_AUDPROC_CAL
ACDB -> send_audvoltable
ACDB -> ACDB_CMD_GET_AUDPROC_GAIN_DEP_STEP_TABLE, vol index 0
ACDB -> AUDIO_SET_VOL_CAL cal type = 12
ACDB -> send_audstrmtable
ACDB -> ACDB_CMD_GET_AUDPROC_STREAM_TABLE_V2
ACDB -> audstrm_cal->cal_type.cal_data.cal_size = 456
ACDB -> send_afe_topology
ACDB -> ACDB_CMD_GET_AFE_TOPOLOGY_ID
ACDB -> GET_AFE_TOPOLOGY_ID for adcd_id 14, Topology Id 112fa
ACDB -> send_afe_cal
ACDB -> ACDB_CMD_GET_AFE_COMMON_TABLE
ACDB -> AUDIO_SET_AFE_CAL
ACDB -> send_hw_delay : acdb_id = 14 path = 0
ACDB -> ACDB_AVSYNC_INFO: ACDB_CMD_GET_DEVICE_PROPERTY
end:: turn on LED
End play med_ui_voice_stop_listening.wav --> 2017-11-21 15:59:25:860
##### End recording!
2017-11-21 07:59:25.996 [ 2] E MediaPlayer:messageReceived:messageType=tag
2017-11-21 07:59:27.791 [ 2] E MediaPlayer:messageReceived:messageType=eos
2017-11-21 07:59:27.792 [ 2] E MediaPlayer:tearDownTransientPipelineElements
2017-11-21 07:59:28.043 [ 2] E MediaPlayer:callingOnPlaybackFinished
2017-11-21 07:59:28.043 [ 2] E MediaPlayer:doStopSuccess
AVSConnectionManager::sendMessage {"event":{"header":{"namespace":"SpeechSynthesizer","name":"SpeechFinished","messageId":"d09a41f7-23e1-4c3a-ae67-335a22ac650d"},"payload":{"token":"amzn1.as-ct.v1.Domain:Application:NotificationsV4#ACRI#DeviceTTSRendererV4_31f0c05e-2fdf-4865-b9f3-24a2d468ce73"}}}
TestSpeechSynthesizerObserver::onStateChanged currentSpeechSynthesizerState: 0, newState = 1
*** onSpeechSynthesizerObserverStateChanged:: isRecordingFinish = 0
openFMDuringTest : isFMOpened = 0 , mLastFMOpened = 0
start:: turn on LED
Start to open < DEFAULT > LED --> 2017-11-21 15:59:28:44
end:: turn on LED
2017-11-21 07:59:28.141 [ d] E MediaPlayer:stopCalled
2017-11-21 07:59:28.142 [ 2] E MediaPlayer:handleStopCalled
2017-11-21 07:59:28.142 [ 2] E MediaPlayer:doStopSuccess:reason=alreadyStopped
2017-11-21 07:59:28.142 [ 2] E MediaPlayer:doStopSuccess
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:59:39:849
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 15:59:55:351
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:00:10:853
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:00:26:355
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:00:41:856
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:00:57:358
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:01:12:859
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:01:28:360
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:01:43:862
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:01:59:363
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:02:14:866
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:02:30:368
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:02:45:870
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:03:01:371
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:03:16:873
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:03:32:376
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:03:47:877
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:04:03:379
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:04:18:881
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:04:34:382
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:04:49:882
2017-11-21 08:05:00.348 [ 9] E HTTP2Transport:pingFailed:responseCode=0
King HTTP2Transport::setIsStoppingLocked disconnectReason = 12
King HTTP2Transport::setIsStoppingLocked disconnectReason = 10
King HTTP2Transport::setIsStoppingLocked disconnectReason = 0
King AVSConnectionManager::onConnectionStatusChanged: status = 1, reason=12
10
current mediaPlayer voluem value: 10 --> 2017-11-21 16:05:00:435
King AVSConnectionManager::onConnectionStatusChanged: status = 2, reason=0
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:05:05:384
handleOneSpeechBySensory::waitForWakeword------ --> 2017-11-21 16:05:20:886
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment