|
发表于 2021-10-24 02:11:26
|
显示全部楼层
本帖最后由 a461624201 于 2021-10-24 02:55 编辑
弄2个树莓派,然后用2只麦克风在左右一定距离,python 库录音很多的,然后把2个录音文件,用程序的办法,左右声道合成立体声不就OK了.
import wave
import numpy as np
import soundfile as sf
# read wave files
left_data, _ = sf.read("test_1.wav")
right_data, _ = sf.read("test_2.wav")
# A 2D array where the left and right tones are contained in their respective rows
stereo = np.vstack((left_data, right_data))
# Reshape 2D array so that the left and right tones are contained in their respective columns
stereo = stereo.transpose()
sf.write('stereoAudio.wav', stereo, samplerate=44100)
————————————————
版权声明:本文为CSDN博主「RookieFCB」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/u013058162/article/details/112403146
|
|