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

Ai answers itself in my android app #482

Open
Kioshilol opened this issue Nov 13, 2024 · 4 comments
Open

Ai answers itself in my android app #482

Kioshilol opened this issue Nov 13, 2024 · 4 comments

Comments

@Kioshilol
Copy link

Hello guys, I program in C# and use your example. Please tell me how you achieved that when AI speaks, its voice is not recorded.

@sleechie
Copy link

I have been having the exact same issue and I am hoping one of you lovely gents has solved it somehow

@kingstonfung
Copy link

👋 You will need to apply AEC onto the Audio input stream .... and I have only been able to achieve this when my recording input method is VOICE_COMMUNICATION.

@Kioshilol
Copy link
Author

👋 You will need to apply AEC onto the Audio input stream .... and I have only been able to achieve this when my recording input method is VOICE_COMMUNICATION.

Hi, big thx, but i already tried it without success :(

@kingstonfung
Copy link

kingstonfung commented Dec 7, 2024

I realized most non-Samsung devices are OK without additional audio treatments (eg: Google Pixels).

Samsung devices, from what I can tell, needed audioManager.setMode(AudioManager.MODE_IN_COMMUNICATION) in addition to AEC. But this could throw the phone into phone-call mode where the audio only comes out quietly from the top earpiece.

... once you have reached this point, then the last hurdle is to force the audio out from the built-in speakers.

Every device is different, so you'll have to mess around the combinations to find the best balance to move forward. That's what I have discovered so far.... good luck!

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