Basic technology of Web Audio API sine wave oscillation for upper limit measurement of audible frequency
This mechanism is a system that utilizes the Web Audio Application Programming Interface, an advanced signal processing environment that operates directly on a web browser, to achieve highly accurate upper limit measurements of audible frequencies.
The core technology is the control of pure sine wave oscillation using an oscillator node.
When testing human hearing, the problem with using waveforms that contain overtones is that the overtones are detected instead of the fundamental tone, making it impossible to determine the exact audible limit.
To solve this problem, this system theoretically generates a sine wave with only a single frequency component, and outputs a clean signal that eliminates unnecessary harmonic distortion to the utmost.
The frequency band of the generated signal is specialized in the high frequency range from 8 kHz to 22 kHz, which is near the upper limit of the normal human hearing range.
Although this band is not often used in everyday conversation, it plays an extremely important role in perceiving the spaciousness of a space and the minute nuances of sound, and it is also the area that is most affected by aging.
High-precision timer control synchronized with the browser's internal clock makes it possible to instantly transition to the specified frequency with millisecond accuracy, establishing a foundation that allows accurate auditory testing to be performed without depending on the environment while minimizing the response delay of the tester.
Age-related hearing loss mechanism and frequency acceptance limit analysis of hair cells
The cochlea, an organ in the human inner ear, contains regularly arranged hair cells that convert sound vibrations into electrical signals and transmit them to the brain.
These hair cells have a clear frequency localization, with the bottom part closer to the entrance being responsible for higher frequencies, and the further apex being responsible for lower frequencies.
In the early stages of age-related hearing loss, a physiological characteristic is that the hair cells at the base of the cochlea, which are closest to the entrance of sound and are constantly exposed to strong sound pressure, gradually become detached or damaged.
As a result, a phenomenon occurs in which the ability to detect high frequencies deteriorates markedly with age, although hearing ability in the low and middle ranges is maintained.
The ear age estimation calculation logic in this system is built on the basis of this medical statistical data of physiological changes.
Specifically, we have adopted a standard hearing fluctuation curve as the baseline, which states that people in their twenties with normal hearing can detect high-frequency sounds of around 17 to 18 kilohertz, but in their thirties the limit gradually decreases from 15 to 16 kilohertz, in their forties from 13 to 14 kilohertz, and in their fifties from 11 to 12 kilohertz.
By comparing the highest frequency value that the user can sense with this standard fluctuation curve, it back calculates the average value for which age group the current functional state of hair cells corresponds to, and presents it as a precise estimate.
Stepwise sweep oscillation model and high frequency threshold determination algorithm
In order to determine the precise audible upper limit, this system introduces a unique stepwise sweep oscillation model. With linear sweep and logarithmic sweep methods that continuously change the frequency, a non-negligible error occurs in the measurement results due to the reaction speed of the user when identifying the moment when the sound disappears.
Therefore, we adopted a step oscillation method in which the frequency rises or falls while repeating oscillation and rest for a certain period of time at each preset frequency step.
In the initial settings, the general limit range is searched in large steps of 1 kilohertz, and when the limit range is reached, it is switched to minute steps of 500 or 100 hertz, reducing measurement time and improving accuracy.
The user only needs to make a binary decision as to whether or not the sound was heard at each step, reducing cognitive load and identifying an accurate threshold.
The decision algorithm incorporates an automatic bracketing method that combines descending and ascending methods, moving back and forth between audible and inaudible frequencies to calculate the final audible threshold convergence value.
This threshold search process is all processed asynchronously in client-side memory, so there is no measurement delay due to communication lag with the server, and accurate synchronization of user input and oscillation state in milliseconds is guaranteed.
Safety limiter and sound pressure control function that prioritizes hearing protection
High-frequency sound waves have short wavelengths and travel in a straight line, so they have the physical characteristic that they tend to impart strong energy to the eardrum and inner ear even at the same sound pressure level.
Furthermore, when attempting to hear sounds at the very edge of audibility, users tend to unconsciously turn up the volume of their devices to near maximum volume, and when a sound within the audible range is suddenly played back, there is a risk of acute transient threshold shifts and permanent acoustic trauma to the auditory organs.
In order to prevent such acoustic disasters, this system incorporates a strict safety limiter mechanism. A combination of a dynamics compressor node and a gain node placed at the final output stage of the audio context imposes an absolute amplitude limit in the digital domain to ensure that the maximum output level from the hardware does not exceed the equivalent sound pressure of 80 decibels under any circumstances.
In addition, in order to prevent click and pop noises that tend to occur when switching frequency steps or starting and ending oscillation, we have implemented waveform control at zero crossing points and an envelope generator that automatically inserts several milliseconds of fade-in and fade-out processing.
Thorough sound pressure management has been implemented with user safety as the top priority, to prevent startle reactions due to sudden changes in volume and to minimize auditory fatigue even during long measurements.
Implementation structure for instant visualization of audible range and calculation of ear age estimation
The result feedback, provided the moment the user completes a measurement, is backed by calculation modules and drawing engines that run instantly in the local environment.
The determined high-frequency audibility limit value is passed to internal calculation logic and assigned to an age-specific average frequency threshold attenuation function.
This function does not use simple linear interpolation, but uses logarithmic curve approximation that takes into account the acceleration of age-related hearing loss.
After calculating the estimated age with precision below the decimal point from the input frequency, it is rounded to a visually easy-to-understand integer value and output.
At the same time, the relationship between the generated age estimate and the measured upper audible frequency is immediately rendered as an on-screen audible range graph.
This graph highlights the user's current audible range on a logarithmic axis from the standard human audible range of 20 Hz to 20,000 Hz, making it possible to visually understand the percentage of high frequencies lost.
All calculation and drawing processes are completed within the user's device via web assembly and an advanced JavaScript engine, so auditory data, which can be considered personal health information, is not sent to an external server, resulting in an implementation structure that balances complete privacy protection and immediacy.
Practical examples of high-frequency audiometry and application guidance for sound engineers
The purpose of this tool is not only to check ear age to satisfy the curiosity of general users, but also to provide extremely practical value to professionals involved in the audio industry.
For example, for sound engineers who produce and mix music on a daily basis, regularly monitoring how sensitive their ears are to high frequency bands is essential for quality control of their work.
When making minute adjustments in frequencies above 10 kilohertz, such as the lingering sound of cymbals or the airiness of vocals, if you don't accurately understand your own hearing limits, you run the risk of ending up with an unnatural mix due to excessive equalization.
By using this tool to calibrate your ears before starting work, you can perform objective sound processing based on your current hearing condition.
It can also be used as a reference when setting up an event venue to check whether high-frequency noise generated by specific equipment will cause discomfort to young audience members.
By keeping a continuous measurement record, it also serves as an ear health management guide for early detection of slight hearing loss due to daily exposure to loud noises, and for taking hearing protection measures such as limiting the amount of time you use headphones.
With its high-definition sine wave oscillation and robust safety design, this system serves as an advanced measurement tool for all levels of hearing diagnostic needs, from hobbyist to professional.