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

Codec Development for ES8311 (LyraT-Mini) #79

Open
Timvrakas opened this issue Nov 27, 2021 · 3 comments
Open

Codec Development for ES8311 (LyraT-Mini) #79

Timvrakas opened this issue Nov 27, 2021 · 3 comments

Comments

@Timvrakas
Copy link

I have a LyraT-Mini V1.2, for which I can develop working examples from https://github.com/espressif/esp-adf
I'd like to get it cspot working, but I haven't worked with audio codecs or I2S before, so I'm not sure where to start.

The board/pin definitions are here
The chip-level driver is here

I'm not sure how to integrate this with cspot. If these libraries are functional, should I try using them directly, and use the existing BufferedAudioSink -> i2s_write() that exists?

I changed the AC101 pins and i2c address, and the board puts out a soft clicking noise, but no meaningful sound.

@Timvrakas
Copy link
Author

See #80

@feelfreelinux
Copy link
Owner

Hi! Thanks a lot for developing this further! You should implement the driver by adding the https://github.com/espressif/esp-adf/blob/master/components/audio_hal/driver/es8311/es8311.c driver into cspot / targets / esp32 and call proper initialization and volume change methods from a new audio sink. See AC101AudioSink for reference. About the clicking sound after each chunks - I'm currently working on it, please disable MBEDTLS hardware acceleration to fix it for yourself too :)

Feel free to reach out to me on telegram / discord / matrix (ESP32_Audio channel). I'd love to help out!

@feelfreelinux
Copy link
Owner

Received a ES8311 board, will write a driver soon

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

2 participants