Skip to content

Linux + iPhone Continuity / iMessage / SMS

feat: toggle audio from the phone to pc and back

Zack Bartel779479c07f08
diff --git a/README.md b/README.md
index 38740f3..6d3b379 100644
--- a/README.md
+++ b/README.md
@@ -60,7 +60,7 @@ Place, answer and end calls on the iPhone from the desktop, complete with caller
Recent calls from the iPhone are listed with a button to call back, and the iPhone's favorites are starred at the top of Contacts. These need **Phone Recents** and **Phone Favorites** turned on under the iPhone's Bluetooth settings for this computer.
The call audio stays on the iPhone. If you've used Linux long enough you know why (it sounds like "FalsePotty-o"). PulsAlsaWire is too hard to support across all deployment targets.
-Stock PipeWire makes the computer a speaker for the phone, which takes call control away and moves the iPhone's music and sounds to the desktop. The recommended audio setting is in [Keeping the phone's audio on the phone](docs/BLUETOOTH.md#keeping-the-phones-audio-on-the-phone).
+Stock PipeWire makes the computer a speaker for the phone, which takes call control away and moves the iPhone's music and sounds to the desktop. The recommended audio setting is in [Keeping the phone's audio on the phone](docs/BLUETOOTH.md#keeping-the-phones-audio-on-the-phone). Or keep it and switch with `tether --bt-phone-audio here|phone`.
### OTP Handling
Streamline two-factor authentication across your devices:
diff --git a/docs/BLUETOOTH.md b/docs/BLUETOOTH.md
index ba4681c..9dafd0e 100644
--- a/docs/BLUETOOTH.md
+++ b/docs/BLUETOOTH.md
@@ -1059,6 +1059,30 @@ call audio on the desktop, `a2dp_sink` is mandatory for it, and with it the phon
sounds come here too, and AirPods handoff falls back to the computer; see "Getting the call audio
onto the desktop instead".
+#### Switching it instead
+
+To keep `a2dp_sink` and choose per moment, leave the roles alone (drop only `hfp_hf` if you want
+call control) and use:
+
+```bash
+tether --bt-phone-audio here # play the iPhone's music and sounds on this computer
+tether --bt-phone-audio phone # back to the iPhone
+tether --bt-phone-audio auto # forget the choice; iPhone and audio server decide
+tether --bt-phone-audio # where it plays now
+```
+
+The same switch is under Settings > Experimental in the GTK and terminal clients. It opens or closes
+the iPhone's A2DP stream (`Device1.ConnectProfile`/`DisconnectProfile` on `0000110a`); PipeWire is not
+restarted. The first `here` or `phone` writes
+`~/.config/wireplumber/wireplumber.conf.d/zz-tether-phone-audio.conf`, which turns off WirePlumber's
+`bluez5.auto-connect` for this phone only, and restarts WirePlumber once. `auto` removes it. WirePlumber
+0.4 ignores the file.
+
+The iPhone reopens the stream itself about a second after every reconnect. With `phone` chosen, Tether
+closes it once per connection, within the first 30 seconds; with `here`, it opens the stream 5 seconds
+in if the iPhone has not. A route picked on the iPhone after that is left alone. Closing the stream
+pauses what the iPhone was playing, as unplugging headphones does. See 2026-10-25.
+
Two things that look like fixes and are not:
- `pactl set-card-profile bluez_card.<ADDR> off` stops the computer playing the audio,
@@ -3771,3 +3795,31 @@ Asked to remove messages deleted on the phone. Not possible on a live session:
Inferring deletes from absence was tried and reverted. Treating a short listing as the whole folder
removed 128 messages that were still on the phone, and the journal rewrite made that permanent.
Whether a new MAP session drops the deleted message is unverified.
+
+### 2026-10-25 - The iPhone's audio can be switched without changing roles
+
+[blueferry](https://github.com/erikwb/blueferry) keeps `a2dp_sink` and switches the iPhone's media
+audio with `Device1.ConnectProfile`/`DisconnectProfile("0000110a-...")`. Checked here on WirePlumber
+0.5.18, bluez 5.87, iPhone 15 Pro:
+
+- `a2dp_sink` added back, plus a `monitor.bluez.rules` entry giving this phone
+ `bluez5.auto-connect = [ ]`, then WirePlumber restarted: no stream opened. The role alone does not
+ move the audio; WirePlumber's own dial does.
+- `ConnectProfile`: `<device>/sep3/fd0` (`MediaTransport1`, UUID `0000110b`) and `bluez_card` appear,
+ and the audio moves here. `DisconnectProfile`: both go, the Classic link stays up, and the audio
+ goes back to the phone.
+- `Device1.Connect` on the live link does not reopen the stream.
+- Bluetooth off and on on the iPhone: the stream came back about a second after the link (bluetoothd
+ logged `Device is already marked as connected`, and Tether made no connect call). The iPhone opens
+ it, so the rule is not enough by itself.
+- Closing it once after that reconnect held for 60 s.
+
+So `--bt-phone-audio` acts once per connection and does not fight a later choice made on the iPhone.
+
+Closing too early breaks the device. `MediaTransport1` appears at SetConfiguration, before AVDTP Open
+completes. A `DisconnectProfile` sent in that gap logged `avdtp.c:cancel_request() Open: Operation
+canceled` and `Transaction label doesn't match`. After that, every `ConnectProfile` on the phone,
+for any UUID, returned `br-connection-busy` until the BR/EDR bearer was disconnected. The automatic
+close now waits 3 s after the stream appears.
+Unchecked: AirPods handed back to this machine while the stream is closed, which is the fallback
+described under "Keeping the phone's audio on the phone".
diff --git a/docs/man/man1/tether.1.in b/docs/man/man1/tether.1.in
index d9b6b01..42664c1 100644
--- a/docs/man/man1/tether.1.in
+++ b/docs/man/man1/tether.1.in
@@ -218,6 +218,12 @@ flag notification mirroring requires -- and carries no audio, or PipeWire's, whi
the call audio as well. Neither is installed by Tether and call control is unavailable,
not broken, when there is no stack holding the profile. See \fIdocs/BLUETOOTH.md\fR.
.TP
+\fB\-\-bt-phone-audio\fR [\fIhere\fR|\fIphone\fR|\fIauto\fR]
+Play the iPhone's music and sounds on this computer, or send them back to the iPhone, by
+opening or closing its A2DP stream. The choice is re-applied once per connection.
+\fIauto\fR forgets it. The first choice writes a WirePlumber rule and restarts WirePlumber
+once. Needs the \fBa2dp_sink\fR role. Without an argument, shows where the audio plays.
+.TP
\fB\-\-bt-call-audio\fR \fIon\fR|\fIoff\fR
Play call audio on this computer, or leave it on the iPhone. Only PipeWire carries the
voice link, so this reports a refusal when BlueZ holds the profile. \fIoff\fR gates the
diff --git a/po/cs.po b/po/cs.po
index b9934ec..6002b6c 100644
--- a/po/cs.po
+++ b/po/cs.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Czech\n"
@@ -243,6 +243,16 @@ msgstr ""
"Přehrávat zvuk hovoru na tomto počítači, nebo jej ponechat v iPhonu. "
"Vyžaduje, aby hands-free obsluhoval PipeWire; off platí od dalšího hovoru."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"Přehrávat hudbu a zvuky z iPhonu na tomto počítači, nebo je nechat na "
+"iPhonu. auto to nechá na iPhonu a zvukovém serveru. Bez argumentu ukáže, kde "
+"se přehrávají."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "Vypsat očištěnou zprávu o Bluetooth pro hlášení chyby."
@@ -1077,6 +1087,43 @@ msgstr "Kontakty seřazeny podle příjmení."
msgid "Contacts sorted by first name."
msgstr "Kontakty seřazeny podle jména."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "Zvuk z iPhonu hraje na tomto počítači."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "Zvuk z iPhonu zůstává na iPhonu."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"Nedostupné: iPhone není připojen přes Bluetooth Classic, nebo zvukový server "
+"nenabízí roli a2dp_sink."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "Zapamatovaná volba: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "Očekáváno here, phone nebo auto, např. --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "Zvuk z iPhonu přechází na tento počítač."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "Zvuk z iPhonu se vrací do iPhonu."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "Zvuk z telefonu se řídí iPhonem a zvukovým serverem."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "Očekáváno on nebo off, např. --bt-calls-enable on\n"
@@ -2927,6 +2974,18 @@ msgstr "Ovládání hovorů přes Bluetooth"
msgid "Answer and place calls from the Calls tab."
msgstr "Přijímejte a uskutečňujte hovory na kartě Hovory."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "Přehrávat zvuk z iPhonu na tomto počítači"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"Hudba a zvuky z iPhonu hrají zde. Vypnuto je vrátí do iPhonu. Hovory to "
+"neovlivní."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "připojeno"
@@ -3223,9 +3282,6 @@ msgstr "iPhone;iOS;SMS;Zprávy;Schránka;Soubory;Oznámení;Hovory;AirPods;"
#~ "bluez5.roles a telefonní službu D-Bus z PipeWire; ani jedno Tether "
#~ "neinstaluje."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr "Přesunout zvuk hovoru do tohoto počítače, nebo zpět do iPhonu."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3240,9 +3296,6 @@ msgstr "iPhone;iOS;SMS;Zprávy;Schránka;Soubory;Oznámení;Hovory;AirPods;"
#~ "Přehrávat hovor přes reproduktory a mikrofon tohoto počítače. Vrácení "
#~ "platí až pro další hovor."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "Očekáváno here nebo phone, např. --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/de.po b/po/de.po
index 611977c..994a46c 100644
--- a/po/de.po
+++ b/po/de.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-22\n"
"Last-Translator: Tether project\n"
"Language-Team: German\n"
@@ -248,6 +248,16 @@ msgstr ""
"Erfordert, dass PipeWire Hands-Free bereitstellt; off gilt ab dem nächsten "
"Anruf."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"Musik und Töne des iPhones auf diesem Computer wiedergeben oder auf dem "
+"iPhone lassen. auto überlässt es dem iPhone und dem Audioserver. Ohne "
+"Argument wird angezeigt, wo der Ton läuft."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "Einen bereinigten Bluetooth-Bericht für Fehlermeldungen ausgeben."
@@ -1090,6 +1100,43 @@ msgstr "Kontakte nach Nachnamen sortiert."
msgid "Contacts sorted by first name."
msgstr "Kontakte nach Vornamen sortiert."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "Der Ton des iPhones wird auf diesem Computer wiedergegeben."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "Der Ton des iPhones bleibt auf dem iPhone."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"Nicht verfügbar: Das iPhone ist nicht über Bluetooth Classic verbunden, oder "
+"der Audioserver bietet die Rolle a2dp_sink nicht an."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "Gespeicherte Auswahl: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "Erwartet wurde here, phone oder auto, z. B. --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "Der Ton des iPhones kommt auf diesen Computer."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "Der Ton des iPhones geht zurück auf das iPhone."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "Der Ton des Telefons folgt dem iPhone und dem Audioserver."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "Erwartet wurde on oder off, z. B. --bt-calls-enable on\n"
@@ -2763,7 +2810,9 @@ msgstr "Die Unterhaltung mit %s entfernen?"
#: src/gtk/messages_view.cpp src/tui/messages.cpp
msgid ""
"It stays on your iPhone, and comes back here when a new message arrives."
-msgstr "Sie bleibt auf deinem iPhone und erscheint hier wieder, sobald eine neue Nachricht eintrifft."
+msgstr ""
+"Sie bleibt auf deinem iPhone und erscheint hier wieder, sobald eine neue "
+"Nachricht eintrifft."
#: src/gtk/messages_view.cpp
msgid "Search conversations"
@@ -2999,6 +3048,18 @@ msgstr "Anrufsteuerung über Bluetooth"
msgid "Answer and place calls from the Calls tab."
msgstr "Anrufe im Reiter „Anrufe“ annehmen und tätigen."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "Ton des iPhones auf diesem Computer wiedergeben"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"Musik und Töne des iPhones laufen hier. Aus schickt sie zurück auf das "
+"iPhone. Anrufe sind nicht betroffen."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "verbunden"
@@ -3298,11 +3359,6 @@ msgstr "iPhone;iOS;SMS;Nachrichten;Zwischenablage;Dateien;Mitteilungen;Anrufe;Ai
#~ "bluez5.roles und den Telefonie-D-Bus-Dienst von PipeWire; beides "
#~ "installiert Tether nicht."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr ""
-#~ "Die Anrufaudioausgabe auf diesen Computer oder zurück auf das iPhone "
-#~ "verlegen."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3317,9 +3373,6 @@ msgstr "iPhone;iOS;SMS;Nachrichten;Zwischenablage;Dateien;Mitteilungen;Anrufe;Ai
#~ "Den Anruf über die Lautsprecher und das Mikrofon dieses Computers führen. "
#~ "Das Zurückgeben gilt ab dem nächsten Anruf."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "Erwartet wurde here oder phone, z. B. --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/es.po b/po/es.po
index 9392973..b708030 100644
--- a/po/es.po
+++ b/po/es.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-22\n"
"Last-Translator: Tether project\n"
"Language-Team: Spanish\n"
@@ -248,6 +248,16 @@ msgstr ""
"Requiere que sea PipeWire quien gestione el manos libres; off se aplica a "
"partir de la próxima llamada."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"Reproduce la música y los sonidos del iPhone en este ordenador, o los deja "
+"en el iPhone. auto lo deja en manos del iPhone y del servidor de audio. Sin "
+"argumento, muestra dónde se reproduce."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "Imprimir un informe Bluetooth redactado para un informe de error."
@@ -1084,6 +1094,43 @@ msgstr "Contactos ordenados por apellido."
msgid "Contacts sorted by first name."
msgstr "Contactos ordenados por nombre."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "El audio del iPhone se reproduce en este ordenador."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "El audio del iPhone se queda en el iPhone."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"No disponible: el iPhone no está conectado por Bluetooth Classic o el "
+"servidor de audio no ofrece el rol a2dp_sink."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "Opción recordada: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "Se esperaba here, phone o auto, p. ej. --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "El audio del iPhone pasa a este ordenador."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "El audio del iPhone vuelve al iPhone."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "El audio del teléfono lo deciden el iPhone y el servidor de audio."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "Se esperaba on u off, p. ej. --bt-calls-enable on\n"
@@ -2741,7 +2788,9 @@ msgstr "¿Quitar la conversación con %s?"
#: src/gtk/messages_view.cpp src/tui/messages.cpp
msgid ""
"It stays on your iPhone, and comes back here when a new message arrives."
-msgstr "Se mantiene en tu iPhone y vuelve a aparecer aquí cuando llega un mensaje nuevo."
+msgstr ""
+"Se mantiene en tu iPhone y vuelve a aparecer aquí cuando llega un mensaje "
+"nuevo."
#: src/gtk/messages_view.cpp
msgid "Search conversations"
@@ -2977,6 +3026,18 @@ msgstr "Control de llamadas por Bluetooth"
msgid "Answer and place calls from the Calls tab."
msgstr "Responde y realiza llamadas desde la pestaña Llamadas."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "Reproducir el audio del iPhone en este ordenador"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"La música y los sonidos del iPhone se reproducen aquí. Desactivado los "
+"devuelve al iPhone. No afecta a las llamadas."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "conectado"
@@ -3274,9 +3335,6 @@ msgstr "iPhone;iOS;SMS;Mensajes;Portapapeles;Archivos;Notificaciones;Llamadas;Ai
#~ "bluez5.roles y el servicio D-Bus de telefonía de PipeWire; Tether no "
#~ "instala ninguno de los dos."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr "Pasar el audio de la llamada a este equipo, o devolverlo al iPhone."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3291,9 +3349,6 @@ msgstr "iPhone;iOS;SMS;Mensajes;Portapapeles;Archivos;Notificaciones;Llamadas;Ai
#~ "Reproducir la llamada por los altavoces y el micrófono de este equipo. "
#~ "Devolverla se aplica a la siguiente llamada."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "Se esperaba here o phone, p. ej. --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/fr.po b/po/fr.po
index 1b91323..9480f3a 100644
--- a/po/fr.po
+++ b/po/fr.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-22\n"
"Last-Translator: Tether project\n"
"Language-Team: French\n"
@@ -251,6 +251,16 @@ msgstr ""
"Nécessite que PipeWire gère le mode mains libres ; off s'applique à partir "
"du prochain appel."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"Diffuse la musique et les sons de l’iPhone sur cet ordinateur, ou les laisse "
+"sur l’iPhone. auto laisse décider l’iPhone et le serveur audio. Sans "
+"argument, indique où le son est diffusé."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "Afficher un rapport Bluetooth expurgé pour un rapport de bogue."
@@ -1090,6 +1100,43 @@ msgstr "Contacts triés par nom."
msgid "Contacts sorted by first name."
msgstr "Contacts triés par prénom."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "Le son de l’iPhone est diffusé sur cet ordinateur."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "Le son de l’iPhone reste sur l’iPhone."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"Indisponible : l’iPhone n’est pas connecté en Bluetooth Classic, ou le "
+"serveur audio ne propose pas le rôle a2dp_sink."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "Choix mémorisé : {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "here, phone ou auto attendu, par ex. --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "Le son de l’iPhone passe sur cet ordinateur."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "Le son de l’iPhone retourne sur l’iPhone."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "Le son du téléphone suit l’iPhone et le serveur audio."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "on ou off attendu, par ex. --bt-calls-enable on\n"
@@ -2748,7 +2795,9 @@ msgstr "Retirer la conversation avec %s ?"
#: src/gtk/messages_view.cpp src/tui/messages.cpp
msgid ""
"It stays on your iPhone, and comes back here when a new message arrives."
-msgstr "Elle reste sur votre iPhone et réapparaît ici à l’arrivée d’un nouveau message."
+msgstr ""
+"Elle reste sur votre iPhone et réapparaît ici à l’arrivée d’un nouveau "
+"message."
#: src/gtk/messages_view.cpp
msgid "Search conversations"
@@ -2987,6 +3036,18 @@ msgstr "Gestion des appels par Bluetooth"
msgid "Answer and place calls from the Calls tab."
msgstr "Répondez et passez des appels depuis l'onglet Appels."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "Diffuser le son de l’iPhone sur cet ordinateur"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"La musique et les sons de l’iPhone sont diffusés ici. Désactivé les renvoie "
+"sur l’iPhone. Les appels ne sont pas concernés."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "connecté"
@@ -3285,11 +3346,6 @@ msgstr ""
#~ "dans bluez5.roles et le service D-Bus de téléphonie de PipeWire, que "
#~ "Tether n'installe ni l'un ni l'autre."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr ""
-#~ "Transférer l'audio de l'appel vers cet ordinateur, ou le renvoyer vers "
-#~ "l'iPhone."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3304,9 +3360,6 @@ msgstr ""
#~ "Diffuser l'appel par les haut-parleurs et le microphone de cet "
#~ "ordinateur. Le renvoi s'applique à l'appel suivant."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "here ou phone attendu, par ex. --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/it.po b/po/it.po
index 8173efb..892c917 100644
--- a/po/it.po
+++ b/po/it.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Italian\n"
@@ -250,6 +250,16 @@ msgstr ""
"sull'iPhone. Richiede che sia PipeWire a gestire il vivavoce; off vale dalla "
"chiamata successiva."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"Riproduce musica e suoni dell'iPhone su questo computer, oppure li lascia "
+"sull'iPhone. auto lascia decidere all'iPhone e al server audio. Senza "
+"argomento, mostra dove vengono riprodotti."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "Stampa un rapporto Bluetooth epurato per una segnalazione di errore."
@@ -1082,6 +1092,43 @@ msgstr "Contatti ordinati per cognome."
msgid "Contacts sorted by first name."
msgstr "Contatti ordinati per nome."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "L'audio dell'iPhone viene riprodotto su questo computer."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "L'audio dell'iPhone resta sull'iPhone."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"Non disponibile: l'iPhone non è connesso tramite Bluetooth Classic, oppure "
+"il server audio non offre il ruolo a2dp_sink."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "Scelta memorizzata: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "Previsto here, phone o auto, ad es. --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "L'audio dell'iPhone passa a questo computer."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "L'audio dell'iPhone torna sull'iPhone."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "L'audio del telefono segue l'iPhone e il server audio."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "Atteso on o off, ad es. --bt-calls-enable on\n"
@@ -2974,6 +3021,18 @@ msgstr "Controllo chiamate via Bluetooth"
msgid "Answer and place calls from the Calls tab."
msgstr "Rispondi ed effettua chiamate dalla scheda Chiamate."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "Riproduci l'audio dell'iPhone su questo computer"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"Musica e suoni dell'iPhone vengono riprodotti qui. Disattivato li rimanda "
+"all'iPhone. Le chiamate non sono interessate."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "connesso"
@@ -3271,11 +3330,6 @@ msgstr "iPhone;iOS;SMS;Messaggi;Appunti;File;Notifiche;Chiamate;AirPods;"
#~ "bluez5.roles e il servizio D-Bus di telefonia di PipeWire, nessuno dei "
#~ "quali viene installato da Tether."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr ""
-#~ "Spostare l'audio della chiamata su questo computer, o di nuovo "
-#~ "sull'iPhone."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3291,9 +3345,6 @@ msgstr "iPhone;iOS;SMS;Messaggi;Appunti;File;Notifiche;Chiamate;AirPods;"
#~ "Riprodurre la chiamata con gli altoparlanti e il microfono di questo "
#~ "computer. La restituzione vale dalla chiamata successiva."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "Atteso here o phone, ad es. --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/ja.po b/po/ja.po
index de40c83..91f4f60 100644
--- a/po/ja.po
+++ b/po/ja.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Japanese\n"
@@ -247,6 +247,16 @@ msgstr ""
"通話音声をこのコンピューターで再生するか、iPhone に残します。ハンズフリーを "
"PipeWire が処理している必要があります。off は次の通話から適用されます。"
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"iPhone の音楽やサウンドをこのコンピューターで再生するか、iPhone に残します。"
+"auto は iPhone とオーディオサーバーに任せます。引数なしでは、再生先を表示しま"
+"す。"
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "バグ報告用に情報を伏せた Bluetooth レポートを出力します。"
@@ -1074,6 +1084,44 @@ msgstr "連絡先を姓で並べ替えました。"
msgid "Contacts sorted by first name."
msgstr "連絡先を名で並べ替えました。"
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "iPhone のオーディオはこのコンピューターで再生されます。"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "iPhone のオーディオは iPhone のままです。"
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"利用できません: iPhone が Bluetooth Classic で接続されていないか、オーディオ"
+"サーバーが a2dp_sink ロールを提供していません。"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "記憶された選択: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr ""
+"here、phone、auto のいずれかを指定してください。例: --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "iPhone のオーディオをこのコンピューターに切り替えます。"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "iPhone のオーディオを iPhone に戻します。"
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "電話のオーディオは iPhone とオーディオサーバーに従います。"
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "on または off を指定してください。例: --bt-calls-enable on\n"
@@ -2933,6 +2981,18 @@ msgstr "Bluetooth 経由の通話操作"
msgid "Answer and place calls from the Calls tab."
msgstr "「通話」タブから通話の応答と発信ができます。"
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "iPhone のオーディオをこのコンピューターで再生"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"iPhone の音楽やサウンドをここで再生します。オフにすると iPhone に戻ります。通"
+"話には影響しません。"
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "接続済み"
@@ -3229,9 +3289,6 @@ msgstr "iPhone;iOS;SMS;メッセージ;クリップボード;ファイル;通知
#~ "PipeWire のテレフォニー D-Bus サービスが必要ですが、どちらも Tether はイン"
#~ "ストールしません。"
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr "通話音声をこのコンピューターに移す、または iPhone に戻します。"
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3246,9 +3303,6 @@ msgstr "iPhone;iOS;SMS;メッセージ;クリップボード;ファイル;通知
#~ "このコンピューターのスピーカーとマイクで通話します。戻す操作は次の通話から"
#~ "有効です。"
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "here または phone を指定してください。例: --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/ko.po b/po/ko.po
index 53c19bf..7ba1752 100644
--- a/po/ko.po
+++ b/po/ko.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Korean\n"
@@ -243,6 +243,15 @@ msgstr ""
"통화 오디오를 이 컴퓨터에서 재생하거나 iPhone에 그대로 둡니다. PipeWire가 핸"
"즈프리를 처리하고 있어야 하며, off는 다음 통화부터 적용됩니다."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"iPhone의 음악과 소리를 이 컴퓨터에서 재생하거나 iPhone에 둡니다. auto는 "
+"iPhone과 오디오 서버에 맡깁니다. 인수가 없으면 재생 위치를 표시합니다."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "버그 리포트용으로 민감 정보를 가린 Bluetooth 보고서를 출력합니다."
@@ -1057,6 +1066,43 @@ msgstr "연락처를 성으로 정렬했습니다."
msgid "Contacts sorted by first name."
msgstr "연락처를 이름으로 정렬했습니다."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "iPhone 오디오가 이 컴퓨터에서 재생됩니다."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "iPhone 오디오가 iPhone에 남아 있습니다."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"사용할 수 없음: iPhone이 Bluetooth Classic으로 연결되어 있지 않거나 오디오 서"
+"버가 a2dp_sink 역할을 제공하지 않습니다."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "기억된 선택: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "here, phone 또는 auto가 필요합니다. 예: --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "iPhone 오디오가 이 컴퓨터로 옵니다."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "iPhone 오디오가 iPhone으로 돌아갑니다."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "휴대폰 오디오는 iPhone과 오디오 서버를 따릅니다."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "on 또는 off가 필요합니다. 예: --bt-calls-enable on\n"
@@ -2661,7 +2707,8 @@ msgstr "%s 님과의 대화를 목록에서 제거할까요?"
#: src/gtk/messages_view.cpp src/tui/messages.cpp
msgid ""
"It stays on your iPhone, and comes back here when a new message arrives."
-msgstr "iPhone에는 그대로 남아 있으며, 새 메시지가 오면 여기에 다시 표시됩니다."
+msgstr ""
+"iPhone에는 그대로 남아 있으며, 새 메시지가 오면 여기에 다시 표시됩니다."
#: src/gtk/messages_view.cpp
msgid "Search conversations"
@@ -2890,6 +2937,18 @@ msgstr "Bluetooth 통화 제어"
msgid "Answer and place calls from the Calls tab."
msgstr "통화 탭에서 전화를 받고 걸 수 있습니다."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "이 컴퓨터에서 iPhone 오디오 재생"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"iPhone의 음악과 소리가 여기에서 재생됩니다. 끄면 iPhone으로 돌아갑니다. 통화"
+"에는 영향이 없습니다."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "연결됨"
@@ -3185,9 +3244,6 @@ msgstr "iPhone;iOS;SMS;메시지;클립보드;파일;알림;통화;AirPods;"
#~ "통화 탭에서 전화를 받고 걸 수 있습니다. bluez5.roles의 hfp_hf와 PipeWire"
#~ "의 텔레포니 D-Bus 서비스가 필요하며, 둘 다 Tether가 설치하지 않습니다."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr "통화 오디오를 이 컴퓨터로 옮기거나 iPhone으로 되돌립니다."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3202,9 +3258,6 @@ msgstr "iPhone;iOS;SMS;메시지;클립보드;파일;알림;통화;AirPods;"
#~ "이 컴퓨터의 스피커와 마이크로 통화합니다. 되돌리기는 다음 통화부터 적용됩"
#~ "니다."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "here 또는 phone이 필요합니다. 예: --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/nl.po b/po/nl.po
index d901e75..d76c247 100644
--- a/po/nl.po
+++ b/po/nl.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Dutch\n"
@@ -248,6 +248,16 @@ msgstr ""
"Gespreksaudio op deze computer afspelen of op de iPhone laten. Vereist dat "
"PipeWire handsfree verzorgt; off geldt vanaf het volgende gesprek."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"Speel muziek en geluiden van de iPhone af op deze computer, of houd ze op de "
+"iPhone. auto laat het aan de iPhone en de audioserver over. Zonder argument "
+"wordt getoond waar het speelt."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "Een geschoond Bluetooth-rapport voor een foutmelding afdrukken."
@@ -1084,6 +1094,43 @@ msgstr "Contacten gesorteerd op achternaam."
msgid "Contacts sorted by first name."
msgstr "Contacten gesorteerd op voornaam."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "Het geluid van de iPhone speelt op deze computer."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "Het geluid van de iPhone blijft op de iPhone."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"Niet beschikbaar: de iPhone is niet verbonden via Bluetooth Classic, of de "
+"audioserver biedt de rol a2dp_sink niet aan."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "Onthouden keuze: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "here, phone of auto verwacht, bijv. --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "Het geluid van de iPhone komt naar deze computer."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "Het geluid van de iPhone gaat terug naar de iPhone."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "Het geluid van de telefoon volgt de iPhone en de audioserver."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "on of off verwacht, bijv. --bt-calls-enable on\n"
@@ -2729,7 +2776,9 @@ msgstr "Het gesprek met %s verwijderen?"
#: src/gtk/messages_view.cpp src/tui/messages.cpp
msgid ""
"It stays on your iPhone, and comes back here when a new message arrives."
-msgstr "Het blijft op je iPhone en komt hier terug zodra er een nieuw bericht binnenkomt."
+msgstr ""
+"Het blijft op je iPhone en komt hier terug zodra er een nieuw bericht "
+"binnenkomt."
#: src/gtk/messages_view.cpp
msgid "Search conversations"
@@ -2964,6 +3013,18 @@ msgstr "Oproepbediening via Bluetooth"
msgid "Answer and place calls from the Calls tab."
msgstr "Beantwoord en start oproepen vanaf het tabblad Oproepen."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "Geluid van de iPhone op deze computer afspelen"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"Muziek en geluiden van de iPhone spelen hier. Uit stuurt ze terug naar de "
+"iPhone. Gesprekken worden niet beïnvloed."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "verbonden"
@@ -3261,11 +3322,6 @@ msgstr "iPhone;iOS;SMS;Berichten;Klembord;Bestanden;Meldingen;Gesprekken;AirPods
#~ "in bluez5.roles en de telefonie-D-Bus-dienst van PipeWire; Tether "
#~ "installeert die geen van beide."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr ""
-#~ "De audio van de oproep naar deze computer verplaatsen, of terug naar de "
-#~ "iPhone."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3280,9 +3336,6 @@ msgstr "iPhone;iOS;SMS;Berichten;Klembord;Bestanden;Meldingen;Gesprekken;AirPods
#~ "De oproep via de luidsprekers en microfoon van deze computer afspelen. "
#~ "Teruggeven geldt vanaf de volgende oproep."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "here of phone verwacht, bijv. --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/pl.po b/po/pl.po
index ab0524a..a9dab92 100644
--- a/po/pl.po
+++ b/po/pl.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Polish\n"
@@ -247,6 +247,16 @@ msgstr ""
"Wymaga, aby zestaw głośnomówiący obsługiwał PipeWire; off działa od "
"następnego połączenia."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"Odtwarza muzykę i dźwięki z iPhone'a na tym komputerze albo zostawia je na "
+"iPhonie. auto zostawia to iPhone'owi i serwerowi dźwięku. Bez argumentu "
+"pokazuje, gdzie są odtwarzane."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "Wypisz oczyszczony raport Bluetooth do zgłoszenia błędu."
@@ -1087,6 +1097,43 @@ msgstr "Kontakty posortowane według nazwiska."
msgid "Contacts sorted by first name."
msgstr "Kontakty posortowane według imienia."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "Dźwięk z iPhone'a jest odtwarzany na tym komputerze."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "Dźwięk z iPhone'a zostaje na iPhonie."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"Niedostępne: iPhone nie jest połączony przez Bluetooth Classic albo serwer "
+"dźwięku nie oferuje roli a2dp_sink."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "Zapamiętany wybór: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "Oczekiwano here, phone lub auto, np. --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "Dźwięk z iPhone'a przechodzi na ten komputer."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "Dźwięk z iPhone'a wraca na iPhone'a."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "Dźwięk z telefonu zależy od iPhone'a i serwera dźwięku."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "Oczekiwano on lub off, np. --bt-calls-enable on\n"
@@ -2959,6 +3006,18 @@ msgstr "Sterowanie połączeniami przez Bluetooth"
msgid "Answer and place calls from the Calls tab."
msgstr "Odbieraj i wykonuj połączenia z karty Połączenia."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "Odtwarzaj dźwięk z iPhone'a na tym komputerze"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"Muzyka i dźwięki z iPhone'a są odtwarzane tutaj. Wyłączenie odsyła je na "
+"iPhone'a. Nie dotyczy to połączeń."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "połączono"
@@ -3256,10 +3315,6 @@ msgstr "iPhone;iOS;SMS;Wiadomości;Schowek;Pliki;Powiadomienia;Połączenia;AirP
#~ "bluez5.roles oraz usługi telefonii D-Bus z PipeWire; Tether nie instaluje "
#~ "żadnej z nich."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr ""
-#~ "Przenieś dźwięk połączenia na ten komputer lub z powrotem na iPhone."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3274,9 +3329,6 @@ msgstr "iPhone;iOS;SMS;Wiadomości;Schowek;Pliki;Powiadomienia;Połączenia;AirP
#~ "Odtwarzaj połączenie przez głośniki i mikrofon tego komputera. Zwrot "
#~ "obowiązuje od następnego połączenia."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "Oczekiwano here lub phone, np. --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/pt_BR.po b/po/pt_BR.po
index 4013466..32f074b 100644
--- a/po/pt_BR.po
+++ b/po/pt_BR.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Brazilian Portuguese\n"
@@ -249,6 +249,16 @@ msgstr ""
"Exige que o PipeWire seja quem cuida do viva-voz; off vale a partir da "
"próxima chamada."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"Toca as músicas e os sons do iPhone neste computador, ou os mantém no "
+"iPhone. auto deixa a decisão com o iPhone e o servidor de áudio. Sem "
+"argumento, mostra onde está tocando."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "Imprimir um relatório Bluetooth sanitizado para um relato de erro."
@@ -1082,6 +1092,43 @@ msgstr "Contatos ordenados pelo sobrenome."
msgid "Contacts sorted by first name."
msgstr "Contatos ordenados pelo nome."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "O áudio do iPhone toca neste computador."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "O áudio do iPhone fica no iPhone."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"Indisponível: o iPhone não está conectado por Bluetooth Classic, ou o "
+"servidor de áudio não oferece a função a2dp_sink."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "Escolha lembrada: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "Esperado here, phone ou auto, ex.: --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "O áudio do iPhone vem para este computador."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "O áudio do iPhone volta para o iPhone."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "O áudio do telefone segue o iPhone e o servidor de áudio."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "Esperado on ou off, p. ex. --bt-calls-enable on\n"
@@ -2728,7 +2775,9 @@ msgstr "Remover a conversa com %s?"
#: src/gtk/messages_view.cpp src/tui/messages.cpp
msgid ""
"It stays on your iPhone, and comes back here when a new message arrives."
-msgstr "Ela continua no seu iPhone e volta a aparecer aqui quando chegar uma nova mensagem."
+msgstr ""
+"Ela continua no seu iPhone e volta a aparecer aqui quando chegar uma nova "
+"mensagem."
#: src/gtk/messages_view.cpp
msgid "Search conversations"
@@ -2959,6 +3008,18 @@ msgstr "Controle de chamadas por Bluetooth"
msgid "Answer and place calls from the Calls tab."
msgstr "Atenda e faça chamadas pela aba Chamadas."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "Tocar o áudio do iPhone neste computador"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"As músicas e os sons do iPhone tocam aqui. Desligado os devolve ao iPhone. "
+"As chamadas não são afetadas."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "conectado"
@@ -3259,10 +3320,6 @@ msgstr ""
#~ "bluez5.roles e do serviço D-Bus de telefonia do PipeWire, e o Tether não "
#~ "instala nenhum dos dois."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr ""
-#~ "Mover o áudio da chamada para este computador, ou de volta para o iPhone."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3277,9 +3334,6 @@ msgstr ""
#~ "Reproduzir a chamada pelos alto-falantes e microfone deste computador. "
#~ "Devolver vale a partir da próxima chamada."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "Esperado here ou phone, p. ex. --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/ru.po b/po/ru.po
index e3493c8..09e1830 100644
--- a/po/ru.po
+++ b/po/ru.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Russian\n"
@@ -247,6 +247,16 @@ msgstr ""
"Требуется, чтобы Hands-Free обслуживал PipeWire; off действует со следующего "
"вызова."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"Воспроизводить музыку и звуки iPhone на этом компьютере или оставить их на "
+"iPhone. auto оставляет выбор за iPhone и звуковым сервером. Без аргумента "
+"показывает, где идёт звук."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "Вывести очищенный отчёт Bluetooth для сообщения об ошибке."
@@ -1088,6 +1098,43 @@ msgstr "Контакты отсортированы по фамилии."
msgid "Contacts sorted by first name."
msgstr "Контакты отсортированы по имени."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "Звук iPhone воспроизводится на этом компьютере."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "Звук iPhone остаётся на iPhone."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"Недоступно: iPhone не подключён по Bluetooth Classic, или звуковой сервер не "
+"предлагает роль a2dp_sink."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "Запомненный выбор: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "Ожидалось here, phone или auto, например --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "Звук iPhone переходит на этот компьютер."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "Звук iPhone возвращается на iPhone."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "Звук телефона определяют iPhone и звуковой сервер."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "Ожидалось on или off, например --bt-calls-enable on\n"
@@ -2726,7 +2773,8 @@ msgstr "Убрать переписку с %s?"
#: src/gtk/messages_view.cpp src/tui/messages.cpp
msgid ""
"It stays on your iPhone, and comes back here when a new message arrives."
-msgstr "Она останется на iPhone и снова появится здесь, когда придёт новое сообщение."
+msgstr ""
+"Она останется на iPhone и снова появится здесь, когда придёт новое сообщение."
#: src/gtk/messages_view.cpp
msgid "Search conversations"
@@ -2961,6 +3009,18 @@ msgstr "Управление вызовами по Bluetooth"
msgid "Answer and place calls from the Calls tab."
msgstr "Отвечайте на вызовы и звоните на вкладке «Вызовы»."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "Воспроизводить звук iPhone на этом компьютере"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"Музыка и звуки iPhone воспроизводятся здесь. Выключение возвращает их на "
+"iPhone. Звонки не затрагиваются."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "подключено"
@@ -3059,7 +3119,8 @@ msgstr "Новое сообщение или набор номера во вкл
#: src/tui/main.cpp
msgid "Dismiss, forget, unpair, hang up, or remove a conversation"
-msgstr "Скрыть, забыть, разорвать сопряжение, завершить звонок или убрать переписку"
+msgstr ""
+"Скрыть, забыть, разорвать сопряжение, завершить звонок или убрать переписку"
#: src/tui/main.cpp
msgid "Copy the highlighted address or text"
@@ -3259,9 +3320,6 @@ msgstr ""
#~ "bluez5.roles и служба телефонии D-Bus из PipeWire; Tether не "
#~ "устанавливает ни то, ни другое."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr "Перевести звук вызова на этот компьютер или обратно на iPhone."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3276,9 +3334,6 @@ msgstr ""
#~ "Воспроизводить вызов через динамики и микрофон этого компьютера. Возврат "
#~ "действует со следующего вызова."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "Ожидалось here или phone, например --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/sv.po b/po/sv.po
index 77221e1..391e1de 100644
--- a/po/sv.po
+++ b/po/sv.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Swedish\n"
@@ -246,6 +246,16 @@ msgstr ""
"Spela upp samtalsljudet på den här datorn eller låt det ligga kvar på "
"iPhone. Kräver att PipeWire hanterar handsfree; off gäller från nästa samtal."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"Spela iPhones musik och ljud på den här datorn, eller behåll dem på iPhone. "
+"auto överlåter det till iPhone och ljudservern. Utan argument visas var "
+"ljudet spelas."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "Skriv ut en rensad Bluetooth-rapport för en felrapport."
@@ -1073,6 +1083,43 @@ msgstr "Kontakterna sorteras efter efternamn."
msgid "Contacts sorted by first name."
msgstr "Kontakterna sorteras efter förnamn."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "iPhones ljud spelas på den här datorn."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "iPhones ljud stannar på iPhone."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"Inte tillgängligt: iPhone är inte ansluten via Bluetooth Classic, eller så "
+"erbjuder ljudservern inte rollen a2dp_sink."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "Sparat val: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "Förväntade here, phone eller auto, t.ex. --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "iPhones ljud kommer till den här datorn."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "iPhones ljud går tillbaka till iPhone."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "Telefonens ljud följer iPhone och ljudservern."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "Förväntade on eller off, t.ex. --bt-calls-enable on\n"
@@ -2697,7 +2744,9 @@ msgstr "Ta bort tråden med %s?"
#: src/gtk/messages_view.cpp src/tui/messages.cpp
msgid ""
"It stays on your iPhone, and comes back here when a new message arrives."
-msgstr "Den finns kvar på din iPhone och dyker upp här igen när ett nytt meddelande kommer."
+msgstr ""
+"Den finns kvar på din iPhone och dyker upp här igen när ett nytt meddelande "
+"kommer."
#: src/gtk/messages_view.cpp
msgid "Search conversations"
@@ -2930,6 +2979,18 @@ msgstr "Samtalsstyrning via Bluetooth"
msgid "Answer and place calls from the Calls tab."
msgstr "Svara på och ring samtal från fliken Samtal."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "Spela iPhones ljud på den här datorn"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"Musik och ljud från iPhone spelas här. Av skickar tillbaka dem till iPhone. "
+"Samtal påverkas inte."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "ansluten"
@@ -3226,10 +3287,6 @@ msgstr "iPhone;iOS;SMS;Meddelanden;Urklipp;Filer;Notiser;Samtal;AirPods;"
#~ "Svara på och ring samtal från fliken Samtal. Kräver hfp_hf i bluez5.roles "
#~ "och PipeWires telefoni-D-Bus-tjänst, som Tether inte installerar någon av."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr ""
-#~ "Flytta samtalsljudet till den här datorn, eller tillbaka till iPhone."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3244,9 +3301,6 @@ msgstr "iPhone;iOS;SMS;Meddelanden;Urklipp;Filer;Notiser;Samtal;AirPods;"
#~ "Spela upp samtalet i den här datorns högtalare och mikrofon. Att lämna "
#~ "tillbaka gäller från nästa samtal."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "Förväntade here eller phone, t.ex. --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/tether.pot b/po/tether.pot
index cbec1b3..4825f52 100644
--- a/po/tether.pot
+++ b/po/tether.pot
@@ -6,9 +6,9 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: tether 0.2.41\n"
+"Project-Id-Version: tether 0.2.42\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -226,6 +226,13 @@ msgid ""
"to be the stack holding Hands-Free; off applies from the next call."
msgstr ""
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr ""
@@ -981,6 +988,41 @@ msgstr ""
msgid "Contacts sorted by first name."
msgstr ""
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr ""
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr ""
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr ""
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr ""
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr ""
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr ""
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr ""
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr ""
@@ -2669,6 +2711,16 @@ msgstr ""
msgid "Answer and place calls from the Calls tab."
msgstr ""
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr ""
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr ""
diff --git a/po/tr.po b/po/tr.po
index d03e013..1f735a5 100644
--- a/po/tr.po
+++ b/po/tr.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Turkish\n"
@@ -245,6 +245,16 @@ msgstr ""
"bağlantısını PipeWire’ın yürütmesi gerekir; off bir sonraki çağrıdan "
"itibaren geçerlidir."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"iPhone'un müziğini ve seslerini bu bilgisayarda çalar ya da iPhone'da tutar. "
+"auto kararı iPhone'a ve ses sunucusuna bırakır. Argüman olmadan, sesin "
+"nerede çaldığını gösterir."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "Hata bildirimi için arındırılmış bir Bluetooth raporu yazdır."
@@ -1069,6 +1079,43 @@ msgstr "Kişiler soyada göre sıralandı."
msgid "Contacts sorted by first name."
msgstr "Kişiler ada göre sıralandı."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "iPhone'un sesi bu bilgisayarda çalıyor."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "iPhone'un sesi iPhone'da kalıyor."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"Kullanılamıyor: iPhone Bluetooth Classic üzerinden bağlı değil veya ses "
+"sunucusu a2dp_sink rolünü sunmuyor."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "Hatırlanan seçim: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "here, phone veya auto bekleniyordu, örn. --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "iPhone'un sesi bu bilgisayara geliyor."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "iPhone'un sesi iPhone'a geri dönüyor."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "Telefonun sesi iPhone'u ve ses sunucusunu izler."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "on veya off bekleniyordu, örn. --bt-calls-enable on\n"
@@ -2691,7 +2738,8 @@ msgstr "%s ile olan yazışma kaldırılsın mı?"
#: src/gtk/messages_view.cpp src/tui/messages.cpp
msgid ""
"It stays on your iPhone, and comes back here when a new message arrives."
-msgstr "iPhone'unuzda kalır ve yeni bir mesaj geldiğinde burada yeniden görünür."
+msgstr ""
+"iPhone'unuzda kalır ve yeni bir mesaj geldiğinde burada yeniden görünür."
#: src/gtk/messages_view.cpp
msgid "Search conversations"
@@ -2925,6 +2973,18 @@ msgstr "Bluetooth üzerinden çağrı denetimi"
msgid "Answer and place calls from the Calls tab."
msgstr "Çağrılar sekmesinden çağrı yanıtlayın ve başlatın."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "iPhone'un sesini bu bilgisayarda çal"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"iPhone'un müziği ve sesleri burada çalar. Kapalı olduğunda iPhone'a geri "
+"gönderilir. Aramalar etkilenmez."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "bağlı"
@@ -3023,7 +3083,8 @@ msgstr "Yeni ileti veya Aramalar'da numara çevir"
#: src/tui/main.cpp
msgid "Dismiss, forget, unpair, hang up, or remove a conversation"
-msgstr "Kapat, unut, eşleştirmeyi kaldır, aramayı sonlandır veya yazışmayı kaldır"
+msgstr ""
+"Kapat, unut, eşleştirmeyi kaldır, aramayı sonlandır veya yazışmayı kaldır"
#: src/tui/main.cpp
msgid "Copy the highlighted address or text"
@@ -3222,9 +3283,6 @@ msgstr "iPhone;iOS;SMS;Mesajlar;Pano;Dosyalar;Bildirimler;Aramalar;AirPods;"
#~ "hfp_hf ve PipeWire'ın telefon D-Bus hizmeti gerekir; Tether bunların "
#~ "hiçbirini kurmaz."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr "Çağrı sesini bu bilgisayara ya da iPhone’a geri taşı."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3239,9 +3297,6 @@ msgstr "iPhone;iOS;SMS;Mesajlar;Pano;Dosyalar;Bildirimler;Aramalar;AirPods;"
#~ "Çağrıyı bu bilgisayarın hoparlörlerinden ve mikrofonundan çal. Geri verme "
#~ "sonraki çağrıdan itibaren geçerlidir."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "here veya phone bekleniyordu, örn. --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/uk.po b/po/uk.po
index d2c21c4..21d7690 100644
--- a/po/uk.po
+++ b/po/uk.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Ukrainian\n"
@@ -248,6 +248,16 @@ msgstr ""
"Відтворювати звук виклику на цьому комп’ютері або залишити його на iPhone. "
"Потрібно, щоб Hands-Free обслуговував PipeWire; off діє з наступного виклику."
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"Відтворювати музику та звуки iPhone на цьому комп’ютері або залишити їх на "
+"iPhone. auto залишає вибір за iPhone і звуковим сервером. Без аргументу "
+"показує, де відтворюється звук."
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "Вивести очищений звіт Bluetooth для повідомлення про помилку."
@@ -1086,6 +1096,43 @@ msgstr "Контакти відсортовано за прізвищем."
msgid "Contacts sorted by first name."
msgstr "Контакти відсортовано за ім’ям."
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "Звук iPhone відтворюється на цьому комп’ютері."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "Звук iPhone залишається на iPhone."
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr ""
+"Недоступно: iPhone не під’єднано через Bluetooth Classic, або звуковий "
+"сервер не пропонує роль a2dp_sink."
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "Запам’ятований вибір: {}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "Очікувалося here, phone або auto, наприклад --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "Звук iPhone переходить на цей комп’ютер."
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "Звук iPhone повертається на iPhone."
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "Звук телефону визначають iPhone і звуковий сервер."
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "Очікувалося on або off, наприклад --bt-calls-enable on\n"
@@ -2721,7 +2768,9 @@ msgstr "Прибрати розмову з %s?"
#: src/gtk/messages_view.cpp src/tui/messages.cpp
msgid ""
"It stays on your iPhone, and comes back here when a new message arrives."
-msgstr "Вона залишиться на iPhone і знову з’явиться тут, коли надійде нове повідомлення."
+msgstr ""
+"Вона залишиться на iPhone і знову з’явиться тут, коли надійде нове "
+"повідомлення."
#: src/gtk/messages_view.cpp
msgid "Search conversations"
@@ -2954,6 +3003,18 @@ msgstr "Керування викликами через Bluetooth"
msgid "Answer and place calls from the Calls tab."
msgstr "Відповідайте на виклики та телефонуйте з вкладки «Виклики»."
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "Відтворювати звук iPhone на цьому комп’ютері"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr ""
+"Музика та звуки iPhone відтворюються тут. Вимкнення повертає їх на iPhone. "
+"Дзвінки не зачіпаються."
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "під'єднано"
@@ -3052,7 +3113,8 @@ msgstr "Нове повідомлення або набір номера на в
#: src/tui/main.cpp
msgid "Dismiss, forget, unpair, hang up, or remove a conversation"
-msgstr "Приховати, забути, роз'єднати пару, завершити дзвінок або прибрати розмову"
+msgstr ""
+"Приховати, забути, роз'єднати пару, завершити дзвінок або прибрати розмову"
#: src/tui/main.cpp
msgid "Copy the highlighted address or text"
@@ -3252,9 +3314,6 @@ msgstr ""
#~ "hfp_hf у bluez5.roles і служба телефонії D-Bus з PipeWire; Tether не "
#~ "встановлює жодної з них."
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr "Перевести звук виклику на цей комп’ютер або назад на iPhone."
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3269,9 +3328,6 @@ msgstr ""
#~ "Відтворювати виклик через динаміки та мікрофон цього комп’ютера. "
#~ "Повернення діє з наступного виклику."
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "Очікувалося here або phone, наприклад --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/po/zh_CN.po b/po/zh_CN.po
index 07a31af..efdf70e 100644
--- a/po/zh_CN.po
+++ b/po/zh_CN.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tether\n"
"Report-Msgid-Bugs-To: [email protected]\n"
-"POT-Creation-Date: 2026-10-25 10:20-0700\n"
+"POT-Creation-Date: 2026-10-25 20:55-0700\n"
"PO-Revision-Date: 2026-08-23\n"
"Last-Translator: Tether project\n"
"Language-Team: Simplified Chinese\n"
@@ -232,6 +232,15 @@ msgstr ""
"在本机播放通话音频,或将其留在 iPhone 上。需要由 PipeWire 承载免提;off 从下"
"一通电话起生效。"
+#: src/cli/main.cpp
+msgid ""
+"Play the iPhone's music and sounds on this computer, or keep them on the "
+"iPhone. auto leaves it to the iPhone and the audio server. Without an "
+"argument, show where it plays."
+msgstr ""
+"在这台电脑上播放 iPhone 的音乐和声音,或将其留在 iPhone 上。auto 交由 iPhone "
+"和音频服务器决定。不带参数时,显示声音在哪里播放。"
+
#: src/cli/main.cpp
msgid "Print a redacted Bluetooth report for a bug report."
msgstr "输出用于错误报告的脱敏蓝牙报告。"
@@ -1033,6 +1042,41 @@ msgstr "联系人已按姓氏排列。"
msgid "Contacts sorted by first name."
msgstr "联系人已按名字排列。"
+#: src/cli/main.cpp
+msgid "The iPhone's audio plays on this computer."
+msgstr "iPhone 的声音在这台电脑上播放。"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio stays on the iPhone."
+msgstr "iPhone 的声音留在 iPhone 上。"
+
+#: src/cli/main.cpp
+msgid ""
+"Unavailable: the iPhone is not connected over Classic, or the audio server "
+"does not offer the a2dp_sink role."
+msgstr "不可用:iPhone 未通过经典蓝牙连接,或音频服务器未提供 a2dp_sink 角色。"
+
+#: src/cli/main.cpp
+#, c++-format
+msgid "Remembered choice: {}"
+msgstr "记住的选择:{}"
+
+#: src/cli/main.cpp
+msgid "Expected here, phone or auto, e.g. --bt-phone-audio here\n"
+msgstr "应为 here、phone 或 auto,例如 --bt-phone-audio here\n"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio comes to this computer."
+msgstr "iPhone 的声音转到这台电脑。"
+
+#: src/cli/main.cpp
+msgid "The iPhone's audio goes back to the iPhone."
+msgstr "iPhone 的声音回到 iPhone。"
+
+#: src/cli/main.cpp
+msgid "Phone audio follows the iPhone and the audio server."
+msgstr "手机声音由 iPhone 和音频服务器决定。"
+
#: src/cli/main.cpp
msgid "Expected on or off, e.g. --bt-calls-enable on\n"
msgstr "应为 on 或 off,例如 --bt-calls-enable on\n"
@@ -2819,6 +2863,16 @@ msgstr "通过蓝牙控制通话"
msgid "Answer and place calls from the Calls tab."
msgstr "在“通话”标签页接听和拨打电话。"
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid "Play the iPhone's audio on this computer"
+msgstr "在这台电脑上播放 iPhone 的声音"
+
+#: src/gtk/settings_view.cpp src/tui/settings.cpp
+msgid ""
+"Music and sounds from the iPhone play here. Off sends them back to the "
+"iPhone. Calls are not affected."
+msgstr "iPhone 的音乐和声音在这里播放。关闭后送回 iPhone。通话不受影响。"
+
#: src/gtk/tray.cpp src/gtk/ui_util.cpp src/tui/main.cpp
msgid "connected"
msgstr "已连接"
@@ -3111,9 +3165,6 @@ msgstr "iPhone;iOS;SMS;信息;剪贴板;文件;通知;通话;AirPods;"
#~ "在“通话”标签页接听和拨打电话。需要 bluez5.roles 中的 hfp_hf 以及 PipeWire "
#~ "的电话 D-Bus 服务,Tether 两者都不会安装。"
-#~ msgid "Move call audio to this computer, or back to the iPhone."
-#~ msgstr "将通话音频转到本机,或转回 iPhone。"
-
#~ msgid ""
#~ "Turn call control on or off. Needs the hfp_hf role and telephony service "
#~ "in WirePlumber; see docs/BLUETOOTH.md."
@@ -3126,9 +3177,6 @@ msgstr "iPhone;iOS;SMS;信息;剪贴板;文件;通知;通话;AirPods;"
#~ "back applies to the next call."
#~ msgstr "通过本机的扬声器和麦克风进行通话。转回将从下一通电话开始生效。"
-#~ msgid "Expected here or phone, e.g. --bt-call-audio here\n"
-#~ msgstr "应为 here 或 phone,例如 --bt-call-audio here\n"
-
#~ msgid ""
#~ "New calls will stay on the iPhone. A call already playing here does not "
#~ "move back."
diff --git a/src/cli/main.cpp b/src/cli/main.cpp
index 2500b79..bf65c94 100644
--- a/src/cli/main.cpp
+++ b/src/cli/main.cpp
@@ -235,6 +235,9 @@ static const Opt kOptions[] = {
{"--bt-call-audio <on|off>",
N_("Play call audio on this computer, or leave it on the iPhone. Needs PipeWire to be the stack holding "
"Hands-Free; off applies from the next call.")},
+ {"--bt-phone-audio [here|phone|auto]",
+ N_("Play the iPhone's music and sounds on this computer, or keep them on the iPhone. auto leaves it to the "
+ "iPhone and the audio server. Without an argument, show where it plays.")},
{"--bt-diagnostics", N_("Print a redacted Bluetooth report for a bug report.")},
{"--install-extension-host",
N_("Install the browser and mail extension's native messaging manifests for this user. Needed only for "
@@ -1482,6 +1485,10 @@ int main(int argc, char* argv[]) {
action = "bt_call_action";
const std::string value = i + 1 < argc ? argv[++i] : "";
arg_val = value == "off" ? "audio_phone" : "audio_here";
+ } else if (arg == "--bt-phone-audio") {
+ action = "bt_phone_audio";
+ if (i + 1 < argc && argv[i + 1][0] != '-')
+ arg_val = argv[++i];
} else if (arg == "--bt-call") {
action = "bt_call";
if (i + 1 < argc && argv[i + 1][0] != '-')
@@ -1755,6 +1762,41 @@ int main(int argc, char* argv[]) {
fprintf(stdout,
"%s\n",
arg_val == "last" ? _("Contacts sorted by last name.") : _("Contacts sorted by first name."));
+ } else if (action == "bt_phone_audio") {
+ if (arg_val.empty()) {
+ nlohmann::json status;
+ try {
+ status = nlohmann::json::parse(client.send_and_wait("{\"command\":\"bt_status\"}\n"));
+ } catch (const std::exception&) {
+ debug::log(ERR, _("Could not read Bluetooth status from the daemon.\n"));
+ return 1;
+ }
+ const std::string route = status.value("phone_audio_route", "unavailable");
+ fprintf(stdout,
+ "%s\n%s\n",
+ route == "here" ? _("The iPhone's audio plays on this computer.")
+ : route == "phone" ? _("The iPhone's audio stays on the iPhone.")
+ : _("Unavailable: the iPhone is not connected over Classic, or the audio "
+ "server does not offer the a2dp_sink role."),
+ tether::tr_format(_("Remembered choice: {}"), status.value("phone_audio", "auto")).c_str());
+ return 0;
+ }
+ if (arg_val != "here" && arg_val != "phone" && arg_val != "auto") {
+ debug::log(ERR, _("Expected here, phone or auto, e.g. --bt-phone-audio here\n"));
+ return 1;
+ }
+ nlohmann::json request;
+ request["command"] = "bt_set_phone_audio";
+ request["route"] = arg_val;
+ if (!client.send(request.dump() + "\n")) {
+ debug::log(ERR, _("Could not reach the daemon.\n"));
+ return 1;
+ }
+ fprintf(stdout,
+ "%s\n",
+ arg_val == "here" ? _("The iPhone's audio comes to this computer.")
+ : arg_val == "phone" ? _("The iPhone's audio goes back to the iPhone.")
+ : _("Phone audio follows the iPhone and the audio server."));
} else if (action == "bt_calls_enable") {
if (arg_val != "on" && arg_val != "off") {
debug::log(ERR, _("Expected on or off, e.g. --bt-calls-enable on\n"));
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 48abf60..2de8782 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -31,6 +31,7 @@ add_library(tether STATIC
src/bluetooth/removed_threads.cpp
src/bluetooth/journal.cpp
src/bluetooth/pbap_session.cpp
+ src/bluetooth/phone_audio.cpp
src/bluetooth/obex_transfer.cpp
src/bluetooth/ancs/parser.cpp
src/bluetooth/ancs/notifications.cpp
diff --git a/src/core/include/tether/bluetooth/config.hpp b/src/core/include/tether/bluetooth/config.hpp
index 4e21a27..90b376e 100644
--- a/src/core/include/tether/bluetooth/config.hpp
+++ b/src/core/include/tether/bluetooth/config.hpp
@@ -28,6 +28,12 @@ namespace tether::bluetooth {
const char* to_string(PauseMode mode);
PauseMode pause_mode_from_string(const std::string& value);
+ // Where the iPhone's media audio plays. Auto leaves it to the iPhone and the audio server.
+ enum class PhoneAudio { Auto, Here, Phone };
+
+ const char* to_string(PhoneAudio choice);
+ PhoneAudio phone_audio_from_string(const std::string& value);
+
// Persisted at ~/.config/tether/bluetooth.json.
struct Config {
// Address of the selected iPhone, e.g. "02:00:00:00:00:04".
@@ -75,6 +81,8 @@ namespace tether::bluetooth {
std::string lock_command;
// Whether contacts list by last name rather than first.
bool contacts_by_last_name = false;
+ // Applied to device_address once per Classic connection.
+ PhoneAudio phone_audio = PhoneAudio::Auto;
bool operator==(const Config&) const = default;
};
diff --git a/src/core/include/tether/bluetooth/objects.hpp b/src/core/include/tether/bluetooth/objects.hpp
index 9b0e84d..0b44112 100644
--- a/src/core/include/tether/bluetooth/objects.hpp
+++ b/src/core/include/tether/bluetooth/objects.hpp
@@ -18,6 +18,7 @@ namespace tether::bluetooth {
inline constexpr const char* UUID_PBAP_PSE = "0000112f-0000-1000-8000-00805f9b34fb";
inline constexpr const char* UUID_ANCS = "7905f431-b5ce-4e99-a40f-4b1e122d00d0";
inline constexpr const char* UUID_A2DP_SINK = "0000110b-0000-1000-8000-00805f9b34fb";
+ inline constexpr const char* UUID_A2DP_SOURCE = "0000110a-0000-1000-8000-00805f9b34fb";
// Modalias prefix for Apple's Bluetooth vendor id, shared by every Apple device.
inline constexpr const char* MODALIAS_APPLE = "bluetooth:v004c";
@@ -32,6 +33,8 @@ namespace tether::bluetooth {
uint32_t device_class = 0;
bool powered = false;
std::vector<std::string> roles;
+ // Adapter1.UUIDs: the local profiles, e.g. UUID_A2DP_SINK while the audio server offers it.
+ std::vector<std::string> uuids;
// BlueZ's own device id, not the chip's.
std::string modalias;
// The controller itself, from /sys/class/bluetooth/<hciN>/device/modalias.
@@ -149,11 +152,24 @@ namespace tether::bluetooth {
bool operator==(const Telephony&) const = default;
};
+ // An open A2DP stream, from org.bluez.MediaTransport1 at <device>/sepN/fdN.
+ struct MediaTransport {
+ std::string path;
+ std::string device_path;
+ // The local role: UUID_A2DP_SINK when the phone's audio comes to this machine.
+ std::string uuid;
+ // idle, pending, broadcasting, active.
+ std::string state;
+
+ bool operator==(const MediaTransport&) const = default;
+ };
+
struct BluezObjects {
std::vector<Adapter> adapters;
std::vector<Device> devices;
std::vector<Telephony> telephony;
std::vector<Call> calls;
+ std::vector<MediaTransport> transports;
// bluetoothd has experimental API on
bool experimental_api = false;
@@ -165,6 +181,8 @@ namespace tether::bluetooth {
const Telephony* find_telephony(const std::string& device_path) const;
// Calls belonging to one gateway, in path order.
std::vector<Call> calls_for(const std::string& telephony_path) const;
+ // The stream carrying a device's audio to this machine, or null.
+ const MediaTransport* find_sink_transport(const std::string& device_path) const;
bool operator==(const BluezObjects&) const = default;
};
diff --git a/src/core/include/tether/bluetooth/phone_audio.hpp b/src/core/include/tether/bluetooth/phone_audio.hpp
new file mode 100644
index 0000000..8a446f9
--- /dev/null
+++ b/src/core/include/tether/bluetooth/phone_audio.hpp
@@ -0,0 +1,54 @@
+#pragma once
+
+#include "tether/bluetooth/config.hpp"
+#include "tether/bluetooth/objects.hpp"
+
+#include <chrono>
+#include <gio/gio.h>
+#include <mutex>
+#include <optional>
+#include <string>
+
+// Moves the iPhone's audio between this machine and the phone by opening or closing its A2DP stream.
+namespace tether::bluetooth {
+
+ // A WirePlumber 0.5 fragment that turns off auto-connect for one device.
+ std::string wireplumber_rule(const std::string& address);
+
+ // Writes the rule for `address`, or removes it when empty, and restarts WirePlumber
+ // when the file changed. False when the file could not be written.
+ bool install_wireplumber_rule(const std::string& address);
+
+ // ConnectProfile or DisconnectProfile on the phone's A2DP source. Blocks for up to 30s.
+ bool set_phone_audio_route(GDBusConnection* conn, const std::string& device_path, bool here, std::string& err);
+
+ // "here", "phone", or "unavailable" when there is no Classic link or no sink role.
+ std::string phone_audio_route(const BluezObjects& objects, const std::string& address);
+
+ // Applies the remembered choice once per Classic connection, without fighting a
+ // later change made on the iPhone.
+ class PhoneAudioFollower {
+ public:
+ void configure(const std::string& address, PhoneAudio choice);
+ // Main loop, on every snapshot change.
+ void update(const BluezObjects& objects, GDBusConnection* conn);
+ // Moves the audio now, if the phone is connected.
+ void apply_now(GDBusConnection* conn);
+
+ private:
+ // `settle` waits for a stream the iPhone just opened to finish opening first.
+ void act(GDBusConnection* conn, bool here, bool settle = false);
+
+ std::mutex mutex_;
+ std::string address_;
+ PhoneAudio choice_ = PhoneAudio::Auto;
+ std::string device_path_;
+ std::optional<std::chrono::steady_clock::time_point> link_since_;
+ bool acted_ = false;
+ // Bumped on every link change, so a delayed action from an old connection is dropped.
+ unsigned generation_ = 0;
+ };
+
+ extern PhoneAudioFollower* g_phone_audio;
+
+} // namespace tether::bluetooth
diff --git a/src/core/src/bluetooth/config.cpp b/src/core/src/bluetooth/config.cpp
index 0a299f1..5e327b6 100644
--- a/src/core/src/bluetooth/config.cpp
+++ b/src/core/src/bluetooth/config.cpp
@@ -44,6 +44,26 @@ namespace tether::bluetooth {
return PauseMode::Never;
}
+ const char* to_string(PhoneAudio choice) {
+ switch (choice) {
+ case PhoneAudio::Auto:
+ return "auto";
+ case PhoneAudio::Here:
+ return "here";
+ case PhoneAudio::Phone:
+ return "phone";
+ }
+ return "auto";
+ }
+
+ PhoneAudio phone_audio_from_string(const std::string& value) {
+ if (value == "here")
+ return PhoneAudio::Here;
+ if (value == "phone")
+ return PhoneAudio::Phone;
+ return PhoneAudio::Auto;
+ }
+
std::string config_path() {
const std::filesystem::path dir = paths::config_dir();
if (dir.empty())
@@ -75,6 +95,7 @@ namespace tether::bluetooth {
j["yield_when_inactive"] = config.yield_when_inactive;
j["yield_idle_seconds"] = config.yield_idle_seconds;
j["contacts_by_last_name"] = config.contacts_by_last_name;
+ j["phone_audio"] = to_string(config.phone_audio);
return j.dump(2);
}
@@ -109,6 +130,7 @@ namespace tether::bluetooth {
config.lock_away_seconds = std::max(1, j.value("lock_away_seconds", AWAY_LOCK_GRACE_SECONDS));
config.lock_command = j.value("lock_command", "");
config.contacts_by_last_name = j.value("contacts_by_last_name", false);
+ config.phone_audio = phone_audio_from_string(j.value("phone_audio", ""));
} catch (const std::exception&) {
// A corrupt file must not stop the daemon; defaults are safe.
}
diff --git a/src/core/src/bluetooth/objects.cpp b/src/core/src/bluetooth/objects.cpp
index b46290a..23f2c92 100644
--- a/src/core/src/bluetooth/objects.cpp
+++ b/src/core/src/bluetooth/objects.cpp
@@ -17,6 +17,7 @@ namespace tether::bluetooth {
constexpr const char* IFACE_DEVICE = "org.bluez.Device1";
constexpr const char* IFACE_TELEPHONY = "org.bluez.Telephony1";
constexpr const char* IFACE_CALL = "org.bluez.Call1";
+ constexpr const char* IFACE_MEDIA_TRANSPORT = "org.bluez.MediaTransport1";
constexpr const char* IFACE_LE_ADV_MGR = "org.bluez.LEAdvertisingManager1";
constexpr const char* IFACE_ADV_MONITOR_MGR = "org.bluez.AdvertisementMonitorManager1";
constexpr const char* IFACE_BEARER_LE = "org.bluez.Bearer.LE1";
@@ -174,6 +175,7 @@ namespace tether::bluetooth {
a.device_class = get_uint32(props, "Class");
a.powered = get_bool(props, "Powered");
a.roles = get_strv(props, "Roles");
+ a.uuids = get_strv(props, "UUIDs");
a.modalias = get_string(props, "Modalias");
a.controller = controller_of(path);
g_variant_unref(props);
@@ -234,6 +236,21 @@ namespace tether::bluetooth {
out.calls.push_back(std::move(c));
}
+ void read_transport(const std::string& path, GVariant* ifaces, BluezObjects& out) {
+ GVariant* props = g_variant_lookup_value(ifaces, IFACE_MEDIA_TRANSPORT, G_VARIANT_TYPE("a{sv}"));
+ if (!props)
+ return;
+
+ MediaTransport t;
+ t.path = path;
+ t.device_path = parent_path(parent_path(path));
+ t.uuid = get_string(props, "UUID");
+ t.state = get_string(props, "State");
+ g_variant_unref(props);
+
+ out.transports.push_back(std::move(t));
+ }
+
void read_device(const std::string& path, GVariant* ifaces, BluezObjects& out) {
GVariant* props = g_variant_lookup_value(ifaces, IFACE_DEVICE, G_VARIANT_TYPE("a{sv}"));
if (!props)
@@ -345,6 +362,15 @@ namespace tether::bluetooth {
return out;
}
+ const MediaTransport* BluezObjects::find_sink_transport(const std::string& device_path) const {
+ if (device_path.empty())
+ return nullptr;
+ auto it = std::find_if(transports.begin(), transports.end(), [&](const MediaTransport& t) {
+ return t.device_path == device_path && iequals(t.uuid, UUID_A2DP_SINK);
+ });
+ return it == transports.end() ? nullptr : &*it;
+ }
+
const char* to_string(DeliveryMode mode) {
switch (mode) {
case DeliveryMode::Full:
@@ -393,6 +419,7 @@ namespace tether::bluetooth {
read_device(path, ifaces, out);
read_telephony(path, ifaces, out);
read_call(path, ifaces, out);
+ read_transport(path, ifaces, out);
GVariant* chr = g_variant_lookup_value(ifaces, IFACE_CHARACTERISTIC, G_VARIANT_TYPE("a{sv}"));
if (!chr)
@@ -436,6 +463,9 @@ namespace tether::bluetooth {
return a.path < b.path;
});
std::sort(out.calls.begin(), out.calls.end(), [](const Call& a, const Call& b) { return a.path < b.path; });
+ std::sort(out.transports.begin(), out.transports.end(), [](const MediaTransport& a, const MediaTransport& b) {
+ return a.path < b.path;
+ });
return out;
}
diff --git a/src/core/src/bluetooth/phone_audio.cpp b/src/core/src/bluetooth/phone_audio.cpp
new file mode 100644
index 0000000..b0ff881
--- /dev/null
+++ b/src/core/src/bluetooth/phone_audio.cpp
@@ -0,0 +1,266 @@
+#include "tether/bluetooth/phone_audio.hpp"
+
+#include "tether/bluetooth/monitor.hpp"
+#include "tether/log.hpp"
+#include "tether/service.hpp"
+
+#include <algorithm>
+#include <cctype>
+#include <cstdlib>
+#include <filesystem>
+#include <fstream>
+#include <sstream>
+#include <thread>
+
+namespace tether::bluetooth {
+
+ PhoneAudioFollower* g_phone_audio = nullptr;
+
+ namespace {
+
+ constexpr int PROFILE_TIMEOUT_MS = 30000;
+ // iOS opens the stream itself about a second after the link comes up
+ constexpr auto PHONE_WINDOW = std::chrono::seconds(30);
+ // Long enough for iOS to open the stream first, so Here does not race it.
+ constexpr auto HERE_DELAY = std::chrono::seconds(5);
+ constexpr auto BUSY_RETRY = std::chrono::seconds(2);
+ constexpr int BUSY_ATTEMPTS = 5;
+ constexpr auto OPEN_SETTLE = std::chrono::seconds(3);
+
+ std::filesystem::path rule_path() {
+ std::filesystem::path base;
+ const char* xdg = std::getenv("XDG_CONFIG_HOME");
+ if (xdg && xdg[0] == '/')
+ base = xdg;
+ else if (const char* home = std::getenv("HOME"); home && home[0])
+ base = std::filesystem::path(home) / ".config";
+ else
+ return {};
+ // zz- sorts last, so this rule wins over the user's own for the same device.
+ return base / "wireplumber" / "wireplumber.conf.d" / "zz-tether-phone-audio.conf";
+ }
+
+ std::string read_file(const std::filesystem::path& path) {
+ std::ifstream in(path);
+ std::stringstream text;
+ text << in.rdbuf();
+ return text.str();
+ }
+
+ void restart_wireplumber() {
+ if (!systemd_booted()) {
+ debug::log(WARN, "phone audio: restart WirePlumber to load {}", rule_path().string());
+ return;
+ }
+ gint status = 0;
+ if (!g_spawn_command_line_sync(
+ "timeout 10 systemctl --user try-restart wireplumber", nullptr, nullptr, &status, nullptr) ||
+ status != 0)
+ debug::log(WARN, "phone audio: could not restart WirePlumber");
+ }
+
+ const Device* find_phone(const BluezObjects& objects, const std::string& address) {
+ const Device* found = nullptr;
+ for (const auto& device : objects.devices) {
+ if (device.address != address)
+ continue;
+ if (device.classic_link_up())
+ return &device;
+ found = found ? found : &device;
+ }
+ return found;
+ }
+
+ bool offers_sink(const BluezObjects& objects, const Device& device) {
+ const Adapter* adapter = objects.find_adapter(device.adapter_path);
+ return adapter && std::any_of(adapter->uuids.begin(), adapter->uuids.end(), [](const std::string& uuid) {
+ return g_ascii_strcasecmp(uuid.c_str(), UUID_A2DP_SINK) == 0;
+ });
+ }
+
+ } // namespace
+
+ std::string wireplumber_rule(const std::string& address) {
+ return "# Written by Tether for tether --bt-phone-audio; 'auto' removes it.\n"
+ "monitor.bluez.rules = [\n"
+ " {\n"
+ " matches = [ { api.bluez5.address = \"" +
+ address +
+ "\" } ]\n"
+ " actions = { update-props = { bluez5.auto-connect = [ ] } }\n"
+ " }\n"
+ "]\n";
+ }
+
+ bool install_wireplumber_rule(const std::string& address) {
+ const auto path = rule_path();
+ if (path.empty())
+ return false;
+ std::error_code ec;
+ if (address.empty()) {
+ if (!std::filesystem::remove(path, ec))
+ return !ec;
+ restart_wireplumber();
+ return true;
+ }
+
+ // Interpolated into WirePlumber's config, so nothing but an address gets in.
+ const bool valid = address.size() == 17 && std::all_of(address.begin(), address.end(), [](char c) {
+ return std::isxdigit(static_cast<unsigned char>(c)) || c == ':';
+ });
+ if (!valid)
+ return false;
+ const std::string text = wireplumber_rule(address);
+ if (read_file(path) == text)
+ return true;
+ std::filesystem::create_directories(path.parent_path(), ec);
+ const auto temp = path.string() + ".tmp";
+ {
+ std::ofstream out(temp, std::ios::trunc);
+ out << text;
+ if (!out.flush())
+ return false;
+ }
+ std::filesystem::rename(temp, path, ec);
+ if (ec) {
+ std::filesystem::remove(temp, ec);
+ return false;
+ }
+ restart_wireplumber();
+ return true;
+ }
+
+ bool set_phone_audio_route(GDBusConnection* conn, const std::string& device_path, bool here, std::string& err) {
+ if (!conn || device_path.empty()) {
+ err = "no phone";
+ return false;
+ }
+ GError* error = nullptr;
+ GVariant* reply = g_dbus_connection_call_sync(conn,
+ "org.bluez",
+ device_path.c_str(),
+ "org.bluez.Device1",
+ here ? "ConnectProfile" : "DisconnectProfile",
+ g_variant_new("(s)", UUID_A2DP_SOURCE),
+ nullptr,
+ G_DBUS_CALL_FLAGS_NONE,
+ PROFILE_TIMEOUT_MS,
+ nullptr,
+ &error);
+ if (!reply) {
+ err = error ? error->message : "unknown error";
+ g_clear_error(&error);
+ return false;
+ }
+ g_variant_unref(reply);
+ return true;
+ }
+
+ std::string phone_audio_route(const BluezObjects& objects, const std::string& address) {
+ const Device* device = find_phone(objects, address);
+ if (!device || !device->classic_link_up() || !offers_sink(objects, *device))
+ return "unavailable";
+ return objects.find_sink_transport(device->path) ? "here" : "phone";
+ }
+
+ void PhoneAudioFollower::configure(const std::string& address, PhoneAudio choice) {
+ std::lock_guard<std::mutex> lock(mutex_);
+ if (address != address_) {
+ link_since_.reset();
+ acted_ = false;
+ ++generation_;
+ }
+ address_ = address;
+ choice_ = choice;
+ }
+
+ void PhoneAudioFollower::update(const BluezObjects& objects, GDBusConnection* conn) {
+ std::unique_lock<std::mutex> lock(mutex_);
+ const Device* device = address_.empty() ? nullptr : find_phone(objects, address_);
+ if (!device || !device->classic_link_up() || !offers_sink(objects, *device)) {
+ if (link_since_)
+ ++generation_;
+ link_since_.reset();
+ acted_ = false;
+ return;
+ }
+ device_path_ = device->path;
+ const auto now = std::chrono::steady_clock::now();
+ if (!link_since_) {
+ link_since_ = now;
+ // Nothing else may change in the snapshot once the link settles.
+ if (choice_ == PhoneAudio::Here) {
+ std::thread([this, conn] {
+ std::this_thread::sleep_for(HERE_DELAY);
+ if (g_bluez)
+ update(g_bluez->snapshot(), conn);
+ }).detach();
+ }
+ }
+ if (acted_ || choice_ == PhoneAudio::Auto)
+ return;
+
+ const bool open = objects.find_sink_transport(device->path) != nullptr;
+ const auto elapsed = now - *link_since_;
+ if (choice_ == PhoneAudio::Phone) {
+ if (open && elapsed < PHONE_WINDOW) {
+ acted_ = true;
+ lock.unlock();
+ act(conn, false, true);
+ } else if (elapsed >= PHONE_WINDOW) {
+ acted_ = true;
+ }
+ return;
+ }
+ if (open) {
+ acted_ = true;
+ } else if (elapsed >= HERE_DELAY) {
+ acted_ = true;
+ lock.unlock();
+ act(conn, true);
+ }
+ }
+
+ void PhoneAudioFollower::apply_now(GDBusConnection* conn) {
+ std::unique_lock<std::mutex> lock(mutex_);
+ if (!link_since_ || choice_ == PhoneAudio::Auto)
+ return;
+ acted_ = true;
+ const bool here = choice_ == PhoneAudio::Here;
+ lock.unlock();
+ act(conn, here);
+ }
+
+ void PhoneAudioFollower::act(GDBusConnection* conn, bool here, bool settle) {
+ std::string path;
+ unsigned generation = 0;
+ {
+ std::lock_guard<std::mutex> lock(mutex_);
+ path = device_path_;
+ generation = generation_;
+ }
+ std::thread([this, conn, path, generation, here, settle] {
+ if (settle)
+ std::this_thread::sleep_for(OPEN_SETTLE);
+ for (int attempt = 1;; ++attempt) {
+ {
+ std::lock_guard<std::mutex> lock(mutex_);
+ if (generation != generation_)
+ return;
+ }
+ std::string err;
+ if (set_phone_audio_route(conn, path, here, err)) {
+ debug::log(INFO, "phone audio: {}", here ? "playing here" : "back on the iPhone");
+ return;
+ }
+ // bluetoothd refuses while the link is still settling.
+ if (err.find("InProgress") == std::string::npos || attempt == BUSY_ATTEMPTS) {
+ debug::log(WARN, "phone audio: {} failed: {}", here ? "ConnectProfile" : "DisconnectProfile", err);
+ return;
+ }
+ std::this_thread::sleep_for(BUSY_RETRY);
+ }
+ }).detach();
+ }
+
+} // namespace tether::bluetooth
diff --git a/src/core/src/net.cpp b/src/core/src/net.cpp
index d46bbf1..c6ac2dd 100644
--- a/src/core/src/net.cpp
+++ b/src/core/src/net.cpp
@@ -24,6 +24,7 @@
#include "tether/bluetooth/diagnostics.hpp"
#include "tether/bluetooth/monitor.hpp"
#include "tether/bluetooth/pairing.hpp"
+#include "tether/bluetooth/phone_audio.hpp"
#include "tether/bluetooth/removed_threads.hpp"
#include "tether/client.hpp"
#include "tether/crypto.hpp"
@@ -437,6 +438,13 @@ namespace tether {
status["lock_away_seconds"] = config.lock_away_seconds;
status["yield_when_inactive"] = config.yield_when_inactive;
status["contacts_by_last_name"] = config.contacts_by_last_name;
+ status["phone_audio"] = to_string(config.phone_audio);
+ if (bluetooth::g_bluez && bluetooth::g_bluez->running()) {
+ const auto objects = bluetooth::g_bluez->snapshot();
+ status["phone_audio_route"] = bluetooth::phone_audio_route(objects, config.device_address);
+ } else {
+ status["phone_audio_route"] = "unavailable";
+ }
status["version"] = TETHER_VERSION;
if (!bluetooth::g_bluez) {
status["capability"] = nullptr;
@@ -732,6 +740,8 @@ namespace tether {
}
static void restart_supervision(bluetooth::Config config) {
+ if (bluetooth::g_phone_audio)
+ bluetooth::g_phone_audio->configure(bluetooth::supervised_address(config), config.phone_audio);
if (bluetooth::g_bt_connections)
bluetooth::g_bt_connections->set_device(bluetooth::supervised_address(config), config.ancs_enabled);
broadcast_local_event(build_bt_status().dump());
@@ -1519,6 +1529,25 @@ namespace tether {
config.contacts_by_last_name = j.value("enabled", false);
bluetooth::save_config(config);
broadcast_local_event(build_bt_status().dump());
+ } else if (j.contains("command") && j["command"] == "bt_set_phone_audio") {
+ auto config = bluetooth::load_config();
+ // "route" from the CLI, "enabled" from the TUI's switches.
+ const std::string route =
+ j.contains("route") ? j.value("route", "") : (j.value("enabled", false) ? "here" : "phone");
+ config.phone_audio = bluetooth::phone_audio_from_string(route);
+ bluetooth::save_config(config);
+ std::thread([config] {
+ const bool remembered = config.phone_audio != bluetooth::PhoneAudio::Auto;
+ if (!bluetooth::install_wireplumber_rule(remembered ? config.device_address : ""))
+ debug::log(WARN, "phone audio: could not write the WirePlumber rule");
+ if (bluetooth::g_phone_audio) {
+ bluetooth::g_phone_audio->configure(bluetooth::supervised_address(config),
+ config.phone_audio);
+ if (bluetooth::g_bluez)
+ bluetooth::g_phone_audio->apply_now(bluetooth::g_bluez->connection());
+ }
+ broadcast_local_event(build_bt_status().dump());
+ }).detach();
} else if (j.contains("command") && j["command"] == "bt_hold" && j.contains("profile")) {
if (bluetooth::g_bt_connections &&
bluetooth::g_bt_connections->set_hold(j.value("profile", ""), j.value("held", true)))
diff --git a/src/daemon/main.cpp b/src/daemon/main.cpp
index 4c87d1a..178f8f3 100644
--- a/src/daemon/main.cpp
+++ b/src/daemon/main.cpp
@@ -16,6 +16,7 @@
#include <tether/bluetooth/contacts.hpp>
#include <tether/bluetooth/monitor.hpp>
#include <tether/bluetooth/pairing.hpp>
+#include <tether/bluetooth/phone_audio.hpp>
#include <tether/bluetooth/removed_threads.hpp>
#include <tether/core.hpp>
#include <tether/crypto.hpp>
@@ -246,6 +247,7 @@ int main(int argc, char** argv) {
// BlueZ runs on its own GLib thread and wakes the loop through an eventfd
// whenever the adapter or device set changes.
tether::bluetooth::BluezMonitor bluez;
+ tether::bluetooth::PhoneAudioFollower phone_audio;
tether::bluetooth::ConnectionManager connections(
bluez,
[](const nlohmann::json& status) { tether::broadcast_local_event(status.dump()); },
@@ -656,13 +658,17 @@ int main(int argc, char** argv) {
tether::bluetooth::g_airpods = &airpods;
tether::g_media = &media;
media.watch(on_local_play);
- loop.addFd(bluez.event_fd(), [&bluez, &follow_airpods](int) {
+ phone_audio.configure(tether::bluetooth::supervised_address(bt_config), bt_config.phone_audio);
+ tether::bluetooth::g_phone_audio = &phone_audio;
+ loop.addFd(bluez.event_fd(), [&bluez, &follow_airpods, &phone_audio](int) {
bluez.drain();
tether::broadcast_local_event(tether::build_bt_devices().dump());
tether::broadcast_local_event(tether::build_bt_status().dump());
follow_airpods();
+ phone_audio.update(bluez.snapshot(), bluez.connection());
});
follow_airpods();
+ phone_audio.update(bluez.snapshot(), bluez.connection());
auto cap = bluez.capability();
debug::log(INFO, "Bluetooth: {} mode", tether::bluetooth::to_string(cap.mode));
for (const auto& reason : cap.reasons)
@@ -756,6 +762,7 @@ int main(int argc, char** argv) {
tether::bluetooth::g_bt_connections = nullptr;
connections.stop();
tether::bluetooth::g_bluez = nullptr;
+ tether::bluetooth::g_phone_audio = nullptr;
bluez.stop();
tether::g_wayland = nullptr;
tether::g_file_manager = nullptr;
diff --git a/src/gtk/settings_view.cpp b/src/gtk/settings_view.cpp
index fc0f6d6..0c119bf 100644
--- a/src/gtk/settings_view.cpp
+++ b/src/gtk/settings_view.cpp
@@ -39,6 +39,7 @@ namespace tether::ui {
GtkWidget* row_calls = nullptr;
GtkWidget* sw_calls = nullptr;
+ GtkWidget* sw_phone_audio = nullptr;
GtkWidget* sw_lock_away = nullptr;
@@ -155,6 +156,11 @@ namespace tether::ui {
daemon_send({{"command", "bt_set_calls"}, {"enabled", gtk_switch_get_active(widget) == TRUE}});
}
+ void on_phone_audio_toggled(GtkSwitch* widget, GParamSpec*, gpointer) {
+ daemon_send({{"command", "bt_set_phone_audio"},
+ {"route", gtk_switch_get_active(widget) == TRUE ? "here" : "phone"}});
+ }
+
void on_lock_away_toggled(GtkSwitch* widget, GParamSpec*, gpointer) {
daemon_send({{"command", "bt_set_lock_on_away"}, {"enabled", gtk_switch_get_active(widget) == TRUE}});
}
@@ -201,6 +207,12 @@ namespace tether::ui {
reinterpret_cast<gpointer>(on_calls_toggled),
status.value("calls_enabled", false));
+ // The live route wins, so a change made on the iPhone shows here too.
+ const std::string route = status.value("phone_audio_route", "unavailable");
+ set_switch(g_settings.sw_phone_audio,
+ reinterpret_cast<gpointer>(on_phone_audio_toggled),
+ route == "unavailable" ? status.value("phone_audio", "auto") == "here" : route == "here");
+
// Popups cover Wi-Fi file transfers too, so this one never depends on a bond.
const bool popups_on = status.value("desktop_popups_enabled", true);
set_switch(g_settings.sw_popups, reinterpret_cast<gpointer>(on_popups_toggled), popups_on);
@@ -396,6 +408,14 @@ namespace tether::ui {
_("Answer and place calls from the Calls tab."),
g_settings.sw_calls);
+ g_settings.sw_phone_audio = new_switch();
+ g_signal_connect(g_settings.sw_phone_audio, "notify::active", G_CALLBACK(on_phone_audio_toggled), nullptr);
+ add_row(experimental,
+ _("Play the iPhone's audio on this computer"),
+ _("Music and sounds from the iPhone play here. Off sends them back to the iPhone. Calls are "
+ "not affected."),
+ g_settings.sw_phone_audio);
+
sync_from_status();
}
diff --git a/src/tui/settings.cpp b/src/tui/settings.cpp
index 1c601a2..8fba35e 100644
--- a/src/tui/settings.cpp
+++ b/src/tui/settings.cpp
@@ -75,6 +75,14 @@ namespace tether::tui {
"bt_set_contacts_by_last_name",
"contacts_by_last_name",
false},
+ {"phoneaudio",
+ N_("Experimental"),
+ N_("Play the iPhone's audio on this computer"),
+ N_("Music and sounds from the iPhone play here. Off sends them back to the iPhone. Calls are not "
+ "affected."),
+ "bt_set_phone_audio",
+ "phone_audio",
+ false},
{"calls",
N_("Experimental"),
N_("Call control over Bluetooth"),
@@ -221,7 +229,14 @@ namespace tether::tui {
return nullptr;
}
- bool value(const Setting& setting) const { return status_.value(setting.status_key, setting.fallback); }
+ bool value(const Setting& setting) const {
+ // The live route wins, so a change made on the iPhone shows here too.
+ if (std::string(setting.id) == "phoneaudio") {
+ const std::string route = status_.value("phone_audio_route", "unavailable");
+ return route == "unavailable" ? status_.value("phone_audio", "auto") == "here" : route == "here";
+ }
+ return status_.value(setting.status_key, setting.fallback);
+ }
// Which rows can change depends on the bond, as in the GTK settings.
bool usable(const Setting& setting) const {
@@ -229,7 +244,7 @@ namespace tether::tui {
const bool bonded = !status_.value("device_address", std::string()).empty();
const bool bt_on = status_.value("enabled", true);
const std::string id = setting.id;
- if (id == "ancs" || id == "calls")
+ if (id == "ancs" || id == "calls" || id == "phoneaudio")
return available && bonded && bt_on;
if (id == "content")
return available && bonded && bt_on && status_.value("ancs_enabled", true);
diff --git a/test/test_bluetooth_objects.cpp b/test/test_bluetooth_objects.cpp
index 0dd4f31..cb5fb01 100644
--- a/test/test_bluetooth_objects.cpp
+++ b/test/test_bluetooth_objects.cpp
@@ -1,8 +1,12 @@
+#include "scoped_env.hpp"
#include <gtest/gtest.h>
+
#include <tether/bluetooth/objects.hpp>
+#include <tether/bluetooth/phone_audio.hpp>
#include <tether/packaging.hpp>
#include <tether/service.hpp>
+#include <filesystem>
#include <sstream>
#include <string_view>
@@ -999,3 +1003,70 @@ TEST(BluetoothObjects, StubBearerIsNotMistakenForAReading) {
EXPECT_FALSE(device.classic_state_known) << "a stub carries no Connected property to believe";
EXPECT_TRUE(device.classic_link_up()) << "with nothing to read, the aggregate is the only answer available";
}
+
+namespace {
+
+ // Stock WirePlumber roles put A2DP sink in the adapter's UUIDs.
+ constexpr const char* ADAPTER_SINK = R"({
+ '/org/bluez/hci0': {
+ 'org.bluez.Adapter1': {
+ 'Address': <'02:00:00:00:00:02'>,
+ 'Powered': <true>,
+ 'UUIDs': <['0000110B-0000-1000-8000-00805F9B34FB']>
+ }
+ }
+ })";
+
+ // The stream ConnectProfile(0000110a) opens, under one of the phone's endpoints.
+ constexpr const char* PHONE_STREAM = R"({
+ '/org/bluez/hci0/dev_02_00_00_00_00_01/sep3/fd0': {
+ 'org.bluez.MediaTransport1': {
+ 'UUID': <'0000110b-0000-1000-8000-00805f9b34fb'>,
+ 'State': <'active'>
+ }
+ }
+ })";
+
+} // namespace
+
+TEST(PhoneAudio, AnOpenSinkStreamMeansTheAudioPlaysHere) {
+ Payload p(join(join(ADAPTER_SINK, IPHONE_BONDED).c_str(), PHONE_STREAM).c_str());
+ auto objects = parse_managed_objects(p.v);
+
+ ASSERT_EQ(objects.transports.size(), 1u);
+ const auto* stream = objects.find_sink_transport("/org/bluez/hci0/dev_02_00_00_00_00_01");
+ ASSERT_NE(stream, nullptr);
+ EXPECT_EQ(stream->state, "active");
+ EXPECT_EQ(phone_audio_route(objects, "02:00:00:00:00:01"), "here");
+}
+
+TEST(PhoneAudio, NoStreamMeansTheAudioStaysOnThePhone) {
+ Payload p(join(ADAPTER_SINK, IPHONE_BONDED).c_str());
+ EXPECT_EQ(phone_audio_route(parse_managed_objects(p.v), "02:00:00:00:00:01"), "phone");
+}
+
+TEST(PhoneAudio, UnavailableWithoutTheSinkRole) {
+ Payload p(join(ADAPTER_FULL, IPHONE_BONDED).c_str());
+ EXPECT_EQ(phone_audio_route(parse_managed_objects(p.v), "02:00:00:00:00:01"), "unavailable");
+}
+
+TEST(PhoneAudio, RuleTurnsOffAutoConnectForThatPhoneOnly) {
+ const std::string rule = wireplumber_rule("02:00:00:00:00:01");
+ EXPECT_NE(rule.find(R"(api.bluez5.address = "02:00:00:00:00:01")"), std::string::npos);
+ EXPECT_NE(rule.find("bluez5.auto-connect = [ ]"), std::string::npos);
+}
+
+TEST(PhoneAudio, RuleRefusesAnythingButAnAddress) {
+ const auto dir = std::filesystem::temp_directory_path() / "tether-phone-audio-test";
+ std::filesystem::remove_all(dir);
+ tether::testing::ScopedEnv xdg("XDG_CONFIG_HOME", dir);
+ EXPECT_FALSE(install_wireplumber_rule("\"} ] } evil = ["));
+ EXPECT_FALSE(std::filesystem::exists(dir / "wireplumber"));
+}
+
+TEST(PhoneAudio, ChoiceSurvivesTheConfigFile) {
+ Config config;
+ config.phone_audio = PhoneAudio::Phone;
+ EXPECT_EQ(deserialize_config(serialize_config(config)).phone_audio, PhoneAudio::Phone);
+ EXPECT_EQ(deserialize_config("{}").phone_audio, PhoneAudio::Auto);
+}