Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

[Platform] Raspbian Buster Support #161

Open
1 of 4 tasks
MustacheEmperor opened this issue Jul 2, 2019 · 66 comments
Open
1 of 4 tasks

[Platform] Raspbian Buster Support #161

MustacheEmperor opened this issue Jul 2, 2019 · 66 comments
Assignees
Labels
sub: packaging Related to sw packaging issues type: enhancement Enhancement of an existing feature

Comments

@MustacheEmperor
Copy link

MustacheEmperor commented Jul 2, 2019

Hello,

Following the instructions for manual setup, after adding the key and calling sudo apt-get update in Step 2, the terminal outputs a 404 for one of the sources
sudo apt-get update Ign:1 https://raspbian.snips.ai/buster stable InRelease Err:2 https://raspbian.snips.ai/buster stable Release 404 Not Found [IP: 99.84.239.119 443] Hit:3 http://archive.raspberrypi.org/debian buster InRelease Hit:4 http://raspbian.raspberrypi.org/raspbian buster InRelease Reading package lists... Done E: The repository 'https://raspbian.snips.ai/buster stable Release' does not have a Release file. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.

Because the source can't update, I'm not able to do the following steps.

[EDIT cpoisson 2019/09/27]

Raspbian buster support is likely to happen at the end of october,
meanwhile here's a summary of the possible workarounds

Workaround 1 (Recommended)

Use a debian stretch image available here, this distro is the one officially supported at the moment.

Workaround 2

There is 4 problems to solve to support officially buster.

  • The snips buster repository is not yet created, the stretch one should be used. (Still an open issue)
  • Some dependencies of snips-asr are missing. (Still an open issue)
  • Some dependencies of snips-tts are missing. (Still an open issue)
  • hermes-python is not yet available on buster. Fixed

If you feel that you don't have the required skills to proceed and debug issues, I urge you to fallback on Stretch :)

Switch to stretch repository

You need to replace buster by stretch in /etc/apt/sources.list.d/snips.list

sudo bash -c 'echo "deb https://raspbian.snips.ai/stretch stable main" > /etc/apt/sources.list.d/snips.list'

Install snips-asr

sudo apt install libgfortran3
sudo apt install libatlas3-base=3.10.3-8+rpi1
sudo apt install snips-asr

Install snips-tts

Some packages related to pico are missing from the rasbian buster repository

Using dpkg -i is it is possible to install then before installing snips-tts.

e.g.

wget http://ftp.fr.debian.org/debian/pool/non-free/s/svox/libttspico-utils_1.0+git20130326-9_armhf.deb
wget http://ftp.fr.debian.org/debian/pool/non-free/s/svox/libttspico0_1.0+git20130326-9_armhf.deb

sudo dpkg -i libttspico-utils_1.0+git20130326-9_armhf.deb
sudo dpkg -i libttspico0_1.0+git20130326-9_armhf.deb

sudo apt install snips-tts
@MustacheEmperor MustacheEmperor added the type: bug Not working as expected label Jul 2, 2019
@MustacheEmperor
Copy link
Author

Downgrading to stretch works

@cpoisson
Copy link
Contributor

cpoisson commented Jul 2, 2019

Hi @MustacheEmperor,

We don't support officially buster at the moment.

AFAIK, even if Raspbian buster is out, the debian buster distro is still in a testing phase.
[EDIT] 09/07 => Buster is now a stable release.

We are starting to have a look on this, and we already found some missing packages.

Regarding the packages sources, it is normal, this repo https://raspbian.snips.ai/buster does not exist.

You need to replace buster by stretch in /etc/apt/sources.list.d/snips.list

sudo bash -c 'echo "deb https://raspbian.snips.ai/stretch stable main" > /etc/apt/sources.list.d/snips.list'

But then you will encounter another dependencies problem related to snips-asr

A way to proceed is to install libgfortran5.

I am currently evaluating it on my side.

Also, hermes-python is not yet available for buster distro. (an issue has been filled here snipsco/hermes-protocol#133)

@cpoisson cpoisson added type: enhancement Enhancement of an existing feature and removed type: bug Not working as expected labels Jul 2, 2019
@cpoisson cpoisson self-assigned this Jul 2, 2019
@cpoisson cpoisson changed the title 404 updating buster Release following manual instructions [Platform] Raspbian Buster Support Jul 2, 2019
@cpoisson
Copy link
Contributor

cpoisson commented Jul 2, 2019

snips-tts is also causing some difficuIties.

It needed a bit of exploration on debian buster packages repository

snips-asr

sudo apt install libgfortran3
sudo apt install libatlas3-base=3.10.3-8+rpi1
sudo apt install snips-asr

snips-tts

Some packages related to pico are missing from the rasbian buster repository

Using dpkg -i is it is possible to install then before installing snips-tts.

e.g.

wget http://ftp.fr.debian.org/debian/pool/non-free/s/svox/libttspico-utils_1.0+git20130326-9_armhf.deb
wget http://ftp.fr.debian.org/debian/pool/non-free/s/svox/libttspico0_1.0+git20130326-9_armhf.deb

sudo dpkg -i libttspico-utils_1.0+git20130326-9_armhf.deb
sudo dpkg -i libttspico0_1.0+git20130326-9_armhf.deb

sudo apt install snips-tts

@cpoisson cpoisson added this to the Snips Flow - Next milestone Jul 4, 2019
@batje
Copy link

batje commented Jul 4, 2019

I got stuck installing snips-asr because of the following dependency chain (but I found a workaround):

snips-skaldi > libatlas3-base > libblas-common

and
Package 'libblas-common' has no installation candidate.

This is probably because the available libatlas3-base version is 3.10.3-1-snips.

I installed the standard stretch version by doing:

sudo apt-get install libatlas3-base=3.10.3-8+rpi1

After this, snips-asr does not start as it can not find libgfortran.so.3

So we need to create a symbolic link:

sudo ln -s /usr/lib/arm-linux-gnueabihf/libgfortran.so.5 /usr/lib/arm-linux-gnueabihf/libgfortran.so.3

That seems to have fixed things.

@cpoisson
Copy link
Contributor

cpoisson commented Jul 4, 2019

@batje , Thanks a bunch, I could see that the instruction I provided were wrong 👍 , It s updated now.

@cpoisson cpoisson closed this as completed Jul 4, 2019
@cpoisson cpoisson reopened this Jul 4, 2019
@batje
Copy link

batje commented Jul 5, 2019

Things seem to work, but when I install an assistent, i see a lot of these:

Running setup.sh & generating virtual environment for stanvn.Small_talk 
✖ Error setting up virtualenv, one or more actions might not be able to run. Reason :
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.

@rootkea
Copy link

rootkea commented Jul 8, 2019

@cpoisson

AFAIK, even if Raspbian buster is out, the debian buster distro is still in a testing phase.

Debian released Buster as latest stable yesterday.

@cpoisson
Copy link
Contributor

cpoisson commented Jul 10, 2019

@batje

Yes, it is unrelated. Those are normal warnings issued by python tools to push python users to migrate for python 3.
As they return a code different than 0 in the command line, SAM display them as errors.

@code-pig
Copy link

Hi,

Apologies I don't really understand thanks.

Does Snips work on Buster? Do the above comments fix the issue? Should I try and find an image of Stretch? Where can I find an image of stretch?

Thanks your help

@cpoisson
Copy link
Contributor

cpoisson commented Jul 11, 2019

Hi @code-pig ,

Short answer, use stretch to avoid dependencies issues.

I'll make a summary at the beginning of the ticket.

@flatsiedatsie
Copy link

@code-pig I have version 0.63.2 working just fine on a Raspbperry Pi 4 with Buster.

@code-pig
Copy link

I used stretch in the end, which was probably for the best as it forced me to learn a few things. Also im on the pi 3 so not sure if that makes any difference? Thanks for your help everybody

@RaspiManu
Copy link

@cpoisson Does workaround 2 in the first post still show the actual status with 3 open issues or is there something new?

@sudheerthalla
Copy link

@cpoisson Does workaround 2 in the first post still show the actual status with 3 open issues or is there something new?

Waiting for this update. When can we expect full support for raspbian buster?

@RaspiManu
Copy link

RaspiManu commented Aug 11, 2019

@cpoisson I am planning a long time project with snips.ai, so I would like to not downgrade to Stretch and wait for full Buster support instead. Would be nice to get a short status update. Thank you in advance.

@jmwilson
Copy link

The version numbering for Snips' copy of libatlas3-base is problematic here, which explains why the workaround needs the explicit instruction sudo apt install libatlas3-base=3.10.3-8+rpi1.

Buster's version number is 3.10.3-8+rpi1 which is parsed as package version 3.10.3 and Debian revision 8+rpi1. Snips' version is 3.10.3-1-snips. By the Debian policy manual (https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-version), this is parsed as package version 3.10.3-1 and Debian revision snips. What was probably intended is that the package version should be 3.10.3 with revision 1-snips, but this is not how apt interprets it.

Since 3.10.3-1 sorts after 3.10.3, apt sees this as a newer version, even though we understand it as being the same package version, with buster offering a newer revision (8+rpi1 vs 1-snips as was likely intended).

What needs to change here is that the package version should be 3.10.3-1+snips1 so it sorts correctly. You have to be careful about aliasing existing distro packages and being careless about an extra hyphen can break things as is happening here. Instead of annotating the version with a hyphen, you should use a + if you want your version to sort after the unannotated version, and a ~ if you want it to sort before. For example 1.0~abc1 < 1.0 < 1.0+abc1.

jmwilson added a commit to jmwilson/pi-gen-ollie that referenced this issue Aug 11, 2019
@cpoisson
Copy link
Contributor

@RaspiManu
Yes the status is up to date, expect things to move slowly as most of us are on holidays this month.
The item is in our backlog (it needs to be done).
We have more urgent items to tackle for september. I hope october would allow us to address this issue.

@jmwilson Thanks for the info, we dived into those docs lately to ease internal beta releases. We know that the versioning of this package is a bit messy. (FYI @fredszaq, @kali, @Garvys )

@Nokius
Copy link

Nokius commented Oct 24, 2019

well looks like the GPG key changed

Err:5 https://raspbian.snips.ai/stretch stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 531DD1A7B702B14D
Reading package lists... Done
W: GPG error: https://raspbian.snips.ai/stretch stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 531DD1A7B702B14D

looks like there is an aarch64 repo now for buster

@Nokius
Copy link

Nokius commented Oct 24, 2019

The GPG apt issue has a workaround add [trusted=yes] after deb

root@raspberrypi:/home/pi# sam status

Connected to device 192.168.xxx.xxx

OS version ................... Raspbian GNU/Linux 10 (buster)
Installed assistant .......... Snips
Language ..................... de
Hotword ...................... hey_snips
ASR engine ................... snips
Status ....................... Live

Service status:

snips-asr .................... 0.64.0 (not running)
snips-audio-server ........... 0.64.0 (running)
snips-dialogue ............... 0.64.0 (running)
snips-hotword ................ 0.64.0 (running)
snips-nlu .................... 0.64.0 (running)
snips-skill-server ........... 0.64.0 (not running)
snips-tts .................... 0.64.0 (running)

snips-asr and snips-skill-server still give a pain

after a reboot I just have issues with snips-asr.
taken from journalctl
Oct 24 22:15:54 raspberrypi snips-asr[1027]: /usr/bin/snips-asr: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory
something is missing :-/

also snips-watch is missing
bash: snips-watch: command not found
my fault it was missing fixed it
apt-get install snips-watch

sam watch
[22:19:40] [Dialogue] session with id '10c2692f-dcec-4561-a363-43c64705ca07' was ended on site default. The session timed out because the ASR component did not respond in a timely manner. Please ensure that the Asr is started and running correctly.


issue fixed!

apt-get install libgfortran3 && sam service start snips-asr fixed my issue, a missed pkg, for now

root@raspberrypi:/home/pi# sam status

Connected to device 192.168.xxx.xxx

OS version ................... Raspbian GNU/Linux 10 (buster)
Installed assistant .......... Snips
Language ..................... de
Hotword ...................... hey_snips
ASR engine ................... snips
Status ....................... Live

Service status:

snips-asr .................... 0.64.0 (running)
snips-audio-server ........... 0.64.0 (running)
snips-dialogue ............... 0.64.0 (running)
snips-hotword ................ 0.64.0 (running)
snips-nlu .................... 0.64.0 (running)
snips-skill-server ........... 0.64.0 (running)
snips-tts .................... 0.64.0 (running)


Summery:

echo "deb [trusted=yes] https://raspbian.snips.ai/stretch stable main" > /etc/apt/sources.list.d/snips.list
wget -q https://ftp-master.debian.org/keys/release-10.asc -O- | apt-key add -
echo "deb http://deb.debian.org/debian buster non-free" >> /etc/apt/sources.list
apt-key adv --keyserver gpg.mozilla.org --recv-keys D4F50CDCA10A2849
apt-get update
apt install -y dirmngr libttspico0 libttspico-utils libatlas3-base=3.10.3-8+rpi1 libgfortran3 snips-asr snips-platform-voice snips-template snips-skill-server snips-watch nodejs npm

after that I followed the Quick Start guide Step3

@Amhehu
Copy link

Amhehu commented Nov 5, 2019

End of october is over. Are there any updates?
Sorry, I'm very nervous ^^

@ghost
Copy link

ghost commented Nov 5, 2019

issue fixed!

apt-get install libgfortran3 && sam service start snips-asr fixed my issue, a missed pkg, for now

I got back this from the pi trying to install libgfortran3.

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libgfortran3 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'libgfortran3' has no installation candidate

@Pittermaennchen
Copy link

⬆️ We are targeting end of october to deal with this issue.

@cpoisson Any news on this? I would like to join the snips community. But I bought a raspberry pi 4 and am unable to install Raspbian Stretch on it. :(

@flatsiedatsie
Copy link

You can install Snips on a Pi 4 with Buster just fine. Just not the latest version of Snips. The Voco add-on for the Mozilla Gateway does this, and doesn't have any dependencies.

@Pittermaennchen
Copy link

You can install Snips on a Pi 4 with Buster just fine. Just not the latest version of Snips. The Voco add-on for the Mozilla Gateway does this, and doesn't have any dependencies.

Thank you for the tip! I managed to install the Mozilla Gateway and added Voco. But I didn't manage to install the necessary drivers for my Respeaker 4-Mic Array yet.

If I get to this point: How can I change the Snips Language in the Voco addon? And how can I train my own assistant with this addon?

@Amhehu
Copy link

Amhehu commented Nov 12, 2019

I just tried to follow this instructions on my RPi 3A. Everything is fine except of the snips-audio-server which is not running

OS version ................... Raspbian GNU/Linux 10 (buster)
Installed assistant .......... XXX
Language ..................... de
Hotword ...................... hey_snips
ASR engine ................... snips
Status ....................... Live

Service status:

snips-asr .................... 0.64.0 (running)
snips-audio-server ........... 0.64.0 (not running)
snips-dialogue ............... 0.64.0 (running)
snips-hotword ................ 0.64.0 (running)
snips-nlu .................... 0.64.0 (running)
snips-skill-server ........... 0.64.0 (running)
snips-tts .................... 0.64.0 (running)

After some minutes I repeated the sam status command and the audio-server was running. Some seconds after I repeated it again ... and it was not running.

@Pittermaennchen
Copy link

@cpoisson Still no news on Raspberry Pi 4 support? I can't wait to get Snips to work 😬

@janekbettinger
Copy link

Hi, I have Snips running with Debian Buster on a Raspberry Pi 4 (Model B) and it works flawlessly.

Based on https://forum.snips.ai/t/solved-raspberry-pi-4-buster-how-to-do-it/3647/2 and https://docs.snips.ai/getting-started/quick-start-macos here is what I did:

ssh pi@raspberrypi.local

sudo apt update
sudo apt full-upgrade

sudo apt install -y dirmngr apt-transport-https
sudo bash -c  'echo "deb https://raspbian.snips.ai/stretch stable main" > /etc/apt/sources.list.d/snips.list'
sudo apt-key adv --fetch-keys  https://debian.snips.ai/5FFCD0DEB5BA45CD.pub

wget -q https://ftp-master.debian.org/keys/release-10.asc -O- | sudo apt-key add -
echo "deb http://deb.debian.org/debian buster non-free" | sudo tee /etc/apt/sources.list.d/debian.list
sudo apt-key adv --keyserver gpg.mozilla.org --recv-keys D4F50CDCA10A2849
sudo sh -c 'curl https://raspbian.snips.ai/531DD1A7B702B14D.pub | apt-key add -'
sudo apt update
sudo apt install -y libttspico0 libttspico-utils
sudo apt install -y libatlas3-base=3.10.3-8+rpi1
sudo apt install -y libgfortran3 snips-asr
sudo apt install -y snips-platform-voice
sudo apt install -y snips-watch
sudo apt install -y snips-template snips-skill-server
sudo apt install -y mosquitto

sudo systemctl start "snips-*"

sudo reboot
$ sam status

Connected to device 192.168.178.42

OS version ................... Raspbian GNU/Linux 10 (buster)
Installed assistant .......... My Assistant
Language ..................... de
Hotword ...................... hey_snips
ASR engine ................... snips
Status ....................... Live

Service status:

snips-asr .................... 0.64.0 (running)
snips-audio-server ........... 0.64.0 (running)
snips-dialogue ............... 0.64.0 (running)
snips-hotword ................ 0.64.0 (running)
snips-nlu .................... 0.64.0 (running)
snips-skill-server ........... 0.64.0 (running)
snips-tts .................... 0.64.0 (running)

The ReSpeaker 4-Mic Array (http://wiki.seeedstudio.com/ReSpeaker_4_Mic_Array_for_Raspberry_Pi/#getting-started) works fine as well.

@Pittermaennchen
Copy link

Pittermaennchen commented Nov 16, 2019

@kroka Thank you! That sounds great! I tried to do the same.
But I don't understand the sudo bash -c command. I only get:

pi@raspberrypi:~ $ sudo bash -c  'echo "deb https://raspbian.snips.ai/stretch stable main"
> /etc/apt/sources.list.d/snips.list'
deb https://raspbian.snips.ai/stretch stable main
bash: line 1: /etc/apt/sources.list.d/snips.list: **Permission denied**


@nordcomputer
Copy link

nordcomputer commented Nov 17, 2019

seems like you have a file there with wrong permissions.
Try the following:

sudo rm -r /etc/apt/sources.list.d/snips.list
(deletes the file with the repository)

sudo bash -c  'echo "deb https://raspbian.snips.ai/stretch stable main" > /etc/apt/sources.list.d/snips.list'

(recreates it with the right content)

If that doesnt work, you can create the file by yourself (after deleting it):
Open the file in an editor:
sudo nano /etc/apt/sources.list.d/snips.list

paste the following content into it:
deb https://raspbian.snips.ai/stretch stable main

Save the file with Ctrl+o and close the editor with Ctrl+x

Good luck!

PS.:
I just installed Buster from scratch on a Pi3 - its working flawlessely with the "tutorial" from @kroka

@flatsiedatsie
Copy link

@Pittermaennchen if you still want to try the Voco route: it as built in support for loading your own assistant. It only supports English though.

@ylh888
Copy link

ylh888 commented Nov 18, 2019

Hi, I have Snips running with Debian Buster on a Raspberry Pi 4 (Model B) and it works flawlessly.

Based on https://forum.snips.ai/t/solved-raspberry-pi-4-buster-how-to-do-it/3647/2 and https://docs.snips.ai/getting-started/quick-start-macos here is what I did:

ssh pi@raspberrypi.local

sudo apt update
sudo apt full-upgrade

sudo apt install -y dirmngr apt-transport-https
sudo bash -c  'echo "deb https://raspbian.snips.ai/stretch stable main" > /etc/apt/sources.list.d/snips.list'
sudo apt-key adv --fetch-keys  https://debian.snips.ai/5FFCD0DEB5BA45CD.pub

wget -q https://ftp-master.debian.org/keys/release-10.asc -O- | sudo apt-key add -
echo "deb http://deb.debian.org/debian buster non-free" | sudo tee /etc/apt/sources.list.d/debian.list
sudo apt-key adv --keyserver gpg.mozilla.org --recv-keys D4F50CDCA10A2849
sudo sh -c 'curl https://raspbian.snips.ai/531DD1A7B702B14D.pub | apt-key add -'
sudo apt update
sudo apt install -y libttspico0 libttspico-utils
sudo apt install -y libatlas3-base=3.10.3-8+rpi1
sudo apt install -y libgfortran3 snips-asr
sudo apt install -y snips-platform-voice
sudo apt install -y snips-watch
sudo apt install -y snips-template snips-skill-server
sudo apt install -y mosquitto

sudo systemctl start "snips-*"

sudo reboot
$ sam status

Connected to device 192.168.178.42

OS version ................... Raspbian GNU/Linux 10 (buster)
Installed assistant .......... My Assistant
Language ..................... de
Hotword ...................... hey_snips
ASR engine ................... snips
Status ....................... Live

Service status:

snips-asr .................... 0.64.0 (running)
snips-audio-server ........... 0.64.0 (running)
snips-dialogue ............... 0.64.0 (running)
snips-hotword ................ 0.64.0 (running)
snips-nlu .................... 0.64.0 (running)
snips-skill-server ........... 0.64.0 (running)
snips-tts .................... 0.64.0 (running)

The ReSpeaker 4-Mic Array (http://wiki.seeedstudio.com/ReSpeaker_4_Mic_Array_for_Raspberry_Pi/#getting-started) works fine as well.

I'm running Pi4 Buster with ReSpeaker 2 mic. The above executed without any issue (up to "reboot"). But when I run tests from my desktop, the speaker works but not the microphone.

sam setup audio" from my desktop shows:

? Is it a Snips Makers Kit? Yes
✔ Installing ReSpeaker 2 mic hat
✖ src/mqtt_pal.c: In function ‘mqtt_pal_recvall’:
src/mqtt_pal.c:66:16: warning: duplicate ‘const’ declaration specifier [-Wduplicate-decl-specifier]
     const void const *start = buf;
                ^~~~~
src/button.c: In function ‘init_key’:
src/button.c:160:80: warning: passing argument 4 to restrict-qualified parameter aliases with argument 3 [-Wrestrict]
     if (pthread_create(&key_status_observer_daemon, NULL, key_status_observer, &key_status_observer)) {
                                                           ~~~~~~~~~~~~~~~~~~~  ^~~~~~~~~~~~~~~~~~~~
Rebooting device. .  .  .  done
✔ Device has rebooted
✔ Found only 1 capture device named: card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bcm2835-i2s-wm8960-hifi wm8960-hifi-0 []
i Using this device to capture sound
? Found 4 interfaces to output sound.
  Choose the one you want to use as your speaker card 1: seeed2micvoicec [seeed-2mic-voicecard], device 0: bc
m2835-i2s-wm8960-hifi wm8960-hifi-0 []
✔ Installed /etc/asound.conf
Setting to volume to 90% if possible

Status show


Connected to device p4

OS version ................... Raspbian GNU/Linux 10 (buster)
Installed assistant .......... Not installed
Status ....................... Live (no assistant)

Service status:

snips-asr .................... 0.64.0 (not running)
snips-audio-server ........... 0.64.0 (running)
snips-dialogue ............... 0.64.0 (not running)
snips-hotword ................ 0.64.0 (running)
snips-nlu .................... 0.64.0 (not running)
snips-skill-server ........... 0.64.0 (running)
snips-tts .................... 0.64.0 (running)

@RaspiManu
Copy link

RaspiManu commented Nov 20, 2019

@kroka Thank you soooo much for your tutorial on how to install it. It worked like a charm for me. No problems! Im finally running Snips.ai with Raspbian Buster and Matrix Voice Board on my RasPi 3B+.

C:\Users\Manuel>sam status

Connected to device ----

OS version ................... Raspbian GNU/Linux 10 (buster)
Installed assistant .......... My Assistant
Language ..................... de
Hotword ...................... hey_snips
ASR engine ................... snips
Status ....................... Live

Service status:

snips-asr .................... 0.64.0 (running)
snips-audio-server ........... 0.64.0 (running)
snips-dialogue ............... 0.64.0 (running)
snips-hotword ................ 0.64.0 (running)
snips-nlu .................... 0.64.0 (running)
snips-skill-server ........... 0.64.0 (running)
snips-tts .................... 0.64.0 (running)

@happenpappen
Copy link

@kroka Thank you soooo much for your tutorial on how to install it. It worked like a charm for me. No problems! Im finally running Snips.ai with Raspbian Buster and Matrix Voice Board on my RasPi 3B+.

C:\Users\Manuel>sam status
Connected to device ----
OS version ................... Raspbian GNU/Linux 10 (buster)
Installed assistant .......... My Assistant
Language ..................... de
Hotword ...................... hey_snips
ASR engine ................... snips
Status ....................... Live
Service status:
snips-asr .................... 0.64.0 (running)
snips-audio-server ........... 0.64.0 (running)
snips-dialogue ............... 0.64.0 (running)
snips-hotword ................ 0.64.0 (running)
snips-nlu .................... 0.64.0 (running)
snips-skill-server ........... 0.64.0 (running)
snips-tts .................... 0.64.0 (running)

@RaspiManu: I'm on the same setup (Buster on RPI 3B+ and Matrix), but can't get audio to work. Could you please provide your audio configuration (/etc/asound.conf)?

@RaspiManu
Copy link

@happenpappen At first, I used the speaker of my screen, because I'm working with a Raspbian Desktop Version. The audio output over HDMI made a lot of problems for me, because I always only heard the last few words of a snips answer. I connected a seperate speaker over audio jack and rightclicked on the audio logo in task bar and set the output to analog. That solved my problem completely. I dont know your audio output setup, but this might solve your problem, too.

Back to your exact question...
Here is my asound.conf file:

pcm.!default {
    type asym
    playback.pcm {
        type plug
        slave.pcm "hw:0,1"
    }
    capture.pcm {
        type plug
        slave.pcm "hw:2,0"
    }
}

I hope this helps.

@Xanacas
Copy link

Xanacas commented Nov 21, 2019

Hi,
I did how kroka explained - thanks for this!
However, after doing so, my respeaker disappeared from being available in Audacity. (where it appeared before).
So I've still not a running system. Either I get respeaker to run or Snips :/

@shack31b
Copy link

Waiting for a snips raspbian buster release on RPI3 :(

@nordcomputer
Copy link

Did you try the tutorial from @kroka ?

@fondencn
Copy link

fondencn commented Nov 24, 2019

@shack31b you should try @kroka 's solution, it worked quite well for me on Raspbian buster.
BTW why waiting for buster on RPI3? I have it on by RPI3+ ...

@janekbettinger
Copy link

Hi @Xanacas, I've installed the ReSpeaker after installing Snips. It should not really make a difference, but you never know... ;-)

@Xanacas
Copy link

Xanacas commented Nov 26, 2019

i've experienced two issues during the tutorial of @kroka

sudo apt-get update
Err:1 http://archive.raspberrypi.org/debian buster InRelease                                                                                            
  Cannot initiate the connection to archive.raspberrypi.org:80

which i could resolve with

sudo apt update --allow-releaseinfo-change

however i got another issue:

sudo apt install -y libgfortran3 snips-asr
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libgfortran3

which i couldn't resolve. I tried to install libgfortan4, but at least the snips services are not starting:

 snips-asr.service                                                                        loaded activating auto-restart Snips ASR                     
  snips-audio-server.service                                                               loaded activating auto-restart Snips Audio Server            
  snips-dialogue.service                                                                   loaded activating auto-restart Snips Dialogue                
  snips-hotword.service                                                                    loaded activating auto-restart Snips Hotword                 
  snips-injection.service                                                                  loaded activating auto-restart Snips Injection               
  snips-nlu.service                                                                        loaded activating auto-restart Snips NLU                     
  snips-skill-server.service                                                               loaded activating auto-restart Snips Skill Server            

any suggestions?

@517492
Copy link

517492 commented Dec 8, 2019

End of October has long passed now. Is there a new date when Raspbian Buster support is likely to happen? Will it be within the next weeks or rather within a few months?

@Bertware
Copy link

Bertware commented Dec 8, 2019

I installed a base + satellite on a RPi 2 and Zero W yesterday, both running Raspbian buster. Not a problem, just follow the steps Kroka wrote in this thread. I wouldn't expect any more updates from the Snips team, as they sold their souls to Sonos: https://forum.snips.ai/t/important-message-regarding-the-snips-console/4145

Sonos wants to "focus on music" (read: remove non-music related functionality) and will keep it for themselves. I've heard a lot about Rhasspy since this announcement, might be a good alternative (and is fully open-source, so they can't pull the plug like snips did) https://rhasspy.readthedocs.io/en/latest/

@johanneskropf
Copy link

End of October has long passed now. Is there a new date when Raspbian Buster support is likely to happen? Will it be within the next weeks or rather within a few months?

I wouldn’t expect any news on this. Now that Snips has been bought by Sonos and they announced the shutdown of public access to the console end of January it seems highly unlikely that any further development for platforms like Debian are going to happen.

@nordcomputer
Copy link

Feels like a slap into the communities face -.-

@Nokius
Copy link

Nokius commented Dec 9, 2019

@johanneskropf could you share the press release to this. 😞 😢

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
sub: packaging Related to sw packaging issues type: enhancement Enhancement of an existing feature
Projects
None yet
Development

No branches or pull requests