alexa / avs-device-sdk

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

can i change wake hotword #610

Closed aoGFX closed 6 years ago

aoGFX commented 6 years ago

can i change wake hotword like alexa Pi which uses python : https://github.com/alexa-pi/AlexaPi and i need to make custom function to control GPIO thx 😄

aoGFX commented 6 years ago

and i need to send request to gpio when alexa responding or speaking like LED turn on when i say alexa and turn off when alexa finish speaking

aoGFX commented 6 years ago

how can i change sensory engine with KITT AI i tried to change it from avs-device-sdk/SampleApp/src/CMakeLists.txt Line 38

if(KITTAI_KEY_WORD_DETECTOR)

    target_link_libraries(SampleApp 
        KITTAI)
endif()

if(SENSORY_KEY_WORD_DETECTOR)
    target_link_libraries(SampleApp SENSORY)
endif()

with

if(KITTAI_KEY_WORD_DETECTOR)
    target_link_libraries(SampleApp 
        KITTAI)
endif()

if(SENSORY_KEY_WORD_DETECTOR)
    target_link_libraries(SampleApp KITTAI)
endif()

and rebuild it with code sudo make SampleApp && TZ=UTC ./SampleApp "/home/pi/build/Integration/AlexaClientSDKConfig.json" "/home/pi/third-party/alexa-rpi/models" DEBUG9

but i got error ` [100%] Building CXX object SampleApp/src/CMakeFiles/SampleApp.dir/SampleApplication.cpp.o In file included from /home/pi/avs-device-sdk/SampleApp/src/SampleApplication.cpp:19:0: /home/pi/avs-device-sdk/SampleApp/include/SampleApp/SampleApplication.h:26:41: fatal error: KWD/AbstractKeywordDetector.h: No such file or directory

include <KWD/AbstractKeywordDetector.h>

                                     ^

compilation terminated. SampleApp/src/CMakeFiles/SampleApp.dir/build.make:254: recipe for target 'SampleApp/src/CMakeFiles/SampleApp.dir/SampleApplication.cpp.o' failed make[3]: [SampleApp/src/CMakeFiles/SampleApp.dir/SampleApplication.cpp.o] Error 1 CMakeFiles/Makefile2:8086: recipe for target 'SampleApp/src/CMakeFiles/SampleApp.dir/all' failed make[2]: [SampleApp/src/CMakeFiles/SampleApp.dir/all] Error 2 CMakeFiles/Makefile2:8098: recipe for target 'SampleApp/src/CMakeFiles/SampleApp.dir/rule' failed make[1]: [SampleApp/src/CMakeFiles/SampleApp.dir/rule] Error 2 Makefile:2084: recipe for target 'SampleApp' failed make: [SampleApp] Error 2 `

BennyAvramson commented 6 years ago

Hi @aoGFX,

1. The wake word itself depends on the wake word engine you're using (i.e. Sensory or Kitt.AI). Please consult the wake word engine you're using regarding how to change the hot word\use different model.

2. Take a look at UIManager::printState, you can either turn on your led at this point or implementing your own DialogUXStateObserverInterface as UIManager class does.

3. Can you explain more what change are you trying to do (I'm referring to the change described on the 3rd message)?

Thanks, Benny

aoGFX commented 6 years ago

@bandkenamazoncom 3rd msg :- i need to change wake word engine to Kitt.AI how can i do that another question : how can i replace the default replays from alexa

bandkenamazoncom commented 6 years ago

What default reply's are you referring to? Except for some alerts that have default sounds when there is no internet connectivity, the voice utterances can't be changed.

To build with KITT, revert the changes you've made to CMakeLists.txt and build using the KITTAI option: https://github.com/alexa/avs-device-sdk/wiki/Build-Options

aoGFX commented 6 years ago

@bandkenamazoncom first thanks for ur replay second i mean default replays from api like when i say whats the time now .. alexa should replay : time is {time now} i need to change this replay :D third thanks i will try to build with KITT Thanks ♥

BennyAvramson commented 6 years ago

Hi @aoGFX,

Unfortunately, you can't control the Alexa replies as a device developer. Any reason why are you interested in this? Does a custom Alexa skill address that objective? As a skill developer you decide the exact reply.

Thanks, Benny

dhpp commented 6 years ago

Closing. Please re-open if you wish more guidance on this.

Nitinvermaa commented 5 years ago

Is it possible to change the wake word from Alexa to something else, for example 'Nitin' in AVS sdk.