Skip to content

Commit

Permalink
Update documentation for audio playback capture
Browse files Browse the repository at this point in the history
  • Loading branch information
rom1v committed Jul 19, 2024
1 parent 127a271 commit ed40669
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions doc/audio.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,30 @@ the computer:
scrcpy --audio-source=mic --no-video --no-playback --record=file.opus
```

### Duplication

An alternative device audio capture method is also available (only for Android
13 and above):

```
scrcpy --audio-source=playback
```

This audio source supports keeping the audio playing on the device while
mirroring, with `--audio-dup`:

```bash
scrcpy --audio-source=playback --audio-dup
# or simply:
scrcpy --audio-dup # --audio-source=playback is implied
```

However, it requires Android 13, and Android apps can opt-out (so they are not
captured).


See [#4380](https://github.com/Genymobile/scrcpy/issues/4380).


## Codec

Expand Down

0 comments on commit ed40669

Please sign in to comment.