Open nunokid opened 7 years ago
I integrated avs sdk into my device. https://github.com/alexa/avs-device-sdk/
I used snowboy as shown below.
cmake $SDK_SRC -DKITTAI_KEY_WORD_DETECTOR=ON -DKITTAI_KEY_WORD_DETECTOR_LIB_PATH=/home/ubuntu/sources/snowboy/lib/aarch64-ubuntu1604/libsnowboy-detect.a -DKITTAI_KEY_WORD_DETECTOR_INCLUDE_DIR=/home/ubuntu/sources/snowboy/include -DGSTREAMER_MEDIA_PLAYER=ON -DPORTAUDIO=ON -DPORTAUDIO_LIB_PATH=$LOCAL_BUILD/lib/libportaudio.a -DPORTAUDIO_INCLUDE_DIR=$LOCAL_BUILD/include -DCMAKE_PREFIX_PATH=$LOCAL_BUILD -DCMAKE_INSTALL_PREFIX=$LOCAL_BUILD
And when I run the avs sample app, get the following error:
<> ERROR (ExpectToken():snowboy-io.cc:166) Expected token "", got instead "<!DOCTYPE". terminate called after throwing an instance of 'std::runtime_error' what(): ERROR (ExpectToken():snowboy-io.cc:166) Expected token "", got instead "<!DOCTYPE".
[stack trace: ] /home/ubuntu/BUILD/KWD/KittAi/src/libKITTAI.so(_ZN7snowboy13GetStackTraceEv+0x60) [0x7fa075935c] /home/ubuntu/BUILD/KWD/KittAi/src/libKITTAI.so(_ZN7snowboy13SnowboyLogMsgD1Ev+0x4ac) [0x7fa07599a4] /home/ubuntu/BUILD/KWD/KittAi/src/libKITTAI.so(_ZN7snowboy11ExpectTokenEbPKcPSi+0x19c) [0x7fa076527c] /home/ubuntu/BUILD/KWD/KittAi/src/libKITTAI.so(_ZN7snowboy22UnpackPipelineResourceERKSsPSs+0x70) [0x7fa078c168] /home/ubuntu/BUILD/KWD/KittAi/src/libKITTAI.so(_ZN7snowboy11PipelineItf11SetResourceERKSs+0x1c4) [0x7fa0758fb8] . . . /home/ubuntu/BUILD/KWD/KittAi/src/libKITTAI.so(_ZN14alexaClientSDK3kwd21KittAiKeyWordDetector6createESt10shared_ptrINS_9avsCommon5utils3sds16SharedDataStreamINS5_18InProcessSDSTraitsEEEENS4_11AudioFormatESt13unordered_setIS2_INS3_13sdkInterfaces24KeyWordObserverInterfaceEESt4hashISE_ESt8equal_toISE_ESaISE_EESB_IS2_INSC_37KeyWordDetectorStateObserverInterfaceEESF_ISM_ESH_ISM_ESaISM_EERKSsSt6vectorINS1_19KittAiConfigurationESaISU_EEfbNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE+0x1e4) [0x7fa074373c] ./SampleApp(_ZN14alexaClientSDK9sampleApp17SampleApplication10initializeERKSsS3S3+0x1158) [0x432990] ./SampleApp(_ZN14alexaClientSDK9sampleApp17SampleApplication6createERKSsS3S3+0x48) [0x434320] ./SampleApp(main+0x184) [0x417674] /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0xe0) [0x7fa01638a0]
Can you help me with this?
Did you change anything? Looks like there's a model/library mismatch or something like that. Did you use the default Alexa model?
I integrated avs sdk into my device. https://github.com/alexa/avs-device-sdk/
I used snowboy as shown below.
cmake $SDK_SRC -DKITTAI_KEY_WORD_DETECTOR=ON -DKITTAI_KEY_WORD_DETECTOR_LIB_PATH=/home/ubuntu/sources/snowboy/lib/aarch64-ubuntu1604/libsnowboy-detect.a -DKITTAI_KEY_WORD_DETECTOR_INCLUDE_DIR=/home/ubuntu/sources/snowboy/include -DGSTREAMER_MEDIA_PLAYER=ON -DPORTAUDIO=ON -DPORTAUDIO_LIB_PATH=$LOCAL_BUILD/lib/libportaudio.a -DPORTAUDIO_INCLUDE_DIR=$LOCAL_BUILD/include -DCMAKE_PREFIX_PATH=$LOCAL_BUILD -DCMAKE_INSTALL_PREFIX=$LOCAL_BUILD
And when I run the avs sample app, get the following error:
sudo TZ=UTC ./SampleApp /home/ubuntu/BUILD/Integration/AlexaClientSDKConfig.json /home/ubuntu/BUILD/KWD/inputs/KittAiModels INFO
<>
ERROR (ExpectToken():snowboy-io.cc:166) Expected token "", got instead "<!DOCTYPE".
terminate called after throwing an instance of 'std::runtime_error'
what(): ERROR (ExpectToken():snowboy-io.cc:166) Expected token "", got instead "<!DOCTYPE".
[stack trace: ] /home/ubuntu/BUILD/KWD/KittAi/src/libKITTAI.so(_ZN7snowboy13GetStackTraceEv+0x60) [0x7fa075935c] /home/ubuntu/BUILD/KWD/KittAi/src/libKITTAI.so(_ZN7snowboy13SnowboyLogMsgD1Ev+0x4ac) [0x7fa07599a4] /home/ubuntu/BUILD/KWD/KittAi/src/libKITTAI.so(_ZN7snowboy11ExpectTokenEbPKcPSi+0x19c) [0x7fa076527c] /home/ubuntu/BUILD/KWD/KittAi/src/libKITTAI.so(_ZN7snowboy22UnpackPipelineResourceERKSsPSs+0x70) [0x7fa078c168] /home/ubuntu/BUILD/KWD/KittAi/src/libKITTAI.so(_ZN7snowboy11PipelineItf11SetResourceERKSs+0x1c4) [0x7fa0758fb8] . . . /home/ubuntu/BUILD/KWD/KittAi/src/libKITTAI.so(_ZN14alexaClientSDK3kwd21KittAiKeyWordDetector6createESt10shared_ptrINS_9avsCommon5utils3sds16SharedDataStreamINS5_18InProcessSDSTraitsEEEENS4_11AudioFormatESt13unordered_setIS2_INS3_13sdkInterfaces24KeyWordObserverInterfaceEESt4hashISE_ESt8equal_toISE_ESaISE_EESB_IS2_INSC_37KeyWordDetectorStateObserverInterfaceEESF_ISM_ESH_ISM_ESaISM_EERKSsSt6vectorINS1_19KittAiConfigurationESaISU_EEfbNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE+0x1e4) [0x7fa074373c] ./SampleApp(_ZN14alexaClientSDK9sampleApp17SampleApplication10initializeERKSsS3S3+0x1158) [0x432990] ./SampleApp(_ZN14alexaClientSDK9sampleApp17SampleApplication6createERKSsS3S3+0x48) [0x434320] ./SampleApp(main+0x184) [0x417674] /lib/aarch64-linux-gnu/libc.so.6(__libc_start_main+0xe0) [0x7fa01638a0]
Can you help me with this?