askrobots / network-computer
Public
Your phone is the terminal. Stream a Linux/Mac desktop to an iPhone over WebRTC through NAT, with audio and input. Open source, single binaries.
Dan Quellhorst
Firefox policy: no WebRTC mDNS (a page using WebRTC made Firefox listen on UDP 5353)
a1d92f3
1 month, 3 weeks ago
History
whisper-bench.sh · 1.1 KB · 25 lines
| 1 | #!/bin/sh |
| 2 | # Benchmark whisper.cpp on a desk (run as root on it; writes /root/whisper-bench.log). |
| 3 | # Results from 2026-09-23 are in docs/DESKTOP.md. |
| 4 | set -e |
| 5 | exec > /root/whisper-bench.log 2>&1 |
| 6 | export DEBIAN_FRONTEND=noninteractive |
| 7 | apt-get -o DPkg::Lock::Timeout=600 install -y -q build-essential cmake git >/dev/null |
| 8 | cd /opt |
| 9 | [ -d whisper.cpp ] || git clone -q --depth 1 https://github.com/ggml-org/whisper.cpp |
| 10 | cd whisper.cpp |
| 11 | cmake -B build -DCMAKE_BUILD_TYPE=Release >/dev/null |
| 12 | cmake --build build -j 4 --config Release >/dev/null |
| 13 | for m in tiny.en base.en small.en; do sh ./models/download-ggml-model.sh $m >/dev/null 2>&1; done |
| 14 | espeak-ng -s 150 -w /tmp/w.wav "Open Firefox and search for the weather in Chicago tomorrow." |
| 15 | ffmpeg -loglevel error -y -i /tmp/w.wav -ac 1 -ar 16000 /tmp/w16.wav |
| 16 | echo "clip: $(ffprobe -v error -show_entries format=duration -of csv=p=0 /tmp/w16.wav) s" |
| 17 | for m in tiny.en base.en small.en; do |
| 18 | for t in 4; do |
| 19 | s=$(date +%s.%N) |
| 20 | txt=$(./build/bin/whisper-cli -m models/ggml-$m.bin -f /tmp/w16.wav -t $t -nt -np 2>/dev/null | tr -s ' \n' ' ') |
| 21 | e=$(date +%s.%N) |
| 22 | echo "$m threads=$t: $(echo "$e - $s" | bc) s ->$txt" |
| 23 | done |
| 24 | done |
| 25 | echo DONE |