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

No audio output Android 15 (Google Pixel Tablet) to Windows 11 #5693

Open
ssmkx opened this issue Dec 21, 2024 · 10 comments
Open

No audio output Android 15 (Google Pixel Tablet) to Windows 11 #5693

ssmkx opened this issue Dec 21, 2024 · 10 comments

Comments

@ssmkx
Copy link

ssmkx commented Dec 21, 2024

Environment

  • **OS:Windows11 23H2 Build 22631.4602
  • **Scrcpy version:3.1
  • **Installation method:Windows release
  • **Device model:Google pixel tablet
  • **Android version: android version 15

Describe the bug

The screen is displayed on the Windows.
But, there is no sound.
Android can be operated normally from Windows. But no sound.
I have tried various changes to codecs and buffer values, but cannot figure out the cause.

And Tried on a Google Pixel 6a (android15) to isolate that it was a Windows 11 configuration issue.
As a result, the video was displayed correctly in Windows and the audio played correctly on Windows.

Attach the operation log.(example.txt)
This is the result of ”scrcpy --verbosity=verbose" execution on pixel tablet.

How can this be resolved?

example.txt

@rom1v
Copy link
Collaborator

rom1v commented Dec 21, 2024

If you record (scrcpy --record=file.mp4 and play the file with VLC, Firefox or Chrome, is there audio?

Does --audio-output-buffer=10 (or 15) change anything?

@ssmkx
Copy link
Author

ssmkx commented Dec 21, 2024

Tried recording, but no audio. (Played on VLC.)
and
Tried "--audio-output-buffer=10", Still no sound.

@rom1v
Copy link
Collaborator

rom1v commented Dec 21, 2024

Is audio played on the device? If so, the audio capture does not work on the device system.

Also try with --audio-dup.

@rom1v
Copy link
Collaborator

rom1v commented Dec 21, 2024

And Tried on a Google Pixel 6a (android15) to isolate that it was a Windows 11 configuration issue.
As a result, the video was displayed correctly in Windows and the audio played correctly on Windows.

So on a pixel 6a, audio works, so it is NOT "a Windows 11 configuration issue".

On your device, how is the device volume? (Alt+up Alt+down to adjust).

@ssmkx
Copy link
Author

ssmkx commented Dec 22, 2024

Tried "--audio-dup" , The pixel tablet outputs sound from the device speakers, but there is no sound on windows.

It is possible to control the volume with shortcut keys (Alt+up Alt+down ) .
When I tried “--audio-dup”, the pixel tablet volume can be adjusted using shortcut keys, and I can see the volume bar change on the screen.
But, there is no sound on Windows.

@snakagawa
Copy link

snakagawa commented Dec 22, 2024

I am experiencing the same problem.

  • Device: Google Pixel Tablet
  • Android version: 15
  • Android Security Update Version: 12/15/2024
  • Scrcpy version: v2.7

The sound was working fine until just before, but after a security update for Android 15 and rebooting, the sound stopped working.

I updated the version of Scrcpy to the latest 3.1 just to be sure, but still no sound.

Since the sound stopped working after the security update,
I am assuming that some change on the Android side is causing the sound to stop working.

I hope this information will help you to solve the problem.

@rom1v
Copy link
Collaborator

rom1v commented Dec 22, 2024

Does mic work?

scrcpy --audio-source=mic

@ssmkx
Copy link
Author

ssmkx commented Dec 22, 2024

"scrcpy --audio-source=mic" is work! Sound was output from windows.

Then a solution was discovered.
One way to solve this problem is to set "access to the microphone" to "Allow".
It can be set from Android Quick Settings.

Let me explain how it happened.
The premise is that the Pixel Tablet can be configured to "block” access to the microphone.
Before running scrcpy“--audio-source=mic”,
I set ”access to the microphone" to “allow”, the audio from the pixel tablet was output to windows.
In other words, when "access to the microphone" set “block” is selected, no sound on Windows.
It seems that this problem is on the Pixel Tablet side.

I can't guess the root cause, but it has been resolved for now.
Thank you for your support!

@rom1v
Copy link
Collaborator

rom1v commented Dec 22, 2024

Oh, I can reproduce on a Pixel 8, if I disable microphone access.

Btw, if I start with microphone access enabled, then disable it, the audio capture still works.
However, if I start with microphone access disabled, then enable it, it does not work. It must be enabled on start.

@rom1v
Copy link
Collaborator

rom1v commented Dec 22, 2024

I reported here: https://issuetracker.google.com/issues/385460374

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