1. Field of the Invention
The present invention relates to an audio processing system with function of automatic gain control and method thereof, especially to an audio processing system with function of automatic gain control according to a genre type of an audio file and method thereof.
2. Description of Related Art
Studies show that an increased pace of living makes people more intense. Therefore, enjoying music becomes one of many relaxing activities for people. Apparently, the relaxing activity of enjoying music is seen everywhere whether during work, commuting, or resting.
According to an international standard, each audio file includes a tag for storing characteristic information of the audio file. For example, an MP3 file has a tag, namely an ID3, which stores title, artist, album, genre type, and other aspect of the MP3 file. With respect to the genre type, it is used for indicating a style of the audio file, for example, country, dance, disco, rock, jazz, metal, and so on. Audio signals of different genre types have different beat and/or tempos, thereby after being amplified by an identical gain value, the audio signals of different genre types have different audio energies. In order that a listener may enjoy music most comfortably, audio signals of audio files need to be amplified by the gain amplifier with different gain values. However, audio players available in the market can't automatically adjust a default gain value of the gain amplifier. So the listener needs to manually adjust the default gain value of the gain amplifier, an annoying task that should be avoided.
Therefore, a heretofore unaddressed need exists in the industry to overcome the aforementioned deficiencies and inadequacies.
In order to solve said problems, the present invention provides an audio processing system with function of automatic gain control and method thereof. The audio processing system automatically adjusts a current gain value of the gain amplifier according to a genre type of an audio file, thereby audio energy of audio signals amplified by the gain amplifier is proper to a user's hearing.
The audio processing system with a function of automatic gain control, includes a storage unit, a processing unit, a decoding unit, a digital/analog converter and a gain managing unit. The storage unit stores a plurality of audio files and a gain setting table. The gain setting lists a plurality of genre types with a genre gain value of the genre type. The processing unit fetches an audio file from the storage unit after receiving a playing command to play the audio file. The decoding unit decodes the audio file and generates digital audio signals. The digital/analog converter converts the digital audio signals to analog audio signals. The gain managing unit includes an identifying module, an obtaining module, a gain adjusting module and an updating module. The identifying module reads a genre type of the audio file fetched from a tag of the audio file. The obtaining module reads a genre gain value of the genre type from the gain setting table. The gain adjusting module signals a gain amplifier to amplify the analog audio signals received from the digital/analog converter by the genre gain value read. The updating module updates the default gain value with the genre gain value.
The audio processing system with a function of automatic gain control, includes a storage unit, a processing unit, a decoding unit, a digital/analog converter and a gain managing unit. The storage unit stores a plurality of audio files and a gain setting table. The gain setting lists a plurality of genre types with a genre gain value of the genre type. The processing unit fetches an audio file from the storage unit after receiving a playing command to play the audio file. The decoding unit decodes the audio file and generates digital audio signals. The digital/analog converter converts the digital audio signals to analog audio signals. The processing unit includes an identifying module, an obtaining module, a gain adjusting module and an updating module. The identifying module reads a genre type of the audio file fetched from a tag of the audio file. The obtaining module reads a genre gain value of the genre type from the gain setting table. The gain adjusting module signals a gain amplifier to amplify the analog audio signals received from the digital/analog converter by the genre gain value read. The updating module updates the default gain value with the genre gain value.
The automatic gain control method of an audio processing system includes the steps of: receiving a playing command to play an audio file; reading a genre type of the audio file from a tag of the audio file; reading a genre gain value of the genre type from a gain setting table stored in a storage unit; decoding the audio file and generating digital audio signals; converting the digital audio signals to analog audio signals; and signaling a gain amplifier to amplify the analog audio signals by the genre gain value.
Other systems, methods, features, and advantages will be or become apparent to one with skill in the art upon examination of the following drawings and detailed description. It is intended that all such additional systems, methods, features, and advantages be included within this description, be within the scope of the present invention, and be protected by the accompanying claims.
The automatic gain control function of the present invention can be applied in a car stereo system or portable electrical devices such as an MP3 player, an electronic book, a mobile telephone, and so on. The following detailed descriptions of preferred embodiments are made with reference to the attached drawings.
The storage unit 12 stores a plurality of audio files, a default gain value, a decoding program, and a gain setting table. The gain setting table lists (or has) a plurality of genre types, with a corresponding genre gain value for each of the genre types. The storage unit 12 can be a flash storage, a hard disk, and the like. The processing unit 11 controls components of the system 10. The processing unit 11 can be a digital signal processor (DSP), a central processing unit (CPU), and the like.
The command input unit 18 generates control commands after receiving operational inputs. The control commands include a playing command to play an audio file, and an adjusting command to adjust the default gain value stored in the storage unit 12. After receiving the playing command, the processing unit 11 fetches the audio file to be played from the storage unit 12.
The decoding unit 13 invokes the decoding program stored in the storage unit 12, decodes the audio file fetched by the processing unit 11, generates digital audio signals and sends the digital audio signals to the D/A converter 14. The D/A converter 14 converts the digital audio signals generated by the decoding unit 13 to analog audio signals.
The gain amplifier 15 amplifies the analog audio signals converted by the D/A converter 14 according to the default gain value stored in the storage unit 12. The sound output device 16 produces sounds corresponding to the analog audio signals amplified. The sound output device 16 can be an earphone or a speaker.
The audio processing system 10 further includes a gain managing unit 17 integrated with the processing unit 11. Referring to
In step S31, the obtaining module 171 reads the gain setting table stored in the storage unit 12. In step S32, the obtaining module 171 detects whether the gain setting table lists the genre type of the audio file. If the gain setting table does not list the genre type, in step S36, the adding module 172 inserts the genre type into the gain setting table, and then the procedure goes to step S37.
In step S32, if the gain setting table lists the genre type, in step S33, the obtaining module 171 determines whether the gain setting table have a genre gain value of the genre type.
If the gain setting table does not list the genre gain value of the genre type, in step S37, the obtaining module 171 reads the default gain value stored in the storage unit 12. In step S38, the adding module 172 inserts the default gain value into the gain setting table as the genre gain value of the genre type, and then the procedure goes to step S35.
In step S33, if the gain setting table lists the genre gain value of the genre type, in step S34, the obtaining module 171 reads the genre gain value of the genre type. In step S35, the gain adjusting module 173 signals the gain amplifier 15 to amplify the analog audio signals received from the D/A converter 14 by the genre gain value.
In step S39, the updating module 175 updates the default gain value with the genre gain value of the genre type. The step S30 to step S39 is performed recursively until the audio signal processing system 10 is turned-off.
In step S43, the identifying module 170 reads the genre type of an audio file being played from the tag of the audio file. In step S44, the obtaining module 171 reads the genre gain value of the genre type from the gain setting table.
In step S45, the calculating module 174 assigns a weight value respectively to the genre gain value and the adjusted gain value, multiplies the genre gain value and the adjusted gain value by the corresponding weight value assigned, thereby obtaining two products, and sums the two products to obtain an integrated gain value.
In step S46, the updating module 175 updates the genre gain value of the genre type in the gain setting table with the integrated gain value. In an alternative embodiment, the updating module 175 directly updates the genre gain value of the genre type in the gain setting table with the adjusted gain value.
Therefore, referring to
It is understood that the invention may be embodied in other forms without departing from the spirit thereof. Thus, the present examples and embodiments are to be considered in all respects as illustrative and not restrictive, and the invention is not to be limited to the details given herein.
Number | Date | Country | Kind |
---|---|---|---|
200510101240.1 | Nov 2005 | CN | national |