User avatar
BorbingoBoy
Posts: 13
Joined: Sun Apr 09, 2017 6:24 am
Location: Croatia
Contact: Website

Re: STICKY: Analog audio problems? post comments here!

Sat Jan 20, 2018 4:43 pm

Is it possible to transmit audio output through LAN? I don't have a TV with speakers, Pi's headphone jack output is horrible, and I use a Bluetooth keyboard, so HDMI, Bluetooth and headphone jack are not the way to go. Do you know the way? :mrgreen:

Thank you in advance!
3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456

User avatar
davidcoton
Posts: 3125
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK

Re: STICKY: Analog audio problems? post comments here!

Sat Jan 20, 2018 10:33 pm

BorbingoBoy wrote:
Sat Jan 20, 2018 4:43 pm
Is it possible to transmit audio output through LAN? I don't have a TV with speakers, Pi's headphone jack output is horrible, and I use a Bluetooth keyboard, so HDMI, Bluetooth and headphone jack are not the way to go. Do you know the way? :mrgreen:

Thank you in advance!
Try this viewtopic.php?f=29&t=195178#p1221618
"Thanks for saving my life." See https://www.raspberrypi.org/forums/viewtopic.php?p=1327656#p1327656
“Raspberry Pi is a trademark of the Raspberry Pi Foundation”

NiggiBS
Posts: 12
Joined: Thu Nov 30, 2017 3:03 pm

Re: STICKY: Analog audio problems? post comments here!

Fri Jan 26, 2018 4:48 pm

I use cheap speakers on my raspberry pi 3 (analog audio). I have sound but there is also an annoying buzz to be heard. When I use headphones there is no buzz.
Why is that?

bigdavoc
Posts: 1
Joined: Fri Feb 16, 2018 2:07 pm

Re: STICKY: Analog audio problems? post comments here!

Fri Feb 16, 2018 2:20 pm

Ok been using audio via HDMI on my old Pi 2's.

I have now set up a Pi3 farm (well only 4 Pi3's t this stage). I have installed the software (including the Alexa code). I have bought a USB mic and installed all the alexa kit on to the pi3.

I have tried several things to get audio to come out of the 3.5 Pi3 jack and have now come to the end of my research and still can not get any sound out if the Oi via the 3.5 headphone jack. I have tried different speakers and different headphones / ear buds but can not get any adio


I have set up the sound options and forced the sound to the headphone jack (amixer cset numid=3 1) I have even run the alsamixer and checked to make sure things are ok. SO I am pretty convinced it seems all set up.

I have done a sudo apt-get update / upgrade so nothing missing there

I have even installed the alsa utils package but still no luck

Any suggestions ??

thanks in advance

Davo

niwa3836
Posts: 57
Joined: Mon Nov 05, 2012 9:08 pm

Re: STICKY: Analog audio problems? post comments here!

Fri May 25, 2018 11:01 am

I've been chasing this issue down for a few long (long) days and can now 100% reproduce but not sure actually whats causing the issue. This used to work 100% under jessie but not stretch (ive re-checked at I am right it works). Let me explain how to reproduce as it shows what I need to do (mixing tracks at the end for a smooth music transition - part of my project). 2 terminal ssh windows to your stretch raspberry pi 3B+ first window: sudo /usr/bin/mpg123 -q -a hw:0,0 /media/musicfile1.mp3 #(now hear music ok)

second window: sudo /usr/bin/mpg123 -q -a hw:0,0 /media/musicfile2.mp3 #(now hear music ok)

Now stop the first window music and try restarting it. The music jumps, buffers, clicks and basically goes wrong. You could have restarted the 2nd window all day long with no issues. As I say this works really well under jessie. This solution is out of the box (i.e. not changed alsa configurations / asource etc). Can anyone else easily reproduce? Anyone any ideas? I know the issue is also with mplayer so it must be alsa related right (since pulseaudio is not in stretch by default). This is command line PI only (no GUI).

HELP, you could be my hero, I know you are out there!

tcat
Posts: 28
Joined: Wed Oct 18, 2017 11:23 am

Re: STICKY: Analog audio problems? post comments here!

Sun Jun 10, 2018 10:27 pm

Hi,

How do I set analog audio to output stereo on PI3 B?
I use amplified speakers powered from USB.

$ aplay /usr/share/sounds/alsa/Side_Left.wav
$ aplay /usr/share/sounds/alsa/Side_Right.wav

The above plays to both channels on PI3 B, while on PI1 B played left or right.
Many thanks
Tomas

JasonS
Posts: 1
Joined: Fri Aug 17, 2018 4:46 pm

Re: STICKY: Analog audio problems? post comments here!

Fri Aug 17, 2018 4:47 pm

I get this horrible noise when I use headphones, earbuds or speakers with my raspberry pi 3 model b. What can I do to fix this?

ShaGGy_UK
Posts: 4
Joined: Wed Dec 14, 2016 2:58 am

Audio recording at wrong speed

Wed Aug 22, 2018 10:35 am

I have installed a fresh Strech Lite but when i record (arecord) from my USB mic and then play the recording with aplay it has been recorded at double speed sounding like the chimpmonks on speed :)

im using

Code: Select all

**** List of CAPTURE Hardware Devices ****
card 1: Camera [Logitech EyeToy USB Camera], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
as my recording device.
I have checked the recorded file on a windows pc to confirm it is the recording that is at the wrong speed.

any ideas how I can fix this as it is stopping me using alexa and google assistant as the recording is unrecognisable.

just created new .soundrc file

Code: Select all

pcm.!default {
  type asym
  capture.pcm "mic"
  playback.pcm "speaker"
}
pcm.mic {
  type plug
  slave {
    pcm "hw:1,0"
  }
}
pcm.speaker {
  type plug
  slave {
    pcm "hw:0,0"
  }
}
and then if I record using

Code: Select all

arecord --format=S16_LE --duration=5 --rate=32000 --file-type=raw out.raw
and then playback using

Code: Select all

 aplay --format=S16_LE --rate=16000 out.raw 
 
it plays back correctly if the record is set at x2 the rate of the playback?

Shadow_7
Posts: 47
Joined: Sat Jul 12, 2014 5:50 am

Re: STICKY: Analog audio problems? post comments here!

Fri Aug 24, 2018 8:06 pm

You can use pulseaudio over a network. The client setup is fairly simple.

echo "default-server = 192.168.1.99" > $HOME/.config/pulse/client.conf

Might need to mkdir .config/pulse the first time around. The server setup requires another computer and various config changes to /etc/pulse/client.conf /etc/pulse/default.conf /etc/pulse/daemon.pa. Although not that many lines of changes. My setup has my RPi 3B+ as the server, with a nice USB audio interface to nice stereo speakers. In this way all my computers can use the SAME speakers. AKA I'm cheap and don't want to duplicate hardware which offers no new functionality.

Return to “Troubleshooting”

Who is online

Users browsing this forum: pcmanbob and 45 guests