怎么通过i2s_read_bytes()函数读取mic数据啊?我想读取两路mic数据,有实验过的吗?求指导
离线
我把数据保存到SD卡,用单通道和立体声打开 播放时杂音,感觉没有录到mic数据
离线
在线
@晕哥,我就是用cooledit 和 audacity打开的,采集的数据都是杂音。
I2S配置如下:
i2s_config_t i2s_config = {
.mode = I2S_MODE_MASTER | I2S_MODE_RX | I2S_MODE_TX,
.sample_rate = 48000,
.bits_per_sample = SUPPOERTED_BITS,
.channel_format = I2S_CHANNEL_FMT_RIGHT_LEFT,
.communication_format = I2S_COMM_FORMAT_I2S,
//when dma_buf_count = 3 and dma_buf_len = 300, then 3 * 4 * 300 * 2 Bytes internal RAM will be used. The multiplier 2 is for Rx buffer and Tx buffer together.
.dma_buf_count = 3, /*!< amount of the dam buffer sectors*/
.dma_buf_len = 300, /*!< dam buffer size of each sector (word, i.e. 4 Bytes) */
.intr_alloc_flags = I2S_INTER_FLAG,
.use_apll = 1,
};
离线
我这没有仪器测试:lol,有什么例子吗?可以参考一下,
离线