LoginSignup
0
0

More than 1 year has passed since last update.

iPhoneを選局用リモコンにしてRaspberry Pi -> USB DACでradikoやネットラジオを流す手順の忘備録

Last updated at Posted at 2022-11-26
  1. /etc/modprobe.d/alsa-base.confをsnd_usb_audio優先に書き換え
  2. sudo apt install mpv
  3. sudo apt install streamlink (radikoを使う場合)
  4. ~/(チャンネル名)-streamlink.sh作成、chmod 755する
(チャンネル名)-streamlomk.sh
#!/bin/sh
~/.local/bin/streamkink -p mpv http://radiko.jp/#~/live/(radikoの放送局名)

5. iPhoneのショートカット作成
 1. 設定- ショートカット - 詳細 - スクリプトの実行を許可
 2. 「SSH経由でスクリプトを実行」
 3. 必要なチャンネルの数だけ繰り返す

radio.sh
killall mpv ##念のため
nohup ./(チャンネル名)-streamlink.sh >/dev/null
##もしくは
nohup mpv --really-quiet http://xxx.xxx.xxx.xxx
quit_radio.sh
killall mpv

6. できたショートカットをホーム画面に置く

以上です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0