CN115550820A - Loudspeaker control method, device, electronic equipment and storage medium - Google Patents

Loudspeaker control method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115550820A
CN115550820A CN202211305011.1A CN202211305011A CN115550820A CN 115550820 A CN115550820 A CN 115550820A CN 202211305011 A CN202211305011 A CN 202211305011A CN 115550820 A CN115550820 A CN 115550820A
Authority
CN
China
Prior art keywords
loudspeaker
speaker
performance
volume
change
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.)
Pending
Application number
CN202211305011.1A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202211305011.1A priority Critical patent/CN115550820A/en
Publication of CN115550820A publication Critical patent/CN115550820A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R9/00Transducers of moving-coil, moving-strip, or moving-wire type
    • H04R9/06Loudspeakers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R9/00Transducers of moving-coil, moving-strip, or moving-wire type
    • H04R9/02Details
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2400/00Loudspeakers
    • H04R2400/11Aspects regarding the frame of loudspeaker transducers

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The embodiment of the application discloses a loudspeaker control method and device, electronic equipment and a storage medium. The method comprises the following steps: under the condition that the performance of the second loudspeaker is higher than the preset performance, responding to the change of the volume level number, and controlling the volume output by the first loudspeaker to keep unchanged; and simultaneously controlling the volume output by the second loudspeaker to change along with the change of the volume level. By the method, under the condition that the performance of the second loudspeaker exceeds the preset performance, the output of the first loudspeaker is controlled to be kept constant in response to the change of the volume level number, and meanwhile, the performance of the second loudspeaker is fully improved, so that the first loudspeaker and the second loudspeaker can output balanced stereo effect, and the user experience is improved.

Description

Loudspeaker control method, device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of terminals, and particularly relates to a loudspeaker control method and device, electronic equipment and a storage medium.
Background
With the rise of various short videos, electronic devices play an increasingly important role in life. More and more electronic devices are equipped with two or more speakers, and the configured speakers are controlled to obtain better stereo effect. However, in the related speaker control method, after the speaker is adjusted, the stereo output effect output by the speaker still needs to be improved.
Disclosure of Invention
In view of the above problems, the present application provides a speaker control method, apparatus, electronic device, and storage medium to achieve an improvement of the above problems.
In a first aspect, an embodiment of the present application provides a speaker control method, which is applied to an electronic device, where the electronic device includes a first speaker and a second speaker, and a performance of the first speaker is lower than a performance of the second speaker, and the method includes: under the condition that the performance of the second loudspeaker is higher than the preset performance, responding to the change of the volume level number, and controlling the volume output by the first loudspeaker to keep unchanged; and simultaneously controlling the volume output by the second loudspeaker to change along with the change of the volume level.
In a second aspect, an embodiment of the present application provides a speaker control apparatus, which is operable in an electronic device, where the electronic device includes a first speaker and a second speaker, and a performance of the first speaker is lower than a performance of the second speaker, and the apparatus includes: a first control unit for controlling the volume output by the first speaker to be kept unchanged in response to a change in the number of volume levels in the case where the performance of the second speaker is higher than a preset performance; and the second control unit is used for simultaneously controlling the volume output by the second loudspeaker to change along with the change of the volume level.
In a third aspect, an embodiment of the present application provides an electronic device, including one or more processors and a memory; one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fourth aspect, the present application provides a computer-readable storage medium, in which program code is stored, where the program code executes the method described above.
The embodiment of the application provides a loudspeaker control method and device, electronic equipment and a storage medium. And under the condition that the performance of the second loudspeaker is higher than the preset performance, responding to the change of the volume level number, controlling the volume output by the first loudspeaker to keep unchanged, and simultaneously controlling the volume output by the second loudspeaker to change along with the change of the volume level number. By the method, under the condition that the performance of the second loudspeaker exceeds the preset performance, the output of the first loudspeaker is controlled to be kept constant in response to the change of the volume level number, and meanwhile, the performance of the second loudspeaker is fully improved, so that the first loudspeaker and the second loudspeaker can output balanced stereo effect, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram illustrating an application scenario of a speaker control method according to an embodiment of the present application;
fig. 2 is a schematic diagram illustrating a full bridge inverter circuit of an intelligent power amplifier according to an embodiment of the present application;
fig. 3 is a schematic diagram illustrating time-sharing conduction of a full-bridge inverter circuit of an intelligent power amplifier according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a speaker control method according to an embodiment of the present application;
fig. 5 is a schematic diagram illustrating a volume profile configuration proposed in an embodiment of the present application;
fig. 6 shows a flowchart of a speaker control method according to another embodiment of the present application;
fig. 7 is a flowchart illustrating a speaker control method according to still another embodiment of the present application;
FIG. 8 is a schematic diagram of a driving circuit according to still another embodiment of the present application;
fig. 9 is a flowchart illustrating a speaker control method according to another embodiment of the present application;
fig. 10 is a flowchart illustrating a speaker control method according to another embodiment of the present application;
fig. 11 is a block diagram showing a structure of a speaker control apparatus according to an embodiment of the present application;
fig. 12 is a block diagram showing a structure of a speaker control apparatus according to an embodiment of the present application;
fig. 13 is a block diagram showing a configuration of an electronic device for executing a speaker control method according to an embodiment of the present application in real time;
fig. 14 shows a storage unit for storing or carrying program codes for implementing the speaker control method according to the embodiment of the present application in real time.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
With the development of electronic technology, electronic devices such as smartphones are used more and more frequently in the daily lives of users. The audio playing function of the electronic device is one of the most used functions of a user in the process of using the electronic device. For example, in the process of enjoying a movie, listening to music, playing a game, making a voice call or a video call, etc., using an electronic device, a user may use an audio playing function of the electronic device. Therefore, users have made higher demands on the sound production effect of the electronic device during audio playing. For example, when the audio play-out function of the electronic device is used, the electronic device may output a stereo play-out effect through the set speaker.
However, limited to the lightness and portability of electronic devices, the configuration of a single speaker has been difficult to satisfy the increasing audio play scene requirements of users, such as loudness and surround feeling. In order to improve the external playing effect of the electronic device, more and more electronic devices are equipped with two or more speakers to obtain better stereo effect. However, due to the thin body of the electronic device and the extrusion of the multiple cameras and the large battery in the electronic device to the limited internal space of the electronic device, it is difficult to integrate two completely symmetrical speakers on the electronic device to achieve a good stereo effect.
The current main flow is mainly configured by arranging a loudspeaker with weaker performance above the electronic equipment to realize the receiver function of the handheld microphone and arranging a loudspeaker with better performance below the electronic equipment to assist in outputting the stereo sound play effect. Based on the configuration of the speaker system of the current electronic device, in most external playback scenes, the best performance of the speaker with better performance is often required to be reduced to balance the stereo external playback effect, generally, when the performance of the speaker is adjusted, the performance of the speaker is adjusted by adjusting a volume key of the electronic device, and when the volume key of the electronic device is adjusted, the performance of two speakers arranged in the electronic device is often adjusted synchronously, so that the asymmetric listening sense of 'weak at the top and strong at the bottom' always exists, and the user experience is poor. When the volume key of the electronic equipment is adjusted, the performances of two loudspeakers arranged in the electronic equipment are often synchronously adjusted, which means that the performances of the two loudspeakers arranged in the electronic equipment are increased or reduced along with the adjustment of the volume key; the asymmetric listening sensation of "weak top and strong bottom" is due to the fact that the performance of the speaker arranged above the electronic device is weaker, while the performance of the speaker arranged below the electronic device is a little better.
Therefore, the inventor proposes a speaker control method, device, electronic device, and storage medium in the present application. And under the condition that the performance of the second loudspeaker is higher than the preset performance, responding to the change of the volume level number, controlling the volume output by the first loudspeaker to keep unchanged, and simultaneously controlling the volume output by the second loudspeaker to change along with the change of the volume level number. By the method, under the condition that the performance of the second loudspeaker exceeds the preset performance, the output of the first loudspeaker is controlled to be kept constant in response to the change of the volume level number, and meanwhile, the performance of the second loudspeaker is fully improved, so that the first loudspeaker and the second loudspeaker can output balanced stereo effect, and the user experience is improved.
The following description is directed to an application environment of a speaker control method provided in the present invention:
referring to fig. 1, the speaker control method provided in the embodiment of the present invention may be applied to the electronic device 100 shown in fig. 1, and the electronic device 100 may include two or more speakers. Illustratively, as shown in fig. 1, the electronic device 100 may include two speakers, a first speaker 110 and a second speaker 120. The performance of the first speaker 110 and the second speaker 120 may be the same or different. Alternatively, the performance of the first speaker 110 may be higher than the performance of the second speaker 120; the performance of the first speaker 110 may also be lower than the performance of the second speaker 120; the performance of the first speaker 110 may also be equal to the performance of the second speaker 120. When the performance of the first speaker 110 is equal to the performance of the second speaker 120, an equalized stereo sound may be output through the first speaker 110 and the second speaker 120. Therefore, in the case where the performance of the first speaker 110 and the performance of the second speaker 120 are different, in order to output balanced stereo sound and provide a good sound effect experience to the user, the performance of the first speaker 110 or the second speaker 120 may be adjusted, so that the balanced stereo sound can be output through the first speaker 110 and the second speaker 120 after the adjustment.
In the embodiment of the present application, each of the first speaker 110 and the second speaker 120 may have two terminals (two leads), and when only the first speaker 110 or the second speaker 120 is used in the electronic device 100, the two leads do not have positive or negative polarities; the two pins have a polarity that is different when the first speaker 110 and the second speaker 120 in the electronic device 100 are used simultaneously.
In the embodiment of the present application, as shown in fig. 1, in the electronic device 100, the first speaker 110 may be disposed at an upper end of the electronic device 100, the second speaker 120 may be disposed at a lower end of the electronic device 100, and the first speaker 110 and the second speaker 120 may be driven to operate by using separate Smart power amplifiers (smartpas), for example, the Smart power amplifier 1 drives the first speaker 110 to operate, and the Smart power amplifier 2 drives the second speaker 120 to operate.
The intelligent power amplifier generally adopts a full-bridge inverter circuit. The full-bridge inverter circuit of the intelligent power amplifier can be seen from fig. 2, and comprises: the four switching tubes Q1, Q2, Q3 and Q4, the input end and the output end of each switching tube are connected with a diode. The input ends of the switching tube Q1 and the switching tube Q3 are connected with a direct-current voltage VBOOST, and the output ends of the switching tube Q2 and the switching tube Q4 are grounded. The common end of the switch tubes Q1 and Q2 is used as an SPK-P end, the common end of the switch tubes Q3 and Q4 is used as an SPK-N end, and the SPK-P end and the SPK-N end are connected with a loudspeaker.
Fig. 2 shows that the switching transistors Q1 to Q4 are NPN transistors, the input terminal is a collector of the NPN transistor, the output terminal is an emitter of the NPN transistor, and the control terminal is a base of the NPN transistor. However, the switching tubes Q1 to Q4 may also adopt other forms of switching tubes.
Optionally, in the intelligent power amplifier, the four switching tubes are turned on in a time-sharing manner to provide voltage for the speaker for operation. Specifically, as shown in fig. 3, the first stage: the switching tubes Q1 and Q4 are turned on, the switching tubes Q2 and Q3 are turned off, and the direct current voltage VBOOST supplies power to the speaker in the direction indicated by (1). And a second stage: the switching tubes Q1 and Q4 are turned off, the switching tubes Q2 and Q3 are turned on, and the direct current voltage VBOOST supplies power to the speaker in the direction indicated by (2).
It should be noted that, besides the smart phone shown in fig. 1, the electronic device 100 may also be a car-mounted device, a wearable electronic device, a tablet Computer, (desktop, laptop) notebook Computer, an Ultra-mobile Personal Computer (UMPC), a handheld Computer, a netbook, a Personal Digital Assistant (PDA), a smart speaker, or other devices that can be configured with two or more speakers.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 4, a speaker control method provided in the embodiment of the present application is applied to the electronic device shown in fig. 1, and the method includes:
step S110: and under the condition that the performance of the second loudspeaker is higher than the preset performance, controlling the volume output by the first loudspeaker to be kept unchanged in response to the change of the volume level number.
In an embodiment of the application, an electronic device includes a first speaker and a second speaker. Wherein the first speaker and the second speaker are asymmetric speakers.
In the embodiments of the present application, the first speaker and the second speaker are asymmetric speakers, which means that the optimal performance of the first speaker and the second speaker is different. Optionally, the first speaker is a speaker with lower performance among the two speakers, and the second speaker is a speaker with higher performance among the two speakers, that is, in the embodiment of the present application, the optimal performance of the first speaker is lower than that of the second speaker.
In one form, the speaker is a critical part of the speaker system, and the sound reproduction quality of the speaker is mainly determined by the performance index of the speaker. In the embodiment of the application, the performance of the loudspeaker can be represented by the numerical value of the performance index of the loudspeaker. The performance indicators of the speaker may include power rating, impedance rating, frequency characteristics, harmonic distortion, sensitivity, directivity, and the like.
The rated power of the speaker is the output power of the speaker capable of working for a long time, which is also called undistorted power and is generally marked on a nameplate at the rear end of the speaker. When the loudspeaker works at rated power, the voice coil will not generate overheat or mechanical overload, and the sound will not display distortion. The rated power is an average power, and in fact, the loudspeaker works in a variable power state, which varies with the strength of the input audio signal, and in weak music and sound signals, the peak pulse signal exceeds the rated power by many times, and the loudspeaker cannot be damaged due to short duration, but distortion may occur. Therefore, in order to ensure that sound quality is still well obtained in the presence of peak pulses, the loudspeaker must retain a sufficient power margin. The maximum power that a loudspeaker can follow is 24 times of the rated power.
The rated impedance of the speaker is a ratio of a voltage applied to an input terminal of the acoustic speaker to a current flowing through the speaker in a rated state of the acoustic speaker. At present, the rated impedance of the loudspeaker is generally 2, 4, 8, 16, 32 ohm and the like. The speaker rated impedance was measured with a 400Hz signal voltage input.
The frequency characteristic of the loudspeaker is an index for measuring the sound reproduction frequency bandwidth of the loudspeaker. High fidelity sound reproduction systems require that the speaker system should be able to reproduce the audible range of the human ear from 10Hz to 2000 Hz. Because this range is not easily realized with a single loudspeaker, the present hi-fi speaker system uses three loudspeakers, high, medium and low, to realize full-band playback coverage. In addition, the frequency characteristics of the hi-fi speaker should be as flat as possible, otherwise frequency distortion of the playback would be introduced. The high-fidelity playback system requires the unevenness of the frequency characteristic of a sound transmitter in a playback frequency range to be less than 10dB.
There are many kinds of loudspeaker distortion, and harmonic distortion (often generated at low frequency due to non-uniform magnetic field of the loudspeaker and distortion of the vibration system), intermodulation distortion (degraded sound quality of intermodulation audio due to two signals with different frequencies simultaneously added to the loudspeaker), instantaneous distortion (signal distortion due to inertia of the vibration system not changing following the change of the signals) and the like are common. Harmonic distortion of a speaker means that harmonic components not contained in an original signal are added at the time of reproduction. Harmonic distortion of a speaker is caused by nonlinear distortion such as non-uniformity of a magnetic field of a magnet, characteristics of a diaphragm, and a voice coil displacement. The harmonic distortion index of the current better loudspeaker is not more than 5%.
The sensitivity of the speaker generally refers to the magnitude of sound pressure measured at 1m on the front side of the speaker in the axial direction when a noise voltage with 1W of power is inputted. Sensitivity is an indicator that measures whether a loudspeaker can reproduce details in an audio signal without loss. The higher the sensitivity of the speaker, the more responsive the speaker is to the details in the audio signal. The sensitivity as a HiFi speaker should be greater than 86dB/W.
The sound pressure frequency characteristics of the speaker are different from each other with respect to radiation in different directions, and this characteristic becomes the directivity of the speaker. The directivity of the loudspeaker is sharp when the caliber of the loudspeaker is large, and is wide when the caliber of the loudspeaker is small. The directivity of the loudspeaker is also frequency dependent, and generally speaking, there is no obvious directivity for low frequency signals below 250 Hz; the directivity is obvious for high frequency signals below 1.5 kHz.
In the embodiment of the present application, the preset performance may be the best performance corresponding to the speaker with the weaker performance, among the two speakers. The optimal performance may be a maximum value of any one of the preset performance indexes, or different values set for the different performance indexes after the performance indexes are comprehensively evaluated. For example, if the optimal performance of the first speaker is lower than the optimal performance of the second speaker, the predetermined performance may be the optimal performance of the first speaker. Specifically, the maximum rated power of the first speaker may be set to a preset performance; the performance characteristics corresponding to the first speaker may also be weighted and summed to obtain a value, which is set as the preset performance, and the value is not specifically limited herein.
Optionally, the preset performance may also be determined by a modeling manner, a performance balance point of the first speaker and a performance balance point of the second speaker are matched, and the performance corresponding to the performance balance point is used as the preset performance. Specifically, matching the best performance of the first speaker and adjusting the second speaker to a performance approaching is a determined preset performance.
When the preset performance is determined through a modeling mode, because the optimal performance of the first loudspeaker is lower than that of the second loudspeaker, the performance of the first loudspeaker and the performance of the second loudspeaker can be adjusted to the corresponding optimal performance respectively, the optimal performance of the first loudspeaker is kept unchanged, the performance of the second loudspeaker is gradually reduced, and the performance balance points of the first loudspeaker and the second loudspeaker are found, so that the performance corresponding to the performance balance points is determined as the preset performance.
Furthermore, for most users, when the audio playing function of the electronic device is used, the quality of sound is more concerned in a quieter environment, that is, the effect output by the loudspeaker is required to be balanced in sound, and the sound is clear and comfortable; and in noisy environment, often can adjust the volume key to the biggest, need bigger loudness to satisfy the user and can obtain the sound content that electronic equipment externally put, can reduce the demand to sound raise and tone quality. In order to improve the asymmetric stereo effect and improve the play-out effect of the electronic equipment, the first loudspeaker and the second loudspeaker can be respectively driven to work through the two intelligent power amplifiers, and the first loudspeaker and the second loudspeaker are respectively provided with independent volume curve configurations, so that when a user adjusts a volume key, the first loudspeaker and the second loudspeaker are switched from original synchronous change to independent change, the first loudspeaker and the second loudspeaker are independently reduced or kept to output the effect along with the change of the volume key, and the asymmetric sound speaker can also output the balanced stereo effect in most scenes. That is, when it is detected that the user adjusts the volume key, the volume output by the first speaker is adjusted to the volume corresponding to the volume level number in the volume curve corresponding to the first speaker through the respective volume curve configurations corresponding to the two speakers according to the adjustment of the volume key; and adjusting the volume output by the second loudspeaker to the volume corresponding to the volume level number in the corresponding volume curve.
In the embodiment of the application, the volume curve configurations corresponding to the first loudspeaker and the second loudspeaker are different. Wherein the volume curve is used for representing the linear relation between the volume level number and the volume magnitude. The volume level number corresponds to the adjustment of the volume key, and each level in the volume level number corresponds to one adjustment of the volume key. That is, the volume key is adjusted once and the number of volume levels is changed once.
Illustratively, as shown in fig. 5, fig. 5 is a graph of the volume curves set for the first speaker and the second speaker separately. The upper speaker in fig. 5 is a first speaker in the embodiment of the present application, and the lower speaker in fig. 5 is a second speaker in the embodiment of the present application. As can be seen from the data in fig. 5, the volume curves corresponding to the first speaker and the second speaker are different, and the volume levels corresponding to the same volume level are different. It can also be known from the data in fig. 5 that, when the volume level is 12, the performance of the first speaker reaches the optimal performance, and is close to the performance of the second speaker, so that the volume level 12 can be determined as a performance equalization point, and the performance corresponding to the performance equalization point is determined as the preset performance.
As one way, when it is detected that the performance of the second speaker is higher than the preset performance and the performance of the first speaker is at the highest performance, if a change in the number of steps of the volume is detected, the volume output by the first speaker is kept unchanged. That is, if the performance of the first speaker and the performance of the second speaker are detected to be higher than the performance corresponding to the performance balance point, the performance of the first speaker is controlled to be kept unchanged. The performance of the first loudspeaker remains the same whether an increase in the number of steps or a decrease in the number of steps is detected.
Step S120: and simultaneously controlling the volume output by the second loudspeaker to change along with the change of the volume level.
In the embodiment of the application, when the change of the volume level is detected, the volume output by the second loudspeaker is controlled to change along with the change of the volume level. Specifically, if the volume level is detected to be increased, the volume output by the second loudspeaker is controlled to be increased; and if the volume level is detected to be reduced, controlling the volume output by the second loudspeaker to be reduced. Through the mode, the balanced output of the first loudspeaker and the second loudspeaker can be ensured as far as possible, and meanwhile, the performance of the second loudspeaker is fully exerted when the volume is large so as to improve the overall loudness and meet the requirement of a user.
According to the loudspeaker control method, under the condition that the performance of the second loudspeaker is higher than the preset performance, the volume output by the first loudspeaker is controlled to be kept unchanged in response to the change of the volume level number, and meanwhile, the volume output by the second loudspeaker is controlled to be changed along with the change of the volume level number. By the method, under the condition that the performance of the second loudspeaker exceeds the preset performance, the output of the first loudspeaker is controlled to be kept constant in response to the change of the volume level number, and meanwhile, the performance of the second loudspeaker is fully improved, so that the first loudspeaker and the second loudspeaker can output balanced stereo effect, and the user experience is improved.
Referring to fig. 6, a speaker control method provided in the embodiment of the present application is applied to the electronic device shown in fig. 1, and the method includes:
step S210: and under the condition that the performance of the second loudspeaker is lower than the preset performance, in response to the change of the volume level, controlling the volume output by the first loudspeaker and the volume output by the second loudspeaker to synchronously change along with the change of the volume level.
In the embodiment of the present application, if it is detected that the performance of the second speaker is lower than the preset performance and the performance of the first speaker is also lower than the preset performance, the volume output by the first speaker and the volume output by the second speaker are controlled to change synchronously with the change of the volume level.
As one mode, controlling the volume output by the first speaker and the volume output by the second speaker to change synchronously with the change of the volume level includes: controlling the volume output by the first loudspeaker and the volume output by the second loudspeaker to reduce along with the reduction of the volume level, and simultaneously attenuating the same amplitude; or, the volume output by the first loudspeaker and the volume output by the second loudspeaker are controlled to increase with the volume level, and the same amplitude is increased at the same time.
That is, in the above case, if it is detected that the number of sound volumes decreases, the sound volumes output by the first speaker and the second speaker are simultaneously decreased; and if the volume level number is detected to be increased, increasing the volume output by the first loudspeaker and the second loudspeaker at the same time.
According to the loudspeaker control method, under the condition that the performance of the second loudspeaker is lower than the preset performance, the volume output by the first loudspeaker and the volume output by the second loudspeaker are controlled to synchronously change along with the change of the volume level in response to the change of the volume level. By the method, under the condition that the performance of the second loudspeaker is lower than the optimal performance of the first loudspeaker, the volumes output by the first loudspeaker and the second loudspeaker are controlled to be changed synchronously, so that the first loudspeaker and the second loudspeaker can output balanced stereo effect, and the user experience is improved.
Referring to fig. 7, a speaker control method provided in the embodiment of the present application is applied to the electronic device shown in fig. 1, and the method includes:
step S310: obtaining an optimal performance of the first speaker.
Step S320: and taking the optimal performance as the preset performance.
In the embodiment of the present application, the best performance of the first speaker may be directly taken as the preset performance.
Step S330: and under the condition that the performance of the second loudspeaker is higher than the preset performance, responding to the change of the volume level number, and driving the first loudspeaker to work through the first power amplifier so as to control the volume output by the first loudspeaker to keep unchanged.
In the embodiment of the application, in order to improve the external playing effect of the electronic equipment. Different loudspeakers can be driven to operate by two power amplifiers. Specifically, as shown in fig. 8, fig. 8 is a schematic diagram of a driving circuit in the embodiment of the present application. In the embodiment of the present application, the driving circuit may include a Micro Controller Unit (MCU), a first power amplifier (PA 1), a second power amplifier (PA 2), a first speaker (SPK 1), and a second speaker (SPK 2). The micro control unit can address the first power amplifier (PA 1) and the second power amplifier (PA 2) through an I2C bus respectively. Meanwhile, the micro control unit may be connected to the first power amplifier (PA 1), the second power amplifier (PA 2), the first speaker (SPK 1), and the second speaker (SPK 2) through an Inter-IC Sound (I2S) built in the integrated circuit. Wherein, when connected, as shown in fig. 9, the micro control unit, the first power amplifier (PA 1) and the first speaker (SPK 1) form a path to drive the first speaker (SPK 1) through the first power amplifier (PA 1); the micro control unit, the second power amplifier (PA 2) and the second loudspeaker (SPK 2) form a path to pass through the second power amplifier (PA 2) and the second loudspeaker (SPK 2).
In the embodiment of the application, the first power amplifier and the second power amplifier are configured with separate volume curves, so as to provide different audio parameters for the speaker under different scenes, and provide better sound effect for the user.
As one way, when the first speaker is driven to operate by the first power amplifier to control the volume output by the first speaker to remain unchanged, the first power amplifier may be controlled to drive the first speaker to operate at a constant power, so as to control the volume output by the first speaker to remain unchanged.
Step S340: and simultaneously driving the second loudspeaker to work through the second power amplifier so as to control the volume output by the second loudspeaker to change along with the change of the volume level.
In the embodiment of the application, when the second speaker is driven to operate by the second power amplifier to control the volume output by the second speaker to change along with the change of the volume level, the second power amplifier may be controlled to drive the second speaker to operate at different powers, so as to control the second speaker to output volumes of different sizes at different powers.
According to the loudspeaker control method, the best performance of a first loudspeaker is obtained firstly, the best performance is the preset performance, then under the condition that the performance of a second loudspeaker is higher than the preset performance, in response to the change of the volume level number, the first loudspeaker is driven to work through a first power amplifier, so that the volume output by the first loudspeaker is kept unchanged, meanwhile, the second loudspeaker is driven to work through a second power amplifier, and the volume output by the second loudspeaker is controlled to change along with the change of the volume level number. By the method, different loudspeakers are driven by different power amplifiers, so that sufficient driving capability can be ensured when the external amplifier function of the electronic equipment is used, and the optimal system sound effect is ensured. Moreover, under the condition that the performance of the second loudspeaker exceeds the preset performance, the output of the first loudspeaker is controlled to be kept constant in response to the change of the volume level number, and meanwhile, the performance of the second loudspeaker is fully improved, so that the first loudspeaker and the second loudspeaker can output balanced stereo effect, and the user experience is improved.
Referring to fig. 9, a speaker control method provided in the embodiment of the present application is applied to the electronic device shown in fig. 1, and the method includes:
step S410: and acquiring the current play-out scene.
In the embodiment of the application, in different play scenes, the requirements of the user on the stereo effect are different, so that different audio parameters can be set for different play scenes in advance to meet different requirements of the user on the stereo effect in different play scenes.
As one way, the play-out scene may include a music listening scene, a video viewing scene, a telephone call making scene, and the like, which are not limited in this respect. Each type of pop-up scene may typically be associated with a certain application in the electronic device, and thus the current pop-up scene may be determined by detecting the application being run in the electronic device. For example, a video scene may be associated with a video playing application in the electronic device, and thus, whether the video playing scene is currently being determined may be determined by detecting whether the video playing application in the electronic device is running.
Optionally, different scene identifiers may be set for different play-out scenes, and then whether a corresponding application identifier is detected is determined to determine which kind of the current play-out scene is specific.
Of course the way of determining the current play-out scene may be performed in case it is detected that the electronic device is in a play-out mode.
In the embodiment of the application, a target control may be set in the electronic device, and is used to control whether the electronic device switches to the play-out mode. When the target control is detected to be in the first state, the electronic equipment is determined to be in the playing mode, and when the target control is detected to be in the second state, the electronic equipment is determined not to be in the playing mode. The first state represents that the target control is in a running state, and the second state represents that the target control is in an idle state.
Step S420: and acquiring audio parameters corresponding to the play-out scene.
In the embodiment of the present application, the audio parameters may include the number of channels, the number of quantization bits, the sampling frequency, the code rate, and the like. In different play-out scenarios, the values of the audio parameters may be set differently.
As a manner, a corresponding relationship between the play-out scene and the audio parameter may be established in advance, and after the current play-out scene is determined, the corresponding audio parameter may be determined through the corresponding relationship.
Step S430: and under the condition that the performance of the second loudspeaker is higher than the preset performance, responding to the change of the volume level number, and driving the first loudspeaker to work with the audio parameter through the first power amplifier based on the audio parameter so as to control the volume output by the first loudspeaker to be kept unchanged.
In the embodiment of the application, after the audio parameter corresponding to the current play-out scene is determined, the first speaker may be driven by the first power amplifier to operate according to the audio parameter, and when it is detected that the performance of the second speaker is higher than the preset performance, the volume output by the first speaker is controlled to remain unchanged in response to the adjustment of the volume key.
Step S440: meanwhile, based on the audio parameters, the second loudspeaker is driven by the second power amplifier to work according to the audio parameters, so that the volume output by the second loudspeaker is controlled to change along with the change of the volume series.
In the embodiment of the application, after the audio parameter corresponding to the current play-out scene is determined, the second speaker may be driven by the second power amplifier to operate according to the audio parameter, and when it is detected that the performance of the second speaker is higher than the preset performance, the volume output by the second speaker is controlled to dynamically change along with the adjustment of the volume key in response to the adjustment of the volume key.
According to the loudspeaker control method, a current play scene is firstly acquired, and then an audio parameter corresponding to the play scene is acquired, so that under the condition that the performance of a second loudspeaker is higher than the preset performance, in response to the change of the volume level number, on the basis of the audio parameter, a first loudspeaker is driven by a first power amplifier to work with the audio parameter, the volume output by the second loudspeaker is controlled to be kept unchanged, and meanwhile, on the basis of the audio parameter, a second loudspeaker is driven by a second power amplifier to work with the audio parameter, and the volume output by the second loudspeaker is controlled to change along with the change of the volume level number. Through the mode, the loudspeaker is controlled to work through different audio parameters in different playing scenes, so that sound effects in different playing scenes can be guaranteed. And under the condition that the performance of the second loudspeaker exceeds the preset performance, the output of the first loudspeaker is controlled to be kept constant in response to the change of the volume level number, and meanwhile, the performance of the second loudspeaker is fully improved, so that the first loudspeaker and the second loudspeaker can output balanced stereo effect, and the user experience is improved.
Referring to fig. 10, a speaker control method provided in the embodiment of the present application is applied to the electronic device shown in fig. 1, and the method includes:
step S510: and acquiring the current play-out scene.
Step S520: and acquiring audio parameters corresponding to the play-out scene.
Step S530: under the condition that the performance of the second loudspeaker is lower than the preset performance, in response to the change of the volume level number, on the basis of the audio parameter, the first loudspeaker is driven to work with the audio parameter through the first power amplifier, and the second loudspeaker is driven to work with the audio parameter through the second power amplification, so that the volume output by the first loudspeaker and the volume output by the second loudspeaker are controlled to synchronously change along with the change of the volume level number.
In the embodiment of the application, after the audio parameter corresponding to the current playback scene is determined, the first speaker may be driven by the first power amplifier to operate according to the audio parameter, and the second speaker may be driven by the second power amplifier to operate according to the audio parameter.
And under the condition that the performance of the second loudspeaker is detected to be lower than the preset performance, controlling the volume output by the first loudspeaker and the second loudspeaker to change along with the adjustment of the volume key.
According to the loudspeaker control method, the current play-out scene is firstly acquired, and then the audio parameters corresponding to the play-out scene are acquired, so that under the condition that the performance of the second loudspeaker is lower than the preset performance, the volume output by the first loudspeaker and the volume output by the second loudspeaker are controlled to synchronously change along with the change of the volume level in response to the change of the volume level. By the method, under the condition that the performance of the second loudspeaker is lower than the optimal performance of the first loudspeaker, the volumes output by the first loudspeaker and the second loudspeaker are controlled to be changed synchronously, so that the first loudspeaker and the second loudspeaker can output balanced stereo effect, and the user experience is improved.
Referring to fig. 11, a speaker control apparatus 600 provided in an embodiment of the present application is operated in an electronic device, where the electronic device includes a first speaker and a second speaker, and a performance of the first speaker is lower than a performance of the second speaker, and the apparatus 600 includes:
and the first power amplifier 610 is used for controlling the volume output by the first loudspeaker to keep unchanged in response to the change of the volume level number under the condition that the performance of the second loudspeaker is higher than the preset performance.
As one way, the first power amplifier 610 is specifically configured to drive the first speaker to operate through the first power amplifier in response to a change in the volume level number in a case that the performance of the second speaker is higher than a preset performance, so as to control the volume output by the first speaker to remain unchanged.
Optionally, the first power amplifier 610 is specifically configured to obtain a current play-out scene; acquiring audio parameters corresponding to the play-out scene; and under the condition that the performance of the second loudspeaker is higher than the preset performance, responding to the change of the volume level number, and driving the first loudspeaker to work according to the audio parameter through the first power amplifier based on the audio parameter so as to control the volume output by the second loudspeaker to keep unchanged.
And a second power amplifier 620 for simultaneously controlling the volume output by the second speaker to vary with the variation of the volume level.
By one way, the second power amplifier 620 is specifically configured to drive the second speaker to operate through the second power amplifier at the same time, so as to control the volume output by the second speaker to change along with the change of the volume level.
Optionally, the second power amplifier 620 is further configured to drive, based on the audio parameter, the second speaker to operate according to the audio parameter through the second power amplifier, so as to control the volume output by the second speaker to vary with the variation of the volume level.
Referring to fig. 12, the apparatus 600 may further include:
a third control unit 630, configured to control the volume output by the first speaker and the volume output by the second speaker to change synchronously with the change of the volume progression in response to the change of the volume progression if the performance of the second speaker is lower than the preset performance.
As one way, the third control unit 630 is specifically configured to control the volume output by the first speaker and the volume output by the second speaker to decrease with the volume level while attenuating the same amplitude; or, the volume output by the first loudspeaker and the volume output by the second loudspeaker are controlled to increase with the volume level, and the same amplitude is increased at the same time.
A performance obtaining unit 640 for obtaining an optimal performance of the first speaker; and taking the optimal performance as the preset performance.
It should be noted that the device embodiment and the method embodiment in the present application correspond to each other, and specific principles in the device embodiment may refer to the contents in the method embodiment, which is not described herein again.
An electronic device provided by the present application will be described with reference to fig. 13.
Referring to fig. 13, based on the speaker control method and apparatus, another electronic device 800 capable of executing the speaker control method is provided in the embodiment of the present application. The electronic device 800 includes one or more processors 802 (only one shown), a memory 804, and a network module 806 coupled to each other. The memory 804 stores therein programs that can be executed in the foregoing embodiments, and the processor 802 can execute the programs stored in the memory 804.
Processor 802 may include one or more processing cores, among others. The processor 802 interfaces with various components throughout the electronic device 800 using various interfaces and circuitry to perform various functions of the electronic device 800 and process data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 804 and invoking data stored in the memory 804. Alternatively, the processor 802 may be implemented in hardware using at least one of Digital Signal Processing (DSP), field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 802 may integrate one or a combination of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 802, but may be implemented by a communication chip.
The Memory 804 may include a Random Access Memory (RAM) or a Read-Only Memory (ROM). The memory 804 may be used to store instructions, programs, code, sets of codes, or sets of instructions. The memory 804 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The data storage area may also store data created during use by the electronic device 800 (e.g., phone books, audio-visual data, chat log data), and so forth.
The network module 806 is configured to receive and transmit electromagnetic waves, and achieve interconversion between the electromagnetic waves and the electrical signals, so as to communicate with a communication network or other devices, for example, an audio playing device. The network module 806 may include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption/decryption chip, a Subscriber Identity Module (SIM) card, memory, and so forth. The network module 806 may communicate with various networks, such as the internet, an intranet, a wireless network, or with other devices via a wireless network. The wireless network may comprise a cellular telephone network, a wireless local area network, or a metropolitan area network. For example, the network module 806 can interact with the base station.
Referring to fig. 14, a block diagram of a computer-readable storage medium provided in an embodiment of the present application is shown. The computer-readable storage medium 900 has stored therein program code that can be called by a processor to execute the method described in the above method embodiments.
The computer-readable storage medium 900 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 900 includes a non-volatile computer-readable medium (non-transitory computer-readable storage medium). The computer readable storage medium 900 has storage space for program code 910 to perform any of the method steps of the method described above. The program code can be read from and written to one or more computer program products. The program code 910 may be compressed, for example, in a suitable form.
According to the loudspeaker control method, the loudspeaker control device, the electronic equipment and the storage medium, under the condition that the performance of the second loudspeaker is higher than the preset performance, the volume output by the first loudspeaker is controlled to be kept unchanged in response to the change of the volume level number, and meanwhile the volume output by the second loudspeaker is controlled to be changed along with the change of the volume level number. By the method, under the condition that the performance of the second loudspeaker exceeds the preset performance, the output of the first loudspeaker is controlled to be kept constant in response to the change of the volume level number, and meanwhile, the performance of the second loudspeaker is fully improved, so that the first loudspeaker and the second loudspeaker can output balanced stereo effect, and the user experience is improved.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A speaker control method applied to an electronic device including a first speaker and a second speaker, performance of the first speaker being lower than performance of the second speaker, the method comprising:
under the condition that the performance of the second loudspeaker is higher than the preset performance, responding to the change of the volume level number, and controlling the volume output by the first loudspeaker to keep unchanged;
and simultaneously controlling the volume output by the second loudspeaker to change along with the change of the volume level.
2. The method of claim 1, further comprising:
and under the condition that the performance of the second loudspeaker is lower than the preset performance, in response to the change of the volume level, controlling the volume output by the first loudspeaker and the volume output by the second loudspeaker to synchronously change along with the change of the volume level.
3. The method of claim 2, wherein the controlling the volume output by the first speaker and the volume output by the second speaker to vary synchronously with the variation in the volume level comprises:
controlling the volume output by the first loudspeaker and the volume output by the second loudspeaker to reduce along with the reduction of the volume series, and simultaneously attenuating the same amplitude; or,
and controlling the volume output by the first loudspeaker and the volume output by the second loudspeaker to increase along with the increase of the volume series, and simultaneously increasing the same amplitude.
4. The method of claim 1, wherein before controlling the volume output by the first speaker to remain unchanged in response to the change in the number of volume levels in the case where the performance of the second speaker is higher than a preset performance, further comprising:
obtaining an optimal performance of the first speaker;
and taking the optimal performance as the preset performance.
5. The method of claim 1, wherein the electronic device comprises a first power amplifier and a second power amplifier, and wherein controlling the volume output by the first speaker to remain unchanged in response to a change in the number of volume levels in the case that the performance of the second speaker is higher than a preset performance comprises:
under the condition that the performance of the second loudspeaker is higher than the preset performance, the first loudspeaker is driven to work through the first power amplifier in response to the change of the volume level number so as to control the volume output by the first loudspeaker to keep unchanged;
the simultaneously controlling the volume output by the second speaker to change with the change of the volume level comprises:
and simultaneously driving the second loudspeaker to work through the second power amplifier so as to control the volume output by the second loudspeaker to change along with the change of the volume level.
6. The method of claim 5, wherein the driving the first speaker to operate through the first power amplifier in response to the change of the volume level number in the case that the performance of the second speaker is higher than the preset performance so as to control the volume output by the first speaker to remain unchanged comprises:
acquiring a current play scene;
acquiring audio parameters corresponding to the play-out scene;
and under the condition that the performance of the second loudspeaker is higher than the preset performance, responding to the change of the volume level number, and driving the first loudspeaker to work with the audio parameter through the first power amplifier based on the audio parameter so as to control the volume output by the first loudspeaker to be kept unchanged.
7. The method of claim 6, further comprising:
and driving the second loudspeaker through the second power amplifier to work according to the audio parameters based on the audio parameters so as to control the volume output by the second loudspeaker to change along with the change of the volume series.
8. A speaker control apparatus operable with an electronic device including a first speaker and a second speaker, the first speaker having a performance lower than a performance of the second speaker, the apparatus comprising:
the first power amplifier is used for responding to the change of the volume level number under the condition that the performance of the second loudspeaker is higher than the preset performance, and controlling the volume output by the first loudspeaker to keep unchanged;
and the second power amplifier is used for simultaneously controlling the volume output by the second loudspeaker to change along with the change of the volume level.
9. An electronic device comprising one or more processors; one or more programs stored in the memory and configured to be executed by the one or more processors to perform the method of any of claims 1-7.
10. A computer-readable storage medium, having program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-7.
CN202211305011.1A 2022-10-24 2022-10-24 Loudspeaker control method, device, electronic equipment and storage medium Pending CN115550820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211305011.1A CN115550820A (en) 2022-10-24 2022-10-24 Loudspeaker control method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211305011.1A CN115550820A (en) 2022-10-24 2022-10-24 Loudspeaker control method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115550820A true CN115550820A (en) 2022-12-30

Family

ID=84718544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211305011.1A Pending CN115550820A (en) 2022-10-24 2022-10-24 Loudspeaker control method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115550820A (en)

Similar Documents

Publication Publication Date Title
CN109429147B (en) Electronic device and control method thereof
US9674330B2 (en) Method of improving sound quality of mobile communication terminal under receiver mode
CN100531242C (en) Sound reproduction device and method in portable electronic equipment
WO2017215657A1 (en) Sound effect processing method, and terminal device
CN105049977A (en) Automatic earphone volume adjusting method and device
US8284958B2 (en) Increased dynamic range microphone
EP3038255B1 (en) An intelligent volume control interface
CN111508510B (en) Audio processing method and device, storage medium and electronic equipment
CN102413402A (en) Audio frequency control method of audio frequency output device and audio frequency output device
US20240015438A1 (en) Managing low frequencies of an output signal
CN111552452A (en) Method, apparatus and storage medium for matching audio output parameters
CN111190568A (en) Volume adjusting method and device
CN113347307B (en) Method for suppressing leakage, related device and computer readable storage medium
CN111800699B (en) Volume adjustment prompting method and device, earphone equipment and storage medium
CN102576560B (en) electronic audio device
CN107479851B (en) Volume adjusting method, device, terminal device and storage medium
US11528549B2 (en) Method for improving electrical endurance of batteries of wireless headphones and the wireless headphones
CN113689890B (en) Method, device and storage medium for converting multichannel signal
CN115550820A (en) Loudspeaker control method, device, electronic equipment and storage medium
CN106293607B (en) Method and system for automatically switching audio output modes
CN117135262B (en) Conversation method and electronic equipment
WO2023160168A1 (en) Device test method and terminal
CN113014998B (en) Audio output method, device, television and computer readable storage medium
CN109144457B (en) Audio playing device and audio control circuit thereof
US20200098363A1 (en) Electronic device

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