CN112929794A - Sound effect adjusting method, device, equipment and storage medium - Google Patents

Sound effect adjusting method, device, equipment and storage medium Download PDF

Info

Publication number
CN112929794A
CN112929794A CN202110105854.6A CN202110105854A CN112929794A CN 112929794 A CN112929794 A CN 112929794A CN 202110105854 A CN202110105854 A CN 202110105854A CN 112929794 A CN112929794 A CN 112929794A
Authority
CN
China
Prior art keywords
historical
frequency
frequency variation
current
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110105854.6A
Other languages
Chinese (zh)
Other versions
CN112929794B (en
Inventor
董长松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202110105854.6A priority Critical patent/CN112929794B/en
Publication of CN112929794A publication Critical patent/CN112929794A/en
Application granted granted Critical
Publication of CN112929794B publication Critical patent/CN112929794B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Abstract

The application discloses a sound effect adjusting method, a sound effect adjusting device, sound effect adjusting equipment and a storage medium. Relates to the technical field of acoustics. The method comprises the following steps: acquiring a current frequency value of an audio signal output by a power amplifier at a current frequency acquisition moment and a first historical frequency value of the audio signal output at a first historical frequency acquisition moment, wherein the first historical frequency acquisition moment is a previous frequency acquisition moment of the current frequency acquisition moment; determining the current frequency variation according to the current frequency value and the first historical frequency value; and adjusting the power value of the output power to the power amplifier according to the current frequency variation, the maximum power value provided to the power amplifier and the minimum power value provided to the power amplifier. The method can solve the problems of unnecessary power waste caused by supplying fixed power to the power amplifier when the energy of the audio signal is low and the problem that the sound effect of the audio signal is suppressed due to the limitation of power when the energy of the audio signal is high.

Description

Sound effect adjusting method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of acoustic technologies, and more particularly, to a sound effect adjusting method, a sound effect adjusting apparatus, an audio playing device, and a computer-readable storage medium.
Background
With the improvement of living standard of people, audio playing devices have been widely used. When the audio playing device sounds, the audio signal is mainly amplified by the power amplifier therein, and the amplified audio signal is input to the speaker to drive the speaker to sound.
At present, when the power amplifier amplifies an analog audio signal, the power used by the power amplifier is generally fixed. This leads to a problem of unnecessary power waste when the energy of the audio signal is low (e.g., a gentle portion of music) and a problem of a suppressed sound effect of the audio signal due to a limitation of power when the energy of the audio signal is high (e.g., a climax portion of music).
Disclosure of Invention
It is an object of the present application to provide a new solution for sound effect adjustment.
According to a first aspect of the present application, there is provided a sound effect adjusting method, the method is applied to an audio playing device, the audio playing device includes a power amplifier for driving a loudspeaker to sound, and the method includes:
acquiring a current frequency value of an audio signal output by the power amplifier at a current frequency acquisition moment and a first historical frequency value of the audio signal output at a first historical frequency acquisition moment, wherein the first historical frequency acquisition moment is a previous frequency acquisition moment of the current frequency acquisition moment;
determining the current frequency variation according to the current frequency value and the first historical frequency value;
and adjusting the power value of the output power to the power amplifier according to the current frequency variation, the maximum power value provided to the power amplifier and the minimum power value provided to the power amplifier.
Optionally, the method further includes:
acquiring a second historical frequency value of an audio signal output by the power amplifier at a second historical frequency acquisition moment, wherein the second historical frequency acquisition moment is a moment before the first historical frequency acquisition moment;
determining a historical frequency variation according to the first historical frequency value and the second historical frequency value;
the adjusting the power value of the power output to the power amplifier according to the current frequency variation, the maximum power value provided to the power amplifier, and the minimum power value provided to the power amplifier includes:
and adjusting the power value of the output power to the power amplifier according to the current frequency variation, the historical frequency variation, the maximum power value provided to the power amplifier and the minimum power value provided to the power amplifier.
Optionally, after determining the current frequency variation according to the current frequency value and the first historical frequency value, the method further includes:
normalizing the current frequency variation according to the current maximum frequency variation and the current minimum frequency variation to obtain the normalized current frequency variation;
and updating the current frequency variation into the normalized current frequency variation.
Optionally, after determining the historical frequency variation amount according to the first historical frequency value and the second historical frequency value, the method further includes:
according to the historical maximum frequency variation and the historical minimum frequency variation, the historical frequency variation is subjected to normalization processing to obtain normalized historical frequency variation;
updating the historical frequency variation to the normalized historical frequency variation.
Optionally, the method further includes a step of obtaining the current maximum frequency variation and the current minimum frequency variation, where the step includes:
when the current frequency variation is larger than the historical maximum frequency variation before the current frequency acquisition moment, taking the current frequency variation as the current maximum frequency variation;
and when the current frequency variation is smaller than or equal to the historical minimum frequency variation before the current frequency acquisition moment, taking the current frequency variation as the current minimum frequency variation.
Optionally, the method further includes a step of obtaining the historical maximum frequency variation and the historical minimum frequency variation, where the step includes:
when the historical frequency variation is larger than the historical maximum frequency variation before the first historical frequency acquisition time, taking the historical frequency variation as the historical maximum frequency variation;
and when the historical frequency variation is smaller than the historical minimum frequency variation before the first historical frequency acquisition time, taking the historical frequency variation as the historical minimum frequency variation.
Optionally, the audio playing device is a sound box.
According to a second aspect of the present application, there is provided a sound effect adjusting apparatus comprising:
the acquisition module is used for acquiring a current frequency value of an audio signal output by the power amplifier at a current frequency acquisition moment and a first historical frequency value of the audio signal output at a first historical frequency acquisition moment, wherein the first historical frequency acquisition moment is a previous frequency acquisition moment of the current frequency acquisition moment;
the determining module is used for determining the current frequency variation according to the current frequency and the first historical frequency value;
and the adjusting module is used for adjusting the power value of the output power to the power amplifier according to the current frequency variation, the maximum power value provided to the power amplifier and the minimum power value provided to the power amplifier.
According to a third aspect of the present application, there is provided an audio playback device comprising the apparatus of the second aspect; alternatively, the first and second electrodes may be,
comprising a memory for storing computer instructions and a processor for invoking the computer instructions from the memory for performing the method according to any of the first aspects.
According to a third aspect of the present application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method according to any one of the first aspects.
In the embodiment of the application, a current frequency value of an audio signal output by a power amplifier at a current frequency acquisition time and a first historical frequency value of the audio signal output at a first historical frequency acquisition time are obtained, wherein the first historical frequency acquisition time is a previous frequency acquisition time of the current frequency acquisition time; determining the current frequency variation according to the current frequency value and the first historical frequency value; and adjusting the power value of the output power to the power amplifier according to the current frequency variation, the maximum power value provided to the power amplifier and the minimum power value provided to the power amplifier. Therefore, the power value of the output power to the power amplifier can be adaptively adjusted between the maximum power value provided to the power amplifier and the minimum power value provided to the power amplifier according to the current frequency variation, so that the sound effect of the audio playing device can be adaptively adjusted. Therefore, it is possible to solve the problem that unnecessary power is wasted when the energy of the audio signal is low due to the fixed power supplied to the power amplifier, and the problem that the sound effect of the audio signal is suppressed due to the limitation of power when the energy of the audio signal is high.
Further features of the present application and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which is to be read in connection with the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flow chart illustrating a sound effect adjusting method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart illustrating another sound effect adjustment method according to an embodiment of the present disclosure;
FIG. 3 is a schematic structural diagram of a sound effect adjusting apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an audio playing device according to an embodiment of the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
< method examples >
The embodiment of the application provides a sound effect adjusting method, which is applied to audio playing equipment. The main execution body of the method can be a sound effect adjusting device. The device can be an audio playing device, and can also be a hardware module and/or a software module in the audio playing device. The audio playing device may be an electronic device capable of playing audio, such as a sound box, a mobile phone, a tablet computer, and the like.
It should be noted that, in the following embodiments, the sound effect adjusting method provided in the embodiments of the present application will be described by taking an execution subject as an audio playing device.
In the embodiment of the application, the audio playing device comprises a power amplifier for driving a loudspeaker to sound. As shown in fig. 1, the sound effect adjusting method provided in the embodiment of the present application includes the following steps S1100 to S1300:
s1100, acquiring a current frequency value of the audio signal output by the power amplifier at the current frequency acquisition moment and a first historical frequency value of the audio signal output at the first historical frequency acquisition moment.
And the first historical frequency acquisition moment is a frequency acquisition moment before the current frequency acquisition moment.
In the embodiment of the application, the power amplifier outputs an audio signal to the loudspeaker, and the loudspeaker sounds the audio signal. The audio playing device regularly performs frequency acquisition on the audio signal output by the power amplifier according to a set time interval, and determines the time of performing frequency acquisition as the frequency acquisition time. On the basis, the time of the last frequency acquisition is recorded as the current frequency acquisition time, and the previous frequency acquisition time of the current frequency acquisition time is recorded as the first historical frequency acquisition time. That is, the frequency value that was collected last time is recorded as the current frequency value, and the previous frequency value of the current frequency value is recorded as the first historical frequency value.
In the embodiment of the present application, the current frequency value is denoted as KP _ new, and the first historical frequency value is denoted as KP _ old 1.
The audio playing device can utilize the frequency detection circuit to carry out frequency acquisition on the audio signal output by the power amplifier. In addition, the set time interval can be set according to actual requirements. And the frequency value of the audio signal can reflect the energy of the audio signal, and further, when the audio signal is a piece of music, the energy of the audio signal can reflect whether the piece of music is in a climax part or a gentle part.
S1200, determining the current frequency variation according to the current frequency value and the first historical frequency value.
In this embodiment of the present application, the foregoing S1200 is specifically implemented as: and determining the difference value obtained by subtracting the first historical frequency value from the current frequency value as the current frequency variation.
In the embodiment of the present application, the current frequency variation is denoted as Error1, and Error1 is KP _ new-KP _ old 1.
And S1300, adjusting the power value of the output power to the power amplifier according to the current frequency variation, the maximum power value provided to the power amplifier and the minimum power value provided to the power amplifier.
In the embodiment of the application, the power is output to the power amplifier by the power adjustable power supply unit. On this basis, the power value for adjusting the output power to the power amplifier may specifically be the power value for adjusting the output power to the power amplifier from the power supply unit. The maximum power value provided to the power amplifier is the maximum power value that can be provided by the power supply unit, and correspondingly, the minimum power value provided to the power amplifier is the minimum power value that can be provided by the power supply unit.
In the embodiment of the present application, the maximum power value provided to the power amplifier is denoted by Pmax, and the minimum frequency value provided to the power amplifier is denoted by Pmin.
In an embodiment of the present application, a specific implementation manner of the foregoing S1300 may be: determining a target power variation according to the current frequency variation; increasing the target power variable quantity on the basis of the current power value of the power amplifier to obtain a target power value; adjusting the power value output to the frequency amplifier to a maximum power value provided to the power amplifier in a case where the target power value is greater than or equal to the maximum power value; in the case that the target power value is less than or equal to the minimum power value provided to the power amplifier, adjusting the power value output to the power amplifier to the minimum power value; and when the target power value is larger than the minimum power value and smaller than the maximum power value, adjusting the power value output to the power amplifier to be the target power value.
Wherein, according to the current frequency variation, the specific implementation of determining the target power variation may be: and searching the power variation corresponding to the frequency variation which is the same as the current frequency variation in a pre-stored mapping relation, and determining the searched power variation as the target power variation. It should be noted that the mapping relationship stored in advance may be set according to practical experience.
It should be noted that, in the above embodiment, at the initial time of the operation of the power amplifier, an initial power value may be provided to the power amplifier, and the initial power value may be exemplified as the minimum power value. In addition, the power value of the output power to the power amplifier can determine the energy of the audio signal, and further determine the sound effect of the audio signal output by the audio playing equipment.
In the embodiment of the application, a current frequency value of an audio signal output by a power amplifier at a current frequency acquisition time and a first historical frequency value of the audio signal output at a first historical frequency acquisition time are obtained, wherein the first historical frequency acquisition time is a previous frequency acquisition time of the current frequency acquisition time; determining the current frequency variation according to the current frequency value and the first historical frequency value; and adjusting the power value of the output power to the power amplifier according to the current frequency variation, the maximum power value provided to the power amplifier and the minimum power value provided to the power amplifier. Therefore, the power value of the output power to the power amplifier can be adaptively adjusted between the maximum power value provided to the power amplifier and the minimum power value provided to the power amplifier according to the current frequency variation, so that the sound effect of the audio playing device can be adaptively adjusted. Therefore, it is possible to solve the problem that unnecessary power is wasted when the energy of the audio signal is low due to the fixed power supplied to the power amplifier, and the problem that the sound effect of the audio signal is suppressed due to the limitation of power when the energy of the audio signal is high.
In an embodiment of the present application, after the above step S1200, the sound effect adjusting method provided in the embodiment of the present application further includes the following steps S1210 and S1220:
s1210, normalizing the current frequency variation according to the current maximum frequency variation and the current minimum frequency variation to obtain the normalized current frequency variation.
On the basis of the above S1210, the sound effect adjusting method provided in the embodiment of the present application further includes a step of obtaining a current maximum frequency variation and a current minimum frequency variation. The step is realized by the following two ways:
the first mode is as follows: and the audio playing equipment sorts the acquired frequency values and calculates the difference value between two adjacent frequency values in sequence. And selecting the minimum difference value and the maximum difference value from all the obtained difference values. And determining the minimum difference as the current minimum frequency variation, and determining the maximum difference as the current maximum frequency variation.
The second mode is as follows: this is achieved by S1211 and S1212 as follows:
s1211, when the current frequency variation is larger than the historical maximum frequency variation before the current frequency acquisition time, setting the current frequency variation as the current maximum frequency variation.
And S1212, when the current frequency variation is smaller than or equal to the historical minimum frequency variation before the current frequency acquisition time, taking the current frequency variation as the current minimum frequency variation.
In this embodiment, the historical maximum frequency change amount before the current frequency acquisition time is designated as Emax1, and when Error1 > Emax1, Emax1 is set to Error 1. Correspondingly, the historical minimum frequency variation before the current frequency acquisition time is recorded as Emin1, and when Error1 is not more than Emax1, Emin1 is set as Error 1. The initial values of Emax1 and Emin1 are the difference between the two frequency values collected at the beginning.
In this embodiment, the normalized current frequency variation is denoted as e λ 1, and the above-mentioned S1210 can be implemented by the following formula one:
Figure BDA0002917375110000081
s1220, updating the current frequency variation to the normalized current frequency variation.
On the basis of the above S1210 and S1220, the above S1300 can be specifically realized by the following formula (two):
pout ═ e λ 1 (Pmax-Pmin)) (equation two)
Where Pout is the value of power to regulate the output to the power amplifier.
In an embodiment of the present application, the method provided in the embodiment of the present application further includes the following steps S1410 and S1411:
and S1410, acquiring a second historical frequency value of the audio signal output by the power amplifier at a second historical frequency acquisition moment, wherein the second historical frequency acquisition moment is a moment before the first historical frequency acquisition moment.
In this embodiment of the present application, on the basis that the audio playing device periodically performs frequency acquisition on an audio signal output by a power amplifier according to a set time interval, a frequency value newly acquired before a first historical frequency value is determined as a second historical frequency value.
In the embodiment of the present application, the second historical frequency value is denoted as KP _ old 2.
S1411, determining the historical frequency variation according to the first historical frequency value and the second historical frequency value.
In this embodiment of the application, the specific implementation of S1411 may be: and determining the difference value obtained by subtracting the second historical frequency value from the first historical frequency value as the historical frequency variation.
In the embodiment of the present application, the historical frequency variation is denoted as Error2, and Error2 is KP _ old 1. -KP old 2.
On the basis of the above S1410 and S1411, the above S1300 may be implemented by the following steps:
s1310, adjusting a power value of the output power to the power amplifier according to the current frequency variation, the historical frequency variation, the maximum power value provided to the power amplifier, and the minimum power value provided to the power amplifier.
In this embodiment, the above S1310 can be implemented by the following S1311 to S1314:
s1311, determining a first target power variation according to the current frequency variation. And increasing the first target power variable quantity on the basis of the current power value of the power amplifier to obtain a first target power value.
S1312, determining a second target power variation amount according to the historical frequency variation amount. And on the basis of the power value of the power amplifier at the first historical moment, increasing the second target power variable quantity to obtain a second target power value.
S1313, the first target power value and the second target power value are weighted and summed to obtain a comprehensive target power value.
S1314, if the integrated target power value is greater than or equal to the maximum power value supplied to the power amplifier, adjusting the power value of the output power to the frequency amplifier to the maximum power value, correspondingly, if the integrated target power value is less than or equal to the minimum power value supplied to the power amplifier, adjusting the power value of the output power to the power amplifier to the minimum power value, and if the integrated target power value is greater than the minimum power value and less than the maximum power value, adjusting the power value of the output power to the power amplifier to the integrated target power value.
It should be noted that the specific implementation of S1311 may be: and searching the power variation corresponding to the frequency variation which is the same as the current frequency variation in a pre-stored mapping relation, and determining the searched power variation as a first target power variation. It should be noted that the mapping relationship stored in advance may be set according to practical experience. In addition, the specific implementation of S1311 and S1312 is similar, and therefore, the detailed implementation of S1312 is not described herein again.
In an embodiment of the present application, after the above S1411, the sound effect adjusting method provided in the embodiment of the present application further includes the following S1412 and S1413:
and S1412, normalizing the historical frequency variation according to the historical maximum frequency variation and the historical minimum frequency variation to obtain a normalized historical frequency variation.
And S1413, updating the historical frequency variation into normalized historical frequency variation.
On the basis of the above S1413, the sound effect adjusting method provided in the embodiment of the present application further includes a step of acquiring a historical maximum frequency change and a historical minimum frequency change. The step is realized by the following two ways:
the first mode is as follows: the audio playing equipment sorts the acquired frequency values and calculates the difference value between two adjacent frequency values in sequence; removing a difference value obtained by final calculation from all the obtained difference values; and selecting the minimum difference value and the maximum difference value from all the difference values obtained after the elimination processing. And determining the minimum difference as the historical minimum frequency variation, and determining the historical difference as the current maximum frequency variation.
The second mode is as follows: this is achieved by S1413-1 and S1413-2 as follows:
and S1413-1, when the historical frequency variation is larger than the historical maximum frequency variation before the first historical time, taking the historical frequency variation as the historical maximum frequency variation.
And S1413-2, when the historical frequency variation is smaller than the historical minimum frequency variation before the first historical time, taking the historical frequency variation as the historical minimum frequency variation.
In this embodiment, when the history maximum frequency change amount before the first history time is designated as Emax2, and Error2 > Emax1, Emax2 is set to Error 2. Correspondingly, the history minimum frequency variation before the first history time is recorded as Emin2, and when Error2 is not more than Emax2, Emin2 is set to Error 2. The initial values of Emax2 and Emin2 are the difference between the two frequency values collected at the beginning.
In the embodiment of the present application, the normalized historical frequency variation is denoted as e λ 2, and the above-mentioned S1210 can be implemented by the following formula (three):
Figure BDA0002917375110000101
on the basis of the above steps, the specific implementation of S1300 described above can also be implemented by the following formula (four):
pout ═ a × e λ 1 (Pmax-Pmin) + b × e λ 2 (Pmax-Pmin) (formula four)
In the embodiment of the present application, the a and b weight coefficients are both decimals greater than 0 and smaller than 1, and a + b is equal to 1.
< example >
In the above method embodiment, as shown in fig. 2, a sound effect adjusting method provided by the embodiment of the present application may include the following steps S2100 to S2900:
s2100, acquiring a current frequency value of the audio signal output by the power amplifier at the current frequency acquisition moment and a first historical frequency value of the audio signal output at the first historical frequency acquisition moment.
S2200, determining the current frequency variation according to the current frequency value and the first historical frequency value.
And S2300, normalizing the current frequency variation according to the current maximum frequency variation and the current minimum frequency variation to obtain the normalized current frequency variation.
And S2400, updating the current frequency variation to the normalized current frequency variation.
And S2500, acquiring a second historical frequency value of the audio signal output by the power amplifier at the second historical frequency acquisition moment.
And S2600, determining the historical frequency variation according to the first historical frequency value and the second historical frequency value.
S2700, according to the historical maximum frequency variation and the historical minimum frequency variation, the historical frequency variation is subjected to normalization processing, and normalized historical frequency variation is obtained.
S2800, the historical frequency variation is updated to a normalized historical frequency variation.
S2900, adjusting the power value of the output power to the power amplifier according to the current frequency variation, the historical frequency variation, the maximum power value provided to the power amplifier, and the minimum power value provided to the power amplifier.
< apparatus embodiment >
The embodiment of the present application provides a sound effect adjusting apparatus 300, as shown in fig. 3, including an obtaining module 310, a determining module 320, and an adjusting module 330. Wherein:
the obtaining module 310 is configured to obtain a current frequency value of an audio signal output by the power amplifier at a current frequency collecting time and a first historical frequency value of the audio signal output at a first historical frequency collecting time, where the first historical frequency collecting time is a previous frequency collecting time of the current frequency collecting time.
The determining module 320 is configured to determine a current frequency variation according to the current frequency and the first historical frequency value.
The adjusting module 330 is configured to adjust the power value of the output power to the power amplifier according to the current frequency variation, the maximum power value provided to the power amplifier, and the minimum power value provided to the power amplifier.
In one embodiment, the obtaining module 310 is further configured to obtain a second historical frequency value of the audio signal output by the power amplifier at a second historical frequency collecting time, where the second historical frequency collecting time is a time before the first historical frequency collecting time.
The determining module 320 is further configured to determine a historical frequency variation according to the first historical frequency value and the second historical frequency value.
In this embodiment, the adjusting module 330 is specifically configured to adjust the power value of the output power to the power amplifier according to the current frequency variation, the historical frequency variation, the maximum power value provided to the power amplifier, and the minimum power value provided to the power amplifier.
In this embodiment, the apparatus 300 further comprises: the device comprises a first normalization module and a first updating module;
the first normalization module is used for normalizing the current frequency variation according to the current maximum frequency variation and the current minimum frequency variation to obtain the normalized current frequency variation.
The first updating module is used for updating the current frequency variation into the normalized current frequency variation.
In this embodiment, the apparatus 300 further comprises: a second normalization module and a second update module;
and the second normalization module is used for normalizing the historical frequency variation according to the historical maximum frequency variation and the historical minimum frequency variation to obtain the normalized historical frequency variation.
The second updating module is used for updating the historical frequency variation into the normalized historical frequency variation.
In one embodiment, the obtaining module 310 is further configured to obtain the current maximum frequency variation and the current minimum frequency variation, where the obtaining the current maximum frequency variation and the current minimum frequency variation includes: when the current frequency variation is larger than the historical maximum frequency variation before the current frequency acquisition moment, taking the current frequency variation as the current maximum frequency variation;
and when the current frequency variation is smaller than or equal to the historical minimum frequency variation before the current frequency acquisition moment, taking the current frequency variation as the current minimum frequency variation.
In one embodiment, the obtaining module 310 is further configured to obtain the historical maximum frequency variation and the historical minimum frequency variation, where the obtaining the historical maximum frequency variation and the historical minimum frequency variation includes: when the historical frequency variation is larger than the historical maximum frequency variation before the first historical frequency acquisition time, taking the historical frequency variation as the historical maximum frequency variation;
and when the historical frequency variation is smaller than the historical minimum frequency variation before the first historical frequency acquisition time, taking the historical frequency variation as the historical minimum frequency variation.
In one embodiment, the audio playback device is a stereo.
< apparatus embodiment >
The embodiment of the present application provides an audio playing apparatus 400, where the audio playing apparatus 400 includes a sound effect adjusting device 400 as shown in fig. 3.
Alternatively, as shown in FIG. 4, the audio playing device 400 comprises a memory 410 and a processor 420, wherein the memory 410 is used for storing computer instructions, and the processor 420 is used for calling the computer instructions from the memory 410 to execute any sound effect adjusting method provided by the above method embodiment.
In this embodiment, the audio playing device 400 may be an electronic device capable of playing audio, such as a sound, a mobile phone, a tablet computer, and the like.
< storage Medium embodiment >
The embodiment of the application provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the computer program realizes any sound effect adjusting method provided by the method embodiment.
The present application may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present application.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present application may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry can execute computer-readable program instructions to implement aspects of the present application by utilizing state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present application are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present application, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the application is defined by the appended claims.

Claims (10)

1. A sound effect adjusting method is applied to an audio playing device, wherein the audio playing device comprises a power amplifier for driving a loudspeaker to sound, and the method comprises the following steps:
acquiring a current frequency value of an audio signal output by the power amplifier at a current frequency acquisition moment and a first historical frequency value of the audio signal output at a first historical frequency acquisition moment, wherein the first historical frequency acquisition moment is a previous frequency acquisition moment of the current frequency acquisition moment;
determining the current frequency variation according to the current frequency value and the first historical frequency value;
and adjusting the power value of the output power to the power amplifier according to the current frequency variation, the maximum power value provided to the power amplifier and the minimum power value provided to the power amplifier.
2. The method of claim 1, further comprising:
acquiring a second historical frequency value of an audio signal output by the power amplifier at a second historical frequency acquisition moment, wherein the second historical frequency acquisition moment is a moment before the first historical frequency acquisition moment;
determining a historical frequency variation according to the first historical frequency value and the second historical frequency value;
the adjusting the power value of the power output to the power amplifier according to the current frequency variation, the maximum power value provided to the power amplifier, and the minimum power value provided to the power amplifier includes:
and adjusting the power value of the output power to the power amplifier according to the current frequency variation, the historical frequency variation, the maximum power value provided to the power amplifier and the minimum power value provided to the power amplifier.
3. The method of claim 1, wherein after said determining a current frequency change amount based on said current frequency value and said first historical frequency value, further comprising:
normalizing the current frequency variation according to the current maximum frequency variation and the current minimum frequency variation to obtain the normalized current frequency variation;
and updating the current frequency variation into the normalized current frequency variation.
4. The method of claim 2, further comprising, after said determining an amount of historical frequency change based on said first historical frequency value and said second historical frequency value:
according to the historical maximum frequency variation and the historical minimum frequency variation, the historical frequency variation is subjected to normalization processing to obtain normalized historical frequency variation;
updating the historical frequency variation to the normalized historical frequency variation.
5. The method according to claim 3, further comprising the step of obtaining the current maximum frequency variation and the current minimum frequency variation, the step comprising:
when the current frequency variation is larger than the historical maximum frequency variation before the current frequency acquisition moment, taking the current frequency variation as the current maximum frequency variation;
and when the current frequency variation is smaller than or equal to the historical minimum frequency variation before the current frequency acquisition moment, taking the current frequency variation as the current minimum frequency variation.
6. The method of claim 4, further comprising the step of obtaining the historical maximum and minimum frequency changes, the step comprising:
when the historical frequency variation is larger than the historical maximum frequency variation before the first historical frequency acquisition time, taking the historical frequency variation as the historical maximum frequency variation;
and when the historical frequency variation is smaller than the historical minimum frequency variation before the first historical frequency acquisition time, taking the historical frequency variation as the historical minimum frequency variation.
7. The method of claim 1, wherein the audio playback device is a sound box.
8. An audio effect adjustment apparatus, comprising:
the acquisition module is used for acquiring a current frequency value of an audio signal output by the power amplifier at a current frequency acquisition moment and a first historical frequency value of the audio signal output at a first historical frequency acquisition moment, wherein the first historical frequency acquisition moment is a previous frequency acquisition moment of the current frequency acquisition moment;
the determining module is used for determining the current frequency variation according to the current frequency and the first historical frequency value;
and the adjusting module is used for adjusting the power value of the output power to the power amplifier according to the current frequency variation, the maximum power value provided to the power amplifier and the minimum power value provided to the power amplifier.
9. An audio playback device, comprising the apparatus of claim 8; alternatively, the first and second electrodes may be,
comprising a memory for storing computer instructions and a processor for invoking the computer instructions from the memory to perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202110105854.6A 2021-01-26 2021-01-26 Sound effect adjusting method, device, equipment and storage medium Active CN112929794B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110105854.6A CN112929794B (en) 2021-01-26 2021-01-26 Sound effect adjusting method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110105854.6A CN112929794B (en) 2021-01-26 2021-01-26 Sound effect adjusting method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112929794A true CN112929794A (en) 2021-06-08
CN112929794B CN112929794B (en) 2022-11-18

Family

ID=76166520

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110105854.6A Active CN112929794B (en) 2021-01-26 2021-01-26 Sound effect adjusting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112929794B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113490113A (en) * 2021-07-06 2021-10-08 深圳市亚昱科技有限公司 Loudspeaker subassembly, audio power amplifier system and new energy automobile

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0675595A (en) * 1992-03-11 1994-03-18 Gijutsu Kenkyu Kumiai Iryo Fukushi Kiki Kenkyusho Voice processing device and hearing aid
US6169455B1 (en) * 1998-06-02 2001-01-02 Nec Corporation Power amplifying circuit and automatic power control method
US20020107691A1 (en) * 2000-12-08 2002-08-08 Darko Kirovski Audio watermark detector
JP2008072539A (en) * 2006-09-15 2008-03-27 Hitachi Kokusai Electric Inc Transmission power amplifier
CN105828225A (en) * 2015-01-09 2016-08-03 国基电子(上海)有限公司 Electronic device for adjusting microphone output power and gain
CN109658942A (en) * 2018-12-27 2019-04-19 腾讯音乐娱乐科技(深圳)有限公司 A kind of audio data processing method, device and relevant device
CN109686347A (en) * 2018-11-30 2019-04-26 北京达佳互联信息技术有限公司 Sound effect treatment method, sound-effect processing equipment, electronic equipment and readable medium
CN110007892A (en) * 2014-04-11 2019-07-12 微软技术许可有限责任公司 Audio Signal Processing
CN110022515A (en) * 2019-04-30 2019-07-16 广州三星通信技术研究有限公司 Electronic equipment and its control method
CN110808064A (en) * 2018-08-06 2020-02-18 航天信息股份有限公司 Audio processing method and device
CN111580774A (en) * 2020-04-28 2020-08-25 江苏紫米电子技术有限公司 Sound effect adjusting method, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0675595A (en) * 1992-03-11 1994-03-18 Gijutsu Kenkyu Kumiai Iryo Fukushi Kiki Kenkyusho Voice processing device and hearing aid
US6169455B1 (en) * 1998-06-02 2001-01-02 Nec Corporation Power amplifying circuit and automatic power control method
US20020107691A1 (en) * 2000-12-08 2002-08-08 Darko Kirovski Audio watermark detector
JP2008072539A (en) * 2006-09-15 2008-03-27 Hitachi Kokusai Electric Inc Transmission power amplifier
CN110007892A (en) * 2014-04-11 2019-07-12 微软技术许可有限责任公司 Audio Signal Processing
CN105828225A (en) * 2015-01-09 2016-08-03 国基电子(上海)有限公司 Electronic device for adjusting microphone output power and gain
CN110808064A (en) * 2018-08-06 2020-02-18 航天信息股份有限公司 Audio processing method and device
CN109686347A (en) * 2018-11-30 2019-04-26 北京达佳互联信息技术有限公司 Sound effect treatment method, sound-effect processing equipment, electronic equipment and readable medium
CN109658942A (en) * 2018-12-27 2019-04-19 腾讯音乐娱乐科技(深圳)有限公司 A kind of audio data processing method, device and relevant device
CN110022515A (en) * 2019-04-30 2019-07-16 广州三星通信技术研究有限公司 Electronic equipment and its control method
CN111580774A (en) * 2020-04-28 2020-08-25 江苏紫米电子技术有限公司 Sound effect adjusting method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113490113A (en) * 2021-07-06 2021-10-08 深圳市亚昱科技有限公司 Loudspeaker subassembly, audio power amplifier system and new energy automobile
CN113490113B (en) * 2021-07-06 2023-12-19 深圳市亚昱科技有限公司 Horn assembly, audio power amplifier system and new energy automobile

Also Published As

Publication number Publication date
CN112929794B (en) 2022-11-18

Similar Documents

Publication Publication Date Title
EP3480819B1 (en) Audio data processing method and apparatus
CN105245195B (en) For the technology of distortion reduction multiband compressor reducer protected with sound quality
CN105519133B (en) Signal processing for MEMS capacitive energy converter
JP2931101B2 (en) Adaptive gain and filtering circuit for audio playback device
CN102474232B (en) System for increasing perceived loudness of speakers
CN107112965A (en) The system and method for the audio artifacts in audio system is reduced with dynamic range enhancing
CN102763326A (en) System and method for digital signal processing
CN108174031A (en) A kind of volume adjusting method, terminal device and computer readable storage medium
US20190259367A1 (en) Methods and apparatus for processing stereophonic audio content
CN112929794B (en) Sound effect adjusting method, device, equipment and storage medium
EP3550424A1 (en) Method for configuring wireless sound box, wireless sound box, and terminal device
CN107682802B (en) Method and device for debugging sound effect of audio equipment
CN113362819B (en) Voice extraction method, device, equipment, system and storage medium
CN110782884A (en) Far-field pickup noise processing method, device, equipment and storage medium
US20210105561A1 (en) Terminal device, apparatus and method for simulating the characteristic of an audio processor, and computer-readable storage medium
CN111669683A (en) Managing low frequency components of an audio signal on a mobile computing device
CN100452849C (en) Method for gradually adjusting the volume level of a digital signal within a predefined time and its processor
CN114501281B (en) Sound adjusting method, device, electronic equipment and computer readable medium
WO2019070321A1 (en) Dynamically extending loudspeaker capabilities
CN111918174B (en) Method and device for balancing volume gain, electronic device and vehicle
CN110808064B (en) Audio processing method and device
KR102178414B1 (en) Wireless sound converting device with multiple microphone units
CN111615036B (en) Data processing method and device and electronic equipment
KR102047276B1 (en) Sound providing apparatus
CN218450497U (en) Remote control system and platform of audio power amplifier

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant