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

Hear audio and mic at the same time #4206

Closed
Gamusok opened this issue Jul 31, 2023 · 7 comments
Closed

Hear audio and mic at the same time #4206

Gamusok opened this issue Jul 31, 2023 · 7 comments

Comments

@Gamusok
Copy link

Gamusok commented Jul 31, 2023

Is it possible to route both the audio and the mic?
When I use --audio-source=mic the audio playback stops, and I would like to have both
Thanks!

@rom1v
Copy link
Collaborator

rom1v commented Jul 31, 2023

Nope, scrcpy only exposes 1 audio stream.

If you want both, as a workaround, you can run two instances of scrcpy:

# for device audio and video
scrcpy
# for microphone
scrcpy --no-video --audio-source=mic

(of course, that way, you can't record everything in a single file with --record=file.mkv)

@Gamusok
Copy link
Author

Gamusok commented Jul 31, 2023

Oh yeah!! Good workaround, thanks a lot for the quick reply! It works like charm...

@Gamusok
Copy link
Author

Gamusok commented Jul 31, 2023

Isn't it possible to do some work around like this to have audio in both, my computer and my android device?

@Gamusok
Copy link
Author

Gamusok commented Jul 31, 2023

Btw! This app really made the magic I needed for my project. It's really beyond amazing

Thanks a lot for the good work and for the support

@rom1v
Copy link
Collaborator

rom1v commented Jul 31, 2023

Isn't it possible to do some work around like this to have audio in both

Nope :/ #3875 (comment)

@rom1v rom1v closed this as completed Jul 31, 2023
@Gamusok
Copy link
Author

Gamusok commented Jul 31, 2023

This is very strange, because actually that's the default behavior in the Oculus casting.
When you open it, if you activate sound in the computer, then the sound is in both devices, and you can turn up/down the volume independently in both devices.

Therefore having sound in both devices doesn't seem contradictory. Or is the Oculus casting using a very different approach?

The problem is that in my project I am using the Passthrough vision, which only scrcpy allows...

@bombshit
Copy link

bombshit commented Sep 9, 2023

I want to ask that after the wired connection to the mobile phone, it can transmit sound normally, but as long as the mobile phone uses the microphone, the computer cannot hear the sound, is it the same problem as the landlord, does anyone know how to solve it

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