A Browser Tone Generator for 20 Hz–22 kHz, Four Waveforms, and WAV Export
I used to keep a desktop signal generator around for three small jobs: checking a pair of headphones, making a reference tone for a video, and sweeping up to see where my hearing dropped off. Those jobs do not need a rack unit. They need a stable oscillator, an honest frequency readout, and a way to export a WAV when I want a file instead of a live tab.
我过去常备一台桌面信号发生器来处理三项小任务:检查耳机、为视频制作参考音,以及通过频率扫描来查看我的听力衰减点。这些工作不需要机架式设备,只需要一个稳定的振荡器、准确的频率读数,以及在需要文件而非实时标签页时导出 WAV 的功能。
Tone Generator is a free, no-signup, in-browser signal generator built on the Web Audio API. Official range is a continuous 20 Hz to 22,000 Hz with sine, triangle, square, and sawtooth waves, 1 Hz coarse and 0.5 Hz fine tuning, and a stated THD under 0.002% in pure sine mode. It can export 44.1 kHz, 16-bit WAV in the browser. Nothing is uploaded. There is also a binaural mode (left/right offset for delta, theta, alpha, or beta difference beats — headphones required), plus extras the site describes as vacuum-tube saturation and tunable radio hiss.
Tone Generator 是一款基于 Web Audio API 构建的免费、无需注册的浏览器内信号发生器。其官方频率范围为 20 Hz 到 22,000 Hz 连续可调,支持正弦波、三角波、方波和锯齿波,具备 1 Hz 粗调和 0.5 Hz 微调功能,纯正弦波模式下的总谐波失真(THD)标称低于 0.002%。它可以在浏览器中导出 44.1 kHz、16-bit 的 WAV 文件,且不会上传任何数据。此外,它还提供双耳节拍模式(通过左右声道偏移产生 delta、theta、alpha 或 beta 差拍,需佩戴耳机),以及网站所描述的真空管饱和度和可调无线电噪声等附加功能。
Safety first, then the frequency. Sine waves at high levels are unpleasant and can be harmful. I start the volume down, I use headphones only when I mean to, and I never begin a hearing-style sweep at a loud setting. Official guidance for a personal high-frequency check: wear fairly flat-response headphones at a moderate level, sweep upward from about 8 kHz until the tone disappears. Many adults roll off somewhere around 14–18 kHz. That is a curiosity, not a medical audiogram. If you have pain, tinnitus, or a hearing concern, see a professional. A web page is not a clinic.
安全第一,频率第二。高音量的正弦波令人不适且可能造成伤害。我总是从低音量开始,仅在必要时佩戴耳机,且从不在高音量下进行听力扫描。个人高频检查的官方建议是:佩戴响应相对平坦的耳机,以适中的音量从约 8 kHz 开始向上扫描,直到听不到声音为止。许多成年人的听力会在 14–18 kHz 左右衰减。这仅供参考,而非医疗听力图。如果你感到疼痛、耳鸣或有听力方面的担忧,请咨询专业人士。网页不是诊所。
Binaural beats only exist as a difference between the ears, so use headphones. Whether they “do” anything for focus or sleep is a personal and scientific debate I will not settle here. The generator’s job is to produce the offset accurately.
双耳节拍仅存在于双耳之间的差异中,因此必须使用耳机。它们是否对专注力或睡眠有帮助,是一个我在此不予置评的个人及科学争议。该发生器的任务只是准确地产生这种偏移。
Everyday jobs I actually run: A4 = 440 Hz sine as a concert-pitch reference (ISO 16). If someone wants 432 Hz “Verdi” tuning for a session, I can set that too; I treat it as a pitch choice, not as mysticism. A 1 kHz tone when I am trying to loosen debris at a phone speaker grill, with the official caution to keep levels moderate and to brush gently — this is not a magic repair tool. Channel checks: a short sine in the left or right to confirm a cable or a pan setting. WAV export when I need a reference file in an editor, at 44.1/16, rather than leaving a tab running. I pick sine when I want a clean pitch, square or saw when I am checking how a speaker handles harmonics (at modest volume), and triangle when I want something in between. Fine tuning at 0.5 Hz is useful when I am matching a slightly off reference.
我日常实际执行的任务包括:将 A4 = 440 Hz 正弦波作为音乐会音高参考(ISO 16)。如果有人在录音时需要 432 Hz 的“威尔第”调音,我也可以设置;我将其视为音高选择,而非神秘主义。当我想清理手机扬声器格栅上的碎屑时,我会使用 1 kHz 的音调,并遵循官方建议保持适中音量并轻轻刷拭——这不是什么神奇的维修工具。声道检查:在左或右声道播放短促的正弦波以确认线缆或声像设置。当我在编辑器中需要参考文件时,我会导出 44.1/16 的 WAV 文件,而不是让标签页一直运行。当我需要纯净音高时会选正弦波,检查扬声器如何处理谐波时(在适中音量下)会选方波或锯齿波,而需要介于两者之间的声音时则选三角波。当需要匹配略有偏差的参考音时,0.5 Hz 的微调非常有用。
A five-minute headphone check I actually finish: Set sine, 440 Hz, low volume, confirm both cups. Jump to 1 kHz, then 8 kHz, then ease upward only if the level is still moderate. Stop when the tone fades or when I have learned enough. Export a 440 Hz WAV if I need it for a project, then close the tab so I do not leave an oscillator running under a muted window.
我实际完成的五分钟耳机检查流程:设置正弦波、440 Hz、低音量,确认双耳均有声音。跳转至 1 kHz,然后是 8 kHz,仅在音量适中时缓慢向上扫描。当声音消失或已获得足够信息时停止。如果项目需要,导出 440 Hz 的 WAV 文件,然后关闭标签页,以免在静音窗口下让振荡器持续运行。
What I do not use a web oscillator for: I do not use it as a medical device, a legal calibration source, or a way to “cleanse” a room. I do not leave square waves running at high volume to see “what a speaker can do.” I do not play difference beats at a baby, and I do not treat 22 kHz as a challenge. The range exists so you can work at the edges carefully, not so you can be reckless at the edges.
我不会将网页振荡器用于以下用途:我不会将其用作医疗设备、法律校准源或“净化”房间的工具。我不会在高音量下运行方波来测试“扬声器的极限”。我不会对婴儿播放差拍,也不会把 22 kHz 当作挑战。提供这个范围是为了让你能谨慎地在边缘频率工作,而不是让你在边缘地带鲁莽行事。
For video work, I export a short 440 or 1 kHz WAV, I fade both ends in the editor, and I keep the file in the project so a collaborator can use the same reference. For a quick cable test, I do not bother exporting. That split — file versus live tab — has stopped me from sending someone a link to a tab I already closed. Tone Generator is enough instrument for those modest jobs, especially because the WAV is created locally and no account is involved. Modest is the point. If you want a free, local generator for those jobs, open https://tonegen.online/, start quiet, and export the WAV only after the pitch is the one you meant.
对于视频工作,我导出一段简短的 440 Hz 或 1 kHz WAV 文件,在编辑器中对两端进行淡入淡出处理,并将文件保留在项目中,以便合作者使用相同的参考。对于快速的线缆测试,我则无需导出。这种文件与实时标签页的区分,避免了我向他人发送已关闭的标签页链接。对于这些简单的任务,Tone Generator 已经足够,特别是由于 WAV 是在本地创建且无需账户。简单正是其核心所在。如果你需要一个免费的本地发生器来处理这些工作,请打开 https://tonegen.online/,从低音量开始,并在确认音高无误后再导出 WAV。