I did audio board init > i2s0 & i2s1 config > i2s1 channel read > i2s0 channel write It's similar like echo idf example but it's not working. You can tryaudio_element_input(audio_element_handle_t el, char *buffe
app调用i2s_read读取数据,但是只有部分数据是正确的,绝大多少都是错误数据。 err = i2s_read(CONFIG_I2S_PORT, pbuf, in_len, &out_len, portMAX_DELAY); 测试了几种参数,无论是读取32/320/640字节,都是同样情况,只有头部部分数据正确。log如下 读取32字节 I (46547) AUDIO_RECORDER: 32: 1 80 22 11...
int readLen = fread(tmp, sizeof(char), RING_BUFFER_SIZE, fin); int ret = rb_write(ringbuf01, tmp, readLen, 0);; free(tmp); tmp = NULL; printf("num: %d, readLen: %d\n", num++, ret); audio_element_run(mp3_decoder); audio_element_run(fatfs_stream_writer); audio_element_r...
= 0;uint16_t bytes_read = 0;/*打开录音文件夹*/while (f_opendir(&recdir, "0:/RECORDER")...
= 0;uint16_t bytes_read = 0;/* 打开录音文件夹 */while (f_opendir(&recdir, "0:/RECORDER...
recorder_sr_cfg.afe_cfg.agc_mode = AFE_MN_PEAK_AGC_MODE_2;// recorder_sr_cfg.afe_cfg.afe_mode = SR_MODE_HIGH_PERF; audio_rec_cfg_t cfg = AUDIO_RECORDER_DEFAULT_CFG(); cfg.read = (recorder_data_read_t)&input_cb_for_afe; cfg.sr_handle = recorder_sr_create(&recorder_sr_cfg...
//Wait until there is enough data in the buffer. This only happens when the data feed //rate is too low, and shouldn't normally be needed! // printf("Buf uflow, need %d bytes.\n", sizeof(readBuf)-rem); bufUnderrunCt++; //We both silence the output as well as wait a while ...
We have connected clock and data pins of both the mic to ESP32 I2S Channel 0. Here we are facing certain issue and could not able to get the clear voice from the PDM mic. We are using ESP-IDF version 4.4.1 [stable release] and we are modifying sample code i2s_audio_recorder_sdcard...
DAE(digital Audio Extraction,数据音频抓取) DAN(Dance,跳舞类游戏) DAO(Disc At Once,整盘刻录) DAO-RAW(Disc At Once Read after Write,整盘刻录-写后读) DASP(Dynamic Adaptive Speculative Pre-Processor,动态适应预测预处理器) Data Forwarding(数据前送) ...
I (942) AUDIO_THREAD: The esp_periph task allocate stack on internal memory W (952) i2c_bus_v2: I2C master handle is NULL, will create new one I (962) gpio: GPIO[17]| InputEn: 1| OutputEn: 1| OpenDrain: 1| Pullup: 1| Pulldown: 0| Intr:0 ...