所以我目前正在尝试将我的麦克风输入从我的树莓派(rasbian)流式传输到某种网络流,以便稍后在我的手机上接收它。为了做到这一点,我使用arecord -D plughw:1,0 -f dat -r 44100 |顶部管道将声流从我的 USB 麦克风传输到标准输出,据我所知,它工作正常,但我需要声音大一点,这样我才能理解站在远处的人。
所以我通过管道将它传递给 sox play 命令,如下所示:
arecord -D plughw:1,0 -f dat -r 44100| play -t raw -b 16 -e signed -c 2 -v 7 -r 44100 - test.wav
(test.wav 只是一些随机的 wav 文件 id 没有它就无法工作,并且 - 后面的 44100 和 test.wav 之间有一个空格,因为我认为 - 是一个单独的参数:
SPECIAL FILENAMES (infile, outfile):
- Pipe/redirect input/output (stdin/stdout); may need -t
-d, --default-device Use the default audio device (where available))
我发现通过使用 -v 参数可以增加音量。这会将录制的流播放到我连接到 raspberry pi 3 的扬声器。 …