Loudspeaker control method and apparatus, electronic device, and storage medium

By controlling the output volume of the weaker speaker to remain constant while the output volume of the stronger speaker changes with the volume level when the performance of the stronger speaker exceeds the preset performance, the problem of asymmetrical sound perception of the speakers is solved, a balanced stereo effect is achieved, and the user experience is improved.

CN115550820BActive Publication Date: 2025-11-25GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211305011.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-24
Publication Date
2025-11-25
Estimated Expiration
2042-10-24

AI Technical Summary

Technical Problem

Existing speaker control methods cause a mismatch between the output of weaker speakers and the output of stronger speakers when adjusting volume, resulting in an asymmetrical listening experience and a poor user experience.

Method used

When the performance of a higher-performing speaker exceeds the preset performance, the output volume of the lower-performing speaker remains unchanged, while the output volume of the higher-performing speaker varies with the volume level. Each speaker is driven by an independent power amplifier to achieve individual volume control.

Benefits of technology

It achieves a balanced stereo sound effect from the speaker output, enhancing the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115550820B_ABST
    Figure CN115550820B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a loudspeaker control method and device, electronic equipment and a storage medium. The method comprises: in the case that the performance of the second loudspeaker is higher than a preset performance, in response to a change in a volume level, keeping the volume output by the first loudspeaker unchanged; and simultaneously controlling the volume output by the second loudspeaker to change with the change in the volume level. Through the above method, in the case that the performance of the second loudspeaker exceeds the preset performance, in response to the change in the volume level, the output of the first loudspeaker is kept constant, and the performance of the second loudspeaker is fully improved, so that the first loudspeaker and the second loudspeaker can output balanced stereo sound effects, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of terminals, and particularly relates to a loudspeaker control method and device, an electronic device and a storage medium. BACKGROUND

[0002] 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 loudspeakers, and the configured loudspeakers are controlled to obtain better stereo sound effects. However, the related loudspeaker control method still needs to be improved in terms of the stereo sound output effect of the loudspeakers after the loudspeakers are adjusted. SUMMARY

[0003] In view of the above problems, the application provides a loudspeaker control method, device, electronic device and storage medium to improve the above problems.

[0004] In a first aspect, an embodiment of the application provides a loudspeaker control method applied to an electronic device, wherein the electronic device comprises a first loudspeaker and a second loudspeaker, the performance of the first loudspeaker is lower than the performance of the second loudspeaker, and the method comprises: in a case where the performance of the second loudspeaker is higher than a preset performance, controlling the volume output by the first loudspeaker to remain unchanged in response to a change in a volume level; and simultaneously controlling the volume output by the second loudspeaker to change with the change in the volume level.

[0005] In a second aspect, an embodiment of the application provides a loudspeaker control device running on an electronic device, wherein the electronic device comprises a first loudspeaker and a second loudspeaker, the performance of the first loudspeaker is lower than the performance of the second loudspeaker, and the device comprises: a first control unit configured to, in a case where the performance of the second loudspeaker is higher than a preset performance, control the volume output by the first loudspeaker to remain unchanged in response to a change in a volume level; and a second control unit configured to simultaneously control the volume output by the second loudspeaker to change with the change in the volume level.

[0006] In a third aspect, an embodiment of the application provides an electronic device comprising one or more processors and a memory; and 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, and the one or more programs are configured to perform the above method.

[0007] In a fourth aspect, an embodiment of the application provides a computer-readable storage medium, wherein the computer-readable storage medium stores program code, and the program code performs the above method when running.

[0008] The embodiment of the present application provides a loudspeaker control method and device, electronic equipment and a storage medium. In the case that the performance of the second loudspeaker is higher than the preset performance, the volume output by the first loudspeaker is kept unchanged and the volume output by the second loudspeaker is changed along with the change of the volume level in response to the change of the volume level. Through the above method, in the case that the performance of the second loudspeaker exceeds the preset performance, the output of the first loudspeaker is kept constant in response to the change of the volume level, and meanwhile, the performance of the second loudspeaker is fully improved, so that the first loudspeaker and the second loudspeaker can output balanced stereo sound effect, and the user experience is improved. BRIEF DESCRIPTION OF DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0010] Figure 1 An application scenario schematic diagram of a loudspeaker control method is shown;

[0011] Figure 2 A schematic diagram of a full-bridge inverter circuit of an intelligent power amplifier is shown;

[0012] Figure 3 A schematic diagram of time-sharing conduction of the full-bridge inverter circuit of the intelligent power amplifier is shown;

[0013] Figure 4 A flowchart of a loudspeaker control method is shown;

[0014] Figure 5 A schematic diagram of volume curve configuration is shown;

[0015] Figure 6 A flowchart of a loudspeaker control method is shown;

[0016] Figure 7 A flowchart of a loudspeaker control method is shown;

[0017] Figure 8 A schematic diagram of a driving circuit is shown;

[0018] Figure 9 A flowchart of a loudspeaker control method is shown;

[0019] Figure 10 a flow chart of a speaker control method according to an embodiment of the present application is shown;

[0020] Figure 11 a structural block diagram of a speaker control device according to an embodiment of the present application is shown;

[0021] Figure 12 a structural block diagram of a speaker control device according to an embodiment of the present application is shown;

[0022] Figure 13 a structural block diagram of an electronic device for executing a speaker control method according to an embodiment of the present application in the present application is shown;

[0023] Figure 14 a storage unit for storing or carrying program code for implementing a speaker control method according to an embodiment of the present application in the present application is shown. DETAILED DESCRIPTION

[0024] The technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.

[0025] With the development of electronic technology, electronic devices such as smart phones are used more and more frequently in users' daily life. Among them, the audio playback function of the electronic device is one of the functions that users use most in the process of using the electronic device. For example, in the process of users using the electronic device to watch movies and TV series, listen to music, play games, make voice calls or video calls, etc., the audio playback function of the electronic device will be used. Therefore, users have higher requirements for the sound effect when the electronic device plays audio. For example, when using the audio external playback function of the electronic device, the electronic device can output a stereo external playback effect through the set speaker.

[0026] However, due to the thinness and portability of the electronic device, the configuration of a single speaker has been difficult to meet the increasing demand of users for audio external playback scenarios such as loudness and surround feeling. In order to improve and improve the external playback effect of the electronic device, more and more electronic devices are equipped with two or more speakers to obtain better stereo effect. But limited by the thin body of the electronic device, and the squeezing of multiple cameras and large batteries 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 good stereo effect.

[0027] The configuration of the current main process is generally to set a slightly weaker speaker above the electronic device to realize the receiver function of the handheld microphone, and set a better speaker below the electronic device to assist in outputting the stereo sound effect. Based on the configuration of the current electronic device speaker system, in most external playback scenarios, the optimal performance of the better speaker often needs to be reduced to balance the stereo sound effect. Generally, when adjusting the performance of the speaker, the volume key of the electronic device is adjusted. When adjusting the volume key of the electronic device, the performance of the two speakers provided in the electronic device is often adjusted synchronously, and there is always an asymmetric listening experience of "upper weak and lower strong", and the user experience is poor. Among them, when adjusting the volume key of the electronic device, the performance of the two speakers provided in the electronic device is often adjusted synchronously, that is, the performance of the two speakers provided in the electronic device is simultaneously increased or decreased with the adjustment of the volume key; the asymmetric listening experience of "upper weak and lower strong" is due to the weaker performance of the speaker provided above the electronic device, and the better performance of the speaker provided below the electronic device.

[0028] Therefore, the inventors propose the speaker control method, device, electronic device and storage medium in the present application. In the case that the performance of the second speaker is higher than the preset performance, in response to the change of the volume level, the volume output by the first speaker remains unchanged, and the volume output by the second speaker changes with the change of the volume level. Through the above method, in the case that the performance of the second speaker exceeds the preset performance, in response to the change of the volume level, the output of the first speaker remains constant, and the performance of the second speaker is fully improved, so that the first speaker and the second speaker can output balanced stereo effect, and the user experience is improved.

[0029] The application environment of the speaker control method provided by the present application is introduced as follows:

[0030] Please refer to Figure 1 The speaker control method provided by the present application can be applied to the electronic device 100 as shown in Figure 1 The electronic device 100 can include two or more speakers. For example, Figure 1As shown, the electronic device 100 can include two speakers, a first speaker 110 and a second speaker 120. The performance of the first speaker 110 and the second speaker 120 can be the same or different. Optionally, the performance of the first speaker 110 can be higher than that of the second speaker 120; the performance of the first speaker 110 can also be lower than that of the second speaker 120; or the performance of the first speaker 110 can be equal to that of the second speaker 120. When the performance of the first speaker 110 is equal to that of the second speaker 120, balanced stereo sound can 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 second speaker 120 is different, in order to output balanced stereo sound and provide a good sound experience for the user, the performance of the first speaker 110 or the second speaker 120 can be adjusted so that balanced stereo sound can be output through the first speaker 110 and the second speaker 120 after adjustment.

[0031] In the embodiments of the present application, the first speaker 110 and the second speaker 120 can each have two terminal posts (two leads), and the two leads have no positive and negative polarity when only the first speaker 110 or the second speaker 120 is used in the electronic device 100; the two leads have polarity when the first speaker 110 and the second speaker 120 are used simultaneously in the electronic device 100.

[0032] In the embodiments of the present application, as shown in Figure 1 In the electronic device 100, the first speaker 110 can be arranged at the upper end of the electronic device 100, and the second speaker 120 can be arranged at the lower end of the electronic device 100, and the first speaker 110 and the second speaker 120 can be driven to operate by separate smart power amplifiers (Smart PA), such as a smart power amplifier 1 driving the first speaker 110 to operate and a smart power amplifier 2 driving the second speaker 120 to operate.

[0033] The smart power amplifier generally adopts a full-bridge inverter circuit. The full-bridge inverter circuit of the smart power amplifier can refer to Figure 2 , which includes four switching tubes Q1, Q2, Q3 and Q4, and each switching tube has an input end and an output end connected to a diode. The input ends of the switching tubes Q1 and Q3 are connected to a direct current voltage VBOOST, and the output ends of the switching tubes Q2 and Q4 are grounded. The common end of the switching tubes Q1 and Q2 is the SPK-P end, the common end of the switching tubes Q3 and Q4 is the SPK-N end, and the SPK-P end and the SPK-N end are connected to the speaker.

[0034] Figure 2The switch tubes Q1 to Q4 shown in the figure are NPN transistors, the input end refers to the collector of the NPN transistor, the output end refers to the emitter of the NPN transistor, and the control end refers to the base of the NPN transistor. However, the switch tubes Q1 to Q4 can also use other forms of switch tubes.

[0035] Optionally, in the smart power amplifier, the four switch tubes are turned on in time to provide voltage for the speaker to run. Specifically, as shown in the figure, in the first stage, the switch tubes Q1 and Q4 are turned on, the switch tubes Q2 and Q3 are turned off, and the direct current voltage VBOOST supplies power to the speaker in the direction indicated by ①. In the second stage, the switch tubes Q1 and Q4 are turned off, the switch tubes Q2 and Q3 are turned on, and the direct current voltage VBOOST supplies power to the speaker in the direction indicated by ②. Figure 3

[0036] It should be noted that the electronic device 100 can be not only the smart phone shown in the figure, but also a car machine device, a wearable electronic device, a tablet computer, a (desktop, laptop) notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a smart speaker, and the like, which can be configured with two or more speakers. Figure 1

[0037] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0038] Please refer to Figure 4 , the speaker control method provided by the embodiments of the present application is applied to an electronic device as shown in the figure, and the method comprises the following steps. Figure 1

[0039] Step S110: in the case where the performance of the second speaker is higher than the preset performance, the volume output by the first speaker is kept unchanged in response to the change of the volume level.

[0040] In the embodiments of the present application, the electronic device comprises a first speaker and a second speaker. The first speaker and the second speaker are asymmetric speakers.

[0041] 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 the speaker with lower performance in the two speakers, and the second speaker is the speaker with higher performance in the two speakers, that is, in the embodiments of the present application, the optimal performance of the first speaker is lower than that of the second speaker.

[0042] ​​​As a way, the loudspeaker is the key part in the loudspeaker system, and the sound quality of the loudspeaker is mainly determined by the performance index of the loudspeaker. In the embodiments of the present application, the performance of the loudspeaker can be represented by the numerical value of the performance index of the loudspeaker. The performance index of the loudspeaker can include rated power, rated impedance, frequency characteristic, harmonic distortion, sensitivity, directivity, etc.

[0043] Among them, the rated power of the loudspeaker refers to the output power of the loudspeaker that can work for a long time, also known as the undistorted power, which is generally marked on the back end of the loudspeaker. When the loudspeaker works at the rated power, the voice coil will not produce overheating or mechanical overload, and the sound emitted will not show distortion. The rated power is an average power, and in fact the loudspeaker works in a variable power state, which changes with the strength of the input audio signal. In weak music and sound signals, the peak pulse signal can exceed the rated power by many times, and since the duration is short, the loudspeaker will not be damaged, but distortion may occur. Therefore, in order to ensure that the sound quality can be well obtained when the peak pulse occurs, the loudspeaker must have sufficient power margin. Generally, the maximum power that the loudspeaker can follow is 24 times the rated power.

[0044] The rated impedance of the loudspeaker refers to the ratio of the voltage applied to the input end of the loudspeaker to the current flowing through the loudspeaker under the rated state of the loudspeaker. At present, the rated impedance of the loudspeaker generally has several kinds of 2, 4, 8, 16, 32 ohms. The rated impedance of the loudspeaker is measured under the condition of inputting a 400Hz signal voltage.

[0045] The frequency characteristic of the loudspeaker is an index for measuring the bandwidth of the loudspeaker. High-fidelity sound system requires that the loudspeaker system should be able to replay the human ear audible frequency range of 10Hz-2000Hz. Since it is not easy to achieve this frequency range with a single loudspeaker, currently high-fidelity sound box system adopts high, medium and low three kinds of loudspeakers to realize full frequency band playback coverage. In addition, the frequency characteristic of the high-fidelity loudspeaker should be as flat as possible, otherwise it will introduce frequency distortion in playback. High-fidelity sound system requires that the frequency characteristic of the loudspeaker should be less than 10dB in the frequency range of the sound.

[0046] There are many kinds of distortion of the loudspeaker, the common ones are harmonic distortion (often caused by uneven magnetic field of the loudspeaker and distortion of the vibration system, often produced at low frequency), intermodulation distortion (because two signals of different frequencies are added to the loudspeaker at the same time, the quality of the modulated audio is deteriorated) and transient distortion (because the inertia of the vibration system cannot follow the change of the signal, the signal is distorted) etc. The harmonic distortion of the loudspeaker refers to the increase of the harmonic components in the original signal during playback. The harmonic distortion of the loudspeaker is caused by uneven magnetic field of the magnet, non-linear distortion of the vibration membrane, voice coil displacement, etc. The harmonic distortion index of the current better loudspeaker is not more than 5%.

[0047] The sensitivity of a loudspeaker generally refers to the sound pressure measured at 1 m in front of the loudspeaker axis when the input power is 1 W. The sensitivity is an index for measuring whether the loudspeaker can replay the details in the audio signal in great detail. The higher the sensitivity of the loudspeaker, the more details in the audio signal can be responded by the loudspeaker. The sensitivity of the HiFi loudspeaker should be greater than 86 dB / W.

[0048] The sound pressure frequency characteristics of the loudspeaker radiation in different directions are different, and such characteristics become the directivity of the loudspeaker. The directivity of the loudspeaker is related to the aperture of the loudspeaker. When the aperture of the loudspeaker is large, the directivity of the loudspeaker is sharp, and when the aperture of the loudspeaker is small, the directivity of the loudspeaker is wide. The directivity of the loudspeaker is also related to the frequency. Generally speaking, there is no obvious directivity for low-frequency signals below 250 Hz, and there is obvious directivity for high-frequency signals below 1.5 kHz.

[0049] In the embodiments of the present application, the preset performance can be the optimal performance of the loudspeaker with weaker performance in the two loudspeakers. The optimal performance can be the maximum value of any one of the performance indicators, or different values set for the different performance indicators after comprehensive evaluation of the performance indicators. For example, if the optimal performance of the first loudspeaker is lower than that of the second loudspeaker, the preset performance can be the optimal performance of the first loudspeaker. Specifically, the maximum rated power of the first loudspeaker can be set as the preset performance, or the value obtained by weighted summation of the performance characteristics corresponding to the first loudspeaker can be set as the preset performance, which is not limited here.

[0050] Optionally, the preset performance can also be determined by modeling, matching the performance balance point of the first loudspeaker and the second loudspeaker, and taking the performance corresponding to the performance balance point as the preset performance. Specifically, the optimal performance of the first loudspeaker and the adjustment of the second loudspeaker to the performance close to the performance balance point are determined as the preset performance.

[0051] When the preset performance is determined by modeling, since the optimal performance of the first loudspeaker is lower than that of the second loudspeaker, the performance of the first loudspeaker and the second loudspeaker can be adjusted to the respective optimal performance first, the optimal performance of the first loudspeaker is kept unchanged, and then the performance of the second loudspeaker is gradually reduced to find the performance balance point of the first loudspeaker and the second loudspeaker, so that the performance corresponding to the performance balance point is determined as the preset performance.

[0052] Further, for most users, when using the audio externalization function of the electronic device, in a relatively quiet environment, more attention is paid to the quality of the sound, that is, the sound emitted by the loudspeaker needs to be balanced and clear and comfortable; and in a noisy environment, the volume key is often adjusted to the maximum, and greater loudness is needed to meet the user's demand for obtaining the sound content of the externalization of the electronic device, and the demand for sound balance and sound quality is reduced. In order to improve the asymmetric stereo effect and improve the externalization effect of the electronic device, two intelligent power amplifiers can be used to drive the first loudspeaker and the second loudspeaker to work respectively, and separate volume curve configurations are set for the first loudspeaker and the second loudspeaker, so that when the user adjusts the volume key, the first loudspeaker and the second loudspeaker are switched from synchronous change to separate change, so that the first loudspeaker and the second loudspeaker individually reduce or maintain the output effect with the change of the volume key, thereby enabling the asymmetric loudspeakers to output balanced stereo effect in most scenarios. That is, when it is detected that the user adjusts the volume key, according to the adjustment of the volume key, the volume of the first loudspeaker is adjusted to the volume corresponding to the corresponding volume level in the corresponding volume curve of the first loudspeaker through the volume curve configuration corresponding to the first loudspeaker; and the volume of the second loudspeaker is adjusted to the volume corresponding to the corresponding volume level in the corresponding volume curve of the second loudspeaker through the volume curve configuration corresponding to the second loudspeaker.

[0053] In the embodiments of the present application, the volume curve configurations corresponding to the first loudspeaker and the second loudspeaker are different. The volume curve is used to represent the linear relationship between the volume level and the volume size. The adjustment of the volume key corresponds to the volume level, and each level in the volume level corresponds to one adjustment of the volume key. That is, the volume key is adjusted once, and the volume level is changed once.

[0054] For example, as shown in FIG. 1, Figure 5 , the volume curve configurations corresponding to the first loudspeaker and the second loudspeaker are different. The volume curve is used to represent the linear relationship between the volume level and the volume size. The adjustment of the volume key corresponds to the volume level, and each level in the volume level corresponds to one adjustment of the volume key. That is, the volume key is adjusted once, and the volume level is changed once. Figure 5 Figure 5 In the embodiments of the present application, the volume curve configurations corresponding to the first loudspeaker and the second loudspeaker are different. The volume curve is used to represent the linear relationship between the volume level and the volume size. The adjustment of the volume key corresponds to the volume level, and each level in the volume level corresponds to one adjustment of the volume key. That is, the volume key is adjusted once, and the volume level is changed once. Figure 5 Figure 5 In the embodiments of the present application, the volume curve configurations corresponding to the first loudspeaker and the second loudspeaker are different. The volume curve is used to represent the linear relationship between the volume level and the volume size. The adjustment of the volume key corresponds to the volume level, and each level in the volume level corresponds to one adjustment of the volume key. That is, the volume key is adjusted once, and the volume level is changed once. Figure 5

[0055] ​​​As a manner, when the performance of the second speaker is detected to be higher than the preset performance, and the performance of the first speaker is at the highest performance, if the change of the volume level number is detected, the volume output by the first speaker is kept unchanged. That is, when the performance of the first speaker and the performance of the second speaker are both 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. Whether the increase of the volume level number is detected or the decrease of the volume level number is detected, the performance of the first speaker is kept unchanged.

[0056] Step S120: simultaneously control the volume output by the second speaker to change with the change of the volume level number.

[0057] In the embodiment of the present application, when the change of the volume level number is detected, the volume output by the second speaker is controlled to change with the change of the volume level number. Specifically, if the increase of the volume level number is detected, the volume output by the second speaker is controlled to increase; if the decrease of the volume level number is detected, the volume output by the second speaker is controlled to decrease. Through the above manner, the balanced output of the first speaker and the second speaker can be ensured as much as possible, and the performance of the second speaker can be fully played at a large volume to improve the overall loudness to meet the user demand.

[0058] The speaker control method provided in the present application, in the case that the performance of the second speaker is higher than the preset performance, the volume output by the first speaker is controlled to be kept unchanged in response to the change of the volume level number, and the volume output by the second speaker is controlled to change with the change of the volume level number. Through the above method, in the case that the performance of the second speaker exceeds the preset performance, the output of the first speaker is controlled to be kept constant in response to the change of the volume level number, and the performance of the second speaker is fully improved, so that the first speaker and the second speaker can output balanced stereo sound effect, and the user experience is improved.

[0059] Please refer to Figure 6 The speaker control method provided in the embodiment of the present application is applied to the electronic device as shown in Figure 1 The method comprises the following steps:

[0060] Step S210: in the case that the performance of the second speaker is 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 number in response to the change of the volume level number.

[0061] In the embodiment of the present application, if the performance of the second speaker is detected to be 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 number in response to the change of the volume level number.

[0062] As a manner, the volume outputted by the first speaker and the volume outputted by the second speaker are controlled to change synchronously with the change of the volume level, including: controlling the volume outputted by the first speaker and the volume outputted by the second speaker to attenuate by the same amplitude with the decrease of the volume level; or, controlling the volume outputted by the first speaker and the volume outputted by the second speaker to increase by the same amplitude with the increase of the volume level.

[0063] That is to say, in the above case, if the volume level is detected to decrease, the volume outputted by the first speaker and the volume outputted by the second speaker are decreased simultaneously; if the volume level is detected to increase, the volume outputted by the first speaker and the volume outputted by the second speaker are increased simultaneously.

[0064] The speaker control method provided by the application can control the volume outputted by the first speaker and the volume outputted by the second speaker to change synchronously with the change of the volume level in response to the change of the volume level when the performance of the second speaker is lower than the preset performance. By the above method, when the performance of the second speaker is lower than the optimal performance of the first speaker, the volume outputted by the first speaker and the volume outputted by the second speaker can be controlled to change synchronously, so that the first speaker and the second speaker can output balanced stereo sound effect, and the user experience can be improved.

[0065] Please refer to Figure 7 The speaker control method provided by the embodiment of the application is applied to an electronic device as shown in Figure 1 The method comprises the following steps.

[0066] Step S310: obtaining the optimal performance of the first speaker.

[0067] Step S320: taking the optimal performance as the preset performance.

[0068] In the embodiment of the application, the optimal performance of the first speaker can be directly taken as the preset performance.

[0069] Step S330: when the performance of the second speaker is higher than the preset performance, in response to the change of the volume level, the first speaker is driven to work by the first power amplifier, so as to control the volume outputted by the first speaker to remain unchanged.

[0070] In the embodiment of the application, in order to improve the sound output effect of the electronic device, two power amplifiers can be used to drive different speakers to work. Specifically, as shown in Figure 8 Figure 8 ​A schematic diagram of a driving circuit in an embodiment of the present application is shown. In the embodiment of the present application, the driving circuit can include a microcontroller unit (MCU), a first power amplifier (PA1), a second power amplifier (PA2), a first speaker (SPK1), and a second speaker (SPK2). The microcontroller unit can address the first power amplifier (PA1) and the second power amplifier (PA2) through an I2C bus, respectively. Meanwhile, the microcontroller unit can connect the first power amplifier (PA1), the second power amplifier (PA2), the first speaker (SPK1), and the second speaker (SPK2) through an Inter-IC Sound (I2S) bus. As shown in FIG. 1, the microcontroller unit, the first power amplifier (PA1), and the first speaker (SPK1) form a path to drive the first speaker (SPK1) through the first power amplifier (PA1); and the microcontroller unit, the second power amplifier (PA2), and the second speaker (SPK2) form a path to drive the second speaker (SPK2) through the second power amplifier (PA2). Figure 9

[0071] In the embodiment of the present application, the first power amplifier and the second power amplifier are configured with separate volume curves to provide different audio parameters for the speakers in different scenarios and provide better sound effects for users.

[0072] As a way, when the first speaker is driven to work through the first power amplifier to control the volume output by the first speaker to remain unchanged, the first power amplifier can be controlled to drive the first speaker to work at a constant power, so as to control the volume output by the first speaker to remain unchanged.

[0073] Step S340: simultaneously driving the second speaker to work through the second power amplifier to control the volume output by the second speaker to change with the change of the volume level.

[0074] In the embodiment of the present application, when the second speaker is driven to work through the second power amplifier to control the volume output by the second speaker to change with the change of the volume level, the second power amplifier can be controlled to drive the second speaker to work at different powers, so as to control the second speaker to output different sizes of volumes at different powers.

[0075] ​The speaker control method provided in the application first acquires the optimal performance of the first speaker, takes the optimal performance as the preset performance, and then in the case that the performance of the second speaker is higher than the preset performance, the first speaker is driven to work by the first power amplifier to control the volume output by the first speaker to remain unchanged, and the second speaker is driven to work by the second power amplifier to control the volume output by the second speaker to change with the change of the volume level, in response to the change of the volume level. Through the above method, different power amplifiers are used to drive different speakers, so that sufficient driving capability can be ensured when the external playing function of the electronic device is used, and the optimal system sound effect is ensured. Furthermore, in the case that the performance of the second speaker exceeds the preset performance, the output of the first speaker is controlled to remain constant, and the performance of the second speaker is fully improved, so that the first speaker and the second speaker can output balanced stereo sound effect, and the user experience is improved.

[0076] Please refer to Figure 9 The speaker control method provided in the embodiments of the application is applied to an electronic device as shown in Figure 1 The method comprises the following steps:

[0077] Step S410: Acquire the current external playing scene.

[0078] In the embodiments of the application, the requirements of the user on the stereo sound effect are different in different external playing scenes, so different audio parameters can be set for different external playing scenes in advance to meet the different requirements of the user on the stereo sound effect in different external playing scenes.

[0079] As a kind of way, the external playing scene can include listening to music scene, watching video scene, making a phone call scene and the like, which are not limited herein. Each external playing scene can be associated with a certain application program in the electronic device, so the current external playing scene can be determined by detecting the application program running in the electronic device. For example, the watching video scene can be associated with the video playing application program in the electronic device, so whether the current scene is the video playing scene can be determined by detecting whether the video playing application program is running in the electronic device.

[0080] Optionally, different scene identifiers can be set for different external playing scenes, and then the current external playing scene can be determined by determining whether the corresponding application identifier is detected.

[0081] Of course, the way of determining the current external playing scene can be executed when it is detected that the electronic device is in the external playing mode.

[0082] In the embodiments of the present application, a target control can be arranged in the electronic device, which is used to control whether the electronic device switches to the external mode. When the target control is detected in the first state, it is determined that the electronic device is in the external mode, and when the target control is detected in the second state, it is determined that the electronic device is not in the external mode. The first state represents that the target control is in the running state, and the second state represents that the target control is in the idle state.

[0083] Step S420: Obtain the audio parameter corresponding to the external scene.

[0084] In the embodiments of the present application, the audio parameter can include the number of channels, the number of quantization bits, the sampling frequency, the code rate, and the like. In different external scenes, the values of the above audio parameters can be set differently.

[0085] As a way, the correspondence between the external scene and the audio parameter can be established in advance, and then after the current external scene is determined, the corresponding audio parameter can be determined through the correspondence.

[0086] Step S430: In the case where the performance of the second loudspeaker is higher than the preset performance, in response to the change of the volume level number, the first loudspeaker is driven by the first power amplifier to work at the audio parameter based on the audio parameter, so as to control the volume output by the first loudspeaker to remain unchanged.

[0087] In the embodiments of the present application, after the audio parameter corresponding to the current external scene is determined, the first loudspeaker can be driven by the first power amplifier to work at the audio parameter, and in the case where the performance of the second loudspeaker is higher than the preset performance, in response to the adjustment of the volume key, the volume output by the first loudspeaker is controlled to remain unchanged.

[0088] Step S440: At the same time, the second loudspeaker is driven by the second power amplifier to work at the audio parameter based on the audio parameter, so as to control the volume output by the second loudspeaker to change with the change of the volume level number.

[0089] In the embodiments of the present application, after the audio parameter corresponding to the current external scene is determined, the second loudspeaker can be driven by the second power amplifier to work at the audio parameter, and in the case where the performance of the second loudspeaker is higher than the preset performance, in response to the adjustment of the volume key, the volume output by the second loudspeaker is controlled to dynamically change with the adjustment of the volume key.

[0090] The loudspeaker control method provided in the application first acquires a current external playing scene, and then acquires an audio parameter corresponding to the external playing scene, so that in the case that the performance of the second loudspeaker is higher than the preset performance, the first loudspeaker is driven to work with the audio parameter by the first power amplifier based on the audio parameter in response to the change of the volume level, so as to control the volume output by the second loudspeaker to remain unchanged, and the second loudspeaker is driven to work with the audio parameter by the second power amplifier based on the audio parameter, so as to control the volume output by the second loudspeaker to change with the change of the volume level. In the above manner, the loudspeaker is controlled to work through different audio parameters in different external playing scenes, so that the sound effect in different external playing scenes can be guaranteed. Furthermore, in the case that the performance of the second loudspeaker exceeds the preset performance, the output of the first loudspeaker is controlled to remain constant in response to the change of the volume level, and the performance of the second loudspeaker is fully improved, so that the first loudspeaker and the second loudspeaker can output balanced stereo sound effect, and the user experience is improved.

[0091] Please refer to Figure 10 The loudspeaker control method provided in the embodiments of the application is applied to an electronic device as shown in Figure 1 The method comprises the following steps.

[0092] Step S510: Acquire a current external playing scene.

[0093] Step S520: Acquire an audio parameter corresponding to the external playing scene.

[0094] Step S530: In the case that the performance of the second loudspeaker is lower than the preset performance, the first loudspeaker is driven to work with the audio parameter by the first power amplifier based on the audio parameter in response to the change of the volume level, and the second loudspeaker is driven to work with the audio parameter by the second power amplifier, so as to control the volume output by the first loudspeaker and the volume output by the second loudspeaker to change synchronously with the change of the volume level.

[0095] In the embodiments of the application, after the audio parameter corresponding to the current external playing scene is determined, the first loudspeaker is driven to work with the audio parameter by the first power amplifier, and the second loudspeaker is driven to work with the audio parameter by the second power amplifier.

[0096] In the case 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 change with the adjustment of the volume key.

[0097] The application provides a loudspeaker control method, which comprises the following steps: acquiring a current external playing scene; and acquiring audio parameters corresponding to the external playing scene. In the case that the performance of a second loudspeaker is lower than a preset performance, the volume output by a first loudspeaker and the volume output by the second loudspeaker are controlled to change synchronously with the change of the volume level in response to the change of the volume level. Through the above method, in the case 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 change synchronously, so that the first loudspeaker and the second loudspeaker can output balanced stereo sound effect, and the user experience is improved.

[0098] Please refer to Figure 11 The application provides a loudspeaker control device 600, which is applied to an electronic device, the electronic device comprises a first loudspeaker and a second loudspeaker, the performance of the first loudspeaker is lower than the performance of the second loudspeaker, and the device 600 comprises:

[0099] A first power amplifier 610 is configured to control the volume output by the first loudspeaker to remain unchanged in response to the change of the volume level in the case that the performance of the second loudspeaker is higher than a preset performance.

[0100] As a kind of way, the first power amplifier 610 is specifically configured to drive the first loudspeaker to work by the first power amplifier in the case that the performance of the second loudspeaker is higher than a preset performance in response to the change of the volume level, to control the volume output by the first loudspeaker to remain unchanged.

[0101] Optionally, the first power amplifier 610 is specifically configured to acquire a current external playing scene, acquire audio parameters corresponding to the external playing scene, and drive the first loudspeaker to work by the first power amplifier based on the audio parameters in the case that the performance of the second loudspeaker is higher than a preset performance in response to the change of the volume level, to control the volume output by the second loudspeaker to remain unchanged.

[0102] A second power amplifier 620 is configured to control the volume output by the second loudspeaker to change with the change of the volume level at the same time.

[0103] As a kind of way, the second power amplifier 620 is specifically configured to drive the second loudspeaker to work by the second power amplifier at the same time, to control the volume output by the second loudspeaker to change with the change of the volume level.

[0104] Optionally, the second power amplifier 620 is further configured to drive the second loudspeaker to work by the second power amplifier based on the audio parameters, to control the volume output by the second loudspeaker to change with the change of the volume level.

[0105] Referring to Figure 12 , the apparatus 600 can further include:

[0106] a third control unit 630, configured to, in response to the change of the volume level, control the volume outputted by the first speaker and the volume outputted by the second speaker to change synchronously with the change of the volume level, in the case that the performance of the second speaker is lower than the preset performance.

[0107] As a manner, the third control unit 630 is specifically configured to control the volume outputted by the first speaker and the volume outputted by the second speaker to decrease with the same amplitude, or to control the volume outputted by the first speaker and the volume outputted by the second speaker to increase with the same amplitude, with the decrease or increase of the volume level.

[0108] a performance acquisition unit 640, configured to acquire the optimal performance of the first speaker, and take the optimal performance as the preset performance.

[0109] It should be noted that the apparatus embodiments in the present application correspond to the foregoing method embodiments, and the specific principles of the apparatus embodiments can be referred to the content in the foregoing method embodiments, which will not be described here.

[0110] The following will be combined Figure 13 to describe an electronic device provided by the present application.

[0111] Referring to Figure 13 , based on the foregoing speaker control method and apparatus, the present application further provides another electronic device 800 which can execute the foregoing speaker control method. The electronic device 800 includes one or more (only one is shown in the figure) processors 802, a memory 804 and a network module 806 which are coupled with each other. The memory 804 stores programs which can execute the content in the foregoing embodiments, and the processor 802 can execute the programs stored in the memory 804.

[0112] The processor 802 can include one or more processing cores. The processor 802 connects various parts within the entire electronic device 800 by running or executing instructions, programs, code sets or instruction sets stored in the memory 804, and calling data stored in the memory 804, to perform various functions and process data of the electronic device 800. Alternatively, the processor 802 can be implemented in at least one of a hardware form of a digital signal processor (DSP), a field-programmable gate array (FPGA), a programmable logic array (PLA), etc. The processor 802 can integrate a combination of one or several of a central processing unit (CPU), a graphics processor (GPU), and a modem, etc. Among them, the CPU mainly processes an operating system, a user interface, and an application program, etc.; the GPU is responsible for rendering and drawing display content; and the modem is used for processing wireless communication. It can be understood that the above-mentioned modem can also not be integrated into the processor 802, but be implemented by a separate communication chip.

[0113] The memory 804 can include a random access memory (RAM) and can also include a read-only memory (ROM). The memory 804 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 804 can include a program storage area and a data storage area, wherein the program storage area can 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 each of the following method embodiments, etc. The data storage area can also store data created by the electronic device 800 in use (such as a phone book, audio and video data, chat record data), etc.

[0114] The network module 806 is configured to receive and send electromagnetic waves, and to convert the electromagnetic waves and electrical signals to each other, so as to communicate with a communication network or other devices, for example, an audio playing device. The network module 806 can include various existing circuit elements for performing these functions, for example, an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and the like. The network module 806 can communicate with various networks such as the Internet, an intranet, a wireless network, or other devices through the wireless network. The wireless network can include a cellular telephone network, a wireless local area network or metropolitan area network. For example, the network module 806 can interact with a base station.

[0115] Reference is made to Figure 14 FIG. 9 shows a structural block diagram of a computer readable storage medium according to an embodiment of the present application. The computer readable storage medium 900 stores program codes, which can be invoked by a processor to execute the methods described in the above method embodiments.

[0116] The computer readable storage medium 900 can be an electronic storage 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-transitory computer readable medium. The computer readable storage medium 900 has a storage space for program codes 910 for executing any of the above methods. These program codes can be read from or written to one or more computer program products. The program codes 910 can be compressed in an appropriate form, for example.

[0117] The loudspeaker control method, device, electronic device and storage medium provided in the present application, in the case where the performance of the second loudspeaker is higher than the preset performance, the volume output by the first loudspeaker is kept unchanged in response to the change of the volume level, while the volume output by the second loudspeaker is changed in response to the change of the volume level. Through the above method, in the case where the performance of the second loudspeaker exceeds the preset performance, the output of the first loudspeaker is kept constant in response to the change of the volume level, while the performance of the second loudspeaker is fully improved, so that the first loudspeaker and the second loudspeaker can output balanced stereo sound effect, and the user experience is improved.

[0118] The embodiments of the present application are described above with reference to the accompanying drawings, but the present application is not limited to the above-described specific embodiments, and the above-described specific embodiments are merely illustrative, but not restrictive, and a person of ordinary skill in the art can make many forms under the inspiration of the present application without departing from the purpose of the present application and the scope protected by the claims, and all of them belong to the protection of the present application.

Claims

1. A speaker control method, characterized by, The method is applied to an electronic device including a first speaker and a second speaker, the performance of the first speaker is lower than the performance of the second speaker, and the method comprises: In the case that the performance of the second speaker is higher than a preset performance, the volume output by the first speaker is kept unchanged in response to the change of a volume level number; Meanwhile, the volume output by the second speaker is changed in response to the change of the volume level number.

2. The method of claim 1, wherein, The method further comprises: In the case that the performance of the second speaker is lower than the preset performance, the volume output by the first speaker and the volume output by the second speaker are changed synchronously in response to the change of the volume level number.

3. The method of claim 2, wherein, The control of the volume output by the first speaker and the volume output by the second speaker changing synchronously in response to the change of the volume level number comprises: The volume output by the first speaker and the volume output by the second speaker are attenuated by the same amplitude in response to the decrease of the volume level number; or The volume output by the first speaker and the volume output by the second speaker are increased by the same amplitude in response to the increase of the volume level number.

4. The method of claim 1, wherein, The method further comprises, before the control of the volume output by the first speaker being kept unchanged 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: Obtaining the optimal performance of the first speaker; Taking the optimal performance as the preset performance.

5. The method of claim 1, wherein, The electronic device includes a first power amplifier and a second power amplifier, and the control of the volume output by the first speaker being kept unchanged 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 comprises: In the case that the performance of the second speaker is higher than the preset performance, the first speaker is driven to work by the first power amplifier in response to the change of the volume level number, so as to keep the volume output by the first speaker unchanged; The simultaneous control of the volume output by the second speaker changing in response to the change of the volume level number comprises: The second speaker is simultaneously driven to work by the second power amplifier, so as to control the volume output by the second speaker changing in response to the change of the volume level number.

6. The method of claim 5, wherein, The control of the first speaker being driven to work by 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 comprises: Obtaining a current playback scene; Obtaining an audio parameter corresponding to the playback scene; In the case that the performance of the second speaker is higher than the preset performance, the first speaker is driven to work by the first power amplifier based on the audio parameter in response to the change of the volume level number, so as to keep the volume output by the first speaker unchanged.

7. The method of claim 6, wherein, The method further comprises: The second speaker is driven to work by the second power amplifier based on the audio parameter, so as to control the volume output by the second speaker changing in response to the change of the volume level number.

8. A loudspeaker control device, characterized by The device is operated on an electronic device, the electronic device comprising a first speaker and a second speaker, the performance of the first speaker being lower than the performance of the second speaker, the device comprising: a first power amplifier, configured to control the volume outputted by the first speaker to remain unchanged in response to the change of the volume level number when the performance of the second speaker is higher than a preset performance; a second power amplifier, configured to control the volume outputted by the second speaker to change with the change of the volume level number at the same time.

9. An electronic device, comprising: The device comprises one or more processors; one or more programs are stored in the memory and configured to be executed by the one or more processors to perform the method of any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium stores program codes, wherein the program codes are executed by a processor to perform the method of any one of claims 1-7.

Citation Information

Patent Citations

  • Dynamic adjustment of master and individual volume controls

    CN103081355A

  • Audio calibration method and device

    CN111683331A