How to Listen to Input Audio on Raspberry Pi

Status
Not open for further replies.

kandrey89

Member
Feed Provider
Joined
Dec 11, 2009
Messages
320
Location
San Ramon, CA USA
Hi,

I installed Raspberry Pi 3B+, have a USB Sound Card, can change the volume levels using alsamixer or the GUI version, in the process of installing darkice.

However, since I currently don't have an approved feed, I was wondering how can I listen to the audio I am receiving in order to tweak my scanner/audio setup?
Note: I do not want/need to plug in headphones/speaker into the scanner output, I need the audio to go through the USB sound card plugged into the RP3B+.
1. How do I redirect mic input to audio output on the soundcard?
2. How do I setup a stream server on RP3B+ without sending it to RR, I want to use my laptop to connect to RP3B+'s stream server using for example VLC and listen to the stream.

Thanks
 

DC31

Member
Feed Provider
Joined
Feb 19, 2011
Messages
1,611
Location
Massachusetts
Install an icecast sound server directly on the pi. I believe that it is sudo apt install icecast2. Then stream using darkice to that server. I know, I make it sound simple. Once you get your head around it, it isn’t hard. Darkice takes the audio input and converts it to a digital stream. Icecast receives the stream and serves it up for others to connect to and listen. The document that I have used for general guidance is: Live mp3 streaming from audio-in with DarkIce and Icecast2 on Raspberry Pi.

I say “general” because you can skip the entire section on Compiling and Installing darkice. Sudo apt install darkice is all you need. The first line of code under Configuring Darkice won’t work either. Simply copy the darkice configuration section that appears after that and paste into a new file at /etc/darkice.cfg. Then follow the next two sections regarding installing icecast2 and running Darkice.

If you have already figured out Darkice, then really all you need to do is to install icecast2 and get your darkice.cfg correct.

Then from another computer on the same network as the pi, browse to piipaddress:8000 and find the m3u button.
 

kandrey89

Member
Feed Provider
Joined
Dec 11, 2009
Messages
320
Location
San Ramon, CA USA
Hi DC31,

Thank you, it worked.

I installed darkice, and icecast2.
Configured icecast2 using the installation prompt.
Configured darkice1.cfg from provided radioreference tar.gz
IceCast2 was already launched because it is a service.
DarkIce needed to be manually launched using sudo darkice -c /etc/darkice1.cfg
 
Status
Not open for further replies.
Top