Questions tagged [audio]

The Raspberry Pi has an analogue stereo audio jack output (Pi 1 A/B/B+, Pi 2, not Pi Zero), and audio can also be heard through the digital HDMI output (all models).

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

How to use adc to receive 40khz and 43khz modulated signals?

I am currently using thePmodAD1 in this mod for signal reception This is my code from DesignSpark.Pmod.HAT import createPmod import numpy as np import pandas as pd import matplotlib.pyplot as plt adc =...
user avatar
0 votes
0 answers
13 views

Pygame vs omxplayer vs mpv

I've been using Pygame for some entertainment app's that include a monitor-display and keyboard and playing MP3's, and am quite satisfied with it for that environment.... works well and stable. Now I'...
user avatar
  • 1
0 votes
0 answers
12 views

USB Sound Output Only Sending 16 Bit

I am using the RaspberryPi 4 running Raspbian (Debian: 10, Linux Kernel: 5.10) and have connected to my DAC (Cambridge Audio CXA61 which is a DAC/Amplifier) through USB. While playing a 24 bit, 96 kHz ...
user avatar
  • 1
0 votes
0 answers
26 views

Sonic Pi Slurs and Ties

I'm trying to duplicate a few sheet music song phrases. I use a command like: play_pattern_timed [:b3,:a3,:c4], [0.5,0.5,1.0] # for regular notes (which works fine). However, when I try to code a ...
user avatar
  • 1
0 votes
0 answers
27 views

WebRTC and i2s microphone problem

Hope someone can help. I have this mic, uv4l and webrtc installed on my rpi B+ with buster. I control the raspberry pi via SSH. When I open a brower on my mobile phone, I can speak into it and get the ...
user avatar
0 votes
0 answers
38 views

DAC quality effect on Bluetooth music streaming

I want to transmit music(Spotify and mp3 files) to my Bluetooth speakers from my Raspberry Pi. I have read that the onboard DAC on Pi isn't good so use an external DAC with better sound quality. ...
user avatar
-1 votes
1 answer
35 views

Can you use gpiozero wait_for_press() inside of a callback triggered by add_event_detect?

I am trying to write a script that uses a GPIO interrupt to callback a function that starts by playing a sound and then waits for a button to be pressed to start recording a sound, and then waits for ...
user avatar
0 votes
3 answers
49 views

Trying to run a python program on boot - error file location?

I have edited rclocal to include this line: python3 /path/to/my/program.py & I used an ampersand as my program has an infinite loop. The program never runs though. The program: import RPi.GPIO as ...
user avatar
0 votes
0 answers
27 views

Stream audio and video to web browsers via HTTP?

I'm trying to set up a Raspberry Pi in a way that will stream both audio and video together. Currently I'm running Pikrellcam to stream from RPi camera and USB microphone. It works great, you can ...
user avatar
0 votes
2 answers
157 views

The problem with installing pyaudio

I want to install pyaudio on my RPi4 that has 64bit bullseye 11.2. According to https://makersportal.com/blog/2018/8/23/recording-audio-on-the-raspberry-pi-with-python-and-a-usb-microphone I should do ...
user avatar
  • 409
0 votes
0 answers
30 views

Cannot start jackd with a low period size - ALSA fails

I'm attempting to build a multi-effect guitar pedal out of a Pi-4B (8GB), and am running into problems getting jackd running with reasonably low latency. It runs fine as long as the period is set to ...
user avatar
  • 101
0 votes
0 answers
20 views

Getting omxplayer to play through a HiFiBerry DAC

First, I know a thing or two about the Pi, but the audio system is still a complete mystery to me, so please be patient with my ignorance. After installation of a HiFiBerry DAC, omxplayer does not ...
user avatar
  • 103
0 votes
0 answers
23 views

sound .wav clip on ubuntu 21.10 with openjdk 17

I'm trying to play a .wav file on my Raspberry Pi (4). My OS is Ubuntu 21.10, 64 bit. My JDK is Open JDK 17.0.1. I've downloaded a sample .wav file to play it. The .wav file located under resources ...
user avatar
  • 101
0 votes
0 answers
19 views

A way to disable Bluetooth audio output when hdmi output (TV) is on

I am very new to raspberry pi. I have pi 4 running raspbian os and I am trying to keep it connected to tv ( to use for internet browsing and watching video) and at the same time as a reminder that ...
user avatar
  • 101
0 votes
0 answers
23 views

Short Bluetooth audio distortion at regular intervals

I'm using a Pi 4 to receive Bluetooth audio and play it back via HDMI on a TV, using stock 32 bit Raspi OS Buster. It works out of the box, using the built in Bluetooth device. However, at regular ...
user avatar
  • 145
-1 votes
1 answer
74 views

RaspBerrypie SIP to Pa Device, using pjsip

i been struggling with a little RaspberryPie project (iv tried it on RaspberryPie 3 and 4) Basically i am trying to build a SIP to Loudspeaker Converter using a Raspberry pie. So far installing pjsip ...
user avatar
  • 11
0 votes
0 answers
32 views

No sound on RPi4 after no sound is player for a while

I have issue when playing sound with aplay commad. I have simple Java application which plays sound after events occurs in application. Sound is played by calling bash script which has aplay coomand ...
user avatar
0 votes
1 answer
58 views

RaspberryPi 4 use PWM via 3.5mm jack or GPIO PWM Pins?

I am using the Adafruit TPA2016 to convert the audio PWM signal from the Pi4 to a better sounding analog signal. The RaspberryPi4 has a few PWM Pins and the 3.5mm Jack which also uses PWM. My question ...
user avatar
0 votes
1 answer
22 views

Obtaining a constant audio signal independent to volume

Sorry if this is a silly question but Is there a way to have an independent gain audio signal from a Raspberry Pi that does not vary with the software volume control? I am trying to get a constant ...
user avatar
  • 1
0 votes
0 answers
171 views

Cannot route audio to HDMI on Pi 4 Bullseye

Running latest update of Bullseye (11.1) on Pi 4 with 2 gig. Fresh fully updated copy of the OS. The menu bar audio item, which should list options, only lists "AV Jack" as an option. The ...
user avatar
0 votes
0 answers
48 views

Respeaker 4 Mic Array: Doesn't seem to work on Raspberry pi 3B+

So I got this Respeaker 4 mic array, but it is not working for me and I have no clue why.(I am new to this so it may seem like a silly reason but I don't know what to do)... I am following this ...
user avatar
0 votes
1 answer
42 views

Set two sinks with pulseaudio

I have two raop speakers that I can stream audio to from my Raspberry pi using Pulseaudio and AirConnect. At the moment, I can set either one as the default sink and it works as expected. I would like ...
user avatar
  • 101
0 votes
1 answer
107 views

Raspberry Pi, how can i turn bluetooth on and off over Python script?

i want to play either a sound, which is saved on my raspberry pi as a MP3 file or send a song from my phone over bluetooth to my Pi. So i found out, that if i run a song over bluetooth and play one ...
user avatar
0 votes
0 answers
32 views

Audio Injector input to Bluetooth Output

What I am trying to do is have the audio come into the Raspberry Pi via the Audio Injector "Stereo" and then pass through the Pi and output the audio to Bluetooth speakers. I have ...
user avatar
1 vote
1 answer
40 views

Streaming video+audio from Pi4 to Pi4 via ethernet

I would like to stream video & audio from one Pi4 (equipped with mic/cam) to another Pi4 (equipped with screen/speaker) via ethernet (cable connected directly between them). I've looked around, ...
user avatar
0 votes
0 answers
737 views

Raspberry pi 400 no sound over HDMI

I bought a Raspberry Pi 400 to connect it to my old TV (Telefunken) and make it a smart TV. I installed the latest Raspberry Pi OS, and everything works EXCEPT the sound. I connected the TV by the ...
user avatar
4 votes
1 answer
268 views

Acquisition of multi-channel audio data with a Raspberry Pi

I would like to build an autonomous audio device with a Raspberry Pi that can record audio data from 4 different microphones/hydrophones. I want to use this to perform acoustic localization so time ...
user avatar
0 votes
0 answers
196 views

Command Line Audio Player on Raspi

Yes, I know about omxplayer. :-) Looking for an audio player for raspi that I can run as a background daemon. I need it to: run headless enqueue a playlist accept commands through an alternate ...
user avatar
  • 103
0 votes
0 answers
391 views

No sound in Chromium on a Raspberry Pi 4 using HDMI but works with everything else including Firefox

I am Running Raspbian OS 32 bit (Bullseye) and no matter what I do I can't get any sound output through Chromium but with Firefox and everything else I have sound. I have tried editing config.txt, ...
user avatar
1 vote
0 answers
454 views

How to configure sound on Debian Bullseye on pi 4b

I just upgraded my raspberry pi os from Buster to Bullsye, and I have found that the audio is now working. I right-clicked on the speaker icon on the taskbar and I got this. see the part on the top ...
user avatar
0 votes
1 answer
39 views

Why did my Raspberry Pi 4 stop playing sound?

Two updates ago, my Pi 4 just stopped playing sound and I tried doing another update/upgrade combo and still nothing. Could this be a corrupted sound driver? How can I fix this? I purchased the Pi 4 ...
user avatar
1 vote
3 answers
63 views

How to loop audio through a pi for voice change effects?

I want to put a raspberry pi as a voice changer (using sox) between a headset and a game console to add some authentic voice effects for video games. The raspberry pi needs to loop the audio signal ...
user avatar
  • 111
0 votes
1 answer
108 views

Pygame audio is full of pops/crackling when started via systemd

I'm trying to set up a Python process that plays audio to auromatically start on boot with systemd but when I do the audio is full of pops, even though it's fine when I run it myself in the command ...
user avatar
  • 111
0 votes
1 answer
61 views

RCA audio settings

I have a Raspberry Pi 4 running Raspbian Lite Release 10. I will be running squeezelite on it for it to function as a squeezebox player. I need to have sound output to RCA jacks to plug into my ...
user avatar
1 vote
1 answer
59 views

Skip 1second in play mp3 the first time

I'm using Rasp4 and I'm trying to let rasp speaks using gtts-cli. It works but the first time I play it skips more or less 1 second. I run this command: gtts-cli -l en 'Good morning my dear friend' | ...
user avatar
  • 113
1 vote
1 answer
513 views

Audio output on Raspberry pi Zero W

I was trying to take an audio output from piZero-W, the article I followed was, this one. How to get audio through the gpio pins to a 3.5mm jack? When running - systemctl status alsa-state the result ...
user avatar
  • 11
0 votes
0 answers
32 views

Launch audio python application on startup - pulseaudio

After much trial and error where I couldn't get systemd, cron, or other methods to work, I found that at least when running the desktop, pulseaudio launches with the desktop, and must be running ...
user avatar
1 vote
1 answer
87 views

Audio not playing through Java on Raspberry Pi

The issue I'm trying to play sound on a Raspberry Pi 3 B+ through Java, but it doesn't work. I have Written code (shown below) in IntelliJ, and confirmed that it works on Windows 10. Connected ...
user avatar
  • 121
1 vote
1 answer
93 views

AirPlay just through HDMI?

I am fairly new to this Raspberry community and I would like to set up mine Raspberry as pocket audio streamer / light computer. I have installed Raspbian where I want to run AirPlay (shairport-sync) ...
user avatar
  • 11
0 votes
0 answers
47 views

Headphone Jack deactive when RasPi starts without screen

I want to set up a Jukebox (Phoniebox) with my RasPi (3b+) with an audio output via the headphone Jack. When I boot the RasPi (3b+) with a connected HDMI screen, everything works fine, and I get an ...
user avatar
  • 1
0 votes
0 answers
22 views

Remote controlled rpi soundboard (sound clips)

I'd like to trigger audio clips remotely on a rpi. This is for a Halloween decoration. ~20 audio clips, all of which can be whatever format (wav) and in a folder local on the rpi. I can record and ...
user avatar
0 votes
0 answers
159 views

Audio input and Output Issue on Raspberry Pi 4

Running Debian buster on a Raspberry Pi 4 (Model B Rev 1.4) Installed ReSpeaker 4-Mic Array which is only for capture audio (no 3.5 mm jack attached to this model). Mics are not working If I connect a ...
user avatar
0 votes
0 answers
27 views

Audio DAC for raspberry pi with 2 outputs (build in sspeakers + TS audio out)

I'm working on a project for one of my band that runs on a raspberry pi with samplerbox. the raspberry pi is connected to a powered speaker and a midi keyboard, and I can play from a set of samples I ...
user avatar
0 votes
0 answers
83 views

Send Audio to Android Device Over Bluetooth Programmatically

I'm hoping to use the Raspberry Pi as a Bluetooth microphone for an android device. The basic idea is to feed audio from a USB microphone to the Raspberry pi, remove background noise, and then send ...
user avatar
  • 1
0 votes
0 answers
17 views

Cannot capture screen with i2s audio - help needed

First time here and new to RPi. I have set up an SPH0645 i2s mic and can record and playback using Audacity without a problem. I am trying to screen capture and have tried Vokoscreen, recordmyscreen ...
user avatar
  • 1
0 votes
0 answers
120 views

Multiple Bluetooth speakers with Multiple Raspberry Pi’s

I want to be able to connect multiple Bluetooth speakers to raspberry pi’s, with two different inputs. My end goal is to have a Sonos-like system, where all the speakers are playing in sync. Inputs: ...
user avatar
-1 votes
1 answer
82 views

How do I change the PWM GPIO port in the sine_wave_pwm sample application of pico-playground?

This is the sample code in question: https://github.com/raspberrypi/pico-playground/tree/master/audio/sine_wave I cannot see where it has set it's PWM output pin. Inside "..pico-extras\src\...
user avatar
  • 119
0 votes
1 answer
58 views

Is there a way to manually change raspberry pi's audio setting to built-in digital?

As soon as I full-upgraded my pi, my sound has not been working on any apps (including chromium). I have tried to type in terminal code to stop it, but have had no such luck. The only app that still ...
user avatar
  • 1
2 votes
0 answers
120 views

High-speed USB Audio Streaming

I am using a Raspberry Pi 3B+ as the USB host for an embedded device that I have configured to appear as a USB Audio 2.0 compliant microphone. I am currently using PyAudio for opening and recording ...
user avatar
0 votes
0 answers
109 views

Raspberry Pi 3.5mm audio output problem

I am trying to get an audio output from my speaker connected to the jack port of the Raspberry Pi. I am using Raspberry Pi 3B + with the latest Raspbian OS (which includes Pulseaudio too). I do not ...
user avatar

1
2 3 4 5
22