Patent ID: 7756280

Claim:
An audio processing system for automatically adjusting volume, the system comprising: a command input unit for generating a playing command and an adjusting command in response to operational inputs; a storage unit for storing a plurality of audio files and a default gain value; a processing unit for fetching one audio file from the plurality of audio files in response to the playing command; a decoding unit for decoding the fetched audio file to generate digital audio signals; a digital/analog converter for converting the digital audio signals to analog audio signals; a microphone for collecting ambient noises and generating corresponding analog noise signals; an analog/digital converter for converting the analog noise signals to digital noise signals; and a gain managing unit comprising: a gain adjusting module for adjusting the default gain value stored in the storage unit to an adjusted gain value, updating the default gain value with the adjusted gain value, and signaling a gain amplifier to amplify the analog audio signals converted by the digital/analog converter with the adjusted gain value, in response to the adjusting command; a noise processing module for calculating a noise level of the digital noise signals, storing the noise level as a reference noise level, and periodically calculating a new noise level of the digital noise signals within a predetermined time period, and dividing the new noise level by the reference noise level to obtain a ratio of the new noise level to the reference noise level; an audio processing module for sampling the digital audio signals generated by the decoding unit to obtain a plurality of amplitude values, and periodically calculating an audio energy value of the predetermined time period according to the amplitude values sampled within the predetermined time period and the default gain value; and a gain calculating module for multiplying the audio energy value by the ratio of the new noise level to the reference noise level to obtain a reference audio energy value, calculating a gain value according to the reference audio energy value and the default gain value, and updating the default gain value with the gain value; wherein the gain adjusting module signals the gain amplifier to amplify the analog audio signals converted by the digital/analog converter with the gain value.