installing pyalsaaudio on raspberry pi zero W (raspbian OS) - python

Hi everyone,
I tried everything to install pyalsaaudio package on my Raspberry Pi Zero W
can anyone please help me with a guide to install it on my device ?
I see a lot of guides for Ubunto OS and i even tried them on my device but nothing worked for me.
Thanks in advance.

there is a adafruit tutorial which works just perfect.
You have to install some libraries before, reboot at a certain point for them to make efect and last you enable the module.
Here is the link https://learn.adafruit.com/adafruit-i2s-mems-microphone-breakout/raspberry-pi-wiring-and-test#
Hope it works!

Related

Installing Pandas_ta on Raspberry Pi

I have been trying for a day to install Pandas_ta on my raspberry py with little succes. I first made a Python script on my PC and then placed it on my Raspberry pi, after installing some packages, the last one I had to so was Pandas_ta. I searched op documentary, I tried out some youtube video's. But it feels harder then it should. Does someone had a guide for me ?

How to install tensorflow on a raspberry pi 4 running Manjaro

I am trying to get tensorflow installed on a raspberry pi 4 which is running manjaro. It is to use the open source BNN library Larq, which recommended manjaro as an OS because it was 64bit as opposed to Raspbian. I have tried to install using yay from Archlinux user repository but got a couple different errors, like: "tensorflow/workspace.bzl: patch does not apply" and a failure to download. Any suggestions, I am very new to manjaro.
As a side note, I am not particularly stuck to Manjaro is anyone has experience using Larq and the larq compute engine on a RPi4 with a different OS any insight there would be helpful as well.
Thank you!
I cannot help you with Manjaro. However, I used Ubuntu 20.04 (64 bits) on my RPI4. I suppose you need the RPI4 to deploy and run your BNNs. If I am correct, I give you the following advice.
Please, note that the RPI4 is needed only to run LCE models (*.tflite). To this end, you don't need to install Tensorflow on your RPI4.
For everything else (see below) you can use a regular Linux box.
To check if everything is fine with your runtime environment (i.e. the RPI4), You can use your main Larq+LCE installation to convert one of your models into an LCE model and test it with the benchmark tool available here. For the RPI4+Ubuntu you should use lce_benchmark_model_aarch64.
If you need to compile your own BNN-based applications for your RPI4, you can follow the build guide on the LCE website. I did it once a long time ago. I used the LCE Docker to have a working environment. Then, from the inside of the docker, I followed the ARM guide: "Cross-compiling with Make" version.
I hope this helps.

All cv2 functions are not found

I have pip installed opencv-python on my Ubuntu guest OS hosted in a virtual box. Both my python and Ubuntu are 64-bit. But when I import cv2 I couldn't find all the functions to manipulate images. The following is an image of the ini file I get when I do ctrl+B.
I uninstalled the opencv and followed many tutorials to install opencv using apt-get including from the official opencv website and none of them worked for me. Can someone give me a hint what I can do to get opencv to work?
Following this tutorial, I was able to finally install opencv properly. I am posting my answer to help someone in a similar situation. Ubuntu version is the most important thing you have to check before you follow any of the tutorials. Just like my case, if you happen to follow one of the old tutorials but your Ubuntu version is 16, you need to remove the opencv altogether then follow the tutorial.
After the fix, my ini looks like this. It consists all the functions to manipulate image. The screenshot shows the partial shot in my ide.

Raspbian Jessie (RPI3) boot options not launching Desktop

I'm trying to connect raspberry pi with MatLab. I use the toolbox within matlab to configure raspberry pi. It automatically connects through network however it also gives you OS within that setup procedure, you can't connect to raspberry pi without it. Although the system it gives is technically Raspbian Jessie it comes with limited package.
When it launches and I input dir into console it only shows files such as: satkin_ws install ros_indigo.sh install_ros_package.sh and ros_catkin_ws. No other folders or files are pre-loaded onto the system. I tried to install some packages for display manager such as gdm3 and lightdm but I still have a problem with loading desktop environment. Can someone give me suggestions on how to resolve this issue?
Alright after doing some research I found that the system installed by Matlab is Raspbian Jessie Lite which does not come with GUI/Desktop environment by default but you can install it you want. Here is the link to get you going:
https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=133691

Need to set up a GUI that shows output from Pocketsphinx on Raspberry Pi 2 using Python

I need to set up a GUI that simply shows the output of Pocketsphinx on Raspberry Pi. I have installed Pocketsphinx and can run it from command line, but am not quite clear on how to set up the GUI. I have been using Python 2.7, and have seen online that others have tried importing it? Please help me figure this out.
Thanks,
There is pocketsphinx wrapper for python.

Categories

Resources