demo / network-computer
Public
Copy of github.com/askrobots/network-computer (MIT): a desk you reach from anything. The original lives on GitHub.
GitStable demo
README: say this is a copy and where the original is
cde82c2
14 hours, 3 minutes ago
History
nc-audio-setup · 1.0 KB · 18 lines
| 1 | #!/bin/sh |
| 2 | # Virtual audio devices for network-computer. Runs after pulseaudio starts |
| 3 | # (nc-audio.service ExecStartPost), so it sees a fresh daemon every time. |
| 4 | # nc desktop output. nc-host streams its monitor to the client. |
| 5 | # nc-mic nc-host plays the client's microphone into this sink. |
| 6 | # nc-mic-in a source remapped from nc-mic's monitor, so every desktop app |
| 7 | # sees an ordinary microphone called "Phone microphone". |
| 8 | # nc-mic is separate from nc, so the phone never hears its own voice back. |
| 9 | set -e |
| 10 | for i in $(seq 1 40); do pactl info >/dev/null 2>&1 && break; sleep 0.25; done |
| 11 | pactl load-module module-null-sink sink_name=nc rate=48000 channels=2 \ |
| 12 | sink_properties=device.description=Network-computer-output |
| 13 | pactl load-module module-null-sink sink_name=nc-mic rate=48000 channels=2 \ |
| 14 | sink_properties=device.description=Phone-microphone-feed |
| 15 | pactl load-module module-remap-source master=nc-mic.monitor source_name=nc-mic-in \ |
| 16 | source_properties=device.description=Phone-microphone |
| 17 | pactl set-default-sink nc |
| 18 | pactl set-default-source nc-mic-in |