我可以将USB音频从iPhone传输到Raspberry Pi吗?

时间:2017-03-22 18:25:51

标签: ios audio raspberry-pi hardware mfi

标题几乎说明了一切 - 我可以将USB音频从iPhone传输到Raspberry Pi吗?

到目前为止,我已经尝试过Volumio和Rune Audio,它似乎没有这种能力。

由于需要MFi或类似的东西,我不确定这是否可行。

有没有办法做到这一点?如果没有,为什么?如果有,我该怎么办?

编辑:我通过USB执行此操作非常重要,因为我试图找出是否可以传输高分辨率音频(> = 24/48)

1 个答案:

答案 0 :(得分:1)

If your phone browser supports WebRTC (Firefox does), then the easiest way is probably UV4L. UV4L provides several ways for streaming audio from a browser to the Raspberry (and viceversa, optionally) and requires no plug-in on the client side. Just install UV4L from the repository with the dummy driver, and run something like:

killall uv4l; uv4l --driver dummy --enable-server --server-option '--enable-webrtc-video=no' --server-option '--enable-webrtc-audio=no' --server-option '--webrtc-receive-video=no' --server-option '--webrtc-receive-audio=yes' --auto-video_nr

The above will run an uv4l instance with a streaming server listening to the default port 8080. Open the browser at http://yourrpi:8080/stream/webrtc and click on the "Call" green button at the bottom to select the audio device and send audio to the Raspberry Pi.