Hi, I’m trying to write a simple python script to grab audio from the analog input and replay it through the output but I’m not sure how to go about receiving or sending signal to either. Any tips on how to get started using pisound in python? Many thanks.
gentry
1
Giedrius
2
Hey, you’ll need to use some standard API / library for accessing audio. I found sounddevice library which seems promising, check out this example:
I think this command should work for installing the library:
sudo pip3 install sounddevice
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| PiSound with Python | 5 | 572 | January 23, 2021 | |
| How to Route Audio Input into C++ with Pisound Micro? | 1 | 63 | May 27, 2025 | |
| Using pisound input with P5.js audio input | 2 | 1386 | June 21, 2018 | |
| Audio out via usb | 2 | 289 | December 11, 2024 | |
| Pisound for analog Inputs on RPI in Kodi/OSMC | 16 | 2077 | February 17, 2024 | |
| Reading frequency with PiSound | 2 | 496 | July 16, 2019 | |
| PiSound for Frequency Analyzer | 5 | 1199 | December 2, 2018 | |
| Writing a Pisound Driver | 1 | 841 | June 3, 2021 | |
| Programmatic control of input gain? | 2 | 108 | October 29, 2024 | |
| Launching a python program with the button | 9 | 440 | September 6, 2022 |