WWV/WWVH emulator by Phil Karn, KA9Q, June 2026
This started as a quick hack but ended up fully functional. Without redirection, the program writes directly to the system sound device synchronized to the local system clock, which in turn should track an external reference with the Network Time Protocol, NTP, or a local GPS receiver.
When redirected, wwvsim generates raw 16-bit linear PCM mono audio at a 48 kHz sample rate on standard output.
The WWV audio program is generated by default. With the -H option, the WWVH audio program is generated. Run wwvsim with a bogus argument, e.g., 'wwvsim -?' to get a complete list of command line arguments.
All the original voice announcements are now used; no speech synthesizer is needed. The cadence may still be slightly off; I'm still tweaking this.
The speech clips were obtained from "https://github.com/kalafut/wwv.git" in .mp3 format. For convenient use 'make' converts them to raw mono 16-bit PCM at 48 kHz using sox. The first debian packaging of this version constructs the raw files from the .mp3 files at build time and includes them in the .deb package; this will eventually move to the package installer to make the .deb file smaller.
This program is really a novelty; don't use it for anything really precise. That's what the original WWV and WWVH are for!