Code Monkey home page Code Monkey logo

super-simple-raspberry-pi-audio-receiver-install's Introduction

Project is no longer being actively worked on, if someone else would like to pick this up, please do so.

Super Simple Raspberry Pi Audio Receiver Install.

*This does not work past Raspbian Stretch *Stretch Users Scroll to the bottom for Install Instructions (This is in the testing phase for the moment, please give feedback here

*Requires Raspbian Jessie LITE you can find the lastest Jessie Lite Image here* SSPARI

SSPARI v2.0

Now Live, includes the following new features:

  • Volumio Compatibility for Bluetooth Only - Installs A2DP Bluetooth Streaming to RPI
  • Backing up of original files
  • Uninstallation functionality
  • Restoring original files
  • Updated logging for easier bug testing
  • Cleaner install and better support
  • Ability to disable Wifi on Bluetooth Connection. Needs to be enabled, but solves choppy bluetooth playback if no external wifi card is available.

SNAPCAST Support! Please test it, i have had great success so far.

This type of Multiroom Audio would not be possible without the awesome Repo:

Snapcast and Badaix. Special Thanks to Totti2 for getting the config just right.

Additional Thanks to the awesome Repo:

Shairport-Sync and Mike Brady for making it so easy to use.

This project has combined several different projects into one, culminating into a plug-and-play Audio Receiver project. It incorporates A2DP Bluetooth, Snapcast, and AirPlay as possible ways to stream music to your Raspberry Pi. When paired with a sound card or HiFi audio DAC, you get high quality stereo audio.

Changes

  • Volumio users can now install the Bluetooth Only option, for the time being no Meta Data is forwarded to the Web Interface, this is a work in progress.
  • Addition and support for SnapCast as Server and Client or Both (Will need some manual configuration, creates a very simple multiroom setup)
  • Use of External Soundcards
  • soxr interpolation with shairport-sync, works well on Raspberry Pi Zero and Raspberry Pi 3, haven't tested on any other boards yet.
  • Works great with Sabrent USB Sound Card, HifiBerry Amp+ (I would not recommend this in a car) and HifiBerry DAC+ Pro, other Hifi DAC's should have no different functionality and should work just as well.
  • Creates Internet-less Wireless Network (Setup as an AP) to allow users to connect to the network and use AirPlay
  • Allows for Bluetooth A2DP, AirPlay, and local files played through Kodi.
  • Uses kodi as a GUI, and supports the use of sound cards.
  • Supports Infrared remotes, currently setup for the Matricom IR Remote.
  • Uses custom GPIO pins for Infrared to be used with HifiBerry boards, IQaudIO boards, and JustBoom boards.
  • Includes boot configurations in the /boot/config.txt.
  • Supports All Hifiberry DAC Boards, IQaudIO, JustBoom, and USB sound cards.

This is a further fixed version with the addition of being able to Deploy the project in car without a Wireless Network from my original Raspberry Pi Audio Receive Install repo which was forked from adenbeckitt, with a few changes made for shairport-sync dependencies and configuration files, which is a general fix from ehsmaes' version. This now works with Raspbian Jessie.

Known Issues

  • For the time being, I have not been able to get espeak to work with a soundcard. I will be working to get this working either with espeak or another program.
  • Unsure how Android will act on a wireless network without internet, iOS doesn't display the WiFi signals and will use Cellular Data for data requirements. However, iOS devices still can play local music to the Pi without any cellular data.
  • Raspberry Pi Zero W (new Model with Bluetooth and Wireless built-in) is likely supported and will work. Although, some resource intensive processes may suffer.
  • Doesn't work for Raspbian Stretch (NOOBS ships with Stretch, so you will need to use the latest Raspbian Jessie Lite Image)

Install

This will install on the latest Raspbian Jessie, with just the following commands.

pi@raspberrypi:~/ $ sudo apt-get update
pi@raspberrypi:~/ $ sudo apt-get install git
pi@raspberrypi:~/ $ git clone https://github.com/BaReinhard/Super-Simple-Raspberry-Pi-Audio-Receiver-Install.git
pi@raspberrypi:~/ $ cd Super-Simple-Raspberry-Pi-Audio-Receiver-Install
pi@raspberrypi:~/Super-Simple-Raspberry-Pi-Audio-Receiver-Install $ sudo ./install.sh
1. Install the Raspberry Pi Audio Receiver Car Installation
2. Install the Raspberry Pi Audio Receiver Home Installation
3. Install the Raspberry Pi Network Without Internet Installation (For teaching!)
4. Install the Bluetooth Only Installation
5. Install the Snapcast Installation (BETA), choose from Snapcast Server, Client, or Both (Requires Minor Configuration)
6. Install a Custom Raspberry Pi Audio Receiver
Which installation would you like to choose? (1/2/3/4/5/6) : Choose 1, 2, 3, 4, 5, or 6
Do you want all the Devices to use the same name? (y/n) : Choose y or n

# When Choosing 'y'
Device name: Choose Device Name
Device WiFi Password: Choose Password

# When Choosing 'n'
Bluetooth Device Name: Choose Device Name (Depending on Install)
AirPlay Device Name: Choose Device Name (Depending on Install)
Access Point Device Name: Choose Device Name (Depending on Install)
Device WiFi Password: Choose Password (Depending on Install)

0. No Sound Card
1. HifiBerry DAC Light
2. HifiBerry DAC Standard/Pro
3. HifiBerry Digi+
4. Hifiberry Amp+
5. Pi-IQaudIO DAC
6. Pi-IQaudIO DAC+, Pi-IQaudIO DACZero, Pi-IQaudIO DAC PRO
7. Pi-IQaudIO DigiAMP
8. Pi-IQaudIO Digi+
9. USB Sound Card
10. JustBoom DAC and AMP Cards
11. JustBoom Digi Cards

Which Sound Card are you using? (0/1/2/3/4/5/6/7/8/9/10/11) :  Sound Card Choice

Looking for Devs to Help Support/Futher This Project

Stretch-Install

git clone https://github.com/bareinhard/super-simple-raspberry-pi-audio-receiver-install
cd super-simple-raspberry-pi-audio-receiver-install
git checkout stretch-fix
sudo ./install.sh

Donation Now graciously accepting donations. Donations are not required, but donations do help to keep this project alive and up to date paypal

super-simple-raspberry-pi-audio-receiver-install's People

Contributors

axieum avatar bareinhard avatar gith-account avatar wzooff avatar xipmix avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

super-simple-raspberry-pi-audio-receiver-install's Issues

Bluetooth audio hanging/lagging

Hi!

I am able to connect, but the sound transmitted hangs every second or so. I was able to connect without having this issue once, I don't why that was.
I don't know which part of the setup causes this problem, so I hope you/someone will be able to help me with this issue.

Thanks!

controlling system volume

Hey BaReinhard,

I managed to install your SSRPAR and it works great streaming via BT from OSX and also via Airplay! And setup was really like the name was implying :)

My Plan was to use it as a solution for my multiroom audio with airplay, and in that one specific room as a receiver for my Amazon Echo as well. I managed to couple it via Alexa app and she succeeds with coupling process, but there is no audio output from my speakers at all.
Can I even use BT and airplay at the same time, maybe that was the reason?

And one more question...
... how can I control system volume via terminal?

Sorry, maybe a beginners question, but I don't have any clue.
Your project is great, thank you very much!!

best wishes - Nerdodactylus

Kernel panic

Hi there,

On a freshly installed and upgraded raspbian distribution, I ran the command you mentionned and bumbed twice in the same issue beyond my understanding.

During setup/install I chose the following options...
(4) Install a Custom Raspberry Pi Audio Receiver
Airplay = yes
Bluetooth = yes
Access Point = no
Kodi = yes
Infrared = yes
Use a sound card = yes
UPnP = yes
Which soundcard = 2

I also choose differents names.

and afer a while the Rpi reboots and return :
[1.052827] --- [end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block (179,2)

and that's it !

Any direction would be welcomed

Regards

ps: I'm on a Rpi3B

BT Audio not playing

Hi, I am using a Pi3 with Raspbian Jesse

I run the install script, and after a while the Pi restarts.
I see the normal desktop upon reboot, and the BT symbol is flashing.
I can pair with the Pi from my phone, but when I play audio from my phone it does not play through the Pi.
I have tried HDMI and audio jack.

Other people mentioned Kodi, but I can't see any Kodi installed.

Any help would be greatly appreciated!

Edit: I chose option 2 for Home Audio, and option 0 for no sound card

Play Audio with Chromium after Installation

Hey,
thanks for this great package. The installation was super easy, but after the installation there is no sound with Chromium on YouTube or Soundcloud.
I installed Volumio Bluetooth only (4) and the bluetooth connection works perfekt.
Is there an opportunity to have sound with bluetooth when a device is connected and when nothing is connected to have sound when i play something with chromium on the pi?

Auto Connect?

Anyone have a plan for how we could get this to auto-connect to the most recently used phone upon pi startup? Love this project, and would love to see it add this capability next so I don't have to autoconnect every time I power up... I'm not sure where to go from here though.

Thoughts?

No analog audio

Hi,
no matter how i install this, when i try to use analog audio output it wont work. it will only output audio through HDMI, when i try to use amixer cset numid3 1 so it will output to analog i get an error,
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Access denied

amixer: Control default open error: Connection refused

as i am trying to use this with speakers with analog input any help fixing this would be great.
Thanks.

volume-watcher.py not receiving correct values

I did a custom install (everything except kodi and the infrared remote). I can't control the volume with my smartphone. In /var/log/syslog i can see a message "Detected volume change" (being logged by volume-watcher.py) but no matter if i press volume up or down on my smartphone, the value is always: "127 (100.00)". So the service is started but just receives the same value over and over.
Is this feature working in general (and i did something completely wrong) or can someone confirm this?

Thanks in advance!

Rebooting while Installing!

Hey,
while running sudo ./install.sh my Pi3 reboots at the following part:

===> Executing: sudo cp etc/pulse/daemon.conf /etc/pulse
patching file /boot/config.txt
Hunk #1 FAILED at 54.
1 out of 1 hunk FAILED -- saving rejects to file /boot/config.txt.rej
patching file /etc/udev/rules.d/99-com.rules
Hunk #1 succeeded at 1 with fuzz 1.
===> Executing: sudo chmod 644 /etc/udev/rules.d/99-com.rules
patching file /etc/bluetooth/main.conf
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file /etc/bluetooth/main.conf.rej
patching file /etc/pulse/system.pa
Reversed (or previously applied) patch detected!  Assume -R? [n]
Apply anyway? [n]
Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file /etc/pulse/system.pa.rej
Done! You should reboot now
--------------------------------------------
===> Executing: ./sound_card_install.sh
--------------------------------------------
Ending at @ Mon  3 Apr 20:15:54 UTC 2017

Than it just closes the connection and is done. This shouldnt be it, should it?
I used the Custom Installation.

On RPi Zero W

After installation, Pi reboot and error showing

end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179, 2)

Installed using option 4, all yes except for audio card.
img_3651

Thanks.

Bluetooth audio ouput issues

Hey!
First off thanks for all your work on this great project, it's an awesome solution to all the disparate rpi audio tools out there. I recently set it up on a rpi3 running Raspian Stretch, with PulseAudio installed and no sound card using the Home installation. My main goal was to setup a bluetooth receiver for an amazon echo, and for the most part it seems to be working in so far as the devices pair and interact as expected. The (critical) problem is that I'm not getting audio output! Through raspi-config I set the audio jack as the forced output, which is what I hoped to use. I'm wondering what other trouble-shooting steps I should try. Would just getting a sound card be the simplest solution? I'm already using an Adafruit 20W amp, so I don't think I necessarily need a sound card but I would get one just to make it work. Or maybe trying an older version of Raspbian? Any suggestions would be greatly appreciated. Thanks!

RPi3 Install for Home Audio Failed

Hi BaReinhard,
I must say I began installing your solution with hope in my heart after wasting a lot of time on outdated solutions which did not work. However, sad to say, that after the lengthy install process, during which I noted a few errors saying device was full, the machine rebooted itself but would not allow me to log in - seems that the password got lost corrupted or forgotten. However I was able to bluetooth connect my iphone at which point the speakers spoke a single word - i'm pretty sure it was "device". But that was all - music still plays on the iphone even when it believes it is connected to the RPi.

So now I guess I'll have to reinstall raspbian and forget about this so simple but so difficult business.
Regardless of my experience, thanks for your efforts.

Possible Solution for say.sh

@BaReinhard

I know that this isn't necessarily an issue, so I apologize in advance.

I noticed that say.sh was all commented out, so I decided to figure out what's going on with it.

My RPi setup:

  • Raspberry Pi 3 Model B with built-in bluetooth and wi-fi
  • Raspbian Jessie with Desktop (PIXEL) (RD = 2017-06-21; KV = 4.9); ran sudo apt-get update and sudo apt-get dist-upgrade
  • Adafruit Speaker Bonnet for Raspberry Pi (hifiberry-dac) aka HifiBerry DAC Light in install.sh

Ran install.sh using the following options:

  • (1) Install the Raspberry Pi Audio Receiver Car Installation
  • (1) HifiBerry DAC Light
  • Used same name for both services

After reboot, the following manual changes were made:

  • /etc/asound.conf (change all card references from 1 to 0)
  • /etc/shairport-sync.conf (change output_device = "hw:1,0" to "hw:0,0")

List audio-devices using aplay -L, but the known working output devices are as follows:

  1. plughw
  2. sysdefault

Modify say.sh in /usr/local/bin (change sysdefault to plughw as needed):
#!/bin/bash
say() {
local IFS=+;
espeak $* --stdout | aplay -D 'sysdefault'
} 2>/dev/null
say $*

Results - Updated @ 0838 PDT:

  • Currently, whenever I connect or disconnect my iPhone 7 Plus (10.3.2, 14F89) to this Raspberry Pi 3, espeak says Device; it's a bit distorted and it does crackle/pop a little. However, that might be because the kernel doesn't support mono audio output via the I2C interface (unless this changed recently?); whereas espeak is outputting "16-bit Little Endian, Rate 22050 Hz, Mono".
  • say.sh will not speak when either audio-devices are in-use (i.e., when you're streaming A2DP via BT); the return message is something akin to "device busy".

No upnp and no sound with kodi

hi i have the problem, that after the installation is finished i didn't get a upnp device.
and with kodi i get upnp working but i can't get anny sound.
I have the newest raspbian and i am using an hifiberry amp.
thanks for your great work and help.

No BT or Airplay audio, everything else works

First- This is the smoothest install of Kodi ever. Super simple indeed, well done.

I suspect there is some sort of routing issue for device audio. I can pair BT and WiFi connect to AirPlay just fine, and when connected playback audio stops on my phone so it thinks it's going to a BT or AirPlay playback target. I've looked at all the settings I can find in Kodi for an input source from the Pi but don't see one. Should it be there?

Thanks again, great project.

iOS 10.2.1, Pi 3, default jack
Linux 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux

No Audio Output with HifiBerry DAC+ Pro

Hello,

I recently picked up a HifiBerry DAC+ Pro to pair with a Raspberry Pi B+ board to use as a bluetooth audio receiver in my vehicle. My needs are pretty simple, I would just like to use the bluetooth connection to bring audio into my vehicle AUX over the HifiBerry DAC+ Pro.

Unfortunately, after getting everything setup I'm not getting any audio out of my HifiBerry DAC. The bluetooth connection appears to be working correctly (my phone successfully pairs to it, and displays it as a media capable device, so I am assuming A2DP is working correctly). I simply get nothing for audio out of the two RCA connectors on my DAC.

After doing a bit of googling, I did see from another thread that you were able to get your setup working with the DAC+ Pro, and I was wondering if maybe I made a configuration error while setting it up.

On initial install, I selected the following options:

  1. Install the Raspberry Pi Audio Receiver Car Installation

  2. HifiBerry DAC Standard/Pro

Were these the correct options for my configuration, or would there be more appropriate options for what I'm trying to accomplish?

Thank you for all of the work you've done on this, any any assistance you can give me, I really appreciate it!

pulseaudio permissions break after install [fixed]

i installed this and i loved the idea but i want to use this, along with a mopidy music server it gives me the error: pulse pulsesink.c:615:gst_pulseringbuffer_open_device:<autoaudiosink0-actual-sink-pulse> error: Failed to connect: Access denied
i can give more logs if needed but does this program change perms for pulseaudio?

probably not needed for you but for the mopidy team which if you want me to i can send it to:

0:00:55.954471310  3115 0x74222700 WARN                   pulse pulsesink.c:615:gst_pulseringbuffer_open_device:<autoaudiosink0-actual-sink-pulse> error: Failed to connect: Access denied
0:00:56.080851689  3115 0x74222700 WARN                    alsa pulse.c:243:pulse_connect: alsalib error: PulseAudio: Unable to connect: Access denied

0:00:56.081369702  3115 0x74222700 WARN                    alsa gstalsasink.c:842:gst_alsasink_open:<autoaudiosink0-actual-sink-alsa> Error -111 (Connection refused) calling snd_pcm_open (&alsa->handle, alsa->device, SND_PCM_STREAM_PLAYBACK, SND_PCM_NONBLOCK)
0:00:56.081499388  3115 0x74222700 WARN                    alsa gstalsasink.c:859:gst_alsasink_open:<autoaudiosink0-actual-sink-alsa> error: Could not open audio device for playback.
0:00:56.081553658  3115 0x74222700 WARN                    alsa gstalsasink.c:859:gst_alsasink_open:<autoaudiosink0-actual-sink-alsa> error: Playback open error on device 'default': Connection refused
0:00:56.084174296  3115 0x74222700 WARN                 default oss4-property-probe.c:303:gst_oss4_property_probe_get_values:<autoaudiosink0-actual-sink-oss4> Can't open file descriptor to probe available devices: No such file or directory
0:00:56.084557936  3115 0x74222700 WARN                oss4sink oss4-sink.c:514:gst_oss4_sink_open:<autoaudiosink0-actual-sink-oss4> error: Could not open audio device for playback.
0:00:56.084730173  3115 0x74222700 WARN                oss4sink oss4-sink.c:514:gst_oss4_sink_open:<autoaudiosink0-actual-sink-oss4> error: system error: No such file or directory
0:00:56.117863071  3115 0x74222700 ERROR             jackclient gstjackaudioclient.c:35:jack_log_error: Cannot connect to server socket err = No such file or directory
0:00:56.118011090  3115 0x74222700 ERROR             jackclient gstjackaudioclient.c:35:jack_log_error: Cannot connect to server request channel
0:00:56.120146683  3115 0x74222700 ERROR             jackclient gstjackaudioclient.c:35:jack_log_error: jack server is not running or cannot be started
0:00:56.120601729  3115 0x74222700 WARN              jackclient gstjackaudioclient.c:374:gst_jack_audio_get_connection: could not create connection
0:00:56.120768289  3115 0x74222700 WARN                jacksink gstjackaudiosink.c:357:gst_jack_ring_buffer_open_device:<autoaudiosink0-actual-sink-jackaudio> error: Jack server not found
0:00:56.120823704  3115 0x74222700 WARN                jacksink gstjackaudiosink.c:357:gst_jack_ring_buffer_open_device:<autoaudiosink0-actual-sink-jackaudio> error: Cannot connect to the Jack server (status 17)
AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
0:00:56.248358285  3115 0x74222700 WARN                    alsa pulse.c:243:pulse_connect: alsalib error: PulseAudio: Unable to connect: Access denied

AL lib: (EE) alsa_open_playback: Could not open playback device 'default': Connection refused
0:00:56.248833330  3115 0x74222700 WARN                  openal gstopenalsink.c:635:gst_openal_sink_open:<autoaudiosink0-actual-sink-openal> error: Could not open device.
0:00:56.248892756  3115 0x74222700 WARN                  openal gstopenalsink.c:635:gst_openal_sink_open:<autoaudiosink0-actual-sink-openal> error: ALC error: Out of Memory
0:00:56.250916216  3115 0x74222700 WARN                     oss gstosssink.c:399:gst_oss_sink_open:<autoaudiosink0-actual-sink-oss> error: Could not open audio device for playback.
0:00:56.251004756  3115 0x74222700 WARN                     oss gstosssink.c:399:gst_oss_sink_open:<autoaudiosink0-actual-sink-oss> error: system error: No such file or directory
WARNING  2017-03-09 20:25:03,684 [3115:MainThread] mopidy.audio.gst
  GStreamer warning: gst-resource-error-quark: Failed to connect: Access denied (1)`
```

Update Fixes for current errors for Raspbian Stretch

Basically, this needs to get updated, to allow for proper functioning on the latest Raspbian (Stretch) without needing any tweaking after running the install script.

I will be creating a new branch so that the functionality will still work for those using Jessie.

Beeps on (re)boot, then nothing

I have no idea where to look for documentation here, so maybe there is supposed to be an implied answer to this, but I didn't see anything in your README and there's no Wiki, so here's what I'm seeing..

After install, it reboots, outputs a bunch of squares to my UART-based terminal (how I'm interfacing with my Pi right now), I hear a couple beeps from the speaker, it finally gets fully booted to the login prompt and I don't see any bluetooth broadcasting on my phone. I log in, still no bluetooth broadcast from the Pi.

I'm using a Raspberry Pi 3 running Rasbian Jesse Light. I have my speaker plugging directly into the on-board audio output jack.

During setup/install I chose the following options...

  • (4) Install a Custom Raspberry Pi Audio Receiver
  • Airplay = no
  • Bluetooth = yes
  • Access Point = no
  • Kodi = yes
  • Infrared = no
  • Use a sound card = yes
  • UPnP = no
  • Which soundcard = 0

What's going on here? Without digging through this whole repository, I don't know what tools and libraries are being used and what part in that chain might be broken. Thoughts?

Bluetooth Meta-data?

I am using this in my car with a 5 inch screen with video in. Is it possible for me to add the mp3 tag info on this using something like pygame? And album art?

Volume level is low with digital output; need to crank up receiver

I using a RPI with a Hifiberry Digi+. I've connected the RPI to my audio receiver using a SPDIF cable.
I also have an AppleTV, Tivo and Playstation connected with digital inputs to the same receiver. The AppleTV, Tivo and Playstation all produce about the same sound level when the receiver is set to 55 dB.

To get the RPI to the same sound level, I have to crank up the receiver to 70-75 dB. And that's when the streaming device is turned up all the way. In my case, this happens with my Amazon Tap connected via Bluetooth or my iPhone connected via Airplay.

Since the RPI is only outputting a digital stream, I don't think there is any "volume" control on it. That said, it appears from readlng online that software volume control is something that can be enabled. Is it enabled in this configuration? If so, how do you turn it up and down?

missing packages to get it to compile

I started with afresh raspbian image and had to manually install the following:
apt-get install intltool
apt-get install libtool
apt-get install libjson-c-dev
apt-get install libsndfile-dev
After that was added it worked.

pHAT DAC on pi zero w reverb on bt

Hello,
I am trying to set up a pHAT DAC on a pi zero w.
so far I tried HifiBerry DAC Standard/Pro in the setup with no output.
With HifiBerry DAC Light i get output but with a horrible reverb on it.
pulse audio running on about 80% cpu.
dmesg gives me this:

[ 6.158960] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)

[ 6.548668] snd-hifiberry-dac soc:sound: pcm5102a-hifi <-> 20203000.i2s mapping ok

[ 6.592596] cdc_ether 1-1:2.0 eth0: register 'cdc_ether' at usb-20980000.usb-1, CDC Ethernet Device, c0:56:27:90:7f:19

[ 6.595722] usbcore: registered new interface driver cdc_ether

[ 7.215424] usbcore: registered new interface driver brcmfmac

[ 7.399692] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: May 27 2016 00:13:38 version 7.45.41.26 (r640327) FWID 01-df77e4a7

[ 7.463521] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code

[ 8.429048] systemd-journald[110]: Received request to flush runtime journal from PID 1

[ 9.889526] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code

[ 9.889579] cfg80211: World regulatory domain updated:

[ 9.889591] cfg80211: DFS Master region: unset

[ 9.889602] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)

[ 9.889617] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)

[ 9.889631] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)

[ 9.889641] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)

[ 9.889653] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)

[ 9.889667] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)

[ 9.889691] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)

[ 9.889702] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)

[ 9.889713] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)

[ 11.035275] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists

[ 11.035304] brcmfmac: brcmf_add_if: ignore IF event

[ 11.043037] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

[ 11.043091] brcmfmac: power management disabled

[ 11.910362] uart-pl011 20201000.uart: no DMA platform data

[ 13.646433] Adding 102396k swap on /var/swap. Priority:-1 extents:7 across:163840k SSFS

[ 16.401197] Bluetooth: Core ver 2.21

[ 16.405192] NET: Registered protocol family 31

[ 16.405219] Bluetooth: HCI device and connection manager initialized

[ 16.405250] Bluetooth: HCI socket layer initialized

[ 16.405272] Bluetooth: L2CAP socket layer initialized

[ 16.405327] Bluetooth: SCO socket layer initialized

[ 16.416919] Bluetooth: HCI UART driver ver 2.3

[ 16.416950] Bluetooth: HCI UART protocol H4 registered

[ 16.416962] Bluetooth: HCI UART protocol Three-wire (H5) registered

[ 16.417141] Bluetooth: HCI UART protocol BCM registered

[ 16.738820] Bluetooth: BNEP (Ethernet Emulation) ver 1.3

[ 16.738850] Bluetooth: BNEP filters: protocol multicast

[ 16.738883] Bluetooth: BNEP socket layer initialized

[ 24.471660] brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists

[ 24.471689] brcmfmac: brcmf_add_if: ignore IF event

[ 24.636841] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

[ 25.601081] systemd[1]: isc-dhcp-server.service: control process exited, code=exited status=1

[ 25.620992] systemd[1]: Unit isc-dhcp-server.service entered failed state.

pimoroni says to set config.txt to dtoverlay=hifiberry-dac thats what I did.
https://learn.pimoroni.com/tutorial/phat/raspberry-pi-phat-dac-install

any idea?
thanks!

Change default sink in PulseAudio (to combine with snapcast)?

Hi,

I want to add bluetooth-sources to Snapcast's Multi-Room-Audio-Setup.
I'm stuck while defining a new pipe-sink in PulseAudio as suggested here.
I added the following to /etc/pulse/system.pa :

load-module module-pipe-sink file=/tmp/snap_blue sink_name=snapcast
set-default-sink snapcast

I now see the new sink, but it's not in use:

# pactl list sinks
Sink #0
	State: RUNNING
	Name: alsa_output.0.analog-stereo
	Description: bcm2835 ALSA Analog Stereo
(...)

Sink #1
	State: SUSPENDED
	Name: snapcast
	Description: Unix FIFO sink /tmp/snap_blue
(...)

I then tried reordering sink-inputs and sinks according to this thread

# pactl list sink-inputs
Sink Input #2
	Driver: module-loopback.c
        (...)
	Properties:
	(...)
		media.name = "Loopback from GT-I9100"
		media.icon_name = "audio-card-bluetooth"

But any attempt to change the configuration with pacmd fails:

# pacmd move-sink-input 2 1
No PulseAudio daemon running, or not running as session daemon.

Any ideas? It feels like I'm missing something general here.

off:
The headless pairing of unknown bluetooth devices works like a charm. I have been trying many other approaches with no succes. Thank you very much!

edit: cleanup

Sap driver initialization failed

After installation of bluetooth I get the following errors when running a sudo service bluetooth status.

pi@raspberrypi:~ $ sudo service bluetooth status
● bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled)
Active: active (running) since Thu 2017-07-06 21:32:22 UTC; 4min 16s ago
Docs: man:bluetoothd(8)
Main PID: 647 (bluetoothd)
Status: "Running"
CGroup: /system.slice/bluetooth.service
└─647 /usr/lib/bluetooth/bluetoothd

Jul 06 21:32:22 raspberrypi bluetoothd[647]: Bluetooth daemon 5.23
Jul 06 21:32:22 raspberrypi systemd[1]: Started Bluetooth service.
Jul 06 21:32:22 raspberrypi bluetoothd[647]: Starting SDP server
Jul 06 21:32:22 raspberrypi bluetoothd[647]: Bluetooth management interface 1.14 initialized
Jul 06 21:32:22 raspberrypi bluetoothd[647]: Sap driver initialization failed.
Jul 06 21:32:22 raspberrypi bluetoothd[647]: sap-server: Operation not permitted (1)
pi@raspberrypi:~ $

How to send and receive audito via bluetooth

Hi,
I don't have much knowledge in bluetooth. Would you mind if I ask some questions ?

1/ Does this project need the usb bluetooth 4.0 ? or run on bluetooth default inside of Raspberry Pi ?
2/ Does this project help connect Bluetooth Headset To Raspberry Pi 3 (A2DP & HSP) / pi zero W ?

After raspberry pi pair with the module, right click the speaker icon on pannel and select the bluetooth audio module.
Then I can send audio from raspberry pi 3 to the bluetooth audio modulle via bluetooth.

But the raspberry pi 3 can't receive the audio from the bluetooth audio modulle.
Currently I can send sound from raspberry pi to my bluetooth module but raspberry pi doesn't receive any sound from it.
I look on the pavucontrol input tab and I can't find source audio from my bluetooth audio module.

What I want is connect raspberry Pi with my bluetooth module. So that Raspberry pi can get input sound from my bluetooth module and send output sound to it.
Does anyone have know how to config raspberry pi to send audio and receive audio via bluetooth ?
If bluetooth inside raspberry pi can't do it, how to config it with usb bluetooth dongle ?

Would you mind helping me ?
Thanks

Install failed under Raspbian Stretch

Hi,
tried to run the install scrip last night on Raspbian Stretch, but it failed. It can't install the Bluetooth option.
What is the Sense of this part in bt_pa_config.sh ? Make pulseaudio failed. I have also installed libjson-c-dev manually.

# BT FIX
--
  | mkdir /etc/pulsebackup
  | cp /etc/pulse/* /etc/pulsebackup/
  | git clone --branch v6.0 https://github.com/pulseaudio/pulseaudio
  | apt-get install intltool
  | apt-get install libsndfile-dev
  | apt-get install libcap-dev
  | apt-get install libjson0-dev
  | cd pulseaudio
  | ./bootstrap.sh
  | make
  | make install
  | ldconfig
  | cp /etc/pulsebackup/* /etc/pulse

Furthermore, there seems to have been some major changes regarding Pulsaudio and Bluetooth. See more:

https://www.raspberrypi.org/blog/raspbian-stretch/

BLUETOOTH AUDIO

In Jessie, we used PulseAudio to provide support for audio over Bluetooth, but integrating this with the ALSA architecture used for other audio sources was clumsy. For Stretch, we are using the bluez-alsa package to make Bluetooth audio work with ALSA itself. PulseAudio is therefore no longer installed by default, and the volume plugin on the taskbar will no longer start and stop PulseAudio. From a user point of view, everything should still work exactly as before – the only change is that if you still wish to use PulseAudio for some other reason, you will need to install it yourself.

Uninstallation?

Hello All,

I seem to be having some issues with the uninstallation of the software.
I keep running into errors during boot.

Is there a script that I can run to uninstall all of the changes made during the installation process?
(I suppose the libraries do not need to be uninstalled, but I would like for the software to not run automatically on boot.)

Thanks.

Sporadic audio corruption with Raspi3

I've noticed sporadic (and unpredictable) corruption when I'm playing audio via Airplay on a Raspberry Pi 3. The audio cuts out momentarily, then sounds choppy and robotic for a few seconds before it returns to normal.

I've tried two different Pis, so I highly doubt that it's hardware related. Possibly related to raspberrypi/linux#1402, but I'm not sure. I'm making a note of it here while I continue to research what the problem might be.

Fragmented audio via Bluetooth

Hi,
I just installed the BT receiver on my RPi 2 with Raspbian and a Bluetooth USB dongle without any external USB sound card.
I am transmitting the audio content from my smartphone. At the beginning the audio is ok but, after 30 seconds, it starts to have empty gaps between the music. These gaps become always more frequent in time during the execution and after few minutes I am not able to listen anything.

Do you have any idea what should I do to fix it?

Thanks

firstrun.sh requires 'pi' user?

This seems kind of obnoxious. I never leave the default 'pi' user around. That is the first thing I remove on a fresh install so maybe this is why other things are breaking for me.

Is this a common thing throughout scripts other than just the firstrun.sh script I looked at?

Why not use the tilde (~) which will work for any user instead of a direct reference like /home/pi/?

This is not working on RPi2.

Hi,

unfortunately, after installation it's not working on RPi 2 with Edimax WiFi card, no soundcard and newest fresh raspbian. I cannot see any rpi-related-wifi-network on my iPhone. I chose option 1 during installation.

Snapcast support

I've been thinking of using this project with pulse audio and as a snapcast server did any of you tried this? How can I achieve it?

Renaming the device

Hi!
Is there any way to change the visible name for BT and Airplay (maybe individually?)
Changing it via hciconfig / config files seem to be reverted after reboot.

thanks for a great installer!

Jittery audio with wifi enabled on RPI3 Model B

I have a RPI3 Model B with a HifiBerry Digi+. I just ran through the installation and it worked great... but I have a problem with stuttering audio. I found this article: raspberrypi/linux#1402 ... which states that this is a known issue when wifi is enabled. Sure enough, when I disabled wifi, the stuttering stopped.

I didn't see anything in this project that referenced this problem. Were you able to resolve it? If not - I guess I'll buy a Wifi dongle to workaround the issue.

Thanks!

-- Nilay

Gmediarenderer don't start at boot on raspbian lite

Hi BaReinahrd

I've run your script on a fresh install of raspbian lite with minimal curation (expand file system, update/upgrade, set locales).

Everything went and work as expect-albe/ed, but Gmediarender do not start at boot :-(

if I type in a terminal gmediarender or gmediarender -f VivaUPnP, Gmediarender boots and is visible/usable, so the install itself went well.

After analysing your script, I typed sudo nano /usr/bin/gmediarenderer, the file opens whith thousands of crasy signs and lines... absolutly unreadable
But I tried the same for Shairport-sync sudo nano /usr/bin/shairport-sync and the file contains similar crazyness while Airplay is working perfectly and starting at boot... so I guess tha't not where the issue comes from.

I tried to gather complementary info from others sources, here, here and there but haven't solved my problem.

Any direction would be welcomed

Thank's in advance.

EDIT : I type gmediarenderer while it is gmediarender

PS : I've seen your reply in my other post, thank's, I'll get back to you soon as I'm doing some test with raspbian lite now, but as the issue I'm rising here is pretty precise I belive it might be better to split it :-)

A2DP Volumio

Hallo,

i have a Raspberry B+ with Bluetooth Dongle with no Soundcard ( AudioJack).
With Jessie Lite + Bluetooth Install (4) / works fine with no Problems.
With Volumio 2,141 + Bluetooth Install (4) / i can not find Bluetooth.
With my Raspberry 3 its the same Problem.

Can you help me ?

Sry for my bad English.

Benny

pulseaudio sink

could you please add the possibility to use the pi also as an pulseaudio-sink over network?

If you lost wireless and need to re-enable.

After installing the Super-Simple-Raspberry-Pi-Audio-Receiver-Install, my Raspberry Pi 3 lost wireless connectivity on reboot. I'm putting this up here so no one else takes too long fixing it. Bluetooth has a tendency to hiccup while wifi is enabled but there were still a few things things I needed wifi for before using the pi as a car audio receiver. So:

went to /etc/dhcpcd.conf and commented out denyinterfaces wlan0 with a hashtag (#)
then reset permissions to writeable and executable for user.

then went to /etc/network/interfaces
removed the hashtag (#) from #allow-hotplug wlan0 and #iface wlan inet static
changed iface wlan inet static to iface wlan inet dhcp
removed the hashtag (#) from #wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

When I'm ready to put it into my car stereo, I'll return the settings or manually disable wifi.

No Audio with Bluetooth A2DP on HifiBerry DAC+

Hello BaReinhard,

i have a Rassoberry Pi2, with HifiBerry DAC+ and Raspbian Jessie with desktop. I Install Raspberry Pi Audio Receiver Install Home Version.
When i play Musik via Bluetooth A2DP i have only sound on the Audio Jack. The HifiBerry is still not working with Bluetooth A2DP. But when i play Musik via Airplay i have sound with my Hifiberry.
I switch the default Sound in Audio Device Setting to snd_rpi_hifiberry_dacpuls (Alsa mixer) (Default) but without results.

I am confused. Is there a option to switch Audio output for Bluetooth A2DP to Hifiberry?

kodi issues along with no BT and Airplay

Audio plays fine(using allstream app) but no airplay or bt
kodi plays the audio perfectly but crashes when trying to launch it as a GUI, launched from the pi itself under sound and video with this error appearing the terminal:

pi@Cosmic_Hawk:~ $ sudo systemctl status kodi
● kodi.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)

pi@Cosmic_Hawk:~ $ *** Error in `/usr/lib/arm-linux-gnueabihf/kodi/kodi_v7.bin': free(): invalid pointer: 0x02b886b4 ***

I have a RPI Z W + PHATDAC - Not Working

Hey guys,

I have a Raspberry Pi Zero W with the PhatDAC from Pimoroni. I've been trying for a few weeks to get this working with no luck. I've tried a bunch of different combinations and re-imaged with Jessie Lite many times to start from Scratch.

Anyone want to collaborate on this with me? I'm more then happy to share results/success with this GIT to get it working as I imagine this would be a really great platform (RPIZw+PHATDAC) for this install.

As a background, I can get sound coming out of the speakers using the Pimoroni install method and OMXPLAYER, so the soldering worked fine.

I have a few issues:

  1. Can't hear anything out of the speakers when doing AIRPLAY.
  2. Can't get Bluetooth to stay connected, I'll connect to it, and then it will disconnect quickly.
  3. If I can get Bluetooth to stay connected, I can't get sound to come out.

And in terms of my skill set, pretty low, don't expect too too much from me! I've been on this planet for a number of years so my problem solving is pretty good, but I've spent 20 years in the IT industry and for most of it have been a "Windows guy"!

Thanks,

Chris

Bug in airplay_config.sh?

Hi!
In line 69 and 70 the path for the start/end scripts shairportstart.sh and shairportend.sh is "usr/local/bin" but in line 217..220 these scripts are copied to "/home/pi/shScripts/". Isn't this a mismatch?
Also, I copied them to "usr/local/bin" but it seems they're not executed.

Background: the volume level for Bluetooth is much higher than for AirPlay and I see that amixer gives me only 80% of the Master Level. So I wanted to increase this in shairportstart.sh to 100% by adding sudo amixer set Master 100%, but without success.

Could you please verify that?
Thanks a lot and regards

BT issues after one week of constant usage

I've installed three RPI3 units with Airplay and BT enabled. The Airplay is working flawlessly on all three units. The BT is having some trouble on all of them.

I'm connecting three different Amazon Echo Dot devices to each RPI3 via BT. Pairing the Dot to the RPI3 is easy and 100% reliable. Once paired, I can play music for some time without any skipping or problems. However, after some interval, music will stop coming from the speakers connected to the RPI3. Sometimes that is 10 minutes, other times 2 hours+. However, the Dot believes it is connected to the RPI3 and continues to play music. While I can't hear it, the Amazon Alexa iOS App shows the Dot is still playing tracks. Also, when I disconnect the Dot from BT, the music continues playing on the Dot's built-in speaker.

When the music stops playing on the speakers, if I disconnect the Dot from BT and then immediately reconnect it again, the music will resume on the speakers connected to the RPI3 until it stops again.

This is happening consistently on all three Dots. Each Dot is connected to it's own RPI3 via BT. Each RPI3 is connected to it's own receiver and speakers.

Does anyone else have this problem with an Amazon Dot or any other BT connected device? Does anyone have any suggestions on how I can debug this?

Bluetooth audio going through HDMI, HIFI Berry AMP+

Hello!

I'm experiencing an issue where airplay audio is streaming fine through the Hifi Berry AMP+, but any audio d]sent through Bluetooth is being routed through HDMI instead, if the system is started up headless, Bluetooth audio still does not work at all.

I'm using raspian Jessie lite, and of course, an Amp+

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.