All Projects → rom1v → Sndcpy

rom1v / Sndcpy

Licence: mit
Android audio forwarding (scrcpy, but for audio)

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Sndcpy

Briefing
Secure direct video group chat
Stars: ✭ 710 (-19.86%)
Mutual labels:  audio
Sincnet
SincNet is a neural architecture for efficiently processing raw audio samples.
Stars: ✭ 764 (-13.77%)
Mutual labels:  audio
Foo uie dsp switcher
A dropdown combobox for changing DSP presets quickly. For foobar2000 0.9+
Stars: ✭ 5 (-99.44%)
Mutual labels:  audio
Deej
Set app volumes with real sliders! deej is an Arduino & Go project to let you build your own hardware mixer for Windows and Linux
Stars: ✭ 730 (-17.61%)
Mutual labels:  audio
React Native Audio Streaming
iOS & Android react native module to play an audio stream, with background support and media controls
Stars: ✭ 753 (-15.01%)
Mutual labels:  audio
Oto
♪ A low-level library to play sound on multiple platforms ♪
Stars: ✭ 789 (-10.95%)
Mutual labels:  audio
Zrythm
a highly automated and intuitive digital audio workstation - official mirror
Stars: ✭ 703 (-20.65%)
Mutual labels:  audio
Regina
Fetch new releases from http://www.juno.co.uk/.
Stars: ✭ 6 (-99.32%)
Mutual labels:  audio
Awesome Linuxaudio
[mirror] A list of software and resources for professional audio/video/live events production on Linux.
Stars: ✭ 756 (-14.67%)
Mutual labels:  audio
Lasp
Low-latency Audio Signal Processing plugin for Unity
Stars: ✭ 816 (-7.9%)
Mutual labels:  audio
Homebridge Camera Ffmpeg
Homebridge Plugin Providing FFmpeg-based Camera Support
Stars: ✭ 726 (-18.06%)
Mutual labels:  audio
Rpi Jukebox Rfid
A Raspberry Pi jukebox, playing local music, podcasts and web radio, streams and spotify triggered by RFID cards and/or web app. All plug and play via USB. GPIO scripts available.
Stars: ✭ 737 (-16.82%)
Mutual labels:  audio
Daw
GridSound (0.33.0) wants to be an open source online digital audio workstation following the new WebAudio API 🎛🎹🎵✨
Stars: ✭ 804 (-9.26%)
Mutual labels:  audio
Kapre
kapre: Keras Audio Preprocessors
Stars: ✭ 719 (-18.85%)
Mutual labels:  audio
Sfml
Simple and Fast Multimedia Library
Stars: ✭ 7,316 (+725.73%)
Mutual labels:  audio
Musiccloudwebapp
🎧vuejs仿网易云音乐
Stars: ✭ 705 (-20.43%)
Mutual labels:  audio
Garbro
Visual Novels resource browser
Stars: ✭ 764 (-13.77%)
Mutual labels:  audio
Mlt
MLT Multimedia Framework
Stars: ✭ 836 (-5.64%)
Mutual labels:  audio
Blueprintsound
A plugin for Unreal Engine 4 that surfaces sound-related functionality to Blueprint.
Stars: ✭ 6 (-99.32%)
Mutual labels:  audio
Astrofox
Astrofox is a motion graphics program that lets you turn audio into amazing videos.
Stars: ✭ 802 (-9.48%)
Mutual labels:  audio

sndcpy

This tool forwards audio from an Android 10 device to the computer. It does not require any root access. It works on GNU/Linux, Windows and macOS.

The purpose is to enable audio forwarding while mirroring with scrcpy. However, it can be used independently.

Requirements

  • The Android device requires at least Android 10.
  • VLC must be installed on the computer.

Get the app

Download the latest release:

On Windows, for simplicity, take the second archive, which also contains adb.

Alternatively, you could build the app.

Run the app

Plug an Android 10 device with USB debugging enabled, and execute:

./sndcpy

If several devices are connected (listed by adb devices):

./sndcpy <serial>  # replace <serial> by the device serial

(omit ./ on Windows)

It will install the app on the device, and request permission to start audio capture:

screenshot

Once you clicked on START NOW, press Enter in the console to start playing on the computer. Press Ctrl+c in the terminal to stop (except on Windows, just disconnect the device or stop capture from the device notifications).

VLC may print this error message once:

main stream error: connection error: Connection refused

It is "expected", just ignore it.

The sound continues to be played on the device. The volume can be adjusted independently on the device and on the computer.

Uninstall

To uninstall the app from the device:

adb uninstall com.rom1v.sndcpy

Apps restrictions

sndcpy may only forward audio from apps which do not prevent audio capture. The rules are detailed in §capture policy:

  • By default, apps that target versions up to and including to Android 9.0 do not permit playback capture. To enable it, include android:allowAudioPlaybackCapture="true" in the app's manifest.xml file.
  • By default, apps that target Android 10 (API level 29) or higher allow their audio to be captured. To disable playback capture, include android:allowAudioPlaybackCapture="false" in the app's manifest.xml file.

So some apps might need to be updated to support audio capture.

Audio delay

This is just a proof-of-concept, so it's far from perfect.

For example, jitter may cause VLC to automatically increase its buffering, causing an unacceptable delay:

main input error: ES_OUT_SET_(GROUP_)PCR  is called too late (pts_delay increased to 377 ms)

In that case, just restart it.

Environment variables

The scripts sndcpy and sndcpy.bat use some default values which can be overridden by environment variables.

  • ADB: the full path to the adb executable
  • VLC: the full path to the vlc executable
  • SNDCPY_APK: the full path to sndcpy.apk
  • SNDCPY_PORT: the local port to forward to communicate with the device

Blog post

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].