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

Use Speaker and Mic at the same time #131

Open
yujonglee opened this issue Nov 11, 2024 · 3 comments
Open

Use Speaker and Mic at the same time #131

yujonglee opened this issue Nov 11, 2024 · 3 comments

Comments

@yujonglee
Copy link

yujonglee commented Nov 11, 2024

/// Since the microphone and speaker cannot be used at the same time, turn off the speaker here.
M5.Speaker.end();
M5.Mic.begin();

Not super familiar with this space, but I am curious what's blocking us from using them together. ESP32S3 has 2 I2S controller, and there's some comments saying it worked.

Any comments on this would be super helpful.

@lovyan03
Copy link
Collaborator

Hello, @yujonglee
This is because there were no cases where speakers and microphones were used simultaneously when the development of M5Unified started.

We are considering this as a future issue, but if you want to use speakers and microphones simultaneously right now, you will need to implement it yourself without using M5Unified.

@yujonglee
Copy link
Author

@lovyan03 Thank you for the comment!

Based on the schematic, it seems like single I2S channel is shared.
Could you kindly confirm that the implementation would be using single I2S as full-duplex mode?

@lovyan03
Copy link
Collaborator

lovyan03 commented Dec 8, 2024

Thank you for the information.

I understand everything, but the current implementation does not support full-duplex mode, so if you need the functionality immediately, please use the ESP-IDF I2S driver yourself.

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