Loudspeaker management method and apparatus, medium and electronic device
By adjusting the volume control parameters of the speakers according to the usage scenario, the problem of high power consumption in the dual-speaker solution is solved, and the power consumption optimization and sound effect balance of electronic equipment are realized to meet the needs of different scenarios.
Patent Information
- Application Number
- PCT/CN2023/132965
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-02-20
- Filing Date
- 2023-11-21
- Publication Date
- 2024-08-29
AI Technical Summary
The dual-speaker solution causes negative impacts such as high power consumption and heat generation in electronic devices, and the existing technology cannot optimize the overall energy consumption to meet the sound effects and battery life needs of different usage scenarios.
By determining the usage scenario of the electronic device, the volume control parameters of the upper and lower speakers are adjusted respectively to optimize the overall power consumption, and the volume parameters are automatically adjusted when the scene is switched to ensure the best balance between sound intensity and power consumption.
It effectively reduces the overall power consumption of electronic devices, improves battery life, and ensures sound experience to meet the needs of different usage scenarios.
Smart Images

Figure CN2023132965_29082024_PF_FP_ABST
Abstract
Description
Loudspeaker management method, device, medium and electronic device
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on February 20, 2023, with application number 202310193152.7 and application name “Speaker Management Method, Device, Medium and Electronic Device”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of electronic technology, and in particular to a speaker management method, device, medium and electronic device. Background Art
[0003] Currently, dual-speaker solutions are widely used in electronic devices such as mobile phones and tablets. Compared with the traditional single-speaker solution, dual speakers can bring better volume and sound quality, but they can also lead to negative effects such as high power consumption and heat generation of electronic devices.
[0004] As an example, refer to Figure 1A, which is a schematic diagram of a scenario in which a mobile phone plays audio externally. The mobile phone 10 shown in Figure 1A includes dual speakers, such as an upper speaker 11 and a lower speaker 12 shown by the dotted line. Then, the mobile phone 10 shown in Figure 1A can play audio externally through the upper speaker 11 and the lower speaker 12, such as playing audio externally when playing a video. Currently, manufacturers manage speakers according to the operating scenarios of electronic devices and use a unified volume processing strategy for the upper and lower speakers. Then, in any operating scenario, the volume of the upper and lower speakers is adjusted simultaneously according to the same volume processing strategy so that the two speakers produce the same volume. However, since the upper and lower speakers of the mobile phone 10 usually have different hardware specifications and different sound energy efficiency, that is, the power consumption of the upper and lower speakers is different when producing the same volume. For example, when the volume is high, the power consumption of the upper speaker 11 is higher than that of the lower speaker 12, which makes the overall power consumption of the mobile phone 10 higher. As a result, when the volume is adjusted according to the unified volume processing strategy, the power consumption of the dual speakers cannot achieve optimal performance.
[0005] Summary of the Invention
[0006] The embodiments of the present application provide a speaker management method, device, medium, and electronic device, which can effectively optimize the overall energy consumption of electronic devices in some scenarios and ensure that the total sound intensity of the electronic device meets the requirements.
[0007] In a first aspect, an embodiment of the present application provides a speaker management method, which is applied to an electronic device and the electronic device includes at least a first speaker and a second speaker, the method comprising: determining that the electronic device is in a first usage scenario; adjusting the output volume of the first speaker according to a first volume control parameter of the first speaker corresponding to the first usage scenario, and adjusting the output volume of the second speaker according to a second volume control parameter of the second speaker corresponding to the first usage scenario, wherein the first volume control parameter is different from the second volume control parameter. For example, when the electronic device includes upper and lower speakers, the first speaker and the second speaker can be different speakers in the upper and lower speakers, for example, the first speaker is the lower speaker and the second speaker is the upper speaker. Of course, the electronic device can have dual speakers or multiple speakers.
[0008] In this way, the present application can adjust the volume control parameters of each speaker according to the current usage scenario, rather than always adjusting the volume of different speakers according to a unified volume control parameter. This can effectively optimize the overall energy consumption of the electronic device in some scenarios and ensure that the overall sound intensity of the electronic device meets the requirements.
[0009] In one possible implementation of the first aspect, the method further includes: detecting that the electronic device switches from a first usage scenario to a second usage scenario; adjusting the output volume of the first speaker according to a third volume control parameter of the first speaker corresponding to the second usage scenario, and adjusting the output volume of the second speaker according to a fourth volume control parameter of the second speaker corresponding to the second usage scenario, wherein the third volume control parameter is different from the fourth volume control parameter. In this way, the electronic device can automatically adjust the volume control parameters of each speaker when switching usage scenarios, so as to automatically adjust the output volume of each corresponding speaker according to the adjusted volume adjustment parameters, thereby meeting the user's demand for output volume during the usage scenario switching process.
[0010] In a possible implementation of the first aspect, the usage scenario of the electronic device includes at least one of an application running state and a device posture of the electronic device. It is understood that some usage scenarios only consider the application running state, while other usage scenarios consider both the application running state and the device posture.
[0011] In a possible implementation of the first aspect above, the application running state includes at least one of the following: music application running state, video application running state, navigation application running state; the device posture includes at least one of the following: horizontal screen, vertical screen, holding. For example, the application running state may include music application running state (such as music playback scene), video application running state (such as video playback scene), short video application running state (such as short video playback scene), navigation application running state (such as navigation scene, etc.). In addition, the application running state can be determined by the application running in the foreground of the electronic device. It can be understood that users usually have different requirements for the sound effects and battery life of electronic devices under different application running states.
[0012] In a possible implementation of the first aspect, the power consumption of the first speaker is greater than that of the second speaker, and the first volume control parameter is greater than the second volume control parameter. For example, for the upper and lower dual speakers in a mobile phone, compared with the prior art in which dual speakers output the same volume, in some scenarios (for example, in a short video playback scenario where the demand for sound effects is not high but the demand for battery life is high), the output volume of the speaker with better power consumption can be increased and the output volume of the speaker with poorer power consumption can be reduced without reducing the overall sound pressure, thereby taking into account both the sound effect experience and the power consumption performance, and improving the overall battery life performance of the device.
[0013] In one possible implementation of the first aspect, the first and second volume control parameters belong to one of multiple sets of preset volume control parameters, the first usage scenario is one of the multiple preset usage scenarios, the multiple sets of preset volume control parameters correspond one-to-one to the multiple preset usage scenarios, one volume control parameter in each set of preset volume control parameters uniquely corresponds to a speaker in the electronic device, and after adjusting the output volume of each corresponding speaker in the electronic device according to any set of preset volume control parameters, the overall power consumption and sound quality of the electronic device conform to the corresponding preset usage scenario. It will be understood that the set of preset volume control parameters corresponding to each preset usage scenario may be set during laboratory testing of power consumption and sound experience.
[0014] In a possible implementation of the first aspect above, the method further includes: receiving a volume adjustment instruction from the user, the volume adjustment instruction being used to indicate a volume scaling factor; when the electronic device is in a first usage scenario, adjusting the first volume control parameter corresponding to the first usage scenario to a fifth volume adjustment parameter according to the volume scaling factor, and adjusting the second volume control parameter corresponding to the first usage scenario to a sixth volume adjustment parameter; readjusting the output volume of the first speaker according to the fifth volume control parameter, and readjusting the output volume of the second speaker according to the sixth volume control parameter. In this way, in the same usage scenario, such as the Douyin™ short video scenario, when the user manually adjusts the volume, the volume of each speaker can be continued to be adjusted according to the scaled parameters of each volume control parameter in the same proportion in a set of preset volume control parameters corresponding to the usage scenario, so that the sound effect and power consumption of the mobile phone 10 are better.
[0015] In a possible implementation of the first aspect above, the architecture of the above-mentioned electronic device includes an application layer, an application framework layer, a software and hardware abstraction layer, a native layer, and an intelligent power amplifier smartPA layer; and any one of the application layer, the application framework layer, the software and hardware abstraction layer, the native layer, and the smartPA layer adjusts the output volume of the first speaker and the second speaker according to the volume control parameters corresponding to each usage scenario.
[0016] In a possible implementation of the first aspect, the method further includes: obtaining target audio to be played, wherein the first volume control parameter and the second volume control parameter are obtained when obtaining the target audio; and playing the target audio according to the first speaker after adjusting the output volume according to the first volume control parameter and the second speaker after adjusting the output volume according to the second volume control parameter. The audio broadcasting process involves multiple layers, including the application layer, the framework layer, the native layer, the HAL layer, the smartPA layer, etc. The volume control parameter adjustment process corresponding to the dual speakers in this application can be processed at any layer.
[0017] In a second aspect, an embodiment of the present application provides a speaker management device, which is applied to an electronic device and the electronic device includes at least a first speaker and a second speaker. The device includes: a determination module, used to determine that the electronic device is in a first usage scenario; an adjustment module, used to adjust the output volume of the first speaker according to a first volume control parameter of the first speaker corresponding to the first usage scenario, and adjust the output volume of the second speaker according to a second volume control parameter of the second speaker corresponding to the first usage scenario, wherein the first volume control parameter is different from the second volume control parameter.
[0018] In a possible implementation of the second aspect above, the apparatus further includes: a detection module, configured to detect that the electronic device switches from a first usage scenario to a second usage scenario; and an adjustment module, further configured to adjust the output volume of the first speaker according to a third volume control parameter of the first speaker corresponding to the second usage scenario, and to adjust the output volume of the second speaker according to a fourth volume control parameter of the second speaker corresponding to the second usage scenario, where the third volume control parameter is different from the fourth volume control parameter.
[0019] In a possible implementation manner of the second aspect, the usage scenario of the electronic device includes at least one of an application running state and a device posture of the electronic device.
[0020] In a possible implementation of the second aspect, the application running status includes at least one of the following: music application running status, video application running status, and navigation application running status; the device posture includes at least one of the following: horizontal screen, vertical screen, and holding.
[0021] In a possible implementation of the second aspect, the power consumption of the first speaker is greater than that of the second speaker, and the first volume control parameter is greater than the second volume control parameter.
[0022] In a possible implementation of the second aspect, the first volume control parameter and the second volume control parameter belong to one of multiple groups of preset volume control parameters, the first usage scenario is one of the multiple preset usage scenarios, the multiple groups of preset volume control parameters correspond one-to-one to the multiple preset usage scenarios, a volume control parameter in each group of preset volume control parameters uniquely corresponds to a speaker in the electronic device, and after adjusting the output volume of each corresponding speaker in the electronic device according to any group of preset volume control parameters, the overall power consumption and sound effect of the electronic device meet the corresponding preset usage scenario.
[0023] In a possible implementation of the second aspect above, the apparatus further includes: a receiving module for receiving a volume adjustment instruction from a user, the volume adjustment instruction being used to indicate a volume scaling factor; an adjustment module for adjusting, when the electronic device is in a first usage scenario, a first volume control parameter corresponding to the first usage scenario to a fifth volume adjustment parameter according to the volume scaling factor, and adjusting the second volume control parameter corresponding to the first usage scenario to a sixth volume adjustment parameter; and re-adjusting the output volume of the first speaker according to the fifth volume control parameter, and re-adjusting the output volume of the second speaker according to the sixth volume control parameter.
[0024] In a possible implementation of the second aspect above, the architecture of the above-mentioned electronic device includes an application layer, an application framework layer, a software and hardware abstraction layer, a local native layer, and an intelligent power amplifier smartPA layer; and, any one of the application layer, the application framework layer, the software and hardware abstraction layer, the local native layer, and the smartPA layer adjusts the output volume of the first speaker and the second speaker according to the volume control parameters corresponding to each usage scenario.
[0025] In a possible implementation of the second aspect, the apparatus further includes: an acquisition module configured to acquire target audio to be played, wherein the first volume control parameter and the second volume control parameter are acquired when acquiring the target audio; and a playback module configured to play the target audio according to the first speaker after adjusting the output volume according to the first volume control parameter and the second speaker after adjusting the output volume according to the second volume control parameter.
[0026] In a third aspect, an embodiment of the present application provides a readable medium having instructions stored thereon, which, when executed on an electronic device, enables the electronic device to execute the speaker management method as in the first aspect and any possible implementation thereof.
[0027] In a fourth aspect, an embodiment of the present application provides an electronic device, comprising: a memory for storing instructions executed by one or more processors of the electronic device, and a processor, which is one of the processors of the electronic device, for executing the speaker management method as in the first aspect and any possible implementation thereof. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] FIG1A shows a schematic diagram of a speaker management scenario according to some embodiments of the present application;
[0029] FIG1B shows a schematic diagram of the relationship between decibels and power consumption of upper and lower speakers of a mobile phone according to some embodiments of the present application;
[0030] FIG1C shows a schematic diagram of a speaker management scenario according to some embodiments of the present application;
[0031] FIG1D shows a schematic diagram of a speaker management scenario according to some embodiments of the present application;
[0032] FIG2 shows a schematic structural diagram of a mobile phone according to some embodiments of the present application;
[0033] FIG3 shows a software structure block diagram of a mobile phone according to some embodiments of the present application;
[0034] FIG4 shows a schematic diagram of a speaker management scenario according to some embodiments of the present application;
[0035] FIG5 is a flow chart showing a method for managing a loudspeaker according to some embodiments of the present application;
[0036] FIG6 is a flow chart showing a method for managing a loudspeaker according to some embodiments of the present application;
[0037] FIG7 shows a schematic structural diagram of a speaker management device according to some embodiments of the present application;
[0038] FIG8 shows a block diagram of a system according to some embodiments of the present application. DETAILED DESCRIPTION
[0039] Illustrative embodiments of the present application include, but are not limited to, speaker management methods, media, and electronic devices.
[0040] In some embodiments, the electronic device provided in the embodiments of the present application has multiple speakers, such as dual speakers. For example, electronic devices suitable for the present application may include, but are not limited to: mobile phones, tablet computers, video cameras, cameras, desktop computers, laptop computers, handheld computers, notebook computers, desktop computers, ultra-mobile personal computers (UMPCs), netbooks, as well as cellular phones, personal digital assistants (PDAs), augmented reality (AR) and virtual reality (VR) devices, media players, smart TVs, smart speakers, smart watches, etc.
[0041] It is understandable that users in this application consider battery life when operating electronic devices with multiple speakers. However, different speakers in electronic devices typically have different performances, that is, different speakers consume different power when outputting the same decibel volume. The power consumption of electronic devices will affect battery life. For example, increased power consumption of electronic devices will result in shorter battery life.
[0042] In some embodiments, the speaker management method provided in the present application is described by taking the electronic device as a mobile phone 10 with dual speakers as shown in FIG. 1A , where the dual speakers include an upper speaker 11 and a lower speaker 12 .
[0043] 1B , a schematic diagram illustrating the relationship between the decibel level and power consumption of the upper and lower speakers in the mobile phone 10 provided in an embodiment of the present application is shown. The horizontal axis of the coordinate system shown in FIG1B is decibel (dB), and the vertical axis is current (in milliamperes (mA)). Decibels are used to indicate the volume of the speaker output; the higher the decibel level, the louder the volume. Current is used to indicate the power consumption of the speaker; the larger the current value, the greater the power consumption of the corresponding speaker. Specifically, the coordinate system shown in FIG1 includes relationship curves A1-A4.
[0044] Curve A1 represents the relationship between the current and decibels when the lower speaker 12 plays pink noise, while curve A2 represents the relationship between the current and decibels when the upper speaker 11 plays pink noise. Clearly, when outputting pink noise at the same decibel, the current generated by the upper speaker 11 is much greater than that generated by the lower speaker 12. This means that the power consumption of the upper speaker 11 is greater than that of the lower speaker 12. Furthermore, curve A3 shows the relationship between the current and decibels when the lower speaker 12 plays a song, while curve A4 shows the relationship between the current and decibels when the upper speaker 11 plays the same song. Clearly, when outputting the same song at the same decibel, the current generated by the upper speaker 11 is greater than that generated by the lower speaker 12. This means that the power consumption of the upper speaker 11 is greater than that of the lower speaker 12. It can be understood that when outputting the same volume at the same decibel, the maximum difference in current between different speakers is 25 mA. Then, when the dual speakers shown in FIG1B are adjusted to the same volume (e.g., a distribution of 50 to 90 decibels) using a unified volume control parameter, the power consumption of the upper speaker 11 is greater than that of the lower speaker 12, resulting in a higher overall power consumption of the mobile phone 10. Furthermore, pink noise is commonly used in acoustic testing to test the performance of components such as speakers.
[0045] In some embodiments, the above-mentioned speaker management method can be applied to scenarios where users use electronic devices to play audio outward. Among them, the electronic device can play audio outward and manage the speaker in various application running states. For example, the above-mentioned application running state may include music application running state (such as music playback scene), video application running state (such as video playback scene), short video application running state (such as short video playback scene), navigation application running state (such as navigation scene, etc.). In addition, the above-mentioned application running state can be determined by the application running in the foreground of the electronic device. Among them, the video playback scene can be a scene for playing a longer video, such as the playback scene of video applications such as Youku™. Short video (small video) playback scenes, for example, can include Douyin™ small video scenes, gallery video playback scenes, etc.
[0046] It is understandable that users usually have different requirements for the sound effects and battery life of electronic devices when different applications are running. For example, when the Tik Tok™ application is running, that is, when playing short videos, users do not have high requirements for sound effects, but have high requirements for battery life. When the Youku™ application is running, that is, when the video is playing, such as when the user uses an electronic device to watch a movie in landscape mode, the user has high requirements for the sound effects of the electronic device, but not for battery life. For another example, when the navigation application is running, that is, in the navigation state, the user may need to take into account both sound effects and battery life. As a result, the output volume of different speakers in the electronic device can take into account the needs of users in different application running states.
[0047] In some embodiments, when a user uses an electronic device to play audio, the electronic device may be in different postures, such as landscape, portrait, or handheld. Due to these different postures, the position of each speaker relative to the ear varies, resulting in different sound effects, such as the perceived volume. Therefore, the output volume of different speakers in the electronic device can take into account the position of each speaker relative to the ear in different postures.
[0048] In order to solve the problem of high power consumption when multiple speakers play audio, an embodiment of the present application provides a speaker management method. For electronic devices with multiple speakers, since users have different requirements for the sound performance and battery life of electronic devices in different usage scenarios, a set of preset volume control parameters that meet the optimal power consumption can be pre-set for each usage scenario, such as different application running states and / or different device postures. Each preset volume control parameter includes multiple volume control parameters that correspond one to one with multiple speakers. Then, when the electronic device switches the usage scenario, the volume of the multiple speakers can be adjusted according to the preset volume control parameters corresponding to the switched usage scenario, that is, the volume of the corresponding speaker is adjusted according to each volume control parameter in the preset volume control parameters. Thus, the volume control parameters of each speaker can be adjusted in combination with changes in the application running state of the electronic device and changes in the device posture, rather than always adjusting the volume of different speakers according to a unified volume control parameter. In this way, the overall energy consumption of the electronic device in some scenarios can be effectively optimized, and the overall sound intensity of the electronic device can be ensured to meet the requirements. For example, for the upper and lower dual speakers in a mobile phone, compared with the existing technology in which dual speakers output the same volume, in some scenarios in this application (for example, in short video playback scenarios where the demand for sound effects is not high and the demand for battery life is high), the output volume of the speaker with better power consumption can be increased and the output volume of the speaker with poorer power consumption can be reduced, but the overall sound pressure will not be reduced, taking into account both the sound effect experience and the power consumption performance, thereby improving the overall battery life performance of the device.
[0049] As an example, in the Douyin™ short video scenario, the user requires a longer battery life, and the electronic device can give priority to the speaker with better power consumption, that is, set the volume adjustment parameter of the speaker with better power consumption to be greater than the adjustment parameter of the speaker with poor power consumption, so that the volume of the speaker with better power consumption (i.e., lower power consumption) is higher and the volume of the speaker with poor power consumption (i.e., higher power consumption) is lower, and the total sound intensity meets the requirements (such as meeting the volume set by the user). Thus, the overall power consumption of multiple speakers is reduced, thereby increasing the battery life. Referring to Figure 1C, in the Douyin™ short video scenario, the volume output by the upper speaker 11 of the mobile phone 10 accounts for 30% of the total volume, for example, the volume control parameter corresponding to the upper speaker 11 is 30%. Correspondingly, the volume output by the lower speaker 12 of the mobile phone 10 accounts for 70% of the total volume, for example, the volume control parameter corresponding to the lower speaker 12 is 70%. Thus, a more efficient speaker is implemented as the main sound source output.
[0050] As another example, in video playback scenarios such as Youku™, when a user uses a mobile phone 10 to watch a movie in horizontal mode, the volume of the upper and lower speakers in the mobile phone 10 can be kept basically consistent, that is, the volume control parameters of the upper and lower speakers are set to the same volume control parameter, or to two volume control parameters with a smaller difference, so as to obtain a better sound experience. Referring to Figure 1D, in the scenario of watching a movie in horizontal mode (i.e., a horizontal video), the volume output by the upper speaker 11 of the mobile phone 10 accounts for 50% of the total volume, and the volume output by the lower speaker 12 accounts for 50% of the total volume. At this time, the volume control parameters corresponding to the upper and lower speakers can both be 50%. Thus. The left and right volumes are kept consistent, and the stereo effect is more optimized.
[0051] It is understood that for each usage scenario, such as the navigation scenario, relevant technicians can test power consumption and user experience in the laboratory in advance, and develop volume control parameters for the navigation scenario. The parameters are directly configured in the configuration file of the mobile phone 10. Then, in the navigation scenario, the set of volume control parameters preset in the configuration file is directly issued to achieve volume adjustment of multiple speakers. Correspondingly, the set of preset volume control parameters corresponding to other preset usage scenarios are set during the laboratory testing of power consumption and user experience.
[0052] In some embodiments, the volume control parameter provided in the embodiments of the present application can be a volume discount coefficient. As an example, manufacturers can usually discount the output volume of electronic devices (i.e., lower the volume), and the discount intensity is the volume discount coefficient, that is, the discount ratio. In addition, in some other embodiments, the volume control parameter can also be used to increase the volume. More specifically, for a speaker, the volume control parameter is a software parameter, and the actual volume output also needs to consider the specifications of the audio device (i.e., speaker hardware).
[0053] Next, taking a mobile phone as an example of an electronic device applicable to the speaker management method according to an embodiment of the present application, the structure of the electronic device is described.
[0054] 2 shows a schematic diagram of the structure of a mobile phone provided in an embodiment of the present application. As shown in FIG2 , the mobile phone 10 may include a processor 110, a power module 140, a memory 180, a mobile communication module 130, a wireless communication module 120, a sensor module 190, an audio module 150, a camera 170, an interface module 160, a button 101, and a display screen 102.
[0055] It should be understood that the illustrated structure of the embodiment of the present invention does not constitute a specific limitation on the mobile phone 10. In other embodiments of the present application, the mobile phone 10 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0056] The processor 110 may include one or more processing units, for example, a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), a microprocessor (MCU), an artificial intelligence (AI) processor, or a processing module or processing circuit such as a programmable logic device (FPGA). Different processing units may be independent devices or integrated into one or more processors. A storage unit may be provided in the processor 110 for storing instructions and data. In some embodiments, the storage unit in the processor 110 is a cache memory 180. For example, the memory 180 is used to store multiple sets of preset volume control parameters corresponding to various usage scenarios. Furthermore, the processor 110 may determine a corresponding set of preset volume control parameters based on the usage scenario of the electronic device, such as the application running state and the device posture, and adjust the volume of the corresponding speaker according to each volume control parameter.
[0057] The power module 140 may include a power supply, a power management component, and the like. The power supply may be a battery. The power management component manages the charging of the power supply and the supply of power to other modules. In some embodiments, the power management component includes a charging management module and a power management module. The charging management module receives charging input from a charger; the power management module connects the power supply, the charging management module, and the processor 110. The power management module receives input from the power supply and / or the charging management module to power the processor 110, the display 102, the camera 170, and the wireless communication module 120.
[0058] The mobile communication module 130 may include, but is not limited to, an antenna, a power amplifier, a filter, a low-noise amplifier (LNA), and the like. The mobile communication module 130 can provide wireless communication solutions for mobile phone 10, including 2G / 3G / 4G / 5G. The mobile communication module 130 can receive electromagnetic waves through the antenna, filter, amplify, and perform other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 130 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via the antenna.
[0059] The wireless communication module 120 may include an antenna and transmit and receive electromagnetic waves via the antenna. The wireless communication module 120 may provide wireless communication solutions for the mobile phone 10, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), near field communication (NFC), infrared (IR), and other wireless communication technologies. The mobile phone 10 can communicate with the network and other devices through wireless communication technologies.
[0060] In some embodiments, the mobile communication module 130 and the wireless communication module 120 of the mobile phone 10 may also be located in the same module.
[0061] The display screen 102 is used to display human-computer interaction interfaces, images, videos, etc. As an example, the display screen 102 can display UI interfaces such as a desktop interface, and can also display interfaces of various application programs, such as an interface of a gallery application, an interface of a video application, etc.
[0062] The sensor module 190 may include a proximity light sensor, a pressure sensor, a gyro sensor, and the like.
[0063] The audio module 150 is used to convert digital audio information into analog audio signals for output, or convert analog audio input into digital audio signals. In some embodiments, the audio module 150 may include speakers 1501-150N, an earpiece, a microphone, and a headphone jack. The speakers 1501-150N can adjust their volume according to their respective volume control parameters in conjunction with hardware.
[0064] The camera 170 is used to capture still images or videos. The mobile phone 10 can implement the shooting function through the ISP, the camera 170, the video codec, the GPU, the display 102 and the application processor.
[0065] The interface module 160 includes an external memory interface, a universal serial bus (USB) interface, and a subscriber identification module (SIM) card interface.
[0066] In some embodiments, the mobile phone 10 further includes buttons 101, a motor, and an indicator. The buttons 101 may include a volume button, an on / off button, etc. The motor is used to vibrate the mobile phone 10. The indicator may include a laser indicator, a radio frequency indicator, an LED indicator, etc.
[0067] In some embodiments, the software system of the mobile phone 10 can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. In the embodiment of the present application, the Android™ system with a layered architecture is used as an example to illustrate the software structure of the mobile phone 10.
[0068] FIG3 is a block diagram of the software structure of the mobile phone 10 according to an embodiment of the present application.
[0069] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: from top to bottom: the application layer (i.e., the application layer), the application framework layer (i.e., the Framework layer), the Android runtime and system libraries, and the kernel layer.
[0070] The application layer can include a series of application packages.
[0071] As shown in Figure 3, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. It can be understood that applications (Application, APP) such as music and video can be used to generate audio data, which is called broadcasting APP.
[0072] The application framework layer provides an application programming interface (API) and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0073] As shown in FIG3 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0074] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0075] Content providers are used to store and retrieve data and make it accessible to applications. This data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0076] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0077] The phone manager is used to provide communication functions of the mobile phone 10, such as management of call status (including answering, hanging up, etc.).
[0078] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0079] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0080] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0081] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0082] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0083] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0084] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0085] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0086] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0087] A 2D graphics engine is a drawing engine for 2D drawings.
[0088] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0089] In addition, the mobile phone 10 provided in the embodiment of the present application includes not only the software architecture shown in FIG3 , but also other hierarchical structures, such as a hardware abstraction layer (HAL) and a hardware layer.
[0090] The HAL layer is the interface between the operating system kernel (the kernel layer shown in Figure 3) and the hardware circuits. Its purpose is to abstract the hardware. From the perspective of software and hardware testing, both software and hardware testing can be completed based on the hardware abstraction layer, making it possible to conduct software and hardware testing in parallel.
[0091] The hardware layer of the mobile phone 10 may include the display screen 102 , the camera 170 , the speakers 1501 ˜ 150N, and the sensor 190 shown in FIG. 1 .
[0092] Further, referring to FIG4 , a schematic diagram of a speaker management scenario is provided for an embodiment of the present application. As shown in FIG4 , the application layer of the mobile phone 10 may include a broadcasting APP, such as the music application and video application shown in FIG3 , and specifically may be Youku™ and Douyin™ applications for providing audio data. Furthermore, the broadcasting APP can send audio data to the Framework layer in the mobile phone 10. Moreover, the application shown in FIG4 is also used for scene recognition and scene switching, that is, for identifying usage scenarios and detecting switching of usage scenarios. For example, the application layer can recognize that the current usage scenario is a Douyin™ short video scene, or a user watching a movie in horizontal mode, and the application layer can switch the current usage scenario from a Douyin™ short video scene to a horizontal movie scene, and detect that a scene switch has occurred. In addition, the application layer is also used to obtain the upper and lower speaker scene configuration parameters in the mobile phone 10, that is, a set of preset volume control parameters corresponding to the current usage scenario.
[0093] It is understood that the subject that performs scene recognition, detects scene switching, and obtains the upper and lower speaker scene configuration parameters in the application layer shown in Figure 4 can be an independent third-party application in the application layer, or a functional component in the setting application, and the embodiment of the present application does not specifically limit this. In addition, the switching of different application scenes and the switching of device postures in the application layer can complete the scene switching. For example, the user closes the Douyin™ short video and opens Youku™ to watch a movie in landscape mode to complete the scene switching.
[0094] Furthermore, as shown in FIG4 , the Framework layer in the mobile phone 10 can receive the volume discount parameters (i.e., volume control parameters) issued by the application layer when the scene switches, and save the current volume discount parameters, which include a set of preset volume parameters consisting of the volume parameters corresponding to each speaker. In addition, the Framework layer can receive the audio data sent by the broadcasting APP in the application layer, and perform sound effect processing on the audio data to obtain the audio data to be played. Then, when the mobile phone 10 plays the audio data, it obtains the current volume discount parameters and performs volume discount processing on the left and right channels of the audio data, that is, the upper and lower speakers are both volume discounted according to the corresponding volume discount parameters. Then, the audio data after volume discount processing is written to the HAL layer of the mobile phone 10 to output the processed audio data, thus completing the broadcast output. At this point, the output volume of the upper and lower speakers of the mobile phone 10 is the volume adjusted according to the corresponding volume discount parameters, so the overall sound intensity of the upper and lower speakers meets the requirements, and the overall power consumption is low.
[0095] In some embodiments, a configuration library may be provided to store various sets of preset volume control parameters corresponding to various usage scenarios. The configuration library may be provided in a cloud device or in a storage space of the mobile phone 10, such as the memory 180 shown in FIG2 . For example, the cloud device may configure the speaker for the mobile phone 10 by pushing an upgrade to the cloud. Then, when the mobile phone 10 switches scenes, it may obtain a set of preset volume control parameters corresponding to the switched scene from the cloud.
[0096] In addition, in some embodiments, the layers of the mobile phone 10 include not only the application layer, the framework layer, and the HAL layer, but also the native layer (also called the local service) and the smart power amplifier (smartPA) layer. The audio broadcasting process involves multiple layers, including: the application layer, the framework layer, the native layer, the HAL layer, the smartPA layer, etc. The dual-channel audio stream discounting scheme corresponding to the dual speakers in this application can be processed at any layer to achieve the audio discounting effect. That is, the volume control parameter adjustment process corresponding to the multiple speakers in the electronic device in this application can be processed at any layer.
[0097] It is understandable that some of the multiple preset usage scenarios only consider the application running status, while other preset usage scenarios consider not only the application running status but also the device posture.
[0098] Referring to Table 1, an example of the relationship between a usage scenario and the volume control parameters of the upper and lower speakers provided in an embodiment of the present application is shown. Among them, L1 represents the volume control parameter of the lower speaker 12 in the mobile phone 10, and L2 represents the volume control parameter of the upper speaker 11 in the mobile phone 10. Referring to Figure 1, it can be seen that the power consumption of the upper speaker 11 in the mobile phone 10 is relatively worse, while the power consumption of the lower speaker 12 is relatively better. Then, based on the user's requirements for the battery life and sound effects of the mobile phone 10 in different usage scenarios, the relationship between the usage scenario and the volume control parameters can be set as shown in Table 1.
[0099] Table 1:
[0100] Among them, L1 in different usage scenarios shown in Table 1 can be different, and L2 can also be different. It can be preset based on the comprehensive experimental results of sound effects and power consumption. This application does not limit the specific values and can be set according to actual needs.
[0101] Next, the speaker management method shown in FIG5 will be described in detail, using the example of FIG2 , where the multiple speakers in the mobile phone 10 are upper and lower speakers, and the usage scenarios shown in Table 1. The method may be performed by the mobile phone 10, or by the processor 110 in the mobile phone 10, or by a device or module in the mobile phone 10 for performing speaker management.
[0102] Specifically, as shown in FIG5 , the method includes the following steps:
[0103] S501: Detecting that the current application running state or device posture switches.
[0104] For example, the mobile phone 10 can determine that the application running state has switched by detecting that the application running in the foreground has switched, and can determine that the device posture has switched by detecting changes in parameters of sensors such as a gyroscope and an accelerometer.
[0105] S502: Identify the current application running status.
[0106] S503: Determine whether the current application running state meets one of the multiple preset usage scenarios. If yes, proceed to S506; otherwise, proceed to S504 to continue determining the current usage scenario.
[0107] For example, referring to Table 1, the mobile phone 10 can determine whether the current operating state is a preset usage scenario among multiple usage scenarios that does not consider the device posture, such as a navigation scenario or a short video playback scenario.
[0108] S504: Identify the current device posture.
[0109] For example, the mobile phone 10 may detect the device posture of the mobile phone 10 through real-time parameters of sensors such as a gyroscope and an accelerometer.
[0110] S505: Determine whether the current application running state and device posture match one of multiple preset usage scenarios. If so, proceed to S506; otherwise, proceed to S502 to re-determine the current usage scenario. Similarly, referring to Table 1, mobile phone 10 can determine whether the current usage scenario matches one of multiple preset usage scenarios, such as a horizontal video scenario, based on the current running state and device posture.
[0111] S506: Obtain a set of preset volume control parameters corresponding to the preset usage scenario.
[0112] S507: Acquire original audio data. The original audio data may be audio data collected by the mobile phone 10 in real time, or may be audio data acquired from a network or locally in real time.
[0113] S508: Performing sound effect processing on the initial audio data to obtain target audio.
[0114] As an example, the above-mentioned sound effect processing can include adding reverberation effects or voice changing effects. For example, when the application running on the foreground of the mobile phone 10 is a live broadcast room of a singing performance, and the host sings with background music, some hosts may want to add a reverberation effect to their voice to create the atmosphere of singing in a stage or theater environment. For another example, in some comedy live broadcast rooms, the host may want to add a voice changing effect to their voice, such as female to male, male to female, or even become a robot, etc.
[0115] In other examples, the target audio is the original audio indicated by the original audio data.
[0116] In addition, in some other embodiments, the speaker management method provided in the present application may further execute S507 to S508 and then execute S501 to S506, which is not specifically limited in the embodiments of the present application.
[0117] S509: adjusting the volume of corresponding speakers in the plurality of speakers according to the respective volume control parameters in the preset volume control parameters, and playing the target audio through the plurality of speakers.
[0118] In some embodiments, the target audio may be original audio (ie, original audio represented by original audio data), or may be audio processed in steps 507 - 508 .
[0119] In some embodiments, each usage scenario in the present application corresponds to a default volume, that is, the volume that conforms to the user's habits in the usage scenario. Then when the mobile phone 10 switches from one usage scenario to another, the overall volume of the mobile phone 10 can be adjusted to the corresponding default volume according to a set of volume control parameters corresponding to the other usage scenario. At this time, the user does not need to manually adjust the volume. For example, the default volume corresponding to the navigation scene is greater than the default volume corresponding to the Douyin™ short video scene. Then, when the current usage scenario is switched from the current scene to the Douyin™ short video scene, the mobile phone 10 can adjust the volume control parameters of each speaker and automatically lower the volume.
[0120] As can be understood, as shown in FIG4 , when playing the target audio, the mobile phone 10 can obtain a corresponding set of preset volume control parameters. Furthermore, the volume of the upper and lower speakers, i.e., the volume of the left and right channels of the mobile phone 10, can be adjusted based on the preset volume control parameters. Specifically, the volume control parameters corresponding to each speaker can be sent to the HAL layer, so that the target audio is output according to the adjusted volume of each speaker.
[0121] In some embodiments, the mobile phone 10 can adjust the volume of the speaker corresponding to the volume control parameter by discounting the volume through any layer of the application layer, framework layer, native layer, HAL layer, and smartPA layer.
[0122] Thus, the above method can determine the current usage scenario based on the current application running state and device posture. If the current usage scenario is a preset usage scenario, the volume of each speaker is adjusted according to each volume control parameter in a corresponding pre-set set of preset volume control parameters. Since the preset volume control parameters are obtained by comprehensively considering the device's sound quality and power consumption experiments for the preset usage scenario, the sound quality and power consumption of the mobile phone 10 are optimized during the speaker management process for the current usage scenario.
[0123] In some other embodiments, after switching the usage scenario, the mobile phone 10 may update the saved preset volume control parameters to a set of preset volume control parameters corresponding to the new usage scenario. Then, in the new usage scenario, the mobile phone 10 may also adjust the volume of each corresponding speaker simultaneously according to the volume control parameters of the set of preset volume control parameters after the volume control parameters are changed in the same proportion.
[0124] In some embodiments, based on FIG. 5 , the speaker management method provided in the embodiment of the present application further includes the following steps:
[0125] S601: Receive a volume adjustment instruction from a user, where the volume adjustment instruction includes a volume scaling factor.
[0126] S602: According to the received volume scaling speed, each volume control parameter in a set of preset volume control parameters corresponding to the current preset usage scenario is scaled simultaneously.
[0127] S603: Adjust the volume of each corresponding speaker according to each scaled volume control parameter, and continue to output the target audio through the multiple speakers.
[0128] In this way, in the same usage scenario, such as the Douyin™ short video scenario, when the user manually adjusts the volume, the volume of each speaker can be continued to be adjusted according to the parameters scaled by the same proportion of each volume control parameter in a set of preset volume control parameters corresponding to the usage scenario, so that the sound effect and power consumption of the mobile phone 10 are better.
[0129] In some embodiments, the execution entity of the speaker management method provided in the embodiments of the present application may be a speaker management device.
[0130] Referring to FIG7 , there is shown a schematic diagram of the structure of a speaker management device provided in an embodiment of the present application. The speaker management device 70 is applied to an electronic device and the electronic device includes at least a first speaker and a second speaker. The device 70 includes: a determination module 71 for determining that the electronic device is in a first usage scenario; an adjustment module 72 for adjusting the output volume of the first speaker according to a first volume control parameter of the first speaker corresponding to the first usage scenario, and adjusting the output volume of the second speaker according to a second volume control parameter of the second speaker corresponding to the first usage scenario, wherein the first volume control parameter is different from the second volume control parameter. For example, the electronic device can be the mobile phone 10 mentioned above, the first speaker can be the lower speaker 12 mentioned above, and the second speaker can be the upper speaker 11 mentioned above.
[0131] In some embodiments, the above-mentioned device 70 also includes: a detection module 73, which is used to detect that the electronic device switches from a first usage scenario to a second usage scenario; an adjustment module 72, which is also used to adjust the output volume of the first speaker according to the third volume control parameter of the first speaker corresponding to the second usage scenario, and adjust the output volume of the second speaker according to the fourth volume control parameter of the second speaker corresponding to the second usage scenario, and the third volume control parameter is different from the fourth volume control parameter.
[0132] In some embodiments, the usage scenario of the electronic device includes at least one of an application running state and a device posture of the electronic device.
[0133] In some embodiments, the application running state includes at least one of the following: music application running state, video application running state, navigation application running state; the device posture includes at least one of the following: horizontal screen, vertical screen, and holding.
[0134] In some embodiments, the power consumption of the first speaker is greater than the power consumption of the second speaker, and the first volume control parameter is greater than the second volume control parameter.
[0135] In some embodiments, the first volume control parameter and the second volume control parameter belong to one of multiple groups of preset volume control parameters, the first usage scenario is one of the multiple preset usage scenarios, the multiple groups of preset volume control parameters correspond one-to-one to the multiple preset usage scenarios, and a volume control parameter in each group of preset volume control parameters uniquely corresponds to a speaker in the electronic device, and after adjusting the output volume of each corresponding speaker in the electronic device according to any group of preset volume control parameters, the overall power consumption and sound effect of the electronic device meet the corresponding preset usage scenario.
[0136] In some embodiments, the above-mentioned device 70 also includes: a receiving module 74, which is used to receive a volume adjustment instruction from the user, and the volume adjustment instruction is used to indicate a volume scaling factor; an adjustment module 72, which is also used to adjust the first volume control parameter corresponding to the first usage scenario to a fifth volume adjustment parameter according to the volume scaling factor when the electronic device is in the first usage scenario, and adjust the second volume control parameter corresponding to the first usage scenario to a sixth volume adjustment parameter; readjust the output volume of the first speaker according to the fifth volume control parameter, and readjust the output volume of the second speaker according to the sixth volume control parameter.
[0137] In some embodiments, the above-mentioned device 70 also includes: an acquisition module 75, used to obtain the target audio to be played, wherein the first volume control parameter and the second volume control parameter are obtained when obtaining the target audio; a playing module 76, used to play the target audio according to the first speaker after adjusting the output volume according to the first volume control parameter and the second speaker after adjusting the output volume according to the second volume control parameter.
[0138] In addition, in some embodiments, the speaker management device 70 shown in FIG7 may only include the determination module 71 and the adjustment module 72 shown in the solid-line box. In other embodiments, the speaker management device 70 shown in FIG7 includes not only the determination module 71 and the adjustment module 72 shown in the solid-line box, but also one or more other modules shown in the dotted-line box.
[0139] It can be understood that the speaker management device 70 provided in the embodiment of the present application is used to execute the relevant steps of the speaker management method above, and the beneficial effects achieved can be found in the description of the method embodiment, which will not be repeated here.
[0140] Referring now to FIG8 , a block diagram of a system 1400 according to an embodiment of the present application is shown. This system can be used to implement the speaker management method according to the embodiments of the present application, such as when the system 1400 is deployed in the mobile phone 10 or deployed outside the mobile phone 10. FIG8 schematically illustrates an example system 1400 according to various embodiments. In one embodiment, the system 1400 may include one or more processors 1404, a system control logic 1408 connected to at least one of the processors 1404, a system memory 1412 connected to the system control logic 1408, a non-volatile memory (NVM) 1416 connected to the system control logic 1408, and a network interface 1420 connected to the system control logic 1408.
[0141] In some embodiments, processor 1404 may include one or more single-core or multi-core processors. In some embodiments, processor 1404 may include any combination of general-purpose processors and specialized processors (e.g., graphics processors, application processors, baseband processors, etc.). In embodiments where system 1400 employs an eNB (Evolved Node B) 101 or a RAN (Radio Access Network) controller 102, processor 1404 may be configured to execute various embodiments, for example, one or more of the multiple embodiments shown in FIG. 5 or FIG. 6 .
[0142] In some embodiments, system control logic 1408 may include any suitable interface controller to provide any suitable interface to at least one of processors 1404 and / or any suitable device or component in communication with system control logic 1408 .
[0143] In some embodiments, the system control logic 1408 may include one or more memory controllers to provide an interface to the system memory 1412. The system memory 1412 may be used to load and store data and / or instructions. In some embodiments, the memory 1412 of the system 1400 may include any suitable volatile memory, such as a suitable dynamic random access memory (DRAM).
[0144] NVM / memory 1416 may include one or more tangible, non-transitory computer-readable media for storing data and / or instructions. In some embodiments, NVM / memory 1416 may include any suitable non-volatile memory such as flash memory and / or any suitable non-volatile storage device, such as at least one of an HDD (Hard Disk Drive), a CD (Compact Disc) drive, and a DVD (Digital Versatile Disc) drive.
[0145] NVM / storage 1416 may include a portion of the storage resources on the device on which system 1400 is installed, or it may be accessible to the device but not necessarily part of the device. For example, NVM / storage 1416 may be accessed over a network via network interface 1420 .
[0146] In particular, system memory 1412 and NVM / storage 1416 may include, respectively, a temporary copy and a permanent copy of instructions 1424. Instructions 1424 may include instructions that, when executed by at least one of processors 1404, cause system 1400 to implement the method illustrated in FIG. 5 or 6 . In some embodiments, instructions 1424, hardware, firmware, and / or software components thereof may additionally or alternatively reside in system control logic 1408, network interface 1420, and / or processor 1404.
[0147] The network interface 1420 may include a transceiver for providing a radio interface for the system 1400, thereby communicating with any other suitable devices (such as a front-end module, an antenna, etc.) via one or more networks. In some embodiments, the network interface 1420 may be integrated with other components of the system 1400. For example, the network interface 1420 may be integrated with at least one of the processor 1404, the system memory 1412, the NVM / storage 1416, and a firmware device (not shown) having instructions. When at least one of the processors 1404 executes the instructions, the system 1400 implements the method shown in Figure 5 or Figure 6.
[0148] The network interface 1420 may further include any suitable hardware and / or firmware to provide a multiple-input multiple-output radio interface. For example, the network interface 1420 may be a network adapter, a wireless network adapter, a telephone modem, and / or a wireless modem.
[0149] In one embodiment, at least one of the processors 1404 may be packaged together with logic for one or more controllers of the system control logic 1408 to form a system-in-package (SiP). In one embodiment, at least one of the processors 1404 may be integrated on the same die with logic for one or more controllers of the system control logic 1408 to form a system-on-chip (SoC).
[0150] System 1400 may further include input / output (I / O) devices 1432. I / O devices 1432 may include a user interface to enable a user to interact with system 1400, and peripheral component interfaces to enable peripheral components to interact with system 1400. In some embodiments, system 1400 may further include sensors for determining at least one of environmental conditions and location information related to system 1400.
[0151] In some embodiments, the user interface may include, but is not limited to, a display (e.g., an LCD display, a touch screen display, etc.), a speaker, a microphone, one or more cameras (e.g., a still image camera and / or a video camera), a flashlight (e.g., an LED flash), and a keyboard.
[0152] In some embodiments, the peripheral component interface may include, but is not limited to, a non-volatile memory port, an audio jack, and a power interface.
[0153] In some embodiments, the sensors may include, but are not limited to, a gyroscope sensor, an accelerometer, a proximity sensor, an ambient light sensor, and a positioning unit. The positioning unit may also be part of or interact with the network interface 1420 to communicate with components of a positioning network (e.g., Global Positioning System (GPS) satellites).
[0154] The various embodiments of the mechanisms disclosed in this application can be implemented in hardware, software, firmware, or a combination of these implementation methods. The embodiments of the present application can be implemented as a computer program or program code executed on a programmable system, which includes at least one processor, a storage system (including volatile and non-volatile memory and / or storage elements), at least one input device, and at least one output device.
[0155] Program code can be applied to input instructions to perform the functions described herein and generate output information. The output information can be applied to one or more output devices in a known manner. For purposes of this application, a processing system includes any system having a processor such as, for example, a digital signal processor (DSP), a microcontroller, an application specific integrated circuit (ASIC), or a microprocessor.
[0156] Program code can be implemented with a high-level programming language or an object-oriented programming language to communicate with the processing system. Where necessary, program code can also be implemented in assembly language or machine language. In fact, the mechanism described in this application is not limited to the scope of any particular programming language. In either case, the language can be a compiled language or an interpreted language.
[0157] In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried or stored on one or more temporary or non-temporary machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed over a network or through other computer-readable media. Therefore, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including but not limited to floppy disks, optical disks, optical discs, read-only memories (CD-ROMs), magneto-optical disks, read-only memories (ROMs), random access memories (RAMs), erasable programmable read-only memories (EPROMs), electrically erasable programmable read-only memories (EEPROMs), magnetic or optical cards, flash memory, or a tangible machine-readable memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustic, or other forms of propagation signals. Therefore, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
[0158] In the accompanying drawings, some structural or method features may be shown in a particular arrangement and / or order. However, it should be understood that such a particular arrangement and / or order may not be required. Rather, in some embodiments, these features may be arranged in a manner and / or order different from that shown in the illustrative drawings. In addition, the inclusion of a structural or method feature in a particular figure does not imply that such feature is required in all embodiments, and in some embodiments, such features may not be included or may be combined with other features.
[0159] It should be noted that the units / modules mentioned in the various device embodiments of the present application are all logical units / modules. Physically, a logical unit / module can be a physical unit / module, or a part of a physical unit / module, or can be implemented as a combination of multiple physical units / modules. The physical implementation of these logical units / modules themselves is not the most important. The combination of functions implemented by these logical units / modules is the key to solving the technical problems raised by this application. In addition, in order to highlight the innovative part of this application, the above-mentioned device embodiments of this application do not introduce units / modules that are not closely related to solving the technical problems raised by this application. This does not mean that other units / modules do not exist in the above-mentioned device embodiments.
[0160] It should be noted that in the examples and description of this patent, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device that includes a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "including a" does not exclude the presence of other identical elements in the process, method, article or device that includes the element.
[0161] Although the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the application.
Claims
1. A speaker management method, applied to an electronic device, wherein the electronic device comprises at least a first speaker and a second speaker, characterized in that: The method comprises: Determining that the electronic device is in a first usage scenario; adjusting the output volume of the first speaker according to a first volume control parameter of the first speaker corresponding to the first usage scenario, and The output volume of the second speaker is adjusted according to a second volume control parameter of the second speaker corresponding to the first usage scenario, wherein the first volume control parameter is different from the second volume control parameter.
2. The method according to claim 1, characterized in that The method further comprises: Detecting that the electronic device switches from the first usage scenario to the second usage scenario; adjusting the output volume of the first speaker according to a third volume control parameter of the first speaker corresponding to the second usage scenario, and The output volume of the second speaker is adjusted according to a fourth volume control parameter of the second speaker corresponding to the second usage scenario, and the third volume control parameter is different from the fourth volume control parameter.
3. The method according to claim 1 or 2, characterized in that: The usage scenario of the electronic device includes at least one of an application running state and a device posture of the electronic device.
4. The method according to claim 3, characterized in that The application running state includes at least one of the following: a music application running state, a video application running state, and a navigation application running state; The device posture includes at least one of the following: horizontal screen, vertical screen, and holding.
5. The method according to any one of claims 1 to 4, characterized in that The power consumption of the first speaker is better than the power consumption of the second speaker, and the first volume control parameter is greater than the second volume control parameter.
6. The method according to claim 1, characterized in that The first volume control parameter and the second volume control parameter belong to one group of multiple groups of preset volume control parameters, the first usage scenario is one of multiple preset usage scenarios, the multiple groups of preset volume control parameters correspond to the multiple preset usage scenarios one by one, a volume control parameter in each group of the preset volume control parameters uniquely corresponds to a speaker in the electronic device, and after adjusting the output volume of each corresponding speaker in the electronic device according to any group of the preset volume control parameters, the overall power consumption and sound effect of the electronic device meet the corresponding preset usage scenario.
7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: Receiving a volume adjustment instruction from a user, wherein the volume adjustment instruction is used to indicate a volume scaling factor; When the electronic device is in the first usage scenario, adjusting the first volume control parameter corresponding to the first usage scenario to a fifth volume adjustment parameter according to the volume scaling factor, and adjusting the second volume control parameter corresponding to the first usage scenario to a sixth volume adjustment parameter; The output volume of the first speaker is readjusted according to the fifth volume control parameter, and the output volume of the second speaker is readjusted according to the sixth volume control parameter.
8. The method according to claim 1, characterized in that: The architecture of the electronic device includes an application layer, an application framework layer, a software and hardware abstraction layer, a native layer, and a smart power amplifier smartPA layer; Furthermore, any one of the application layer, the application framework layer, the software and hardware abstraction layer, the native layer, and the smartPA layer adjusts the output volume of the first speaker and the second speaker according to the volume control parameters corresponding to each usage scenario.
9. The method according to claim 1, characterized in that: The method further comprises: Get the target audio to be played, wherein the first volume control parameter and the second volume control parameter are used to obtain the target audio obtained when The target audio is played according to the first speaker after the output volume is adjusted according to the first volume control parameter and the second speaker after the output volume is adjusted according to the second volume control parameter.
10. A speaker management device, applied to an electronic device, wherein the electronic device comprises at least a first speaker and a second speaker, characterized in that: The device comprises: A determination module, used to determine that the electronic device is in a first usage scenario; An adjustment module is used to adjust the output volume of the first speaker according to a first volume control parameter of the first speaker corresponding to a first usage scenario, and to adjust the output volume of the second speaker according to a second volume control parameter of the second speaker corresponding to the first usage scenario, wherein the first volume control parameter is different from the second volume control parameter.
11. A readable medium, characterized in that: The readable medium stores instructions, which, when executed on an electronic device, enable the electronic device to execute the speaker management method according to any one of claims 1 to 9.
12. An electronic device, characterized in that: include: A memory for storing instructions executed by one or more processors of an electronic device, and a processor, which is one of the processors of the electronic device, for executing the speaker management method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Loudspeaker management method and device, medium and electronic equipment
CN118519602A
Volume regulating method of first electronic equipment and first electronic equipment
CN103024630A
Method and device for matching audio output parameters and storage medium
CN111552452A
Loudspeaker control method, device, mobile terminal and storage medium
CN113660599A
Method and device for adjusting call volume, call equipment and medium
CN115052070A
