Telemic /
How Telemic works
A technical reference for what Telemic does today. Every section links to the source file it describes, so you can check it.
Overview
Telemic is one macOS menu bar app with two roles. The sender captures a microphone, encodes it and sends it over the network. The receiver decodes it and hands it to a virtual microphone driver, which apps on that Mac see as an input device called Telemic.
Sender Mac Receiver Mac
microphone apps (Zoom, dictation, ...)
→ 48 kHz mono ↑ microphone "Telemic"
→ Opus, 20 ms frames Telemic driver (Core Audio HAL plug-in)
→ ChaCha20-Poly1305 UDP ↑ PCM over 127.0.0.1
→ ─────────────────────────────────→ Telemic app: decrypt, reorder, decodeAudio capture and encoding
- Capture uses
AVAudioEngineon the input device you choose, converted to 48 kHz, mono, 32-bit float. - Audio is encoded with Opus through Apple's
AVAudioConverter, in 20 ms frames at 32 kbit/s. - When the mic is switched off in the sender, capture stops completely.
Source: Sender.swift, Opus.swift
Network transport
- Everything travels over UDP (IPv4) to the receiver's port, 47810 by default. If that port is taken, the receiver uses the first free one of 47812–47819.
- Each audio packet carries the newest frame plus the two before it, so the receiver can rebuild short losses exactly.
- The receiver reorders frames by sequence number. A frame still missing after three newer packets is filled in by Opus packet loss concealment.
- The sender measures round-trip time with a ping every second.
Source: Protocol.swift, Playout.swift, Receiver.swift
Buffering and clock drift
- The receiver starts playing once 40 ms of audio is buffered.
- Two sound cards never run at exactly the same rate. When the buffer drifts below 30 ms or above 100 ms, playback runs 0.1% slower or faster until it is back at 50 ms.
- If more than 200 ms piles up, the receiver skips ahead to the newest audio.
Source: Playout.swift
Encryption and authentication
- Each Mac has a long-lived X25519 key, stored in the Keychain.
- For each session the sender picks a random salt. The audio key is HKDF-SHA256 over the X25519 shared secret and that salt.
- Audio is encrypted with ChaCha20-Poly1305, with the packet sequence number as the nonce. This is the same on a local network and on Tailscale.
- A receiver accepts audio only from public keys its user has allowed. A new sender shows up with its name and key fingerprint, and waits for Allow or Deny.
- The sender remembers the receiver's key on first contact and warns if it later changes. Both sides show fingerprints you can compare.
- A receiver can be set to accept only devices on the tailnet.
Source: Protocol.swift, Receiver.swift
Finding the receiver
- Tailscale: the sender asks the local Tailscale client for the tailnet's online Macs and sends each a discovery packet.
- Local network: the sender also sends a UDP broadcast.
- By hand: you can type the receiver's address or host name.
- Tailscale is optional. Telemic doesn't need a Tailscale account or key of its own.
Source: Tailnet.swift, Sender.swift
The virtual microphone driver
- The driver is a Core Audio HAL plug-in (AudioServerPlugIn), installed at
/Library/Audio/Plug-Ins/HAL/Telemic.driver. Installing it needs an administrator password and restarts the Mac's audio service, not the Mac. - It is an input-only device: 48 kHz, mono, 32-bit float. It has no output, so it cannot be used as a speaker.
- The Telemic app passes decoded audio to the driver over the loopback interface. Decoding and networking stay in the app, outside the system's audio service.
- Nothing is ever played on the receiving Mac. That is why screen and sound capture tools, remote desktop apps included, can't pick your voice up and send it back as an echo.
- You don't need BlackHole, Loopback or any other virtual audio device.
Source: TelemicDriver.c, Driver.swift
Reconnecting, sleep and startup
- The sender greets the receiver every second. If it hears nothing for 3 seconds it shows "connecting" and keeps trying, looking the receiver's name up again every 5 seconds.
- It reconnects at once when the network changes or the Mac wakes from sleep, and restarts audio capture if it stopped.
- While it is receiving audio, the receiver keeps its Mac from going to sleep when idle.
- Telemic can open at login, and released builds update themselves with Sparkle.
Source: Sender.swift, Receiver.swift, Updates.swift
More than one sender
A receiver can allow several senders and listens to one of them at a time; the others stay on standby until you pick them. A sender talks to one receiver at a time.
Source: Receiver.swift
Known limits
- Both computers must be Macs running macOS 26 or later. There is no Windows, Linux, iOS or Android version.
- Audio is mono and tuned for speech, not for music.
- It carries a microphone only, not the remote Mac's sound back to you.
- The network path is IPv4 over UDP; the sender must be able to reach the receiver's port directly, on a local network or through Tailscale.
- Telemic is not in the Mac App Store, because App Store apps can't install an audio driver. It is signed with a Developer ID and notarized by Apple.