Raspberry Pi + Rune Audio ::: Một trải nghiệm nghe nhạc mới

linh0983

Well-Known Member
Có thêm bản clone ở đây nữa anh à.
https://github.com/seniorgod
Họ cắt luôn rồi bác a . :p

mkdir /usr/ifi
cd /usr/ifi
git clone https://github.com/seniorgod/ifi-tidal-release

P/S : https://dietpi.com/#download
Mình thử cài TC vào DietPi đã cài thư viện đầy đủ ko lỗi gì a . Nhưng đến phần " git clone https://github.com/seniorgod/ifi-tidal-release " họ cắt mất tiêu . Mình có sourcer ngoài (dự phòng) làm sao copy source này vào bác a ???? . :rolleyes:

KJHbg.jpg
 
Chỉnh sửa lần cuối:

quatmo

Well-Known Member
Họ cắt luôn rồi bác a . :p

mkdir /usr/ifi
cd /usr/ifi
git clone https://github.com/seniorgod/ifi-tidal-release
Sáng nay em vẫn vào được git seniorgod, hiện tại vẫn vào được.
Mấy tháng trước lúc tìm ra Github Tidal Connect của ifi Audio, em có download thành file zip về để dành (lúc đó không biết setup). (bấm vào nút Code màu xanh, chọn download ZIP)

Lỡ như họ có xóa thì mình copy source vào Pi rồi cài (thay cho dùng câu lệnh git clone online).

Đây là 2 file source zip để cài Tidal Connect:
https://drive.google.com/drive/folders/1oRidzAR1rEfSLvr6tr7U0t-5HGVWJvNZ?usp=sharing
 
Chỉnh sửa lần cuối:

linh0983

Well-Known Member
Sáng nay em vẫn vào được git seniorgod, hiện tại vẫn vào được.
Mấy tháng trước lúc tìm ra Github Tidal Connect của ifi Audio, em có download thành file zip về để dành (lúc đó không biết setup). (bấm vào nút Code màu xanh, chọn download ZIP)

Lỡ như họ có xóa thì mình copy source vào Pi rồi cài (thay cho dùng câu lệnh git clone online).

Đây là 2 file source zip để cài Tidal Connect:
https://drive.google.com/drive/folders/1oRidzAR1rEfSLvr6tr7U0t-5HGVWJvNZ?usp=sharing
OK bác mình thử vấn đề là copy vào Pi nó có chặn giống hình trên ko a ? o_O
 

quatmo

Well-Known Member
Làm sao copy qua lệnh shh vậy bác Lâm , bác Tuấn ? :rolleyes:
Lệnh copy là: cp
Lệnh giải nén là: unzip

Em vừa test git clone trong Debian chạy OK, anh kiểm tra git clone trong Dietpi lại xem (có thể liên quan đến https).

Mã:
volumio@volumio:~$ git clone https://github.com/shawaj/ifi-tidal-release
Cloning into 'ifi-tidal-release'...
remote: Enumerating objects: 64, done.
remote: Counting objects: 100% (64/64), done.
remote: Compressing objects: 100% (53/53), done.
remote: Total 64 (delta 15), reused 38 (delta 1), pack-reused 0
Unpacking objects: 100% (64/64), done.
Checking connectivity... done.
 

TuanQuynhAudio

Well-Known Member
Dietpi nó chặn cái gì mà ko copy được vào thư mục Pi a ? o_O

HJUYlp.jpg
Anh copy vào thư mục "/tmp", sau đó ssh vào pi để copy từ thư mục "/tmp" sang thư mục "/home/pi" sau. Chú ý thêm "sudo" trước lệnh "cp".
Lênh git clone như sau:
Mã:
sudo git clone https://github.com/seniorgod/ifi-tidal-release.git
 

toi511

Well-Known Member
@linh0983 Em đã cài và test "lsaoe" mà không ra tiếng ở loa. Em nghi con pcm1792 trên 502DAC PRO không chạy được do driver.
Mã:
[root@archlinux64 ~]# lsaoe
TARGET [dc:a6:32:85:54:ab]

  AoE STATUS : CONNECTED
  AoE SESSION:   5800
  AoE VSOUND : OPEN(0) (timeout:0 eof:0 intr:0)
  PCM PARAM  : S16_LE 44100 2 chunk_bytes:588 period_us:3333
  AoE STATS  : aoe.dreq=64 aoe.recv=64  (count:28053 timeout:0 recover:0)

[root@archlinux64 ~]#
em bi giống bác nhưng em làm như sau hót o o
vào etc/aound.conf doi thanh 24
pcm.!default{
type plug
slave{
pcm "PIPE"
format S24
}
}
pcm.PIPE{
type hw
card 0
device 0
}
sau đó vào etc/mpd.conf doi thanh 24
audio_output {
type "alsa"
name "alsa"
device "hw:0,0"
allowed_formats "*:24:*"


ok reset cả bo6j lại hot bác
 

VugiaA9

Active Member
Anh xem mấy cái dac hat mà anh tính mua có support mấy board đó hay không ạ?

RPI2-MODB-V1.2 Đúng là pi2 v1.2 rồi anh ạ:

https://cpc.farnell.com/raspberry-pi/rpi2-modb-v1-2/sbc-raspberry-pi-2-model-b-v1/dp/SC14210

Amazon Mỹ còn. Chắc em bấm bụng lấy luôn :confused:

https://www.amazon.com/dp/B076T72D43

https://fado.vn/us/amazon/rpi2-modb-v12-sbc-raspberry-pi-2-model-b-v12-B076T72D43.html
Em có 3 con Pi2. Một con ship taobao, một con mua từ người chơi ở Mỹ và một con mua của 1 bác trên này, thấy có tem của shop VN. Để tối về em chụp thử, bác phán xem loại gì nhé, em nhìn cái cổng usb nhìn khác khác nhau. Mà nghe thì em tai trâu, chịu ko phân biệt được :D
 

linh0983

Well-Known Member
Hỏi các bác cho nó nhanh mò thì lâu hơn a . Đúng là dietpi có chặn ko copy được nhưng bây giờ copy ngon . Tidal Connect chạy trên DietPi ngon lành các bác a . ( rất nhẹ boot nhanh hơn moode audio ) . o_O

HJUYThu.jpg


https://dietpi.com/#download
https://github.com/seniorgod/ifi-tidal-release

P/S : Mình làm theo cái này các bác a . :D

Mã:
Let' start with installing tidal-connect-application on your SBC directly without docker:

These are the basic steps to create your tidal connect client:

    install required shared libraries
    download the repository
    adjust the systemd service description
    copy everything to the final directories
    start the tidal connect client

install required shared libraries

the binaries rely on the presence of some required libraries:

    libssl1.0.0
    libportaudio2
    libflac++6v5

libssl1.0.0

go to /etc/apt add following line in sources.list
deb http://security.debian.org/debian-security jessie/updates main

then update apt and install libssl1.0.0

apt-get update
apt-get install libssl1.0.0*

libportaudio

run:

  apt-get install libportaudio2*

libflac##6v5

run:

apt-get install libflac++6v5*

more shared libraries for debian buster

In order to install the required libraries not present in buster you have to add the repositories for stretch in sources.list go to /etc/apt add following line in sources.list:
deb https://deb.debian.org/debian/ stretch main contrib non-free

deb https://deb.debian.org/debian/ stretch-updates main contrib non-free

deb http://security.debian.org/debian-security stretch/updates main contrib non-free

Then install libavfromat57 and libcurl3. If you need libcurl4 you are in trouble because libcurl3 deinstall libcurl4.
libavformat57

apt-get install libavformat57

libcurl3

apt-get install libcurl3

download the repository

The install steps later on expects the downloaded files in a directory called /usr/ifi.

mkdir /usr/ifi
cd /usr/ifi
git clone https://github.com/seniorgod/ifi-tidal-release

adjust the systemd service description

the service description located in /usr/ifi/ifi-streamer-tidal-connect.service must be adapted to fit your needs. This means (more or less) to change the DAC device to that which is connected to your system

the systemd service description i use look like these:

[Unit]
Description=Tidal Connect Service*

[Service]
Restart=on-failure
ExecStart=/usr/ifi/ifi-tidal-release/bin/tidal_connect_application \
            --tc-certificate-path "/usr/ifi/ifi-tidal-release/id_certificate/IfiAudio_ZenStream.dat" \
            --netif-for-deviceid eth0 \
            -f "DietPi stream to project“ \
            --codec-mpegh true \
            --codec-mqa false \
            --model-name "DietPi Streamer" \
            --disable-app-security false \
            --disable-web-security false \
            --enable-mqa-passthrough false \
            --playback-device "Project RS USB Audio 2.0: - (hw:1,0)" \
            --log-level 3
User=root
Group=root
RestartSec=1
KillMode=control-group*

[Install]
WantedBy=multi-user.target*

What you have to do is to change the playback-device. The implementation relies on portaudio. It exist an application inside the repo, that list all audio devices connected to your computer. You have to copy the devices you want to use as playback-device to the config. As you can see. My DAC, means my playback-device is a PROJECT Audio RS DAC connected at (hw:1,0).

In order to get a list of your devices run a commnand included in the downloaded repo.

cd /usr/ifi

run:

ifi-tidal-release/pa_devs/run.sh

You get an output like this, from which you have to read the "name" of the DAC device you wish to use. While you are doing this the connected DAC must be plugged in and switched on.

ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.atm7059_link.pcm.front.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.atm7059_link.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.atm7059_link.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround21
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.atm7059_link.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.atm7059_link.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.atm7059_link.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.atm7059_link.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.atm7059_link.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.atm7059_link.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.atm7059_link.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'cards.atm7059_link.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5007:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock

The run command creates a file called devices inside the directory /usr/ifi/ifi-tidal-release/pa_devs. The content looks like this:

device#0=atm7059_link: - (hw:0,0)
device#1=atm7059_link: - (hw:0,1)
device#2=atm7059_link: - (hw:0,2)
device#3=Project RS USB Audio 2.0: - (hw:1,0)
device#4=sysdefault
device#5=dmix
device#6=default
Number of devices = 7

In the example above devices are listed from device#0 till device#6. Copy the whole name of the device you want to use and insert it as playback_device in the service description of systemd (see above).
copy everything to the final directories

In order to copy everything to the final destination run the deploy command which is included in the repo.

cd /usr/ifi
./ifi-tidal-release/file-deploy.sh

start the tidal connect client

systemctl daemon-reload
systemctl start ifi-streamer-tidal-connect.service

Check the status

systemctl status ifi-streamer-tidal-connect.service

if you want to start the tidal-connect-service automatically run

systemctl enable ifi-streamer-tidal-connect.service
 
Chỉnh sửa lần cuối:

tml3nr

Moderator
Sáng nay em vẫn vào được git seniorgod, hiện tại vẫn vào được.
Mấy tháng trước lúc tìm ra Github Tidal Connect của ifi Audio, em có download thành file zip về để dành (lúc đó không biết setup). (bấm vào nút Code màu xanh, chọn download ZIP)

Lỡ như họ có xóa thì mình copy source vào Pi rồi cài (thay cho dùng câu lệnh git clone online).

Đây là 2 file source zip để cài Tidal Connect:
https://drive.google.com/drive/folders/1oRidzAR1rEfSLvr6tr7U0t-5HGVWJvNZ?usp=sharing
Anh Quạt có lấy được cái git này không ạ? Nếu có cho em xin để xem thử cho biết.

https://github.com/ifi-audio/ifi-tidal-release
 

quatmo

Well-Known Member
Anh Quạt có lấy được cái git này không ạ? Nếu có cho em xin để xem thử cho biết.

https://github.com/ifi-audio/ifi-tidal-release
Đây anh, em get bản này của ông dev nào đó (hình như tên tiếng Hoa) vào khoảng tháng 11/2020 nhưng chắc là làm cho ifi Audio (không phải từ github ifi-audio), get xong em tìm hiểu thì thấy sản phẩm của họ support Tidal Connect. Vài ngày sau thì github đó bị xóa mất.

https://drive.google.com/drive/folders/1UX2323xCmHrdspvlLMmxll5EjYvwKK-C?usp=sharing
 

tml3nr

Moderator
Bên trên