TIDAL Installer for Raspberry Pi OS
Usage
curl -sSL https://raw.githubusercontent.com/shawaj/HiTide/main/install.sh | sudo bash
TIDAL Installer for Raspberry Pi OS
License: GNU General Public License v2.0
Since Picoreplayer was based on Tiny core linux, it seem cannot carry out your install script.
Would you help to release a install version of Picoreplayer?
Thank you very much!
I'm attempting to run this on a rpi4 and I'm getting this error whatever I play in Tidal
<Feb 28 12:51:02 moode671 tidal_connect_application[7778]: Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736
Feb 28 12:51:02 moode671 tidal_connect_application[7778]: Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->p
Feb 28 12:51:02 moode671 tidal_connect_application[7778]: Expression 'PaAlsaStreamComponent_Initialize( &self->playback, alsaApi, out
Feb 28 12:51:02 moode671 tidal_connect_application[7778]: Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters,
Feb 28 12:51:02 moode671 tidal_connect_application[7778]: Could not start stream-9988: Invalid stream pointer
Feb 28 12:52:23 moode671 tidal_connect_application[7778]: Expression 'ret' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 1736
Feb 28 12:52:23 moode671 tidal_connect_application[7778]: Expression 'AlsaOpen( &alsaApi->baseHostApiRep, params, streamDir, &self->p
Feb 28 12:52:23 moode671 tidal_connect_application[7778]: Expression 'PaAlsaStreamComponent_Initialize( &self->playback, alsaApi, out
Feb 28 12:52:23 moode671 tidal_connect_application[7778]: Expression 'PaAlsaStream_Initialize( stream, alsaHostApi, inputParameters,
Feb 28 12:52:23 moode671 tidal_connect_application[7778]: Could not start stream-9988: Invalid stream pointer>
https://github.com/shawaj/HiTide/blob/5767ff8581b30b767aa37328aba8c8450b1324d8/install.sh#L4C1-L4C1
Repository was move to legacy, so it should be something like this:
sudo echo "deb http://legacy.raspbian.org/raspbian stretch main" >> /etc/apt/sources.list
wget http://legacy.raspbian.org/raspbian.public.key -O - | sudo apt-key add -
I am trying to run HiTide with a Inno-maker HiFi DAC hat and after some libraries updates everything seems to be working, but when the client tryes to connect to TiDALconnect service the websocket error occurs.
Any clues?
I love the job you do with this great piece of software.
STARTED TidalConnect services.
[2022-01-24 18:55:14.018] [tisoc] [error] [WebsocketServerTls.cpp:125] [WebsocketServerTls decrypt]SMIME_read_CMS failed.
[2022-01-24 18:55:14.018] [tisoc] [error] [WebsocketServerTls.cpp:89] [WebsocketServerTls onTlsInit Error] use_certificate_chain: PEM lib
[2022-01-24 18:55:14] [error] handle_transport_init received error: TLS handshake failed
Thanks for the guideline and those works. it works perfect !
Just want to mention, the ipv6 must be enabled - it was disabled on my system and i got error
[2021-01-31 13:42:59] [info] asio listen error: asio.system:97 (Address family not supported by protocol)
[2021-01-31 13:42:59.471] [tisoc] [error] [WebsocketServer.hpp:67] [WebsocketServer Start Error] Address family not supported by protocol
enabling ipv6 will fix it.
As per this forum thread, I forgot to enable the service so it stops on reboot...
https://www.hifiwigwam.com/forum/topic/148974-tidal-connect-on-raspberry-pi/
Hi, thanks for the great work!
May I ask how to modify the installation script to make it also works on Asus Tinkerboard?
Hi. Every time i install the script i get this outcome. And Tidal connect is not seen on PC or on my Android phone.
But playing from moode works flawlessly.
pi@moode:~ $ sudo systemctl status ifi-streamer-tidal-connect.service
● ifi-streamer-tidal-connect.service - RasPi Streamer Tidal Connect Service
Loaded: loaded (/lib/systemd/system/ifi-streamer-tidal-connect.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2021-09-05 15:31:08 CEST; 2h 54min ago
Main PID: 334 (tidal_connect_a)
Tasks: 14 (limit: 2063)
CGroup: /system.slice/ifi-streamer-tidal-connect.service
└─334 /usr/ifi/ifi-tidal-release/bin/tidal_connect_application --tc-certificate-path /usr/ifi/ifi-tidal-release/id_certificate/IfiAudio_ZenStream.dat -f HiTide RasPi Streamer --codec-mp
Sep 05 15:31:13 moode tidal_connect_application[334]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
Sep 05 15:31:13 moode tidal_connect_application[334]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
Sep 05 15:31:13 moode tidal_connect_application[334]: ALSA lib conf.c:4568:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Sep 05 15:31:13 moode tidal_connect_application[334]: ALSA lib conf.c:5036:(snd_config_expand) Args evaluate error: No such file or directory
Sep 05 15:31:13 moode tidal_connect_application[334]: ALSA lib pcm.c:2565:(snd_pcm_open_noupdate) Unknown PCM bluealsa
Sep 05 15:31:13 moode tidal_connect_application[334]: ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
Sep 05 15:31:13 moode tidal_connect_application[334]: ALSA lib pcm_hw.c:1822:(_snd_pcm_hw_open) Invalid value for card
Sep 05 15:31:13 moode tidal_connect_application[334]: ALSA lib ../../../src/asound/bluealsa-pcm.c:865:(_snd_pcm_bluealsa_open) Invalid BT device address: XX:XX:XX:XX:XX:XX
Sep 05 15:31:13 moode tidal_connect_application[334]: ALSA lib ../../../src/asound/bluealsa-pcm.c:865:(_snd_pcm_bluealsa_open) Invalid BT device address: XX:XX:XX:XX:XX:XX
Sep 05 15:31:13 moode tidal_connect_application[334]: STARTED TidalConnect services.
Can You help please? I dont know how to fix this
Foolishly upgraded to pi buster to make Spotify connect to work, now getting ALSA errors in HITide ..
Nov 20 00:43:09 tidalconnect systemd[1]: Started RasPi Streamer Tidal Connect Service.
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: STARTING TidalConnect services, version: 1.1.3
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Expression 'GetExactSampleRate( hwParams, &defaultSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Expression 'GetExactSampleRate( hwParams, &defaultSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Expression 'GetExactSampleRate( hwParams, &defaultSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Expression 'GetExactSampleRate( hwParams, &defaultSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Expression 'GetExactSampleRate( hwParams, &defaultSr )' failed in 'src/hostapi/alsa/pa_linux_alsa.c', line: 895
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM hdmi
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.USB-Audio.pcm.hdmi.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM hdmi
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Cannot connect to server socket err = No such file or directory
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Cannot connect to server request channel
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: jack server is not running or cannot be started
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Cannot connect to server socket err = No such file or directory
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Cannot connect to server request channel
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: jack server is not running or cannot be started
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm_oss.c:377:(_snd_pcm_oss_open) Unknown field port
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pulse.c:242:(pulse_connect) PulseAudio: Unable to connect: Connection refused
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm_a52.c:823:(_snd_pcm_a52_open) a52 is only for playback
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm_usb_stream.c:486:(_snd_pcm_usb_stream_open) Invalid type for card
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: ALSA lib pcm_dsnoop.c:638:(snd_pcm_dsnoop_open) unable to open slave
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Cannot connect to server socket err = No such file or directory
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Cannot connect to server request channel
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: jack server is not running or cannot be started
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Could not find device: 'CA DacMagic 200M 2.0, USB Audio (hw:CARD=C20,DEV=0)'. Fallback to default device
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: Valid devices are: 'sysdefault' 'lavrate' 'samplerate' 'speexrate' 'a52' 'upmix' 'vdownmix' 'default' 'dmix'
Nov 20 00:43:09 tidalconnect tidal_connect_application[1017]: STARTED TidalConnect services.
It does not see the USB card.
my aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: C20 [CA DacMagic 200M 2.0], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: vc4hdmi0 [vc4-hdmi-0], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: vc4hdmi1 [vc4-hdmi-1], device 0: MAI PCM i2s-hifi-0 [MAI PCM i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
Is it possible compile binaries for ARMv6?
If you're interested: posted a solution on the raspberrypi.org forum:
https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=297771&p=1834499#p1834499
Hello, I tried it and my first question is: Why are you adding stretch repo to sources.list? Currently I'm using latest buster., second question: Did you tried it on buster? When i installed it on my Rasp 4 where i have already shairport-sync (of course I disabled it) and running UniFi Controller software it completely cut off controller, i wasn't able to connect, after removing it works fine again (i thought it was using same port but didn't).
Can you help me solve it?
Thank you in advance.
Hi, thanks for this great code!
May I ask if the command:
curl -sSL https://raw.githubusercontent.com/shawaj/HiTide/main/install.sh | sudo bash
also works on ubuntu?
Thank you, this is fantastic, how can I pay you?
Hello,
Do you have a solution to control volume on raspberry ? Because put volume up or down on tidal doesn't do anything ....
I have to SSH and do alsamixer to control it
You did a good job Devs !! I love this !
Fix volume control
Hi, I make the installation in the correct way, then when I check the status he goes down, the sometimes turn on again for like 10ms and the goes down again, any suggest?
Thanks
-Matteo
is it possible to have it change from usb dac to the pi's built in 3.5mm jack automatically at the moment i have to run systemctl restart in order for it to switch when i unplug my dac
Running this command I'm unable to see my USB Output connected to my DAC.
`device#0=sysdefault
device#1=btaplay_dmix
device#2=plug_btaplay_dmix
device#3=alsaequal
device#4=plug_alsaequal
device#5=camilladsp
device#6=plug_bs2b
device#7=plug_eqfa12p
device#8=default
device#9=dmix
Number of devices = 10
These are the only devices that are showing up.
Doesn't work on Moode 8 with "cannot start service" message...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.