Quiet Car Voice

A quiet electric car must make a warning sound at low speed. Here you can move the speed and hear the sound this project designs.

Project repository

What runs here and what is a recording

Runs in this browser

  • The pitch law and the level law of the sound engine, ported from the project code in src/dsp.
  • The speed, gear and ready controls, and the market speed band that decides when the engine is silent.
  • The design reader, the market check and the spectrum meter.
  • The fixed two tone backup sound that the guard plays.

Recording from the QNX guest

  • The guard taking over when the sound engine stops. It needs the QNX guest.
  • Process priorities and the start order at boot.
  • The market capture runs and the sound device run.
  • Every recorded timing was measured on QEMU test machines. The date and the file in the repository are next to each one.

No sound plays until you press a button. This page makes no outside requests, sets no cookies and stores nothing.

Runs in this browser

Speed

5km/h
0204060 km/h
Runs in this browser

Spectrum

Design preview rendered in this browser
20 Hz160 Hz1 kHz6.3 kHz20 kHz

dBFS measures digital level relative to full scale.

Runs in this browser

Pitch

Unavailable
Digital levelUnavailable

Layers at this speed

Runs in this browser

Drive state

Sound is off.

Vehicle record
Engine at this state
Guard
Needs the QNX guest. See the recorded runs below.

The volume slider is only for your ears. It is not part of the design. The design levels are digital levels relative to full scale.

Runs in this browser

Sound design

Edit the text and press the button. The same reader and checker as the project run on it. A refusal keeps the design in use.

Runs in this browser

Loading

Rows marked Open need a source check. The project does not claim legal certification.

Tone runs in this browser. The takeover is a recording.

Backup tone

The guard keeps its own sound stream open. If the sound engine stops while a warning is needed, the guard plays a fixed tone of 500 Hz and 1000 Hz together. The button plays that tone from the same table as the guard code (src/guard/watch.h).

Backup tone is off.

Playing it here shows what the tone sounds like. It does not show the takeover. The takeover runs on the QNX guest, and its recorded result is the first block below.

Recorded runs on QEMU test machines

Everything in this part is copied from the project repository. It was measured on QEMU test machines, with signal replay and no car. No physical speaker was used. Each block names its date and its file.

Recording

Guard takeover when the sound engine stops

Result on a QEMU test machine: backup sound within two sound blocks (10.67 ms) in 1000 of 1000 forced engine stops. The time measured is the longest from the last engine block to the first backup block, read from the time stamps of the written sound files.

Run on a QEMU test machineFileForced engine stopsLongest time, last engine block to first backup blockLimit
2 Dec 2026, 7:23 PM to 7:24 PM, main 2fff86c, the only active guest was the test's ownevidence/t5-quiet.txtcompleted=10006004253 ns (6.00 ms)10666666 ns
Whole test run at commit b6dc279, 4 Dec 2026, 12:52 AM to 1:02 AM, 1 active guestevidence/gate-b6dc279/T5.txtcompleted=10005658190 ns10666666 ns

Same runs, backup tone bands: 500 Hz at -18.0617 dBFS and 1000 Hz at -18.0622 dBFS. The test line reads T5 PASS.

At 25 km/h a car moves 7.4 cm in 10.67 ms. Source for the distance: evidence/problem-size.md.

Recording

Guard at real time priority 62, both processors loaded

Two runs, each in one fresh QEMU emulator guest on a shared desktop PC. The record gives a date for run 2 only: 3 Dec 2026, 3:53 AM to 3:55 AM, with 13 guests active on the PC before boot. File: evidence/t11-priority.md. The record also holds a control run with the guard at normal priority.

Run on a QEMU test machineGuardTakeovers within 10.67 msLongest captured gapDistance at 25 km/h
1Shipped FIFO priority 62998 of 1,00012.322 ms8.56 cm
2Shipped FIFO priority 621,000 of 1,0006.011 ms4.17 cm
Recording

Start order and priorities at boot

On a QEMU test machine, a script starts the vehicle service, then the guard, then the engine. Output of the whole test run at commit b6dc279, 4 Dec 2026, 12:52 AM to 1:02 AM. File: evidence/gate-b6dc279/T12.txt. A restart on the same disk is in evidence/t12-boot-order.md.

Boot log:
vehicle
guard
engine
vehicle priority 60
guard priority 62
engine priority 60
T12 PASS: service launch order and priorities
Recording

Market captures, beside this browser

The market check ran on a QEMU test machine: 12 captures of the engine sound and 2 studio sheets, line T6 PASS: 12 captures and 2 studio sheets. Whole test run at commit b6dc279, 4 Dec 2026, 12:52 AM to 1:02 AM. File: evidence/gate-b6dc279/T6.txt. The captures used presets/un.design and presets/us.design.

The last column is computed in this page, now, with the ported code. The recorded run measured a capture from the guest. This page measures a window rendered here, so the last digits can differ. A row matches when both values are within 0.1 Hz and 0.1 dB.

MarketStateRecorded on a QEMU test machineComputed in this browserMatch
Recording

The guard follows the market in use

On a QEMU test machine the studio changed the market, and the guard followed each engine session. Whole test run at commit b6dc279, 4 Dec 2026, 12:52 AM to 1:02 AM. File: evidence/gate-b6dc279/T10.txt.

T10 stopped at 25 km/h, expected quiet, guard wrote 0 bytes
T10 follow at 20 km/h, expected sound, guard wrote 80896 bytes
T10 stopped at 31 km/h, expected quiet, guard wrote 0 bytes
T10 follow at 25 km/h, expected sound, guard wrote 80896 bytes
T10 stopped at 25 km/h, expected sound, guard wrote 80896 bytes
T10 PASS: the guard follows each engine session after the studio changes market
Recording

Sound device run

The engine and the guard each play through the shared sound driver on a QEMU test machine. Whole test run at commit b6dc279, 4 Dec 2026, 12:52 AM to 1:02 AM. File: evidence/gate-b6dc279/T9.txt.

engine sound sink overruns=0 underruns=0
guard sound sink overruns=0 underruns=0
T9 5 km/h pitch: 240 and 240 Hz
T9 10 km/h pitch: 252 and 252 Hz
T9 15 km/h pitch: 264 and 264 Hz
T9 20 km/h pitch: 276 and 276 Hz
T9 backup: 500 and 1000 Hz on both channels. Longest handover silence: 1 frames
T9 PASS

Recorded sound

A saved recording from a QEMU test machine, 4 Dec 2026, 2:48 AM. The first 8 seconds are Soft glass at 5 km/h, at 440 Hz. After that, City hum at 5 km/h, at 330 Hz. It is 17.9 seconds, 44100 Hz stereo. Source: evidence/first-run.md.

Recording

Whole test run

Whole test run at commit b6dc279 on QEMU test machines, 4 Dec 2026, 12:52 AM to 1:02 AM: 12 of 12 rows pass. Table and outputs: evidence/gate-b6dc279.md.

Limits

Testing used QEMU guests with signal replay. No car or physical speaker was tested. Digital captures do not measure the sound level around a car. Some market rules still need source checks. No legal certification is claimed.

This page asks the browser for a 48000 Hz audio context, which is the repository's own rate. What you hear also depends on your device and its volume.

Project repository, Apache License 2.0.