Search found 40 matches

by tempo.tian
Thu Oct 31, 2024 7:38 am
Forum: ESP-IDF 中文讨论版
Topic: idf 中AAC解码问题
Replies: 1
Views: 1104

Re: idf 中AAC解码问题

请注意编码器bool adts_used; 和解码器的 bool no_adts_header;配置参数。
当编码不使用adts_used的时候编码出来的数据没有ADTS Header的前七个字节,这样就要配置sample rate channel bits等信息连同no_adts_header = true 这样可以解码正常。 如果编码的时候adts_used设置上,decoder的时候就不需要特殊的配置用默认值就可以。
by tempo.tian
Mon Aug 14, 2023 6:15 am
Forum: ESP-ADF
Topic: Play multiple audio in a row
Replies: 2
Views: 33192

Re: Play multiple audio in a row

It is quite easy, if all files are of same type: audio type is same, audio sample rate and bits are same. You can check example: https://github.com/espressif/esp-adf/blob/master/examples/get-started/play_mp3_control/main/play_mp3_control_example.c, after file play to end, auto read next file. If fil...
by tempo.tian
Fri Aug 11, 2023 2:13 am
Forum: ESP-ADF 中文讨论版
Topic: ESP32 audio kit怎麼分辨是甚麼audio codec
Replies: 1
Views: 21874

Re: ESP32 audio kit怎麼分辨是甚麼audio codec

简单一点你可以扫描I2C总线,简单点就是从 0-7F的地址里面读取一个字节的东西看对端有没有回应
每个Codec对应的I2C都只有特定的地址
by tempo.tian
Fri Aug 11, 2023 2:09 am
Forum: ESP-ADF
Topic: ESP-ADF的方法似乎过旧了
Replies: 2
Views: 12565

Re: ESP-ADF的方法似乎过旧了

可以看下你的ADF的版本,最新的版本默认应该是可以编译过的在IDF5.1上面
你可以手动打开下面的选项
Component config --> FreeRTOS --> Kernel
configENABLE_BACKWARD_COMPATIABILITY
by tempo.tian
Fri Aug 11, 2023 2:01 am
Forum: ESP-ADF
Topic: ESP ADF and IDF in one Project
Replies: 2
Views: 10715

Re: ESP ADF and IDF in one Project

If you already have a used IDF version which is compatiable with current ADF(4.4-5.1).
You do not need to use the IDF project in ADF submodules, you can use the IDF you already has, it also works well.
by tempo.tian
Fri Jul 14, 2023 11:12 am
Forum: ESP-ADF
Topic: LyraTmini v1.2 help with simple passthru code
Replies: 4
Views: 8183

Re: LyraTmini v1.2 help with simple passthru code

to use 24bits you need set mclk_multiple to be 384 as notes of IDF
* @note Please set the mclk_multiple to I2S_MCLK_MULTIPLE_384 while using 24 bits data width
* Otherwise the sample rate might be imprecise since the bclk division is not a integer
by tempo.tian
Fri Jul 14, 2023 11:03 am
Forum: ESP-ADF
Topic: audio capture / transmission capabilities vs esp chip range
Replies: 1
Views: 6341

Re: audio capture / transmission capabilities vs esp chip range

Record use ADC is possible, but the quality is not guaranteed, you can take S2 for example, you need implement your own element to build up the whole pipeline You need get data in timer interrupt instead of use normal task https://www.toptal.com/embedded/esp32-audio-sampling https://docs.espressif.c...
by tempo.tian
Tue Jul 11, 2023 11:47 am
Forum: ESP-ADF 中文讨论版
Topic: 有關es8388的開發問題
Replies: 3
Views: 7907

Re: 有關es8388的開發問題

通常除了硬件连接以外,软件上也是要配置的
8388通过i2c进行寄存器设定
可以重点关注下 ES8388_MASTERMODE 看设定设否正确
https://gitee.com/EspressifSystems/esp- ... 388.c#L283
by tempo.tian
Tue Jul 11, 2023 11:37 am
Forum: General Discussion
Topic: Esp32 UDP voice receive
Replies: 4
Views: 2360

Re: Esp32 UDP voice receive

If you are using customized protocol. First you need decide which voice data format to trasmit, raw pcm data or encoded data aac etc. Then add a simple protocol header to avoid data parse wrong. If use encoded data, you need find decoder to decode it out then send the pcm data to codec to output. If...