Android As Linux Microphone Via Audio Source

A picture of a phone microphone to signify using an Android microphone on Linux for OBS Studio

Forwarding Android Device Microphone Via ADB

Learn how to forward your Android device microphone to PipeWire with PulseAudo support through ADB for use as a USB microphone.

You need to select “Enable USB Debugging” in the “Developer Options” of your Android device.

Next, you need to connect a USB cable between the Android device and your workstation. After allowing the access to the Android device, run the Audio Source script.

Requirements For Audio Source

Glossary:

USB

Universal Serial Bus is a standard for digital data transmission and power delivery between electronics.

ADB

Android Debug Bridge.

Android Devices

Recording Devices
Name Description Recording Power
Sony Xperia XA1 Ultra Updated to Android 8.0 and latest web browser. Takes photos and videos on front and back cameras. USB Type-C 2.0 10W charging
Samsung Galaxy S21 FE 5G Updated to Android 14.0 and default camera application. Takes photos and videos on front and back cameras. USB Type-C 2.0 <25W charging
Name Description Example

Download

The Audio Source APK for Android and script for the workstation can be downloaded from Download Audio Source and installed on the Android device and set up on the workstation respectively.

The ADB tool can be downloaded as part of the SDK Platform Tools for Download SDK Platform Tools and decompressed into a folder on your workstation.

ADB Wired USB Connection

# Command Line #
adb devices

ADB Audio Source Command Line Setup
Android Debug Bridge (ADB) Command Line Setup For Audio Source

Gnome Desktop Audio Settings
Gnome Desktop Audio Settings For Sound Input

OBS Audio Input
OBS Studio Audio Input Capture For Pipewire Default


Usage

During testing, the heating furnace was on at the same time as the workstation graphics card fan and the central processing unit cooling fan. The noise cancellation worked well. The Android device screen can be put in sleep mode without the application stopping.

Open Source

The Audio Source project is licensed under the MIT license. Redistribution is permitted in source or binary form with or without modifications, consult the license for more specific details.

Conclusion:

Audio Source forwards an Android microphone to a Linux PulseAudio daemon though ADB. You can then use the Android device as a USB microphone. Depending on the Android device, the quality should be between okay and good which is significantly better than many USB microphones.

If you enjoy this article, consider supporting me by purchasing one of my OjamboShop.com Online Programming Courses or publications at Edward Ojambo Programming Books or simply donate here Ojambo.com Donate

References:

About Edward

Edward is a software engineer, web developer, and author dedicated to helping people achieve their personal and professional goals through actionable advice and real-world tools.

As the author of impactful books including Learning JavaScript, Learning Python, Learning PHP and Mastering Blender Python API, Edward writes with a focus on personal growth, entrepreneurship, and practical success strategies. His work is designed to guide, motivate, and empower.

In addition to writing, Edward offers professional "full-stack development," "database design," "1-on-1 tutoring," "consulting sessions,", tailored to help you take the next step. Whether you are launching a business, developing a brand, or leveling up your mindset, Edward will be there to support you.

Edward also offers online courses designed to deepen your learning and accelerate your progress. Explore the programming on languages like JavaScript, Python and PHP to find the perfect fit for your journey.

📖 Explore His Books – Visit the Book Shop to grab your copies today.
💼 Need Support? – Learn more about Services and the ways to benefit from his expertise.
🎓 Ready to Learn? – Check out his Online Courses to turn your ideas into results.