Detailed Description
In order to better understand the technical content of the present invention, the following description is given by way of specific preferred embodiments.
Referring to fig. 1, an architecture diagram of an electronic device according to the present invention is shown.
In the present embodiment of the invention, the electronic device 1 may be, for example, but not limited to, a notebook computer, a tablet computer, a smart phone, or other electronic devices with operation processing function. A sound playing device (speaker) having a central processing unit, or other processor, for example, may also be used as the electronic device 1 of the present embodiment. The electronic device 1 includes an equalizer 11, a gain value setting module 20, a storage module 30, an equalizer adjusting module 40, and the like. An equalizer 11 is provided within the audio processing module 10. Specifically, the audio processing module 10 may store software of the equalizer 11, or firmware provided with the equalizer 11, or a combination thereof, so that the equalizer 11 is provided in the audio processing module 10. By adjusting the gain value setting of the equalizer 11, the gain value of the sound at different frequencies can be adjusted by the audio processing module 10. For example, if the gain value of 100 Hz (the designated frequency) is increased to 10dB, the volume of the output sound at 100 Hz can be increased by 10dB. Since the equalizer 11 is a conventional and common sound output adjusting tool, its structure and principle are well known to those skilled in the art, and thus will not be described herein.
The gain value setting module 20 is used for setting a volume gain value list 31 stored in the storage module 30. The volume gain value list 31 may be a default gain value of the gain value setting module 20, or may be set or adjusted by the gain value setting module 20 for the user. The volume gain value list 31 may include a plurality of volume values, which are respectively a first volume value to an nth volume value, and the volume represented by the first volume value to the nth volume value increases. Each of the volume values includes a set of correction parameters including a plurality of compensation gain values corresponding to a plurality of target frequencies, respectively. When the volume is smaller, the gain setting module 20 increases the volume of the low frequency sound and decreases the volume of the high frequency sound. As shown in the following table:
The volume gain value list 31 includes the volume values from the first volume value to the nth volume value, for example, represented directly by the volume scales 0 to 10 of the electronic device 1, where the volume scale 0 is the smallest sound, i.e. the first volume value, and the volume scale 10 is the largest sound, i.e. the nth volume value. Therefore, in the present embodiment, the first to nth volume values may respectively represent 11 volumes of different magnitudes of the electronic device 1, and each volume value and each frequency of 100Hz, 1KHz, and 10KHz have corresponding compensation gain values. The volume gain value list 31 shows that the compensation gain values are between-10 and 10, so that it is possible to increase or decrease the volume of a certain frequency. When the target frequencies are less than or equal to 100Hz, the compensation gain values corresponding to the target frequencies are between 0 and 10. When the target frequencies are greater than or equal to 10KHz, the compensation gain values are between-10 and 0, and the compensation gain value with the target frequency of 1KHz is not adjusted. It should be noted that the above-mentioned compensation gain values of the volume gain value list 31 are only for illustration, the invention is not limited to adjusting the frequencies of 100Hz, 1KHz and 10KHz, and the invention is not limited thereto, and the target frequencies of less than 100Hz or the target frequencies of more than 10KHz can be synchronously adjusted. When the volume gain value list 31 is set, only some volume values may be set, for example, only the maximum volume value, the minimum volume value, and the middle volume value are set, and the compensation gain values of the remaining volume values are calculated by interpolation.
The storage module 30 may be a fixed or removable non-transitory computer readable storage medium including, but not limited to, random access memory (random access memory, RAM), read-only memory (ROM), flash memory, optical disk, or the like, or a combination thereof, or using analog circuit design. The storage module 30 stores the volume gain value list 31 set by the gain value setting module 20. The equalizer adjustment module 40 is electrically connected to the storage module 30 and the equalizer 11. The equalizer adjustment module 40 includes a volume detection unit 41, a parameter search unit 42, and a parameter setting unit 43. The volume detection unit 41 is used for obtaining a volume signal of the electronic device 1. In an embodiment of the invention, the volume detecting unit 41 directly detects a current volume scale of the electronic device 1 to obtain the volume signal, but the invention is not limited thereto.
The parameter searching unit 42 reads the volume gain value list 31 according to the volume signal to obtain the corresponding set of correction parameters. Finally, the parameter setting unit 43 is configured to adjust the gain setting of the equalizer 11 for the sound at different frequencies according to the set of correction parameters obtained by the parameter searching unit 42.
It should be noted that the modules of the electronic device 1 may be configured by means of hardware devices, software programs combined with hardware devices, firmware combined with hardware devices, etc., for example, a computer program product may be stored in a computer readable medium for reading and executing to achieve the functions of the present invention, but the present invention is not limited to the above-mentioned methods. In addition, this embodiment is only illustrative of the preferred embodiments of the present invention, and all possible variations and combinations are not described in detail for avoiding redundant description. However, it will be appreciated by those of ordinary skill in the art that the various modules or elements described above are not necessarily all necessary. And other more detailed existing modules or elements may be included for practicing the invention. Each module or element may be omitted or modified as desired, and no other module or element may be present between any two modules.
Next, please refer to fig. 2, which is a flowchart illustrating steps of an equalizer adjustment method according to the present invention. It should be noted that, although the equalizer adjustment method of the present invention is described below by taking the electronic apparatus 1 as an example, the equalizer adjustment method of the present invention is not limited to the electronic apparatus 1 having the same structure as described above.
Step 201 is first performed to set a volume gain value list through the gain value setting module.
The gain value setting module 20 is used for setting the volume gain value list 31 stored in the storage module 30, and the volume gain value list 31 may be a default gain value of the electronic device 1, or may be set or adjusted by the user using the gain value setting module 20. The volume gain value list 31 includes a plurality of volume values, which are respectively a first volume value to an nth volume value, and the volume represented by the first volume value to the nth volume section increases, and each of the volume sections includes a set of correction parameters, wherein the set of correction parameters includes a plurality of compensation gain values to respectively correspond to a plurality of target frequencies.
Next, step 202 is performed to store the volume gain value list in the storage module.
Next, the volume gain value list 31 set by the stored gain value setting module 20 is stored in the storage module 30.
Step 203 is performed to obtain a volume signal.
The volume detection unit 41 is then used to obtain the volume signal of the electronic device 1. In an embodiment of the invention, the volume detecting unit 41 directly detects a current volume scale of the electronic device 1 to obtain the volume signal, but the invention is not limited thereto.
And step 204, reading the volume gain value list according to the volume signal to obtain the corresponding set of correction parameters.
The parameter searching unit 42 is used for reading the volume gain value list 31 according to the volume signal to obtain the corresponding set of correction parameters according to the volume signal
Finally, step 205 is performed, in which the equalizer adjustment module adjusts the gain value setting of the equalizer for the sound at different frequencies according to the set of correction parameters.
Finally, the parameter setting unit 43 is configured to adjust the gain setting of the equalizer 11 for the sound at different frequencies according to the set of correction parameters obtained by the parameter searching unit 42.
It should be noted that the equalizer adjustment method of the present invention is not limited to the above-mentioned steps, and the above-mentioned steps can be changed as long as the objective of the present invention is achieved.
As can be seen from the above description, according to the above embodiment, the electronic device 1 can know how to adjust the setting of the equalizer 11 according to the current volume, so the equalizer 11 can change the gain value of each frequency band simultaneously while the electronic device 1 adjusts the volume.
Of course, the present invention is capable of other various embodiments and its several details are capable of modification and variation in light of the present invention, as will be apparent to those skilled in the art, without departing from the spirit and scope of the invention as defined in the appended claims.