Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples\advanced_examples\algorithm 这个例程中,请问下如何获取到 aec和ns后的音频数据呢 (AUD-5526) #1229

Closed
Trasills opened this issue Jul 10, 2024 · 3 comments

Comments

@Trasills
Copy link

examples\advanced_examples\algorithm\main\algorithm_examples.c
1 这个例程是在播放音乐的同时将麦克风收录的声音先进行回声消除,然后存储到 microSD 卡中,我这边不需要编码成wav写入SD卡中,我尝试在代码中找在哪里将音频编码写入sd卡,但是没有找到。

2 i2s_read 函数读出来的数据已经是aec后的数据吗
image

@github-actions github-actions bot changed the title examples\advanced_examples\algorithm 这个例程中,请问下如何获取到 aec和ns后的音频数据呢 examples\advanced_examples\algorithm 这个例程中,请问下如何获取到 aec和ns后的音频数据呢 (AUD-5526) Jul 10, 2024
@hbler99
Copy link

hbler99 commented Jul 11, 2024

可以用 audio_element_input(audio_element_handle_t el, char *buffer, int wanted_size) 提取音频数据,可以在下面链接看到函数构造https://github.com/espressif/esp-adf/blob/bed20d72b9bbcd48183ef3dddcccb0af3b264eb1/components/audio_pipeline/audio_element.c#L373。
ESP_LOG_BUFFER_HEX 函数可以用来显示内容`

@Trasills
Copy link
Author

可以用 提取音频数据,可以在下面链接看到函数构造 https://github.com/espressif/esp-adf/blob/bed20d72b9bbcd48183ef3dddcccb0af3b264eb1/components/audio_pipeline/audio_element.c#L373。 函数可以用来显示内容'audio_element_input(audio_element_handle_t el, char *buffer, int wanted_size)``ESP_LOG_BUFFER_HEX

非常感谢你的支持,我这边验证一下,如果有问题,再向你请教。

@jason-mao
Copy link
Collaborator

关闭这个任务,您如有需要可以reopen 或新建issue。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants