{"inline_daily":{"tone-generator":{"freq_label":"Frequency","freq_slider":"Frequency (logarithmic scale)","octave_down":"−1 octave","octave_up":"+1 octave","range_note":"Frequency limited to 20 Hz–20,000 Hz: using {{value}} Hz.","presets_label":"Common frequencies","start":"Start","stop":"Stop","sweep_running":"Sweep in progress","safety_title":"Protect your hearing","safety_text":"Start at a low volume and raise it in small steps. The WHO states that 80 dB is safe for up to 40 hours a week but 90 dB for only 4 hours, and advises keeping devices below 60% of maximum volume.","high_warning":"At very high frequencies a tone can seem faint or inaudible while being loud: do not raise the volume to hear it.","wave_label":"Waveform","wave":{"sine":"Sine","square":"Square","sawtooth":"Sawtooth","triangle":"Triangle"},"volume_label":"Volume","volume_hint":"Starts at 25% with a fixed cap; square and sawtooth waves are attenuated.","pan_label":"Pan","pan_left":"Left","pan_center":"Center","pan_right":"Right","pan_value_left":"Left {{pct}}","pan_value_right":"Right {{pct}}","sweep_title":"Frequency sweep","sweep_from":"From","sweep_to":"To","sweep_duration":"Duration","sweep_mode":"Progression","sweep_log":"Logarithmic (equal time per octave)","sweep_linear":"Linear","sweep_start":"Start the sweep","disclaimer":"This is not a hearing test: headphones and speakers are not calibrated, so any result is only indicative and does not replace an audiologist or ENT doctor.","ios_note":"On iPhone or iPad, if you hear nothing, turn silent mode off."}},"docs_daily":{"tools":{"tone-generator":{"content":{"title":"Tone generator: waveforms, frequency sweep and safe volume","intro":"The tool plays a tone between 20 Hz and 20 kHz with a logarithmic slider where each decade takes a third of the travel. The volume starts low and stays capped: the WHO puts safe listening at 80 dB for up to 40 hours a week.","details":"
A Web Audio oscillator produces the chosen waveform. The sine is a pure tone; the square adds odd harmonics, the sawtooth all harmonics, the triangle weaker odd harmonics. Square and sawtooth are attenuated to keep a similar perceived volume. Panning sends the sound from 100% left to 100% right. 30 ms fades at start and stop prevent clicks.
Slider position p, from 0 to 1,000, gives f = 20 × 1,000p/1000 Hz: the middle of the travel is √(20 × 20,000) ≈ 632 Hz. The logarithmic sweep follows f(t) = f1 × (f2/f1)t/T and spends equal time on each octave; the linear sweep follows f1 + (f2 − f1) × t/T.
Sweep from 20 Hz to 20,000 Hz in 10 s: logarithmic, each decade lasts 3.33 s and the tone is at 632 Hz after 5 s; linear, it is already at 10,010 Hz after 5 s and spends half the time above 10 kHz. One octave doubles the frequency: 440 Hz becomes 880 Hz. The highest possible frequency is half the sample rate, 22,050 Hz at 44,100 Hz; the tool stays below 20 kHz.
The WHO states that 80 dB is safe for up to 40 hours a week but 90 dB for only 4 hours, and advises keeping devices below 60% of maximum volume. A very high tone can seem faint while being loud: do not raise the volume to hear it. Headphones and speakers are not calibrated, so the tool does not measure hearing.
Sources and dates: WHO, Deafness and hearing loss: safe listening (6 March 2026) (checked 29/10/2026)
"},"faqs":[{"question":"How do I test speakers with a tone generator?","answer":"Run a logarithmic sweep from 20 Hz to 20,000 Hz over 10 s at low volume, so each decade lasts 3.3 s. Listen for rattles or dropouts, then return to the suspect frequency with the slider. Panning lets you test left and right separately."},{"question":"What is the difference between a logarithmic and a linear sweep?","answer":"A logarithmic sweep spends equal time on each octave: from 20 Hz to 20 kHz in 10 s it reaches 632 Hz halfway. A linear sweep rises by the same number of hertz every second: it is already at 10,010 Hz after 5 s and spends half the time above 10 kHz."},{"question":"Can high-frequency sound damage hearing?","answer":"The risk depends on level and duration, whatever the frequency. The WHO states that 80 dB is safe for up to 40 hours a week but 90 dB for only 4 hours. A very high tone can seem faint while being loud: do not turn up the volume to hear it."},{"question":"What is the highest frequency a browser can play?","answer":"Half the sample rate: 22,050 Hz at 44,100 Hz and 24,000 Hz at 48,000 Hz. The tool stops at 20,000 Hz and lowers the limit further if the sound card runs at a lower rate."}]}}}}