Giter Club home page Giter Club logo

diy-echo-show's Introduction

DIY-Echo-Show

Make your own Amazon Echo Show

Use the Feb 2020 Image version of the Raspberry Pi OS - Respeaker HAT Usage is broken as of today


If you like the work, find it useful and if you would like to get me a โ˜• ๐Ÿ˜„ paypal


How to Video


Detailed Youtube Video


Before Starting the setup


  1. Create a security profile for alexa-avs-sample-app if you already don't have one.
    https://github.com/alexa/avs-device-sdk/wiki/Create-Security-Profile

  2. Download the "config.json" file and place it in the /home/pi/DIY-Echo-Show/Alexa directory.


Setup


  1. Clone the git using:
git clone https://github.com/shivasiddharth/DIY-Echo-Show  
  1. Make the installers executable using:
sudo chmod +x /home/pi/DIY-Echo-Show/scripts/prep-system.sh    
sudo chmod +x /home/pi/DIY-Echo-Show/scripts/audio-test.sh   
sudo chmod +x /home/pi/DIY-Echo-Show/scripts/alexa-voice-installer.sh  
sudo chmod +x /home/pi/DIY-Echo-Show/scripts/alexa-screen-installer.sh    
sudo chmod +x /home/pi/DIY-Echo-Show/Alexa/cmake-device.sh  
sudo chmod +x /home/pi/DIY-Echo-Show/Alexa/cmake-screen.sh  
  1. Prepare the system for installing assistants by updating, upgrading and setting up audio using:
sudo /home/pi/DIY-Echo-Show/scripts/prep-system.sh
  1. Restart the Pi using:
sudo reboot
  1. Make sure that contents of asoundrc match the contents of asound.conf
    Open a terminal and type:
sudo nano /etc/asound.conf

Open a second terminal and type:

sudo nano ~/.asoundrc

If the contents of .asoundrc are not same as asound.conf, make them both same.

  1. Bonus Script - Test the audio setup using the following code (optional). Dont panic if the test does not go through successfully, proceed with the installation:
sudo /home/pi/DIY-Echo-Show/scripts/audio-test.sh  
  1. Restart the Pi using:
sudo reboot
  1. Install the Alexa voice first using the following. This is an interactive script, so just follow the onscreen instructions:
sudo /home/pi/DIY-Echo-Show/scripts/alexa-voice-installer.sh  
  1. Authorize Alexa
sudo /home/pi/DIY-Echo-Show/Alexa/startsample.sh  
  1. Install the Alexa screen now using the following:

sudo /home/pi/DIY-Echo-Show/scripts/alexa-screen-installer.sh  
  1. Try starting the assistant using the following for authentication:
sudo chmod +x /home/pi/DIY-Echo-Show/Alexa/startsampleassistant.sh
sudo /home/pi/DIY-Echo-Show/Alexa/startsampleassistant.sh  
  1. After authentication start the assistant and smart screen using:
sudo chmod +x /home/pi/DIY-Echo-Show/Alexa/start-assistant.sh  
sudo chmod +x /home/pi/DIY-Echo-Show/Alexa/start-screen.sh  
sudo /home/pi/DIY-Echo-Show/Alexa/start-assistant.sh  
sudo /home/pi/DIY-Echo-Show/Alexa/start-screen.sh  
  1. For voice activation/wakeword, use:
python3 /home/pi/DIY-Echo-Show/snowboy/voiceactivation.py

diy-echo-show's People

Contributors

shivasiddharth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

diy-echo-show's Issues

Module 'has no exported member 'VisibilityProperty'.

[./main.css] 1.05 KiB {main} [built]
[./main.tsx] 568 bytes {main} [built]
+ 33 hidden modules

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/APLRendererWindow.tsx
./components/APLRendererWindow.tsx
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/APLRendererWindow.tsx(23,10)
TS2305: Module '"/home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/csstype/index"' has no exported member 'VisibilityProperty'.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/VoiceChrome.tsx
./components/VoiceChrome.tsx
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/VoiceChrome.tsx(7,10)
TS2305: Module '"/home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/csstype/index"' has no exported member 'VisibilityProperty'.
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
4 modules
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: npm run lint && webpack --config webpack.config.js "--output-path" "/home/pi/DIY-Echo-Show/Alexa/ss-build/modules/GUI" "--define" "DISABLE_WEBSOCKET_SSL=true"
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-02-14T16_41_44_803Z-debug.log
make[2]: *** [modules/GUI/CMakeFiles/GUIClient.dir/build.make:59: modules/GUI/CMakeFiles/GUIClient] Error 2
make[1]: *** [CMakeFiles/Makefile2:2152: modules/GUI/CMakeFiles/GUIClient.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

Error at sudo alexa-screen-installer.sh

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/APLRendererWindow.tsx
./components/APLRendererWindow.tsx
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/APLRendererWindow.tsx(23,10)
TS2305: Module '"/home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/csstype/index"' has no exported member 'VisibilityProperty'.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/VoiceChrome.tsx
./components/VoiceChrome.tsx
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/VoiceChrome.tsx(7,10)
TS2305: Module '"/home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/csstype/index"' has no exported member 'VisibilityProperty'.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/base.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/base.d.ts(10,1)
TS1084: Invalid 'reference' directive syntax.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/base.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/base.d.ts(11,1)
TS1084: Invalid 'reference' directive syntax.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/base.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/base.d.ts(12,1)
TS1084: Invalid 'reference' directive syntax.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/base.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/base.d.ts(13,1)
TS1084: Invalid 'reference' directive syntax.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/ts3.6/base.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/ts3.6/base.d.ts(10,1)
TS1084: Invalid 'reference' directive syntax.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/ts3.6/base.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/ts3.6/base.d.ts(11,1)
TS1084: Invalid 'reference' directive syntax.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/ts3.6/base.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/ts3.6/base.d.ts(12,1)
TS1084: Invalid 'reference' directive syntax.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/ts3.6/base.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/ts3.6/base.d.ts(13,1)
TS1084: Invalid 'reference' directive syntax.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts(2,68)
TS1144: '{' or ';' expected.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts(35,68)
TS1144: '{' or ';' expected.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts(44,94)
TS1144: '{' or ';' expected.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts(44,101)
TS1005: ';' expected.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts(44,104)
TS1005: ';' expected.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts(46,98)
TS1144: '{' or ';' expected.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts(46,105)
TS1005: ';' expected.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts(46,108)
TS1005: ';' expected.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts(54,47)
TS1144: '{' or ';' expected.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts(54,53)
TS1005: ';' expected.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts(54,56)
TS1005: ';' expected.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/@types/node/assert.d.ts(81,61)
TS1005: ';' expected.
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
4 modules
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: npm run lint && webpack --config webpack.config.js "--output-path" "/home/pi/DIY-Echo-Show/Alexa/ss-build/modules/GUI" "--define" "DISABLE_WEBSOCKET_SSL=true"
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-02-13T14_03_37_424Z-debug.log
make[2]: *** [modules/GUI/CMakeFiles/GUIClient.dir/build.make:59: modules/GUI/CMakeFiles/GUIClient] Error 2
make[1]: *** [CMakeFiles/Makefile2:2152: modules/GUI/CMakeFiles/GUIClient.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
pi@raspberrypi:/DIY-Echo-Show/Alexa $
pi@raspberrypi:
/DIY-Echo-Show/Alexa $
pi@raspberrypi:~/DIY-Echo-Show/Alexa $

Error during Authorize Alexa (Alexa-voice)

My system:
Raspberry Pi 4 Buster with 4.19 Kernel-Version.

I installed the Alexa voice with:
###sudo /home/pi/DIY-Echo-Show/scripts/alexa-voice-installer.sh

And its show me the Line:
###Done installing Alexa Voice Service..........

Now i want to start the startsample.sh to authorzie Alexa with:
###sudo /home/pi/DIY-Echo-Show/Alexa/startsample.sh

but it breaks and show me this:

##############
sudo /home/pi/DIY-Echo-Show/Alexa/startsample.sh
2020-09-08 20:17:01.797 [ 1] I sdkVersion: 1.19.1
configFile /home/pi/DIY-Echo-Show/Alexa/build/Integration/AlexaClientSDKConfig.json
Running app with log level: INFO
2020-09-08 20:17:01.960 [ 1] I DeviceInfo:create:result=skipDeviceType,key=deviceType
2020-09-08 20:17:01.961 [ 1] I DeviceInfo:create:result=skipFriendlyName,key=friendlyName
2020-09-08 20:17:01.961 [ 1] I DeviceInfo:create:result=skipRegistrationKey,key=registrationKey
2020-09-08 20:17:01.961 [ 1] I DeviceInfo:create:result=skipProductIdKey,key=productIdKey
2020-09-08 20:17:01.984 [ 1] I Setting:handleSetValue:value=false3990065800
2020-09-08 20:17:01.989 [ 6] I Setting:handleSetValue:value="NONE"3990065800
2020-09-08 20:17:01.990 [ 7] I Setting:handleSetValue:value="NONE"3990065800
2020-09-08 20:17:01.990 [ 8] I Setting:handleSetValue:value="America/Vancouver"3990065800
2020-09-08 20:17:01.990 [ 5] I Setting:handleSetValue:value="NONE"3990065800
2020-09-08 20:17:02.001 [ 6] W UUIDGeneration:low entropy on call to generate UUID:current entropy=32
2020-09-08 20:17:02.002 [ 9] I Setting:handleSetValue:value={}3990065800
2020-09-08 20:17:02.003 [ 6] E MessageRouter:sendFailed:reason=noActiveTransport
2020-09-08 20:17:02.004 [ 6] E SharedAVSSettingProtocol:localChangeFailed:reason=sendEventFailed
2020-09-08 20:17:02.010 [ 7] W UUIDGeneration:low entropy on call to generate UUID:current entropy=32
2020-09-08 20:17:02.011 [ 7] E MessageRouter:sendFailed:reason=noActiveTransport
2020-09-08 20:17:02.012 [ 7] E SharedAVSSettingProtocol:localChangeFailed:reason=sendEventFailed
2020-09-08 20:17:02.027 [ 8] W UUIDGeneration:low entropy on call to generate UUID:current entropy=32
2020-09-08 20:17:02.028 [ 8] E MessageRouter:sendFailed:reason=noActiveTransport
2020-09-08 20:17:02.028 [ 8] E SharedAVSSettingProtocol:localChangeFailed:reason=sendEventFailed
2020-09-08 20:17:02.042 [ a] I LocaleAssetsManager:changeAssets:Locale=["en-US"],WakeWords=["ALEXA"]
2020-09-08 20:17:02.043 [ 5] W UUIDGeneration:low entropy on call to generate UUID:current entropy=32
2020-09-08 20:17:02.044 [ 5] E MessageRouter:sendFailed:reason=noActiveTransport
2020-09-08 20:17:02.044 [ 5] E SharedAVSSettingProtocol:localChangeFailed:reason=sendEventFailed
2020-09-08 20:17:02.055 [ a] W UUIDGeneration:low entropy on call to generate UUID:current entropy=32
2020-09-08 20:17:02.055 [ a] E MessageRouter:sendFailed:reason=noActiveTransport
2020-09-08 20:17:02.056 [ a] E LocaleWakeWordsSetting:synchronizeWakeWordsFailed:reason=sendEventFailed
2020-09-08 20:17:02.056 [ a] W UUIDGeneration:low entropy on call to generate UUID:current entropy=32
2020-09-08 20:17:02.057 [ a] E MessageRouter:sendFailed:reason=noActiveTransport
2020-09-08 20:17:02.057 [ a] E LocaleWakeWordsSetting:synchronizeLocaleFailed:reason=sendEventFailed
2020-09-08 20:17:02.060 [ 1] I SpeakerManager:mapCreated:numSpeakerVolume=6,numAlertsVolume=2
2020-09-08 20:17:02.066 [ 9] W UUIDGeneration:low entropy on call to generate UUID:current entropy=32
2020-09-08 20:17:02.067 [ 9] E MessageRouter:sendFailed:reason=noActiveTransport
2020-09-08 20:17:02.067 [ 9] E SharedAVSSettingProtocol:localChangeFailed:reason=sendEventFailed
2020-09-08 20:17:02.075 [ 1] W UUIDGeneration:low entropy on call to generate UUID:current entropy=32
#################################################

NOTIFICATION INDICATOR STATE: OFF

#################################################

Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 923
Expression 'alsa_snd_pcm_hw_params_set_period_size_near( pcm, hwParams, &alsaPeriodFrames, &dir )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 923
Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2043
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2714
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2838
2020-09-08 20:17:02.151 [ 1] C PortAudioMicrophoneWrapper:Failed to open PortAudio default stream:errorCode=-9997
2020-09-08 20:17:02.151 [ 1] C PortAudioMicrophoneWrapper:Failed to initialize PortAudioMicrophoneWrapper
2020-09-08 20:17:02.152 [ 1] C SampleApplication:Failed to create microphone wrapper!
2020-09-08 20:17:02.161 [ e] E FocusManager:releaseChannelHelper:reason=releaseActivityFailed,channel=0x1d8d240,interface=
2020-09-08 20:17:02.173 [ 1] C SampleApplication:Failed to initialize SampleApplication
##################################

NOT YET AUTHORIZED

##################################

################################################################################################

To authorize, browse to: 'https://amazon.com/us/code' and enter the code: D7KF6P

################################################################################################

Failed to create SampleApplication!

error during prep

pi@raspberrypi:~ $ systemctl status seeed-voicecard.service
โ— seeed-voicecard.service - Seeed Voicecard service
Loaded: loaded (/lib/systemd/system/seeed-voicecard.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-08-02 22:28:49 EDT; 54s ago
Process: 8549 ExecStart=/usr/bin/seeed-voicecard (code=exited, status=1/FAILURE)
Main PID: 8549 (code=exited, status=1/FAILURE)

Aug 02 22:28:48 raspberrypi su[8658]: pam_unix(su:session): session closed for user pi
Aug 02 22:28:48 raspberrypi su[8688]: (to pi) root on none
Aug 02 22:28:48 raspberrypi su[8688]: pam_unix(su:session): session opened for user pi by (uid=0)
Aug 02 22:28:48 raspberrypi su[8688]: pam_unix(su:session): session closed for user pi
Aug 02 22:28:49 raspberrypi sudo[8699]: root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/cp /etc/asound.conf /h
Aug 02 22:28:49 raspberrypi sudo[8699]: pam_unix(sudo:session): session opened for user root by (uid=0)
Aug 02 22:28:49 raspberrypi sudo[8699]: pam_unix(sudo:session): session closed for user root
Aug 02 22:28:49 raspberrypi systemd[1]: seeed-voicecard.service: Main process exited, code=exited, status=1/FAILURE
Aug 02 22:28:49 raspberrypi systemd[1]: seeed-voicecard.service: Failed with result 'exit-code'.
Aug 02 22:28:49 raspberrypi systemd[1]: Failed to start Seeed Voicecard service.

alexavoiceinstaller.sh freezing up

when i run the alexavoiceinstaller.sh it constantly freezes at

95% Building CXX object SampleApp/src/CMakeFiles/LibSampleApp.dir/InteractionManager.cpp.o

restarted and rerun brings the same issue

Error in installation , Alexa sdk works fine but smart screen does not install correctly

Alexa voice loads , authenticates correctly and works properly also.

Alexa screen installer does not install correctly, and sampleassistant for screen does not start.

Terminal outputs for all errors given below, prior to this everything was 100% ok.---------------

100% tests passed, 0 tests failed out of 38

Total Test time (real) = 30.43 sec

The following tests did not run:
39 - VisualCharacteristicsTest.testGetCapabilityConfigurations (Disabled)
[ 38%] Built target unit
[ 45%] Built target Communication
[ 54%] Built target SmartScreenClient
[100%] Built target SampleApp
npm WARN [email protected] No repository field.
npm WARN [email protected] license should be a valid SPDX license expression
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/watchpack-chokidar2/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

up to date in 19.181s

22 packages are looking for funding
run npm fund for details

[email protected] build /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js
npm run lint && webpack --config webpack.config.js "--output-path" "/home/pi/DIY-Echo-Show/Alexa/ss-build/modules/GUI" "--define" "DISABLE_WEBSOCKET_SSL=true"

[email protected] lint /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js
tslint --project tsconfig.json -c tslint.json 'src//*.ts' 'src//*.tsx'

Hash: 57c1d86f9c49ab235234
Version: webpack 4.44.1
Time: 19836ms
Built at: 29/08/2020 9:45:31 pm
Asset Size Chunks Chunk Names
../dist/app.d.ts 3.56 KiB [emitted]
../dist/components/APLRendererWindow.d.ts 2.41 KiB [emitted]
../dist/components/PlayerInfoWindow.d.ts 1.7 KiB [emitted]
../dist/components/SampleHome.d.ts 383 bytes [emitted]
../dist/components/VoiceChrome.d.ts 848 bytes [emitted]
../dist/lib/activity/ActivityEvent.d.ts 554 bytes [emitted]
../dist/lib/activity/ActivityTracker.d.ts 1.09 KiB [emitted]
../dist/lib/config/GuiConfigHelpers.d.ts 944 bytes [emitted]
../dist/lib/config/IDeviceAppConfig.d.ts 4.12 KiB [emitted]
../dist/lib/config/visualCharacteristics/IDeviceDisplay.d.ts 1.08 KiB [emitted]
../dist/lib/config/visualCharacteristics/IDisplayWindow.d.ts 963 bytes [emitted]
../dist/lib/config/visualCharacteristics/IInteractionMode.d.ts 515 bytes [emitted]
../dist/lib/config/visualCharacteristics/IVideo.d.ts 114 bytes [emitted]
../dist/lib/config/visualCharacteristics/IVisualCharacteristics.d.ts 655 bytes [emitted]
../dist/lib/config/visualCharacteristics/IWindowState.d.ts 354 bytes [emitted]
../dist/lib/displayCards/AVSDisplayCardHelpers.d.ts 1.9 KiB [emitted]
../dist/lib/focus/ChannelName.d.ts 343 bytes [emitted]
../dist/lib/focus/FocusManager.d.ts 2.05 KiB [emitted]
../dist/lib/focus/FocusResource.d.ts 296 bytes [emitted]
../dist/lib/focus/FocusState.d.ts 183 bytes [emitted]
../dist/lib/focus/IChannelObserver.d.ts 251 bytes [emitted]
../dist/lib/focus/IFocusBridge.d.ts 248 bytes [emitted]
../dist/lib/media/AVSAudioPlayer.d.ts 1.38 KiB [emitted]
../dist/lib/media/AVSVideo.d.ts 1.43 KiB [emitted]
../dist/lib/messages/NavigationEvent.d.ts 333 bytes [emitted]
../dist/lib/messages/client.d.ts 1.75 KiB [emitted]
../dist/lib/messages/messages.d.ts 4.28 KiB [emitted]
../dist/lib/messages/sdkLogTransport.d.ts 842 bytes [emitted]
../dist/lib/utils/timer.d.ts 235 bytes [emitted]
../dist/main.d.ts 21 bytes [emitted]
4444bbbc2f4dd0a9586f053308ab9a1a.png 22.7 KiB [emitted]
index.html 187 bytes [emitted]
main.bundle.js 4.23 MiB main [emitted] main
Entrypoint main = main.bundle.js
[../../apl-client/index.js] /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/apl-client/index.js 613 KiB {main} [built]
[../node_modules/css-loader/dist/cjs.js!./main.css] 735 bytes {main} [built]
[./app.tsx] 16.6 KiB {main} [built]
[./lib/activity/ActivityEvent.ts] 883 bytes {main} [built]
[./lib/activity/ActivityTracker.ts] 2.39 KiB {main} [built]
[./lib/config/GuiConfigHelpers.ts] 7.92 KiB {main} [built]
[./lib/config/IDeviceAppConfig.ts] 799 bytes {main} [built]
[./lib/displayCards/AVSDisplayCardHelpers.ts] 2.82 KiB {main} [built]
[./lib/focus/FocusManager.ts] 3.03 KiB {main} [built]
[./lib/messages/NavigationEvent.ts] 642 bytes {main} [built]
[./lib/messages/client.ts] 3.51 KiB {main} [built]
[./lib/messages/messages.ts] 1.74 KiB {main} [built]
[./lib/messages/sdkLogTransport.ts] 1.7 KiB {main} [built]
[./main.css] 1.05 KiB {main} [built]
[./main.tsx] 568 bytes {main} [built]
+ 33 hidden modules

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/APLRendererWindow.tsx
./components/APLRendererWindow.tsx
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/APLRendererWindow.tsx(23,10)
TS2305: Module '"/home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/csstype/index"' has no exported member 'VisibilityProperty'.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/VoiceChrome.tsx
./components/VoiceChrome.tsx
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/VoiceChrome.tsx(7,10)
TS2305: Module '"/home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/csstype/index"' has no exported member 'VisibilityProperty'.
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
4 modules
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: npm run lint && webpack --config webpack.config.js "--output-path" "/home/pi/DIY-Echo-Show/Alexa/ss-build/modules/GUI" "--define" "DISABLE_WEBSOCKET_SSL=true"
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-08-29T16_15_32_122Z-debug.log
make[2]: *** [modules/GUI/CMakeFiles/GUIClient.dir/build.make:59: modules/GUI/CMakeFiles/GUIClient] Error 2
make[1]: *** [CMakeFiles/Makefile2:2152: modules/GUI/CMakeFiles/GUIClient.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
pi@raspberrypi:~ $
pi@raspberrypi:~ $ sudo chmod +x /home/pi/DIY-Echo-Show/Alexa/startsampleassistant.sh
pi@raspberrypi:~ $ sudo /home/pi/DIY-Echo-Show/Alexa/startsampleassistant.sh

2020-08-29 16:16:28.780 [ 1] I sdkVersion: 1.19.1
SmartScreenSDKVersion 2.0.2
configFile /home/pi/DIY-Echo-Show/Alexa/build/Integration/AlexaClientSDKConfig.json
configFile /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/config/SmartScreenSDKConfig.json
Running app with log level: INFO
2020-08-29 16:16:28.898 [ 1] E SQLiteMiscStorage:createFailed:reason=Could not load config value,key=databaseFilePath
2020-08-29 16:16:28.898 [ 1] C SampleApplication:Failed to create misc storage
2020-08-29 16:16:28.898 [ 1] C SampleApplication:Failed to initialize SampleApplication
Failed to create to SampleApplication!
pi@raspberrypi:~ $

ย 

Snowboy is not working

While installing port audio was not working, so i used another link to download the port audio and installed whole.

Another issue i faced was voiceactivation.py, i am always getting below error no input device.

JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Traceback (most recent call last):
File "/home/pi/DIY-Echo-Show/snowboy/voiceactivation.py", line 86, in
detector = snowboydecoder.HotwordDetector(model, sensitivity=0.5)
File "/home/pi/DIY-Echo-Show/snowboy/snowboydecoder.py", line 115, in init
stream_callback=audio_callback)
File "/usr/lib/python3/dist-packages/pyaudio.py", line 750, in open
stream = Stream(self, *args, **kwargs)
File "/usr/lib/python3/dist-packages/pyaudio.py", line 441, in init
self._stream = pa.open(**arguments)
OSError: [Errno -9996] Invalid input device (no default output device)

Please help to solve this voice activation

Failed to create sample application

#################################################

NOTIFICATION INDICATOR STATE: OFF

#################################################

##################################

NOT YET AUTHORIZED

##################################

################################################################################################

To authorize, browse to: 'https://amazon.com/us/code' and enter the code: C6BYXW

################################################################################################

#################################################

Checking for authorization (1)...

#################################################

Expression 'paInvalidSampleRate' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2043
Expression 'PaAlsaStreamComponent_InitialConfigure( &self->capture, inParams, self->primeBuffers, hwParamsCapture, &realSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2714
Expression 'PaAlsaStream_Configure( stream, inputParameters, outputParameters, sampleRate, framesPerBuffer, &inputLatency, &outputLatency, &hostBufferSizeMode )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 2838
2021-02-13 12:02:22.887 [ 1] C PortAudioMicrophoneWrapper:Failed to open PortAudio default stream:errorCode=-9997
2021-02-13 12:02:22.887 [ 1] C PortAudioMicrophoneWrapper:Failed to initialize PortAudioMicrophoneWrapper
2021-02-13 12:02:22.897 [ 1] C SampleApplication:Failed to create microphone wrapper!
2021-02-13 12:02:22.912 [ 5] E FocusManager:releaseChannelHelper:reason=releaseActivityFailed,channel=0x1e1d448,interface=
2021-02-13 12:02:22.931 [ 1] C SampleApplication:Failed to initialize SampleApplication
Failed to create SampleApplication!

error compiling screen install

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/APLRendererWindow.tsx
./components/APLRendererWindow.tsx
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/APLRendererWindow.tsx(23,10)
TS2305: Module '"/home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/csstype/index"' has no exported member 'VisibilityProperty'.

ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/VoiceChrome.tsx
./components/VoiceChrome.tsx
[tsl] ERROR in /home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/src/components/VoiceChrome.tsx(7,10)
TS2305: Module '"/home/pi/DIY-Echo-Show/Alexa/alexa-smart-screen-sdk/modules/GUI/js/node_modules/csstype/index"' has no exported member 'VisibilityProperty'.
Child html-webpack-plugin for "index.html":
1 asset
Entrypoint undefined = index.html
4 modules
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] build: npm run lint && webpack --config webpack.config.js "--output-path" "/home/pi/DIY-Echo-Show/Alexa/ss-build/modules/GUI" "--define" "DISABLE_WEBSOCKET_SSL=true"
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2020-08-05T10_32_40_108Z-debug.log
modules/GUI/CMakeFiles/GUIClient.dir/build.make:57: recipe for target 'modules/GUI/CMakeFiles/GUIClient' failed
make[2]: *** [modules/GUI/CMakeFiles/GUIClient] Error 2
CMakeFiles/Makefile2:2146: recipe for target 'modules/GUI/CMakeFiles/GUIClient.dir/all' failed
make[1]: *** [modules/GUI/CMakeFiles/GUIClient.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

asound.conf and asoundrc files empty

Hello,
I am trying to install this on my Rpi4 with USB mic and on board 3.5mm jack, I followed the provided steps but when I tried to open asound.conf and asoundrc files for comparison I found that both files have no content in them.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.