Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Problems with sensory wakeword integration tests #46

Closed
m2sillanpaa opened this issue Jul 4, 2017 · 2 comments
Closed

Problems with sensory wakeword integration tests #46

m2sillanpaa opened this issue Jul 4, 2017 · 2 comments

Comments

@m2sillanpaa
Copy link

Hi.

I'm getting started with this SDK and trying to run integration tests.
Prequisite: I've compiled the latest gtreamer and other required libraries.

1.I've run cmake:

cmake /home/pi/AlexaSDK/alexa-client-sdk/ -DCMAKE_BUILD_TYPE=DEBUG -DGSTREAMER_MEDIA_PLAYER=ON -DCMAKE_PREFIX_PATH=/home/pi/AlexaSDK/gstreamer -DSENSORY_KEY_WORD_DETECTOR=ON -DSENSORY_KEY_WORD_DETECTOR_LIB_PATH=/home/pi/AlexaSDK/alexa-rpi/lib/libsnsr.a -DSENSORY_KEY_WORD_DETECTOR_INCLUDE_DIR=/home/pi/AlexaSDK/alexa-rpi/include

It completes OK.

  1. I've filled the AlexaClientSDKConfig.json and run the connection script.

It also completes OK.

  1. I've copied the spot-alexa-rpi-31000.snsr to build folder under KWD/inputs/SensoryModels.

  2. I've run make.
    It compiles ok.

  3. I run "make all integration"

It fails all Sensory related tests due being unable to find the .snsr file.
2017-07-04 11:59:18.256 [ 1] E SensoryKeywordDetector:initFailed:reason=loadingSensoryModelFailed,error=snsrLoad(): task: No such file or directory (open "...s/SensoryModels/spot-alexa-rpi-31000.snsr")


What do I do wrong here? The three dots seem like some default path value is used somewhere. However I cannot find where. The built was done in clean folder without any pre-existing content.

@kjkh
Copy link

kjkh commented Jul 4, 2017

When running the default make test and make integration targets, the spot-alexa-rpi-31000.snsr file should be in the src directory. So the respective paths would be:

<SOURCE_DIR>/KWD/inputs/SensoryModels/spot-alexa-rpi-31000.snsr (make test)
<SOURCE_DIR>/Integration/inputs/SensoryModels/spot-alexa-rpi-31000.snsr (make integration)

You mentioned that you currently have the .snsr file in the build dir. Running make doesn't invoke the unit tests, so it should fail if you run make test. Hope this helps!

@m2sillanpaa
Copy link
Author

Thanks, now it passed!

Perhaps it would be a good idea to update instructions a bit?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants