assistant-sdk-python icon indicating copy to clipboard operation
assistant-sdk-python copied to clipboard

segmentation fault on_start_conversation()

Open jeronimojoe opened this issue 6 years ago • 1 comments

Raspberry Pi 3 B+, new Raspbian Stretch. I am running the assistant library sdk without any AIY kit hats etc, AIY code from https://github.com/google/aiyprojects-raspbian. my mic/speaker are via a usb adapter using alsaaudio only, no pulseaudio. Everything re device registration, authentication etc works fine. Whenever on_conversation_start() is called, either by using 'OK Google" hotword or from my code, seg fault happens.

run task called EventType.ON_MUTED_CHANGED EventType.ON_START_FINISHED Pick up the phone, and dial 1 to answer your questions EventType.ON_MEDIA_STATE_IDLE lifting handset dial finished, clicks: 10 ring tone finished EventType.ON_CONVERSATION_TURN_STARTED Segmentation fault

Many thanks if anyone can help

jeronimojoe avatar Jun 29 '19 17:06 jeronimojoe

AIY uses the assistant library, which has been deprecated on the 28th of June.

I can still run code based on the library fine on my RPi3, but the same code also segfaults on my RPi4.

The gRPC service is the recommended alternative to the library, and luckily AIY provides examples both with the library and the gRPC service. However keep in mind that the assistant service won't include many features provided by the library, such as hotword detection, timers, alarms etc. If you want to leverage hotword detection I'd recommend Snowboy instead.

I have opened an issue to ask developers whether the sudden deprecation with no provided alternatives has been intentional or not. In the meantime I'd limit my dependency on the Assistant SDK just to what is supposed not to get deprecated soon (the gRPC layer) and rely on other software for everything else.

blacklight avatar Jul 13 '19 10:07 blacklight