AudioRelay
  • Home
  • FAQ
  • Instructions
    • Windows
      • Use your phone as a mic for Windows 10
      • Use your phone as a mic for Windows 7
      • Stream audio from your PC to your phone
    • macOS
      • Use your phone as a microphone for your Mac
      • Stream audio from your Mac to your phone
    • Linux
      • Use your phone as a mic for a Linux PC
      • Stream audio from your Linux PC to your phone
    • Stream audio from a phone to a PC or to another phone
  • Usages
    • Cast all the audio from your PC to Google Home
  • USB connectivity
  • Missing audio device
  • Links
    • Download AudioRelay
    • Forum
    • Feature requests
Powered by GitBook
On this page
  • 1. Create a virtual audio device
  • 2. Start AudioRelay on your phone
  • 3. Start AudioRelay on your PC
  • 4. Start your communications app (Discord, Skype...)

Was this helpful?

  1. Instructions
  2. Linux

Use your phone as a mic for a Linux PC

PreviousLinuxNextStream audio from your Linux PC to your phone

Last updated 3 years ago

Was this helpful?

1. Create a virtual audio device

Other apps can't directly use AudioRelay as a source. We'll have to create a virtual audio device.

AudioRelay will send sound to this virtual audio device and other apps will listen to it as if it was a real microphone.

Create a temporary virtual audio device

After a restart, the virtual device will disappear. You can follow these instructions to test AudioRelay.

  • Open a terminal window

  • Copy-paste this command

It creates a device where AudioRelay can stream audio into.

pactl load-module module-null-sink \
	sink_name=audiorelay-virtual-mic-sink \
	sink_properties=device.description=Virtual-Mic-Sink
  • Then copy-paste this other one

It creates a device usable by communications apps (e.g: skype). (It simply renames the Monitor of the previous device)

pactl load-module module-remap-source \
	master=audiorelay-virtual-mic-sink.monitor \
	source_name=audiorelay-virtual-mic-sink \
	source_properties=device.description=Virtual-Mic

What it should look like

Typing pulseaudio -k reloads PulseAudio and remove the temporary devices.

Create a permanent virtual audio device (recommended)

These are the same instructions as above but, the virtual audio device will persist between reboots.

  • Open the file /etc/pulse/default.pa

  • Add these lines at the end

# Creates a device where AudioRelay can stream audio into
load-module module-null-sink sink_name=audiorelay-virtual-mic-sink sink_properties=device.description=Virtual-Mic-Sink
# Creates a device usable by communications apps (e.g: skype)
load-module module-remap-source master=audiorelay-virtual-mic-sink.monitor source_name=audiorelay-virtual-mic-sink source_properties=device.description=Virtual-Mic
  • Open a terminal window

  • Type pulseaudio -k to make PulseAudio reload the file.

Result in Volume control

What the result should look like in Volume control / pavucontrol

(Installed via sudo apt install pavucontrol

2. Start AudioRelay on your phone

  • Go to the server tab

  • Click on the microphone source

3. Start AudioRelay on your PC

  • Go to the player tab

  • Select Virtual-Mic-Sink as the audio device

  • Click on your phone in the server list

4. Start your communications app (Discord, Skype...)

  • Find the microphone settings

  • Select Virtual-Mic as an input device

Send anonymous feedback about AudioRelay here.