Re: Error alexa-voiceagent-service unable to start #voiceagents #koi

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Francesco!
 
Take a look at alexa-voiceagent-config_1.0.bb .
do_install () {
    if [ -z "${ALEXA_CLIENTID}" ]; then
        bbfatal "ALEXA_CLIENTID not defined in your environment e.g. conf/local.conf"
    fi
    if [ -z "${ALEXA_SERIALNUMBER}" ]; then
        bbfatal "ALEXA_SERIALNUMBER not defined in your environment e.g. conf/local.conf"
    fi
    if [ -z "${ALEXA_PRODUCTID}" ]; then
        bbfatal "ALEXA_PRODUCTID not defined in your environment e.g. conf/local.conf"
    fi
    if [ -z "${ALEXA_MFG_NAME}" ]; then
        bbfatal "ALEXA_MFG_NAME not defined in your environment e.g. conf/local.conf"
    fi
    if [ -z "${ALEXA_DESCRIPTION}" ]; then
        bbfatal "ALEXA_DESCRIPTION not defined in your environment e.g. conf/local.conf"
    fi
    #replace
    sed -e "s|@@ALEXA_CLIENTID@@|${ALEXA_CLIENTID}|" \
        -e "s|@@ALEXA_SERIALNUMBER@@|${ALEXA_SERIALNUMBER}|" \
        -e "s|@@ALEXA_PRODUCTID@@|${ALEXA_PRODUCTID}|" \
        -e "s|@@ALEXA_MFG_NAME@@|${ALEXA_MFG_NAME}|" \
        -e "s|@@ALEXA_DESCRIPTION@@|${ALEXA_DESCRIPTION}|" \
        -e "s|@@ALEXA_WAKEWORD@@|${ALEXA_WAKEWORD}|" \
        -e "s|@@ALEXA_LOCALE@@|${ALEXA_LOCALE}|" \
        -e "s|@@ALEXA_TIMEZONE@@|${ALEXA_TIMEZONE}|" \
        ${WORKDIR}/AlexaAutoCoreEngineConfig.json.in > ${WORKDIR}/AlexaAutoCoreEngineConfig.json
    # install
    install -D -m 644 ${WORKDIR}/AlexaAutoCoreEngineConfig.json ${D}${sysconfdir}/xdg/AGL/AlexaAutoCoreEngineConfig.json
}
RPROVIDES_${PN} += "virtual/alexa-voiceagent-config"
 
 
TLDR:
Before that you need to setup your amazon developer account and create an alexa developer device there .
 
You're supposed to set the variables like so in your conf/local.conf before the build:
ALEXA_CLIENTID = "amzn1.application-oa2-client.,xxxxxxxxxxxxxxxxxxxxxxxx"
ALEXA_SERIALNUMBER = "abcde"
ALEXA_PRODUCTID = "AGL"
ALEXA_MFG_NAME = "foo1"
ALEXA_DESCRIPTION = "bar1"
 
Then build it. Start it up, login and call journalctl -f.
 
After that, go to settings. There should be a submenu for alexa and it should show a code that you have to enter at a link given there to register the device.
 
Once that is done it should become operational using the touch buttons.
 
Wakeword support is another story and you need to contact amazon for the details.
 
HTH.
 
Best,
Jan-Simon
 
 
Gesendet: Dienstag, 24. August 2021 um 09:10 Uhr
Von: "Francesco ARGENTIERI (KINETON)" <francesco.argentieri@xxxxxxxxxx>
An: agl-dev-community@xxxxxxxxxxxxxxxxxxxxxxxxx
Betreff:  Error alexa-voiceagent-service unable to start #voiceagents #koi

Hi everyone, I recently re-introduced in the build the meta-speech through the script:

export MACHINE=h3ulcb-kfsource $POKY_TOP/meta-agl/scripts/aglsetup.sh -m $MACHINE -b build agl-demo agl-devel agl-voiceagent-alexabitbake agl-demo-platform 


Well, the build proceeds without errors. And the system starts correctly. After I insert the key into file AlexaAutoCoreEngineConfig.json to activate Alexa, then I type the command

chsmack -a "_" /var/local/lib/afm/applications/alexa-voiceagent-service/var/config/AlexaAutoCoreEngineConfig.jsonreboot

But the service alexa-voiceagent-service fails to start. Attached you can find the dump with the errors.

 
 
_._,_._,_

Links:

You receive all messages sent to this group.

View/Reply Online (#9383) | Reply To Group | Reply To Sender | Mute This Topic | New Topic
Mute #voiceagents | Mute #koi
Your Subscription | Contact Group Owner | Unsubscribe [list-automotive-discussions82@xxxxxxxxxxx]

_._,_._,_

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux