Audio effect control method and electronic device
By adjusting the speaker's audio parameters in foldable screen electronic devices, the problem of unstable audio caused by changes in usage conditions was solved, resulting in stable audio playback, improved user experience, and extended speaker lifespan.
Patent Information
- Application Number
- PCT/CN2025/070232
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-05-30
- Filing Date
- 2025-01-02
- Publication Date
- 2025-12-04
AI Technical Summary
During the changing usage of foldable screen electronic devices, the relative position of the speakers changes, resulting in significant differences in sound effects, which affects the stability of audio playback and user experience.
By adjusting the speaker's sound parameters under different usage conditions, the first and second speakers can play with different sound parameters to maintain the stability and consistency of the sound effect, including the adjustment of parameters such as loudness, sound pressure, frequency, phase consistency and stereo effect.
It provides a stable sound experience under different usage conditions of electronic devices, reduces hardware wear and tear, extends the lifespan of speakers, and improves the user's audio playback quality and user experience.
Smart Images

Figure CN2025070232_04122025_PF_FP_ABST
Abstract
Description
Sound control methods and electronic devices
[0001] This application claims priority to Chinese Patent Application No. 202410700924.6, filed on May 30, 2024, entitled "Sound Effect Control Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field
[0002] This application relates to the field of terminal technology, and in particular to a sound effect control method and electronic device. Background Technology
[0003] With the development of terminal technology, more and more users are using foldable screen electronic devices. However, during the use of foldable screen electronic devices, the usage state of the device may change, for example, from an unfolded state to a stable folded state. Because the relative position of the speakers changes in different usage states, there may be significant differences in sound effects between these states, leading to poor audio playback stability. Summary of the Invention
[0004] To address the aforementioned technical problems, this application provides a sound effect control method and an electronic device. The technical solution provided by this application ensures that the audio played by the electronic device maintains similar sound effects under different usage conditions, thereby guaranteeing the stability of the electronic device's sound effects and improving the user experience.
[0005] To achieve the above-mentioned technical objectives, this application provides the following technical solution:
[0006] A first aspect provides a sound effect control method applied to an electronic device, which is a foldable screen electronic device. The electronic device includes a first speaker and a second speaker, located in different display areas of the foldable screen. The method includes: in a first usage state, the electronic device plays a first audio with a first sound effect through the first and second speakers, wherein the first speaker uses first sound effect parameters and the second speaker uses second sound effect parameters. In response to a user operation, the electronic device switches to a second usage state. In response to the switch to the second usage state, the electronic device plays the first audio with a second sound effect through the first and second speakers, wherein the first speaker uses third sound effect parameters and the second speaker uses fourth sound effect parameters. The first and third sound effect parameters are different, and the deviation between the second and first sound effects is less than a first threshold. The first and second usage states are related to the foldable state of the electronic device.
[0007] In this way, by instructing at least one speaker to play with different sound parameters under different usage conditions, the electronic device can still provide users with a stable sound experience during changes in usage conditions, avoid sound field instability, and improve audio playback quality.
[0008] Furthermore, sound output can affect the lifespan of speakers. Therefore, proper sound management can effectively reduce stress and wear on the hardware, thereby protecting speakers from excessive stress and extending their lifespan.
[0009] According to the first aspect, the electronic device is a three-fold folding screen electronic device, the first display area and the second display area of the folding screen of the electronic device are connected by a first folding axis, the second display area and the third display area of the folding screen of the electronic device are connected by a second folding axis, the first speaker is located in the first display area, and the second speaker is located in the third display area.
[0010] According to the first aspect, or any implementation of the first aspect above, the first speaker is located in the upper left corner of the first display area, and the second speaker is located in the lower right corner of the third display area; or, the first speaker is located in the lower left corner of the first display area, and the second speaker is located in the upper right corner of the third display area.
[0011] The speaker's location within the display area includes its position inside the electronic device corresponding to the display area, and the speaker's corresponding sound hole can be located near the speaker's location. For example, the sound hole for the first speaker can be implemented by means of perforation on the upper left side, left side, back side opposite the foldable screen, or the foldable screen itself, corresponding to the upper left corner of the first display area of the electronic device.
[0012] Thus, in scenarios where the multiple speakers of an electronic device are located far apart, causing the sound effect to be greatly affected by different usage states, the electronic device can adjust the sound effect parameters of the speakers to ensure that the sound effect produced by the multiple speakers remains similar under different usage states, thereby improving the user experience.
[0013] According to the first aspect, or any of the above implementations of the first aspect, the first sound effect or the second sound effect is represented by the value of at least one of the following measurement parameters: loudness, sound pressure, frequency, phase coherence, stereo effect, and degree of distortion.
[0014] According to the first aspect, or any implementation of the first aspect above, the deviation between the second sound effect and the first sound effect is less than the first threshold, including: the deviation between the first value of the measurement parameter corresponding to the first sound effect and the second value of the measurement parameter corresponding to the second sound effect is less than the first threshold.
[0015] In this way, by measuring multiple parameters, the similarity of the sound effects provided by the electronic device under different usage states can be measured, and the electronic device can be debugged. This allows the sound effect parameters corresponding to different usage states to be preset in the electronic device before the user actually uses it, so that the electronic device can achieve adaptive sound effect adjustment during subsequent user use.
[0016] According to the first aspect, or any implementation thereof, in response to a user operation, the electronic device switches to a second usage state, including: in response to the user operation, the electronic device acquires first detection data reported by an accelerometer sensor and / or a gyroscope sensor. Based on the first detection data, the electronic device acquires its second usage state.
[0017] According to the first aspect, or any implementation thereof, in response to a user operation, the electronic device switches to a second usage state, including: in response to a user operation, the electronic device acquires that it is in a powered-on state or a reset state; the electronic device acquires second detection data reported by a magnetic sensor; and the electronic device acquires its second usage state based on the second detection data.
[0018] In this way, electronic devices can obtain the usage status of electronic devices based on the detection data reported by sensors, and then adaptively implement the corresponding sound effects.
[0019] According to the first aspect, or any implementation thereof, an electronic device plays first audio with a first sound effect via a first speaker and a second speaker, comprising: in response to a first audio event, acquiring a first folding angle of the electronic device; determining a first usage state of the electronic device based on the first folding angle; and, based on the first usage state, playing audio using first sound effect parameters via the first speaker and playing audio using second sound effect parameters via the second speaker.
[0020] In this way, the electronic device can obtain the usage status of the electronic device based on the folding angle, and thus instruct the speaker to play audio with corresponding sound effect parameters.
[0021] According to the first aspect, or any of the above implementations of the first aspect, the second sound effect parameter and the fourth sound effect parameter are the same.
[0022] In this way, adaptive sound effects can be achieved by adjusting the sound effect parameters of individual speakers. Adjusting individual sound effect parameters is relatively easy, thus reducing the overall difficulty of sound effect adjustment.
[0023] Depending on the first aspect, or any of the implementations of the first aspect above, the second and fourth sound effect parameters are different.
[0024] In this way, by adjusting the sound effect parameters of multiple speakers, adaptive sound effects can be achieved. This provides users with a better experience in more usage scenarios. For example, when an electronic device is placed on a fixed platform such as a desktop, in response to changes in usage status, the electronic device can access one or more speakers in the display area on the side that is in contact with the fixed platform, and adjust the sound effect parameters of these speakers to achieve sound effect adjustment.
[0025] According to the first aspect, or any implementation of the first aspect above, the first usage state includes a stable state and a transitional state. The stable state includes an unfolded state and a stable folded state. The unfolded state includes any two connected display areas in the folded screen of the electronic device being fully unfolded. The stable folded state includes any two connected display areas in the folded screen of the electronic device being fully unfolded or closed. The transitional state includes two connected display areas in the folded screen of the electronic device being partially unfolded.
[0026] According to the first aspect, or any implementation of the first aspect above, the transition state includes a static transition state and a dynamic transition state. The static transition state means that the electronic device maintains the transition state for a duration greater than or equal to a time threshold, and the dynamic transition state means that the electronic device maintains the transition state for a duration less than a time threshold.
[0027] In this way, the electronic device can obtain its usage status by observing the corresponding states between different display areas.
[0028] According to the first aspect, or any implementation of the first aspect above, the first usage state is a first stable state; in the first usage state, the electronic device plays first audio with a first sound effect through a first speaker and a second speaker, including: the electronic device matching a first sound effect parameter corresponding to the first stable state from a plurality of pre-configured sound effect parameters. The first speaker plays using the first sound effect parameter.
[0029] According to the first aspect, or any implementation of the first aspect above, the first usage state is a first transition state; in the first usage state, the electronic device plays first audio with a first sound effect through a first speaker and a second speaker, including: the electronic device matching a first sound effect parameter corresponding to a second stable state from a plurality of pre-configured sound effect parameters, the second stable state being the previous stable state adjacent to the first transition state. The first speaker plays using the first sound effect parameter.
[0030] In this way, when the electronic device is in a stable state, it can directly match the corresponding sound effect parameters. Furthermore, when the electronic device is in a transitional state, it can retain the sound effect parameters from the previous stable state. Thus, regardless of the electronic device's operating state, it can obtain the corresponding sound effect parameters, and through adaptive adjustment of these parameters, subsequent adaptive sound effect adjustments based on those parameters can be achieved.
[0031] According to the first aspect, or any implementation of the first aspect above, the first usage state is a first static transition state; in the first usage state, the electronic device plays first audio with a first sound effect through a first speaker and a second speaker, including: the electronic device matching a fifth sound effect parameter corresponding to a third stable state and a sixth sound effect parameter corresponding to a fourth stable state from a plurality of pre-configured sound effect parameters, wherein the third stable state and the fourth stable state are stable states adjacent to the first static transition state. The electronic device obtains the first sound effect parameter based on at least one of the second folding angle of the electronic device, the fifth sound effect parameter, and the sixth sound effect parameter. The first speaker plays using the first sound effect parameter.
[0032] According to the first aspect, or any implementation of the first aspect above, the first usage state is a first dynamic transition state; in the first usage state, the electronic device plays first audio with a first sound effect through a first speaker and a second speaker, including: the electronic device matching a seventh sound effect parameter corresponding to a fifth stable state and an eighth sound effect parameter corresponding to a sixth stable state from a plurality of pre-configured sound effect parameters, wherein the fifth stable state and the sixth stable state are stable states adjacent to the first dynamic transition state. The electronic device obtains the first sound effect parameter based on at least one of the folding speed of the electronic device, the folding direction of the electronic device, the seventh sound effect parameter, and the eighth sound effect parameter. The first speaker plays using the first sound effect parameter.
[0033] In this way, when the electronic device is in a stable state, it can directly match the corresponding sound effect parameters. Furthermore, when the electronic device is in a transitional state, it can also obtain the sound effect parameters corresponding to the current transitional state based on the sound effect parameters of the adjacent stable states. Thus, regardless of the electronic device's usage state, it can obtain the corresponding sound effect parameters, and through adaptive adjustment of these parameters, subsequent adaptive adjustment of sound effects based on these parameters can be achieved.
[0034] According to the first aspect, or any of the above implementations of the first aspect, during the dynamic folding process of the folding screen of the electronic device, the first sound effect parameter dynamically changes to the second sound effect parameter.
[0035] In this way, as the usage status of electronic devices changes, the devices provide users with a similar audio experience through relatively smooth changes in audio parameters.
[0036] According to the first aspect, or any implementation of the first aspect above, after the electronic device plays the first audio with the second sound effect through the first speaker and the second speaker in response to the electronic device switching to the second usage state, the method further includes: the electronic device displaying a sound effect matching notification, the sound effect matching notification indicating that the current electronic device has matched the sound effect corresponding to the second usage state.
[0037] In this way, in response to changes in usage status, electronic devices can provide users with simultaneous visual and auditory perception to enhance the user experience.
[0038] Secondly, an electronic device is provided. This electronic device is a foldable screen electronic device, comprising: a processor, a memory, a first speaker, and a second speaker. The first speaker and the second speaker are located in different display areas of the foldable screen of the electronic device. The memory, the first speaker, and the second speaker are coupled to the processor. The memory stores computer program code, which includes computer instructions. When the processor reads the computer instructions from the memory, the electronic device executes the following: In a first usage state, the electronic device plays a first audio signal with a first sound effect through the first speaker and the second speaker, wherein the first speaker uses first sound effect parameters and the second speaker uses second sound effect parameters. In response to a user operation, the electronic device switches to a second usage state. In response to the electronic device switching to the second usage state, the electronic device plays the first audio signal with a second sound effect through the first speaker and the second speaker, wherein the first speaker uses third sound effect parameters and the second speaker uses fourth sound effect parameters. The first and third sound effect parameters are different, and the deviation between the second and first sound effects is less than a first threshold. The first and second usage states are related to the folding state of the electronic device.
[0039] According to the second aspect, the electronic device is a three-fold folding screen electronic device, the first display area and the second display area of the folding screen of the electronic device are connected by a first folding axis, the second display area and the third display area of the folding screen of the electronic device are connected by a second folding axis, the first speaker is located in the first display area, and the second speaker is located in the third display area.
[0040] According to the second aspect, or any implementation of the second aspect above, the first speaker is located in the upper left corner of the first display area, and the second speaker is located in the lower right corner of the third display area; or, the first speaker is located in the lower left corner of the first display area, and the second speaker is located in the upper right corner of the third display area.
[0041] According to the second aspect, or any implementation of the second aspect above, the first sound effect or the second sound effect is represented by the value of at least one of the following measurement parameters: loudness, sound pressure, frequency, phase consistency, stereo effect, and degree of distortion.
[0042] According to the second aspect, or any implementation of the second aspect above, the deviation between the second sound effect and the first sound effect is less than the first threshold, including: the deviation between the first value of the measurement parameter corresponding to the first sound effect and the second value of the measurement parameter corresponding to the second sound effect is less than the first threshold.
[0043] According to the second aspect, or any implementation thereof, the electronic device plays first audio with a first sound effect through a first speaker and a second speaker, including: in response to a first audio event, acquiring a first folding angle of the electronic device; determining a first usage state of the electronic device based on the first folding angle; and, based on the first usage state, playing audio using first sound effect parameters through the first speaker and playing audio using second sound effect parameters through the second speaker.
[0044] According to the second aspect, or any implementation thereof, in response to a user operation, the electronic device switches to a second usage state, including: in response to the user operation, the electronic device acquires first detection data reported by the accelerometer and / or gyroscope sensor. Based on the first detection data, the electronic device acquires its second usage state.
[0045] According to the second aspect, or any implementation thereof, in response to a user operation, the electronic device switches to a second usage state, including: in response to a user operation, the electronic device acquires that it is in a powered-on state or a reset state; the electronic device acquires second detection data reported by the magnetic sensor; and the electronic device acquires the second usage state based on the second detection data.
[0046] According to the second aspect, or any of the implementation methods of the second aspect above, the second sound effect parameter and the fourth sound effect parameter are the same.
[0047] According to the second aspect, or any of the implementation methods of the second aspect above, the second sound effect parameter and the fourth sound effect parameter are different.
[0048] According to the second aspect, or any implementation of the second aspect above, the first usage state is a first stable state; in the first usage state, the electronic device plays first audio with a first sound effect through a first speaker and a second speaker, including: the electronic device matching a first sound effect parameter corresponding to the first stable state from a plurality of pre-configured sound effect parameters. The first speaker plays using the first sound effect parameter.
[0049] According to the second aspect, or any implementation of the second aspect above, the first usage state is a first transition state; in the first usage state, the electronic device plays first audio with a first sound effect through a first speaker and a second speaker, including: the electronic device matching a first sound effect parameter corresponding to a second stable state from a plurality of pre-configured sound effect parameters, the second stable state being the previous stable state adjacent to the first transition state. The first speaker plays using the first sound effect parameter.
[0050] According to the second aspect, or any implementation of the second aspect above, the first usage state is a first static transition state; in the first usage state, the electronic device plays first audio with a first sound effect through a first speaker and a second speaker, including: the electronic device matching a fifth sound effect parameter corresponding to a third stable state and a sixth sound effect parameter corresponding to a fourth stable state from a plurality of pre-configured sound effect parameters, wherein the third stable state and the fourth stable state are stable states adjacent to the first static transition state. The electronic device obtains the first sound effect parameter based on at least one of the second folding angle of the electronic device, the fifth sound effect parameter, and the sixth sound effect parameter. The first speaker plays using the first sound effect parameter.
[0051] According to the second aspect, or any implementation of the second aspect above, the first usage state is a first dynamic transition state; in the first usage state, the electronic device plays first audio with a first sound effect through a first speaker and a second speaker, including: the electronic device matching a seventh sound effect parameter corresponding to a fifth stable state and an eighth sound effect parameter corresponding to a sixth stable state from a plurality of pre-configured sound effect parameters, wherein the fifth stable state and the sixth stable state are stable states adjacent to the first dynamic transition state. The electronic device obtains the first sound effect parameter based on at least one of the folding speed of the electronic device, the folding direction of the electronic device, the seventh sound effect parameter, and the eighth sound effect parameter. The first speaker plays using the first sound effect parameter.
[0052] According to the second aspect, or any of the implementation methods of the second aspect above, during the dynamic change of the folding screen of the electronic device, the first sound effect parameter dynamically changes to the second sound effect parameter.
[0053] According to the second aspect, or any implementation of the second aspect above, when the processor reads computer instructions from memory, it also causes the electronic device to execute: the electronic device displays a sound effect matching notification, the sound effect matching notification indicating that the current electronic device has matched the sound effect corresponding to the second usage state.
[0054] According to the second aspect, or any implementation of the second aspect above, the first usage state includes a stable state and a transitional state. The stable state includes an unfolded state and a stable folded state. The unfolded state includes any two connected display areas in the folded screen of the electronic device being fully unfolded. The stable folded state includes any two connected display areas in the folded screen of the electronic device being fully unfolded or closed. The transitional state includes two connected display areas in the folded screen of the electronic device being partially unfolded.
[0055] According to the second aspect, or any implementation of the second aspect above, the transition state includes a static transition state and a dynamic transition state. A static transition state means that the duration for which the electronic device maintains the transition state is greater than or equal to a time threshold, while a dynamic transition state means that the duration for which the electronic device maintains the transition state is less than a time threshold.
[0056] Thirdly, an electronic device is provided that has the function of implementing the method described in the first aspect and any of its possible implementations. This function can be implemented in hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the described function.
[0057] Fourthly, a computer-readable storage medium is provided. The computer-readable storage medium stores a computer program (also referred to as instructions or code) that, when executed by an electronic device, causes the electronic device to perform the method of the first aspect or any embodiment of the first aspect.
[0058] Fifthly, a computer program product is provided that, when run on an electronic device, causes the electronic device to perform the method of the first aspect or any one of the embodiments of the first aspect.
[0059] In a sixth aspect, a circuit system is provided, the circuit system including processing circuitry configured to perform the method of the first aspect or any embodiment of the first aspect.
[0060] In a seventh aspect, a chip system is provided, including at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes the instructions, the at least one processor performs the method of the first aspect or any embodiment of the first aspect.
[0061] The technical effects of the aforementioned aspects can be referenced from each other, and will not be elaborated further here. Attached Figure Description
[0062] Figure 1 is a schematic diagram of the product form of a tri-fold folding screen electronic device provided in an embodiment of this application;
[0063] Figure 2A is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application;
[0064] Figure 2B is a schematic diagram showing the number of magnetic sensors installed in the electronic device provided in the embodiment of this application;
[0065] Figure 3 is a schematic diagram of the software structure of the electronic device provided in an embodiment of this application;
[0066] Figure 4 is a schematic diagram of the stable state provided in an embodiment of this application;
[0067] Figure 5 is a schematic diagram of the transition state provided in an embodiment of this application;
[0068] Figure 6 is a schematic flowchart of the sound effect control method provided in an embodiment of this application;
[0069] Figure 7 is a schematic diagram of the program initialization process for a power-on or reset scenario provided in an embodiment of this application;
[0070] Figure 8 is a schematic diagram of module interaction provided in an embodiment of this application;
[0071] Figure 9 is a schematic diagram of the sound effect control method provided in the embodiment of this application (II).
[0072] Figure 10 is a schematic flowchart of the sound effect control method provided in the embodiment of this application;
[0073] Figure 11 is a schematic flowchart of the sound effect control method provided in the embodiment of this application;
[0074] Figure 12 is a schematic diagram of the interface provided in an embodiment of this application;
[0075] Figure 13 is a schematic flowchart of the sound effect control method provided in the embodiment of this application;
[0076] Figure 14 is a schematic diagram of the structure of the electronic device provided in the embodiment of this application. Detailed Implementation
[0077] The technical solutions of the embodiments of this application are described below with reference to the accompanying drawings. In the description of the embodiments of this application, the terminology used in the following embodiments is for the purpose of describing specific embodiments only and is not intended to be a limitation of this application. As used in the specification and appended claims of this application, the singular expressions “a,” “an,” “the,” “the,” “the,” and “this” are intended to include expressions such as “one or more,” unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of this application, “at least one” and “one or more” refer to one or more (including two).
[0078] References to "one embodiment" or "some embodiments" in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized. The term "connection" includes direct connections and indirect connections, unless otherwise stated. "First" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated.
[0079] In the embodiments of this application, the words "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described as "exemplarily" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of the words "exemplarily" or "for example" is intended to present the relevant concepts in a specific manner.
[0080] In some embodiments, the foldable electronic device is equipped with one or more speakers. During use, the user may change the usage state of the foldable electronic device as needed. Since the relative positions of the speakers change in different usage states, significant differences in sound effects may occur between these states, leading to poor audio playback stability.
[0081] For example, as shown in Figure 1, this is a schematic diagram of a tri-fold folding screen electronic device provided in an embodiment of this application. The tri-fold folding screen electronic device is equipped with a speaker 1 and a speaker 2. Figure 1(a) shows the tri-fold folding screen electronic device in its fully unfolded state. The device has two folding axes, allowing it to fold inwards along the axes in direction 101a and outwards along direction 102a, as shown in Figure 1(a). Figure 1(b) shows the tri-fold folding screen electronic device in its fully folded state. In an example scenario, during audio playback, the device folds or unfolds in response to user input. Due to the change in physical structure, the combined sound field effect of the two speakers changes, resulting in sound field differences under different usage conditions. For example, in some usage conditions, due to the discontinuous sound fields of the different speakers, problems such as blurred sound images and unclear voices may occur.
[0082] In some embodiments, the electronic device can adjust sound parameters based on the positional relationship between the two speakers and the user's ears, thereby ensuring that the user receives a sound field that meets stereo requirements. However, in the current solution, the speaker positions need to be kept fixed to guarantee the sound effect. If the electronic device triggers folding, causing a change in the relative positions of the different speakers, the stability of the sound effect under different usage conditions cannot be guaranteed.
[0083] In some embodiments, a speaker is configured on each of the two display areas on either side of the folding axis in the bi-folding folding screen electronic device. The bi-folding folding screen electronic device can obtain the folding angle. When the folding angle is greater than or equal to a threshold, it can set the sound effect parameters of the two speakers to provide the user with a stereo sound field playback effect. When the folding angle is less than the threshold, it can set the sound effect parameters of the two speakers to provide the user with a non-stereo sound field playback effect. In the current solution, by modifying the speaker sound effect parameters, the sound effect can be changed under different usage conditions, but the stability of the sound effect under different usage conditions cannot be guaranteed, which still affects the user experience.
[0084] Optionally, the sound effect control method provided in this application embodiment can be applied to electronic device 100. Optionally, electronic device 100 can be, for example, a mobile phone, tablet computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), wearable device, artificial intelligence (AI) device, and other terminal devices. The operating system installed on electronic device 100 includes, but is not limited to, […]. Alternatively, other operating systems may be used. This application does not limit the specific type of electronic device 100 or the operating system installed on it.
[0085] Optionally, the electronic device 100 is equipped with a flexible folding screen, which can be folded or unfolded in response to user operation.
[0086] For example, Figure 2A shows a schematic diagram of the structure of an electronic device 100.
[0087] Electronic device 100 may include processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc.
[0088] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0089] Processor 110 may include one or more processing units, such as application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU). These different processing units may be independent devices or integrated into one or more processors.
[0090] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0091] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0092] In some embodiments, the processor 110 may include one or more interfaces. Interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.
[0093] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via the PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0094] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.
[0095] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0096] The sensor module 180 may include a magnetic sensor 181, an accelerometer 182, a gyroscope sensor 183, a pressure sensor, a barometric pressure sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, a bone conduction sensor, etc.
[0097] The magnetic sensor 181 includes a Hall sensor. The electronic device 100 can use the magnetic sensor 181 to detect the usage status of the electronic device 100. In some embodiments, the electronic device 100 obtains the current folding angle of the electronic device 100 based on the detection data reported by the magnetic sensor 181, thereby obtaining the usage status of the electronic device 100.
[0098] For example, when the electronic device 100 is a foldable screen electronic device, the foldable screen of the electronic device 100 can be divided into multiple display areas based on the folding axis. Each display area is equipped with at least one magnetic sensor. For instance, as shown in Figure 2B, the electronic device 100 is a tri-foldable screen electronic device, including folding axis 1 and folding axis 2. The foldable screen of the electronic device 100 includes display area A, display area B, and display area C. Display area A is equipped with a corresponding magnetic sensor 1, display area B with a corresponding magnetic sensor 2, and display area C with a corresponding magnetic sensor 3. Thus, the electronic device 100 determines the opening / closing state between display area A and display area B (which can also be described as the usage state corresponding to folding axis 1) based on the detection data of magnetic sensors 1 and 2, and determines the opening / closing state between display area B and display area C (which can also be described as the usage state corresponding to folding axis 2) based on the detection data of magnetic sensors 2 and 3.
[0099] Accelerometer 182 can detect the magnitude of acceleration of electronic device 100 in various directions (generally three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic device and applied to applications such as screen orientation switching and pedometers.
[0100] The gyroscope sensor 183 can be used to determine the motion attitude of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes) can be determined by the gyroscope sensor 183.
[0101] In some embodiments, the electronic device 100 obtains the current folding angle of the electronic device 100 based on the detection data reported by the accelerometer sensor 182 and the gyroscope sensor 183, thereby obtaining the usage status of the electronic device 100.
[0102] Internal memory 121 can be used to store computer executable program code, which includes instructions. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc. Processor 110 executes various functional applications and data processing of electronic device 100 by running instructions stored in internal memory 121 and / or instructions stored in memory located in the processor.
[0103] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110. The electronic device 100 can use the audio module 170 for functions such as music playback and recording. The audio module 170 may include a speaker 171, a receiver, a microphone, a headphone jack, and an application processor to implement audio functions.
[0104] Speaker 171, also known as a "loudspeaker", is used to convert audio electrical signals into sound signals. Electronic device 100 can listen to music or make hands-free calls through speaker 171.
[0105] In some embodiments, the electronic device 100 is equipped with at least one audio playback unit, such as a speaker 171. In some examples, the electronic device 100 adjusts the audio playback effect by adjusting the sound effect parameters of the speaker 171. Optionally, the sound effect parameters include, for example, loudness, frequency, etc.
[0106] In some examples, electronic device 100 includes multiple speakers. For example, electronic device 100 includes a first speaker and a second speaker, or electronic device 100 includes more speakers.
[0107] Alternatively, different speakers of the electronic device are located in different display areas of the folding screen (such as display 194) of the electronic device.
[0108] For example, as shown in FIG1(a), the electronic device 100 is a tri-fold folding screen electronic device, which includes two folding axes, such as folding axis 1 and folding axis 2. The first and second display areas of the folding screen of the electronic device 100 are connected via folding axis 1, and the second and third display areas of the folding screen of the electronic device 100 are connected via folding axis 2. The electronic device 100 includes at least two speakers, such as speaker 1 and speaker 2. Speaker 1 is located in the first display area, and speaker 2 is located in the third display area.
[0109] Optionally, as shown in Figure 1(a), speaker 1 is located in the upper left corner of the first display area, and speaker 2 is located in the lower right corner of the third display area. Alternatively, speaker 1 may also be located in the lower left corner of the first display area, and speaker 2 may also be located in the upper right corner of the third display area.
[0110] The speaker being located in the display area includes the speaker being located inside the electronic device corresponding to the display area, and the speaker hole corresponding to the speaker can be located near the location of the speaker. For example, as shown in the scenario in Figure 1(a), the speaker hole corresponding to the speaker 1 is realized by means of punching holes on the upper left side, the left side, the back side opposite to the folding screen, and the folding screen of the first display area of the electronic device 100.
[0111] Thus, in scenarios where the multiple speakers configured in the electronic device 100 are relatively far apart, causing the sound effect to be greatly affected by different usage states, the electronic device 100 can adjust the sound effect parameters of the speakers to ensure that the sound effect produced by the multiple speakers remains similar under different usage states of the electronic device 100, thereby improving the user experience.
[0112] In some embodiments, in a first usage state, the electronic device 100 plays first audio with a first sound effect through a first speaker and a second speaker, wherein the first speaker plays using a first sound effect parameter and the second speaker plays using a second sound effect parameter. In response to a user operation, the electronic device 100 switches to a second usage state. In response to the electronic device 100 switching to the second usage state, the electronic device 100 plays the first audio with a second sound effect through the first speaker and the second speaker, wherein the first speaker plays using a third sound effect parameter and the second speaker plays using a fourth sound effect parameter, the first sound effect parameter and the third sound effect parameter are different, and the deviation between the second sound effect and the first sound effect is less than a first threshold.
[0113] Optionally, as described above, the electronic device 100 can obtain the usage status of the electronic device 100 through the detection data reported by the sensor 180 (e.g., at least one of the magnetic sensor 181, accelerometer 182, and gyroscope sensor 183).
[0114] Optionally, the electronic device 100 can acquire the speaker's sound effect parameters based on the usage state, so that the speaker can play audio based on these sound effect parameters. Alternatively, during audio playback, the electronic device 100 can acquire the sound effect parameters corresponding to the changed usage state, and instruct the speaker to play audio based on these sound effect parameters, thereby achieving adaptive adjustment of the sound effect parameters.
[0115] In this way, electronic device 100 can provide users with a similar sound experience in different usage states.
[0116] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0117] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be manufactured using a liquid crystal display (LCD), such as an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a mini-LED, a micro-LED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0118] In some embodiments, after dynamically changing the sound effect, the electronic device 100 can display a sound effect matching notification on the display screen 194. The sound effect matching notification indicates that the electronic device 100 has matched the sound effect corresponding to the second usage state. This allows the user to obtain synchronized visual and auditory perception, thereby enhancing the user experience.
[0119] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.
[0120] Figure 3 is a software structure block diagram of an electronic device 100 according to an embodiment of this application.
[0121] A layered architecture divides software into several layers, each with a clear role and function. 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, the application framework layer, the hardware abstraction layer (HAL) layer, and the kernel layer.
[0122] The application layer can include a series of application packages.
[0123] As shown in Figure 3, the application package can include applications such as audio applications and video applications.
[0124] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0125] As shown in Figure 3, the application framework layer may include audio services, notification managers, etc.
[0126] Audio services are used to acquire, process, and transmit audio data, as well as refresh the underlying pathways for the corresponding scenarios. In some examples, after acquiring sound effect parameters, the audio service performs audio processing based on these parameters, thereby triggering the speaker (or other audio module) to play the processed audio through the audio driver to achieve the desired sound effect.
[0127] The notification manager is used to display and manage notifications. For example, after sound effect adjustments, the notification manager generates a notification and displays it through the display driver, allowing the user to know that sound effect adjustments have been made based on usage status. The notification manager can also allow applications to display notification information in the status bar, which can be used to convey informational messages and can disappear automatically after a short pause without user interaction. For example, the notification manager can be used to notify users of sound effect adjustments, download completion, message alerts, etc. The notification manager can also display notifications as icons or scrolling text in the system's top status bar, such as notifications from background applications, or as dialog windows on the screen. Examples include displaying text messages in the status bar, emitting alert sounds, vibrating electronic devices, and flashing indicator lights.
[0128] HAL is an abstract interface for device kernel drivers, providing an application programming interface to higher-level Java API frameworks for accessing the underlying device. HAL contains multiple library modules, each implementing an interface for a specific type of hardware component.
[0129] In some embodiments, after acquiring the usage status, the electronic device 100 determines the sound effect parameters corresponding to the current usage status through HAL.
[0130] The kernel layer is the layer between hardware and software. Examples of kernel layer components include audio drivers, sensor drivers, and display drivers.
[0131] The following section takes electronic device 100 as a three-fold folding screen electronic device, with two speakers configured as audio playback units, to provide a detailed description of the sound effect control method provided in this application embodiment.
[0132] In some embodiments, the usage states of the electronic device are divided according to the user's usage habits. Optionally, the usage states of the electronic device may include a stable state and a transitional state. The stable state may include an unfolded state and a stable folded state.
[0133] In this embodiment of the application, as shown in Figure 4, the display screen of the tri-fold folding electronic device includes three display areas. The first and second display areas are connected by a hinge 1, and the second and third display areas are connected by a hinge 2. The unfolded state can include any two display areas connected by the hinges being fully unfolded. For example, as shown in Figure 4(a), if any two display areas connected by the hinges are fully unfolded, the electronic device is currently in the unfolded state. The stable folded state can include any two display areas connected by the hinges being either fully unfolded or closed. For example, as shown in Figure 4(b), if the first and second display areas are fully unfolded, and the second and third display areas are fully closed, the electronic device is currently in the stable folded state. As shown in Figure 4(c), if the first and second display areas are fully closed, and the second and third display areas are fully unfolded, the electronic device is currently in the stable folded state. As shown in Figure 4(d), if any two display areas connected by the hinges are fully closed, the electronic device is currently in the stable folded state.
[0134] In this embodiment, the transition state may include a state in which two display areas connected by hinges are partially unfolded. This partially unfolded state indicates that the two display areas connected by hinges are not fully unfolded or closed. Optionally, the usage state of the electronic device during the process of changing from a stable state to another folded state is a transition state. For example, as shown in FIG5, the display screen of the tri-fold folding electronic device includes three display areas, wherein the first display area and the second display area are connected by a hinge 1, and the second display area and the third display area are connected by a hinge 2. As shown in FIG5(a), the first display area and the second display area are fully unfolded, and the second display area and the third display area are partially unfolded, then the current electronic device is in a transition state. As shown in FIG5(b), the first display area and the second display area are fully closed, and the second display area and the third display area are partially unfolded, then the current electronic device is in a transition state. As shown in FIG5(c), the first display area and the second display area are partially unfolded, and the second display area and the third display area are fully unfolded, then the current electronic device is in a transition state. As shown in Figure 5(d), the first and second display areas are partially unfolded, while the second and third display areas are completely closed. In this case, the electronic device is in a transitional state. As shown in Figure 5(e), any two display areas connected by a hinge are partially unfolded, indicating that the electronic device is in a transitional state.
[0135] It should be understood that the connection order of the three display areas of the tri-fold foldable screen electronic device is not limited in the embodiments of this application. For example, in the scenario shown in Figure 4 or Figure 5, the usage state of the electronic device is described by taking the second display area as the middle display area between folding axis 1 and folding axis 2, and the first display area and the third display area as the display areas on both sides of the second display area.
[0136] In this way, by dividing the usage status of foldable screen electronic devices, subsequent electronic devices can determine the sound effect parameters to be used based on the usage status of the electronic devices, so as to achieve adaptive adjustment of sound effects during the folding process.
[0137] In some embodiments, different types of foldable screen electronic devices are pre-configured with different usage states. For example, a tri-fold foldable screen electronic device is pre-configured with the aforementioned four stable states and five transition states.
[0138] Optionally, an angle threshold range is pre-configured in the electronic device so that the electronic device can obtain the corresponding usage state based on the angle threshold range. For example, the angle threshold is 0 degrees and 180 degrees. Based on whether the opening angle between the display areas is within the angle threshold or within the range corresponding to the angle threshold, the state presented between the display areas is determined to be fully expanded, fully closed, or partially expanded, thereby obtaining the usage state of the electronic device.
[0139] The above text introduces the usage status of electronic devices. The following text provides a detailed introduction to the sound effect adjustment process based on the usage status.
[0140] Figure 6 is a schematic flowchart of a sound effect control method provided in an embodiment of this application. It should be noted that this method is not limited to the specific order described in Figure 6 and below. It should be understood that in other embodiments, the order of some steps in this method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:
[0141] S601, Electronic device acquires audio events.
[0142] Audio events include events triggered by applications configured with audio playback capabilities, such as music playback, audio / video playback, phone calls, and alarms.
[0143] For example, the electronic device detects the user's interaction with the music application icon and launches the music application. Subsequently, in response to the user's interaction with the music playback controls, the electronic device detects an audio event and plays the corresponding audio.
[0144] For example, the electronic device determines that the user has set an alarm for 8:00 AM based on the user's settings in the alarm clock app. Subsequently, the electronic device detects that the time has reached 8:00 AM, detects an audio event, triggers the alarm, and the audio event plays the corresponding alarm sound.
[0145] S602. Electronic devices acquire the usage status of electronic devices.
[0146] In some embodiments, the electronic device can detect the opening angle between different display areas of the foldable screen using sensors. The electronic device then determines its current usage state based on this opening angle and a pre-configured angle threshold range.
[0147] For example, the electronic device is a tri-fold screen electronic device as shown in Figure 4 or Figure 5. The opening angle between the first and second display areas is angle1, and the opening angle between the second and third display areas is angle2. As shown in Table 1 below, the electronic device identifies the values of angle1 and angle2 and determines the current usage status of the electronic device based on whether the values are within the corresponding angle threshold range.
[0148] For example, as mentioned above, a stable state includes any two display areas connected by a hinge being fully extended or closed. Then, as shown in Table 1 below, the electronic device can determine that it is currently in a stable state based on the value of angle1 being 0° or 180°, and the value of angle2 being 0° or 180°.
[0149] For example, as mentioned above, the transition state includes a state where two display areas connected by a hinge are partially unfolded. Therefore, as shown in Table 1 below, the electronic device can determine that it is currently in a transition state based on the values of angle1 and angle2, which can be either 0° or 180°.
[0150] Table 1
[0151] In some embodiments, the electronic device uses bitwise operations to set the truth value of bits to indicate its usage state. For example, a tri-fold folding screen electronic device includes two folding axes. The truth value of bit 1 indicates the opening angle between the two display areas connected by hinge 1 (angle1), and the truth value of bit 0 indicates the opening angle between the two display areas connected by hinge 2 (angle2). For example, truth value 1 indicates an opening angle of 180°, truth value 2 indicates an opening angle of 0°, and truth value 3 indicates an opening angle between 0° and 180°. Thus, as shown in Table 1 above, the electronic device indicates its usage state by setting the truth values of different bits. For example, the electronic device uses bit 11 to indicate that the opening angle between the first and second display areas connected by hinge 1 is 180°, and the opening angle between the second and third display areas connected by hinge 2 is 180°, thereby indicating that the electronic device is in a stable state. In this way, the electronic device indicates that it is in a stable state by using bit values 11, 12, 21, and 22, and indicates that it is in a transitional state by using bit values 13, 23, 31, 32, and 33.
[0152] It should be understood that electronic devices can also indicate the opening angle through the number of other bits and the true value of the bits.
[0153] In some embodiments, the electronic device can obtain the opening and closing angle corresponding to the folding axis based on the detection data of at least one of the magnetic sensor, accelerometer, and gyroscope sensor, and thereby obtain the usage status of the electronic device based on the opening and closing angle.
[0154] In some examples, after acquiring detection data from the accelerometer and gyroscope sensors, the electronic device inputs the detection data into a preset program for processing, in order to output the opening and closing angle and determine the usage status of the electronic device.
[0155] In some examples, during the power-on or reset process of an electronic device, various programs within the device need to be initialized to set corresponding parameters for subsequent program execution. The initialization process of these programs has a specific order, and the timing of this initialization cannot be guaranteed. Therefore, before the preset program used to determine the electronic device's usage status is initialized, the electronic device cannot detect its usage status using accelerometers and gyroscopes. In this case, during the power-on or reset process, the electronic device can determine its usage status by using data from a magnetic sensor to determine the opening and closing of a folding hinge.
[0156] Optionally, the magnetic sensor detects whether adjacent display areas are in contact using built-in magnets in each display area to obtain the opening and closing state of the folding axis. In this way, the electronic device obtains its usage status by detecting the opening and closing state of the folding axis. For example, as shown in Figure 2B, magnetic sensors are installed on the three display areas of the electronic device to detect the opening and closing state of the folding axis corresponding to adjacent display areas. Optionally, the opening and closing state of each folding axis is represented by the truth value of multiple bits, such as a truth value of 0 indicating unfolded and a truth value of 1 indicating closed. It should be understood that a truth value of 1 can also represent unfolded and a truth value of 0 indicating closed.
[0157] Optionally, the reset process may include, for example, a reset following an abnormal crash of the electronic device's program.
[0158] For example, Figure 7 is a schematic diagram of the program initialization process for a power-on or reset scenario provided in an embodiment of this application. As shown in Figure 7, the process includes the following steps.
[0159] S701, The electronic device detected a power-on event / reset event.
[0160] Power-on events include, for example, the first power-on of an electronic device and a restart after powering off. For instance, in response to a user action, an electronic device detects a power-on event and restarts itself.
[0161] Among them, reset events include, for example, when an electronic device detects that a program crashes due to abnormal operation, a reset event is triggered to reinitialize and reload the program.
[0162] S702, The electronic device performs a pre-initialization operation.
[0163] Since the initialization sequence of the program cannot be guaranteed, the initialization operation performed in the current step does not include the preset program used to determine the usage state. That is, the pre-initialization operation will not initialize the preset program.
[0164] S703. When the electronic device is a foldable screen electronic device, the electronic device obtains the initial usage state based on the detection data of the magnetic sensor.
[0165] In some embodiments, the electronic device can obtain device information. This device information may include the device type, model number, and name of the electronic device. Based on this device information, the electronic device can determine whether it is a foldable screen electronic device.
[0166] In some embodiments, the electronic device determines that it is a foldable screen electronic device based on device information. Furthermore, the electronic device can determine that it is currently in the initialization process. Therefore, the electronic device can acquire detection data from the magnetic sensor and, based on this data, determine the initial usage state of the electronic device. For example, it can determine the opening and closing state corresponding to each folding axis of the current electronic device. This avoids the problem that, even if detection data from the accelerometer and gyroscope sensors are acquired, the usage state of the electronic device cannot be determined due to incomplete initialization of the preset program.
[0167] S704. When the electronic device is a non-foldable screen electronic device, the electronic device performs other initialization operations.
[0168] In some embodiments, the electronic device determines, based on device information, that it is not a foldable screen electronic device. In this case, the electronic device can directly complete the initialization process of all programs sequentially.
[0169] In some embodiments, during (or after) the electronic device acquires its usage status through detection data from a magnetic sensor, the electronic device may perform other initialization operations to complete an initialization process including a preset program.
[0170] In this way, the usage status of the electronic device can be determined at any state, whether the initialization is complete or not, so as to meet the needs of subsequent sound effect parameter adjustment.
[0171] S603: Electronic devices acquire sound effect parameters corresponding to their usage status.
[0172] In some embodiments, after obtaining the usage status, the electronic device can obtain the corresponding sound effect parameters based on the usage status.
[0173] Optionally, sound effect parameters may include loudness parameters, frequency parameters, etc. Adjusting these sound effect parameters allows for adjustment of the sound effects of audio played by the electronic device. Optionally, loudness parameters may include loudness gain values, and frequency parameters may include filter parameters, etc.
[0174] In some examples, electronic devices determine the phase relationship of the audio waveforms played by different speakers based on their relative positions under different usage conditions. The electronic devices can then adjust the sound effects by adjusting the relative loudness gain values of the different speakers based on this phase relationship. Therefore, the electronic devices can obtain the loudness parameters of the different speakers under the current usage condition based on the phase relationship and determine these loudness parameters as the sound effect parameters.
[0175] In some examples, signals of different frequencies are less sensitive to changes in distance. Electronic devices can then filter the audio signals emitted by the speakers, selectively amplifying or attenuating signals in specific frequency ranges to maintain clarity and stability. For instance, low-frequency signals (20Hz-200Hz) are relatively insensitive to distance changes, and signal propagation and sound quality are not significantly affected. However, mid-to-high frequency signals (200Hz-5kHz) are more sensitive to distance changes; phase differences caused by changes in the relative position of the speakers can lead to deterioration in sound quality, such as blurred sound or the appearance of a comb filtering effect. Therefore, electronic devices can selectively filter mid-to-high frequency signals and set appropriate filter parameters.
[0176] In some embodiments, to maintain the stability of the sound effects of an electronic device under different usage states, the electronic device can obtain the sound effect parameters corresponding to different usage states, so that the audio output by the subsequent electronic device based on the sound effect parameters can produce similar sound effects.
[0177] In some examples, different types of products have different requirements for sound performance, and therefore the need to obtain the similarity of sound effects under different usage states will also differ. For example, some products can make the electronic device output the exact same sound effect under different usage states by configuring sound effect parameters corresponding to different usage states, such as a sound effect deviation of 0 (or described as a sound effect similarity of 100%). As another example, some products can configure sound effect parameters corresponding to different usage states to make the sound effect deviation of the electronic device output under different usage states less than 5% (or described as a sound effect similarity greater than 95%).
[0178] Optionally, if the deviation in sound effects of audio playback by an electronic device under different usage states is less than a first threshold (or described as the similarity of sound effects being greater than a second threshold), the sound effects can be determined to be stable. The first threshold may be, for example, 0%, 2%, 5%, etc. (the second threshold may be, for example, 100%, 98%, 95%, etc.). Optionally, to improve the user experience, the first threshold may be configured to be less than or equal to 5% (the second threshold may be configured to be greater than or equal to 95%).
[0179] Optionally, the sound effects of audio playback by the electronic device can be represented by the value of at least one of the following measurement parameters: loudness, sound pressure level, frequency, phase consistency, stereo effect, and distortion level. Optionally, based on the sound effect control method provided in this application embodiment, during the playback of audio by the electronic device, the deviation of the measurement parameters corresponding to the sound effects produced by the audio playback under different usage states is less than the aforementioned first threshold, thereby achieving similarity in the overall sound field perception under different usage states during the playback of audio by the electronic device. Optionally, the values of the measurement parameters corresponding to the sound effects produced by the audio playback under different usage states can be the same, thereby providing users with the same auditory experience of the entire sound field under different usage states.
[0180] In some embodiments, an acoustic characteristic test is performed on the electronic device under different usage states using a testing device. For example, the acoustic wave characteristics and sound field characteristics of the audio signal played by the electronic device's speaker under different usage states are acquired, and the differences in the sound effects of the electronic device under different usage states are obtained. Then, based on the differences in the different usage states, the required loudness gain value and / or filter parameters are obtained so that the sound effects of the electronic device are the same or similar under different usage states. Optionally, during the process of acquiring the loudness gain value and / or filter parameters, the sound effect corresponding to any of the different usage states can be used as the sound effect adjustment benchmark.
[0181] Among these, acoustic characteristics include, for example, the acoustic features of the audio signal emitted by a single loudspeaker, such as one or more of the following: sound pressure, particle vibration displacement, particle vibration velocity, acoustic impedance, sound intensity, and sound power. Sound field characteristic information includes, for example, information about the interaction of sound fields between different loudspeakers, such as sound field characteristics measured by parameters such as loudness and frequency.
[0182] Optionally, the required loudness gain value is calculated based on the usage status, corresponding acoustic wave characteristics and sound field characteristics, and difference information. This loudness gain value ensures that the loudness of the sound field output by the electronic device remains relatively stable under different usage conditions.
[0183] Optionally, spectral analysis is performed on the audio signal emitted by the speaker to obtain the frequency distribution of the audio signal. A spectrum diagram corresponding to the audio signal is obtained through methods such as color mapping or contour plots. Then, based on the intensity of different frequency components in the audio signal, the spectrum diagram is analyzed, and filter parameters are adjusted according to the analysis results to achieve selective enhancement or attenuation. Optionally, the mid-to-high frequency signals in the audio signal are selected for enhancement or attenuation.
[0184] Thus, based on the above method, the sound effect parameters corresponding to different usage states can be obtained.
[0185] It should be understood that different models of foldable screen electronic devices may have different sound effect parameters. Therefore, the above testing process and sound effect parameter configuration can be completed in advance before the electronic devices leave the factory.
[0186] In some embodiments, the electronic device may acquire sound effect parameters of at least one of a plurality of speakers. For example, the electronic device may be configured with two speakers. The electronic device adjusts the loudness of one of the speakers based on the relative positional relationship between the two speakers, such as adjusting the peak value of the audio waveform corresponding to that speaker, so that the relative loudness gain of the two speakers meets the requirements. As another example, the electronic device may be configured with two speakers. The electronic device adjusts the relative phase relationship of the audio waveforms of the two speakers based on the relative positional relationship between them, such as shifting the audio waveforms, so that the subsequently superimposed audio waveform meets the relative loudness gain adjustment requirements.
[0187] In this way, after obtaining the sound effect parameters, the sound effect can be adjusted by modifying the sound effect parameters of a single speaker, ensuring that the electronic device provides a similar sound experience to the user under different usage conditions. Moreover, adjusting the sound effect parameters of a single speaker is relatively easy.
[0188] Alternatively, electronic devices can also adjust the sound effects by adjusting the sound parameters of multiple speakers, thereby providing a better user experience in more usage scenarios. For example, when an electronic device is placed on a fixed platform such as a desktop, in response to changes in usage status, the electronic device can access one or more speakers in the display area on the side that is in contact with the fixed platform, and adjust the sound effects of these speakers to achieve sound effect adjustment.
[0189] In some embodiments, the electronic device is pre-configured with sound effect parameters corresponding to different stable states. Specifically, the electronic device can acquire sound effect parameters to maintain the same or similar sound effects across different stable states based on the relative positional relationships between different speakers under different stable states, and pre-configure these sound effect parameters into the electronic device. This allows the electronic device to directly match the corresponding sound effect parameters after acquiring the stable state, improving the efficiency of sound effect parameter acquisition.
[0190] In some examples, the electronic devices may also have preset audio parameters corresponding to some or all of the transition states.
[0191] In other examples, the electronic device is pre-configured with sound effect parameters corresponding to different stable states. During subsequent use, when the electronic device is in a transition state, it can obtain the sound effect parameters corresponding to the current transition state through the sound effect parameters corresponding to the stable states adjacent to the current transition state.
[0192] For example, as shown in Figure 8, the electronic device includes a usage status acquisition module, an algorithm adjustment module, a sound effect enabling module, and a notification module. In some examples, after acquiring the usage status of the electronic device, the usage status acquisition module can send the usage status to the algorithm adjustment module. The algorithm adjustment module can calculate the corresponding sound effect parameters based on the usage status. For example, the algorithm adjustment module can obtain the sound effect parameters corresponding to the current usage status according to a pre-configured mapping relationship.
[0193] In some examples, when the electronic device is in a stable state, it can match the corresponding sound effect parameters. When the electronic device is in a transitional state, it can choose to match the sound effect parameters corresponding to the previous adjacent stable state.
[0194] For example, as shown in FIG9, step S603 may include steps S901 and S902, through which the electronic device can obtain the sound effect parameters corresponding to the usage state.
[0195] S901. When the electronic device is in a stable state, the electronic device matches the corresponding sound effect parameters.
[0196] In some embodiments, the electronic device is pre-configured with sound effect parameters corresponding to different stable states. The electronic device can then choose to directly match the corresponding pre-configured sound effect parameters or maintain the sound effect parameters corresponding to the previous adjacent stable state, depending on whether the current usage state is a stable state, in order to ensure sound effect stability.
[0197] In some embodiments, the electronic device is currently in a stable state. Therefore, the electronic device can obtain pre-configured sound effect parameters and match the corresponding sound effect parameters based on the current stable state.
[0198] For example, as shown in Table 1 above, the electronic device is a tri-fold folding screen device that can achieve four stable states. The electronic device has pre-configured sound effect parameters corresponding to these four stable states. Therefore, the electronic device can obtain the corresponding sound effect parameter based on its current stable state. For example, the electronic device has pre-configured sound effect parameter A corresponding to bit value 11, sound effect parameter B corresponding to bit value 12, sound effect parameter C corresponding to bit value 13, and sound effect parameter D corresponding to bit value 21. In an example scenario, the electronic device, through step S602 above, obtains the current usage state of the electronic device as the stable state shown in Figure 4(a) and marks this stable state as 11. Then, in step S902, the electronic device matches the sound effect parameter corresponding to the current stable state as sound effect parameter A.
[0199] It should be understood that in response to an audio event, the electronic device obtains a stable usage state and directly matches the audio effect parameters corresponding to the current stable state. That is, the electronic device does not need to first mark the bit values corresponding to the usage state and then match the corresponding audio effect parameters based on the bit values, but can directly match the corresponding audio effect parameters based on the usage state.
[0200] S902. When the electronic device is in a transition state, the electronic device acquires the sound effect parameters corresponding to the previous adjacent stable state.
[0201] In some embodiments, the electronic device obtains the current usage state as a transitional state. Then, the electronic device can obtain the previous stable state adjacent to the current transitional state and the corresponding sound effect parameters, using these sound effect parameters as the sound effect parameters corresponding to the current transitional state. In some examples, the electronic device adaptively adjusts the sound effect parameters during the folding process. Therefore, when the electronic device is in a transitional state, it can maintain the sound effect parameters obtained previously based on the stable state to maintain basic sound stability.
[0202] For example, as shown in Figure 4(a), the electronic device is in a fully unfolded stable state (e.g., the electronic device is in an unfolded state). In response to the user's operation of folding the third display area inward, before the electronic device changes to the stable state shown in Figure 4(b), the electronic device is in a transitional state, the previous adjacent stable state of which is the stable state shown in Figure 4(a). For example, during this process, the electronic device acquires the transitional state shown in Figure 5(a). Then, the electronic device can acquire the sound effect parameters corresponding to the stable state shown in Figure 4(a) and use these sound effect parameters as the sound effect parameters corresponding to the current transitional state shown in Figure 5(a).
[0203] In this way, regardless of the state in which the electronic device is used, the corresponding sound effect parameters can be obtained. Through the adaptive adjustment of the sound effect parameters, subsequent adaptive adjustment of sound effects based on the sound effect parameters can be achieved.
[0204] In other examples, when the electronic device is in a stable state, the corresponding sound effect parameters can be matched. When the electronic device is in a transitional state, it can further determine whether it is in a dynamic or static transitional state to obtain the sound effect parameters for different transitional states.
[0205] For example, as shown in FIG10, step S603 may include steps S1001-S1003, through which the electronic device can obtain the sound effect parameters corresponding to the usage state.
[0206] S1001. When the electronic device is in a stable state, the electronic device matches the corresponding sound effect parameters.
[0207] Optionally, the content of step S1001 can refer to the relevant content described in step S901 above, and will not be repeated here.
[0208] S1002. When the electronic device is in a dynamic transition state in a transition state, the electronic device obtains the sound effect parameters corresponding to the current dynamic transition state based on at least one of the following: folding speed, folding direction, and sound effect parameters corresponding to adjacent stable folding states.
[0209] In some embodiments, the transition state includes a static transition state and a dynamic transition state. A static transition state indicates that the electronic device maintains a certain transition state for a time greater than or equal to a time threshold (e.g., 1 second, 3 seconds, etc.), while a dynamic transition state indicates that the electronic device maintains a certain transition state for a time less than the time threshold.
[0210] For example, as shown in Figure 4(a), the electronic device is in a fully unfolded stable state (e.g., the electronic device is in the unfolded state). In response to the user's operation of folding the third display area inward, before the electronic device changes to the stable state shown in Figure 4(b), the electronic device is in a transitional state. The two stable states adjacent to this transitional state are the stable states shown in Figure 4(a) and Figure 4(b). For example, during this process, the electronic device acquires transitional state 1 as shown in Figure 5(a). If the electronic device maintains transitional state 1 for less than a time threshold and then changes the usage state corresponding to folding axis 2, such as continuing to fold the third display area inward, then the electronic device can determine that transitional state 1 is a dynamic transitional state. If the electronic device maintains transitional state 1 for a time greater than or equal to the time threshold without changing the usage state corresponding to folding axis 2, then the electronic device can determine that transitional state 1 is a static transitional state.
[0211] In some embodiments, during the dynamic folding of the electronic device, the folding of the corresponding display area generates a corresponding folding speed and folding direction. The electronic device can then acquire this folding speed and folding direction and use them as input to calculate the audio parameters corresponding to the current dynamic transition state. Optionally, when the electronic device is in a dynamic transition state, it can also acquire two stable states adjacent to this dynamic transition state.
[0212] For example, in the case of transition state 1 as shown in Figure 5(a), which is a dynamic transition state, its two adjacent stable states are the stable states shown in Figure 4(a) and Figure 4(b). The electronic device can obtain the preset sound effect parameters (such as sound effect parameter A and sound effect parameter B) corresponding to these two adjacent stable states, and use these two sound effect parameters as inputs to calculate the sound effect parameters corresponding to the current dynamic transition state. Then, the electronic device can calculate and obtain the sound effect parameters corresponding to the current dynamic transition state based on the inputs.
[0213] For example, based on the stable states shown in Figure 4(a) and Figure 4(b), and the folding direction of the electronic device, the electronic device can determine that it is currently transitioning from the stable state shown in Figure 4(a) to the stable state shown in Figure 4(b). Then, the electronic device can obtain the switching time required for the electronic device to switch between these two stable states based on the folding speed. This switching time is the sound effect transition time between the two stable states. Afterwards, the electronic device performs sound effect parameter transition processing based on sound effect parameter A, sound effect parameter B, and the sound effect transition time. For example, it can dynamically transition the sound effect parameters using methods such as linear transition or smooth transition to determine the dynamic sound effect parameters corresponding to different time points.
[0214] In this way, during the dynamic folding process, the electronic device can achieve stable sound effects by adjusting the dynamic sound effect parameters.
[0215] In some embodiments, the folding speed or folding direction may change during dynamic folding. In response to the change in folding speed or folding direction, the electronic device can redetermine the sound effect transition time and reprocess the sound effect parameters to obtain new dynamic sound effect parameters.
[0216] For example, during dynamic folding, if the electronic device determines that the folding speed increases or decreases by more than a preset speed change threshold, it can trigger a process of re-determining the dynamic sound effect parameters.
[0217] This allows for more flexible sound effect adjustments.
[0218] S1003. When the electronic device is in a static transition state in a transition state, the electronic device determines the sound effect parameters corresponding to the current static transition state based on at least one of the following: folding angle, sound effect parameters corresponding to adjacent stable states, etc.
[0219] In some embodiments, during the folding process, the electronic device may maintain a certain transition state for more than a time threshold, thus placing the electronic device in a static transition state. The electronic device can then obtain the folding angle corresponding to the current static transition state and use this folding angle as input for calculating the audio effect parameters corresponding to the current static transition state. Optionally, the folding angle may be, for example, the opening and closing angle between two display areas corresponding to the folding axis. Optionally, the electronic device, in determining the static transition state, may also obtain two stable states adjacent to the static transition state.
[0220] For example, when transition state 1, as shown in Figure 5(a), is a static transition state, its two adjacent stable states are the stable states shown in Figure 4(a) and Figure 4(b). The electronic device can obtain the preset sound effect parameters corresponding to these two adjacent stable states and use these two sound effect parameters as inputs to calculate the sound effect parameters corresponding to the current static transition state. Then, the electronic device can calculate and obtain the sound effect parameters corresponding to the current static transition state based on the inputs.
[0221] Optionally, the electronic device obtains the weights of the sound effect parameters corresponding to two adjacent stable states based on the similarity between the folding angle corresponding to the current static transition state and the folding angles corresponding to the two adjacent stable states. Then, the electronic device obtains the sound effect parameters corresponding to the current static transition state by weighted averaging the sound effect parameters corresponding to the two adjacent stable states and their weights.
[0222] For example, the electronic device is in a static transition state between a stable state A as shown in Figure 4(a) and a stable state B as shown in Figure 4(b). For instance, the electronic device maintains transition state 1 as shown in Figure 5(a), with a current folding angle of 135 degrees. Then, the electronic device can determine the similarity A between transition state 1 and stable state A as 0.75, and the similarity B between transition state 1 and stable state B as 0.25, based on the similarity between the folding angles. The similarity A is then determined as the weight A of the sound effect parameter A corresponding to stable state A, and the similarity B is determined as the weight B of the sound effect parameter B corresponding to stable state B. Subsequently, the electronic device obtains the sound effect parameter corresponding to transition state 1 by weighted averaging based on the sound effect parameter A, weight A, sound effect parameter B, and weight B.
[0223] In this way, the electronic device can obtain the corresponding sound effect parameters in any usage state, and achieve subsequent adaptive adjustment of sound effects based on the sound effect parameters through adaptive adjustment of sound effect parameters.
[0224] It should be understood that electronic devices can also be configured with more sound effect parameters corresponding to usage states. Therefore, using the methods described above, the electronic device can obtain the sound effect parameters for usage states where no sound effect parameters are configured between adjacent usage states, based on the already matched sound effect parameters. For example, the electronic device may have pre-configured sound effect parameters corresponding to some static transition states. Therefore, when obtaining sound effect parameters corresponding to other transition states, the electronic device can also use the methods described in the various embodiments above to obtain the sound effect parameters corresponding to the current transition state through the sound effect parameters corresponding to adjacent static transition states.
[0225] S604: Electronic devices play audio according to sound effect parameters.
[0226] In some embodiments, after acquiring the sound effect parameters, the electronic device can adjust the parameters of the audio to be played through the corresponding speaker based on the sound effect parameters. After the parameters are adjusted, the electronic device then plays the audio through the speaker.
[0227] For example, as shown in Figure 8, after obtaining the sound effect parameters, the algorithm adjustment module sends the sound effect parameters to the sound effect enabling module, triggering the sound effect enabling module to play audio based on the sound effect parameters, thereby realizing adaptive adjustment of sound effects during the folding process.
[0228] In some embodiments, as shown in FIG6, steps S602-S604 are cyclic steps. For example, in response to an audio event, the electronic device plays audio. During audio playback, the electronic device can adaptively adjust sound effect parameters according to changes in its usage state, thereby achieving adaptive adjustment of the sound effect and ensuring sound effect stability.
[0229] In this way, by recognizing the state, the corresponding sound effect parameters are obtained, and the sound effect is adjusted adaptively through the sound effect parameters. Thus, even when the state changes, a stable sound effect experience can still be provided to the user, avoiding the problem of unstable sound field and improving audio playback quality.
[0230] Furthermore, the embodiments of this application are applicable to different types of foldable screen electronic devices, such as bi-fold and tri-fold foldable screen electronic devices, exhibiting high versatility, reducing development costs, and improving development efficiency. Adaptive sound effect adjustment can be achieved in various foldable screen electronic devices, reducing errors and inconsistencies.
[0231] Furthermore, sound output conditions can affect the lifespan of audio playback units such as speakers. Therefore, proper sound management can effectively reduce stress and wear on hardware, thereby protecting audio playback units such as speakers from excessive stress and extending their lifespan.
[0232] In some embodiments, after the sound effects are adjusted, the electronic device may display a prompt message to inform the user that the current sound effects have been adaptively adjusted, thereby providing the user with a better user experience.
[0233] For example, as shown in FIG11, after step S604 above, step S605 is also included.
[0234] S605, Electronic devices display sound effect matching notification.
[0235] In some embodiments, after the electronic device adjusts the sound effect according to the sound effect parameters, it triggers the generation of a corresponding sound effect matching notification and displays the sound effect matching notification.
[0236] For example, as shown in Figure 8, after the algorithm adjustment module determines the sound effect parameters, during the sound effect adjustment process of the sound effect enable module, the notification module can generate a corresponding sound effect matching notification and instruct the electronic device to display the sound effect matching notification.
[0237] Optionally, electronic devices can display sound effect matching notifications through one or more of the following methods: pop-up windows, pull-down notification bars, top status bar notification capsules, lock screen notifications, etc.
[0238] For example, as shown in Figure 12(a), during audio playback, in response to the electronic device folding into a fully folded stable folded state, the electronic device matches the corresponding sound effect parameters and adjusts the sound effect. After the sound effect adjustment, the electronic device can display a sound effect matching notification 121 to indicate that a stable folded state sound effect has been adapted.
[0239] As exemplarily shown in Figure 12(b), during audio playback, in response to the electronic device unfolding to a fully unfolded state, the electronic device matches the corresponding sound effect parameters and adjusts the sound effect. After the sound effect adjustment, the electronic device can display a sound effect matching notification 122 to indicate that the currently adapted unfolded state sound effect has been used.
[0240] Thus, during the execution of audio services, electronic devices provide users with synchronized visual and auditory perception to enhance the user experience. Visually, electronic devices prompt users about changes in sound effects through the display of audio matching notifications; auditorily, electronic devices adjust sound effects synchronously according to usage status, providing users with a stable audio experience.
[0241] Figure 13 is a flowchart illustrating another sound effect control method provided in an embodiment of this application. It should be noted that this method is not limited to the specific order described in Figure 13 and below. It should be understood that in other embodiments, the order of some steps in this method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:
[0242] S1301, In the first use state, the electronic device plays a first audio with a first sound effect through a first speaker and a second speaker.
[0243] The electronic device is a foldable screen electronic device, which includes a first speaker and a second speaker located in different display areas of the foldable screen. The first usage state of the electronic device is related to its folded state.
[0244] Optionally, the electronic device may also include more than two speakers. For example, the electronic device may include three speakers. Optionally, when the electronic device includes more speakers, the different speakers may be located in the same or different display areas.
[0245] Optionally, the first speaker plays audio using a first sound effect parameter, and the second speaker plays audio using a second sound effect parameter. The electronic device instructs the speakers to play audio using the same or different sound effect parameters, so that the audio played by the electronic device has the first sound effect. For example, the sound fields produced by audio playback from different speakers have corresponding sound effects.
[0246] In some embodiments, the electronic device obtains its usage status through detection data from at least one of the following sensors: an accelerometer, a gyroscope, and a magnetic sensor.
[0247] For example, the electronic device obtains its usage status through detection data reported by an accelerometer and / or gyroscope sensor. Alternatively, referring to the relevant content of the embodiment described in Figure 7 above, when the electronic device is in a powered-on or reset state, the electronic device obtains its usage status through detection data reported by a magnetic sensor.
[0248] For example, in response to a first audio event, the electronic device acquires a first folding angle. Then, based on the first folding angle, the electronic device determines a first usage state. Subsequently, based on the first usage state, the first speaker plays using first sound effect parameters, and the second speaker plays using second sound effect parameters.
[0249] Optionally, in response to a first audio event, the electronic device triggers the acquisition of its usage state. Alternatively, in response to a user's action to change the usage state, the electronic device triggers the acquisition of its usage state. The action to change the usage state may include, for example, folding or unfolding the electronic device's foldable screen.
[0250] Optionally, the electronic device obtains the first folding angle by acquiring the detection data reported by the sensor.
[0251] In this way, the electronic device can obtain the usage status of the electronic device based on the folding angle, and thus instruct the speaker to play audio with corresponding sound effect parameters.
[0252] In some embodiments, the first usage state is a first stable state. Then, the electronic device matches a first sound effect parameter corresponding to the first stable state from a plurality of pre-configured sound effect parameters. Subsequently, the first speaker plays using the first sound effect parameter.
[0253] In some embodiments, the first usage state is a first transitional state. Then, the electronic device matches a first sound effect parameter from a plurality of pre-configured sound effect parameters to a second stable state, which is the previous stable state adjacent to the first transitional state. Afterwards, the first speaker plays using the first sound effect parameter.
[0254] For example, as described in steps S901 or S902 above, the electronic device may have preset sound effect parameters corresponding to different stable states of the electronic device. Based on the sound effect parameters corresponding to the stable state, the usage parameters corresponding to different usage states can be obtained. For example, if the electronic device is in a stable state as shown in Figure 4(a), the sound effect parameters corresponding to the current stable state can be matched from a plurality of pre-configured sound effect parameters. Alternatively, if the electronic device is in a transitional state as shown in Figure 5(a), the previous stable state adjacent to the transitional state can be obtained, for example, the stable state shown in Figure 4(a). Then the electronic device can obtain the sound effect parameters corresponding to the stable state shown in Figure 4(a) as the sound effect parameters used in the current transitional state.
[0255] In this way, when the electronic device is in a stable state, it can directly match the corresponding sound effect parameters. Furthermore, when the electronic device is in a transitional state, it can retain the sound effect parameters from the previous stable state. Thus, regardless of the electronic device's operating state, it can obtain the corresponding sound effect parameters, and through adaptive adjustment of these parameters, subsequent adaptive sound effect adjustments based on those parameters can be achieved.
[0256] In some embodiments, the first usage state is a first static transition state. Then, the electronic device matches a fifth sound effect parameter corresponding to a third stable state and a sixth sound effect parameter corresponding to a fourth stable state from a plurality of pre-configured sound effect parameters, wherein the third and fourth stable states are stable states adjacent to the first static transition state. Then, the electronic device obtains a first sound effect parameter based on at least one of the second folding angle of the electronic device, the fifth sound effect parameter, and the sixth sound effect parameter. Then, the first speaker plays using the first sound effect parameter.
[0257] In some embodiments, the first usage state is a first dynamic transition state. Then, the electronic device matches a seventh sound effect parameter corresponding to the fifth stable state and an eighth sound effect parameter corresponding to the sixth stable state from a plurality of pre-configured sound effect parameters, wherein the fifth and sixth stable states are stable states adjacent to the first dynamic transition state. Then, the electronic device obtains the first sound effect parameter based on at least one of the electronic device's folding speed, folding direction, the seventh sound effect parameter, and the eighth sound effect parameter. Then, the first speaker plays using the first sound effect parameter.
[0258] For example, as described in steps S1002 or S1003 above, the electronic device may have preset sound effect parameters corresponding to different stable states. Based on these sound effect parameters, usage parameters corresponding to different usage states can be obtained. For instance, if the electronic device is in a static transition state as shown in Figure 5(a), two stable states adjacent to this static transition state can be obtained, such as the stable states shown in Figure 4(a) and Figure 4(b). Then, the electronic device can obtain the sound effect parameters corresponding to the current stable transition state based on the sound effect parameters corresponding to these two adjacent stable states and the current folding angle. Alternatively, if the electronic device is in a dynamic transition state as shown in Figure 5(a), two stable states adjacent to this dynamic transition state can be obtained, such as the stable states shown in Figure 4(a) and Figure 4(b). Then, the electronic device can obtain the sound effect parameters corresponding to the current dynamic-static transition state based on the sound effect parameters corresponding to these two adjacent stable states, the current folding direction, and the folding speed.
[0259] In this way, when the electronic device is in a stable state, it can directly match the corresponding sound effect parameters. Furthermore, when the electronic device is in a transitional state, it can also obtain the sound effect parameters corresponding to the current transitional state based on the sound effect parameters of the adjacent stable states. Thus, regardless of the electronic device's usage state, it can obtain the corresponding sound effect parameters, and through adaptive adjustment of these parameters, subsequent adaptive adjustment of sound effects based on these parameters can be achieved.
[0260] S1302, In response to user operation, the electronic device switches to the second usage state.
[0261] The second usage state of the electronic device is related to the folded state of the electronic device.
[0262] Alternatively, user actions may include folding or unfolding the foldable screen of an electronic device.
[0263] S1303, In response to the electronic device switching to a second usage state, the electronic device plays the first audio with a second sound effect through the first speaker and the second speaker.
[0264] The first speaker uses the third sound effect parameter for playback, and the second speaker uses the fourth sound effect parameter for playback. The first sound effect parameter and the third sound effect parameter are different. The deviation between the second sound effect and the first sound effect is less than the first threshold. The first usage state and the second usage state are related to the folding state of the electronic device.
[0265] In this way, in response to the switching of usage status, electronic devices can adjust the sound effect parameters of one of the multiple speakers, so that the sound field generated by the audio playback of multiple speakers can achieve similar sound effects in different usage statuses, meet the requirements of sound effect stability, and improve the user experience.
[0266] In some embodiments, the second sound effect parameter and the fourth sound effect parameter are the same.
[0267] In this way, adaptive sound effects can be achieved by adjusting the sound effect parameters of individual speakers. Adjusting individual sound effect parameters is relatively easy, thus reducing the overall difficulty of sound effect adjustment.
[0268] In some embodiments, the second sound effect parameter and the fourth sound effect parameter are different.
[0269] In this way, by adjusting the sound effect parameters of multiple speakers, adaptive sound effects can be achieved. This provides users with a better experience in more usage scenarios. For example, when an electronic device is placed on a fixed platform such as a desktop, in response to changes in usage status, the electronic device can access one or more speakers in the display area on the side that is in contact with the fixed platform, and adjust the sound effect parameters of these speakers to achieve sound effect adjustment.
[0270] In some embodiments, the first sound effect or the second sound effect is represented by the value of at least one of the following measurement parameters: loudness, sound pressure level, frequency, phase coherence, stereo effect, and distortion level. Optionally, the deviation between the second sound effect and the first sound effect is less than a first threshold, including: the deviation between the first value of the measurement parameter corresponding to the first sound effect and the second value of the measurement parameter corresponding to the second sound effect is less than the first threshold.
[0271] Optionally, by using testing equipment to test the acoustic characteristics of electronic devices under different usage conditions, the measurement parameter values corresponding to the audio playback sound effects produced by the electronic devices under different usage conditions can be obtained.
[0272] In this way, by measuring multiple parameters, the similarity of the sound effects provided by the electronic device under different usage states can be measured, and the electronic device can be debugged. This allows the sound effect parameters corresponding to different usage states to be preset in the electronic device before the user actually uses it.
[0273] In some embodiments, during the dynamic folding process of the folding screen of the electronic device, the first sound effect parameter dynamically changes to the second sound effect parameter.
[0274] For example, as shown in Figure 4(a), the electronic device is in a stable state 1, instructing the speaker to play audio using sound effect parameter 1. In response to the user's operation of folding the display screen, the electronic device folds from the current stable state 1 to a stable state 2 as shown in Figure 4(b). During the folding process, the electronic device dynamically adjusts the sound effect parameters based on parameters such as folding direction and folding speed, or based on parameters such as folding angle, instructing the speaker to play audio using the corresponding sound effect parameters. Afterwards, when the electronic device changes to stable state 2, it instructs the speaker to play audio using the sound effect parameter 2 corresponding to stable state 2.
[0275] In this way, as the usage status of electronic devices changes, the devices provide users with a similar audio experience through relatively smooth changes in audio parameters.
[0276] In some embodiments, after the electronic device plays the first audio with a second sound effect through the first speaker and the second speaker in response to the electronic device switching to the second usage state, the electronic device displays a sound effect matching notification, which indicates that the current electronic device has matched the sound effect corresponding to the second usage state.
[0277] Thus, referring to step S605 above, in response to changes in usage status, electronic devices can provide users with simultaneous visual and auditory perception to enhance the user experience.
[0278] In some solutions, multiple embodiments of this application can be combined, and the combined solution can be implemented. Optionally, some operations in the processes of each method embodiment may be combined, and / or the order of some operations may be changed. Furthermore, the execution order between the steps of each process is merely exemplary and does not constitute a limitation on the execution order between steps; other execution orders are also possible. It is not intended to indicate that the execution order is the only possible order in which these operations can be performed. Those skilled in the art will conceive of various ways to reorder the operations described herein. In addition, it should be noted that the process details involved in one embodiment of this document are similarly applicable to other embodiments, or different embodiments may be combined.
[0279] Furthermore, some steps in the method embodiments can be equivalently replaced with other possible steps. Alternatively, some steps in the method embodiments may be optional and can be deleted in certain use cases. Or, other possible steps may be added to the method embodiments.
[0280] Furthermore, the various method embodiments can be implemented individually or in combination.
[0281] The sound effect control method provided by the embodiments of this application has been described in detail above with reference to Figures 4-13. The electronic device provided by the embodiments of this application is described in detail below with reference to Figure 14.
[0282] In one possible design, Figure 14 is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. As shown in Figure 14, the electronic device 1400 may include a processing unit 1401 and a transceiver unit 1402. The electronic device 1400 can be used to implement the functions of the electronic device involved in the above method embodiments.
[0283] Optionally, the processing unit 1401 is configured to support the electronic device 1400 in executing S601, S602, and S603 in FIG. 6; and / or, to support the electronic device 1400 in executing S702, S703, and S704 in FIG. 7; and / or, to support the electronic device 1400 in executing S901 and S902 in FIG. 9; and / or, to support the electronic device 1400 in executing S1001, S1002, and S1003 in FIG. 10; and / or, to support the electronic device 1400 in executing S1302 in FIG. 13.
[0284] Optionally, the transceiver unit 1402 is used to support the electronic device 1400 in performing S604 in FIG. 6; and / or, to support the electronic device 1400 in performing S701 in FIG. 7; and / or, to support the electronic device 1400 in performing S1301 and S1303 in FIG. 13.
[0285] The transceiver unit may include a receiving unit and a transmitting unit, and may be implemented by a transceiver or transceiver-related circuit components, and may be a transceiver or transceiver module. The operation and / or function of each unit in the electronic device 1400 are respectively to implement the corresponding flow of the sound effect control method described in the above method embodiments. All relevant content of each step involved in the above method embodiments can be referred to the functional description of the corresponding functional unit, and for the sake of brevity, it will not be repeated here.
[0286] Optionally, the electronic device 1400 shown in FIG14 may further include a display unit (not shown in FIG14). The display unit is used to support the electronic device 1400 in performing S605 in FIG11.
[0287] Optionally, the electronic device 1400 shown in FIG14 may further include a storage unit (not shown in FIG14) storing a program or instructions. When the processing unit 1401 and the transceiver unit 1402 execute the program or instructions, the electronic device 1400 shown in FIG14 can perform the sound effect control method described in the above method embodiments.
[0288] The technical effect of the electronic device 1400 shown in Figure 14 can be referred to the technical effect of the sound effect control method described in the above method embodiment, and will not be repeated here.
[0289] In addition to being in the form of electronic device 1400, the technical solution provided in this application can also be a functional unit or chip in an electronic device, or a device used in conjunction with an electronic device.
[0290] This application also provides a chip system, including: a processor coupled to a memory, the memory being used to store programs or instructions, which, when executed by the processor, cause the chip system to implement the methods in any of the above method embodiments.
[0291] Optionally, the chip system may include one or more processors. These processors can be implemented in hardware or software. When implemented in hardware, the processor can be a logic circuit, an integrated circuit, etc. When implemented in software, the processor can be a general-purpose processor, implemented by reading software code stored in memory.
[0292] Optionally, the chip system may contain one or more memories. The memory may be integrated with the processor or disposed separately from it; this application embodiment does not limit this. For example, the memory may be a non-transient processor, such as a read-only memory (ROM), which may be integrated with the processor on the same chip or disposed separately on different chips. This application embodiment does not specifically limit the type of memory or the arrangement of the memory and processor.
[0293] For example, the chip system may be a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on chip (SoC), a central processor unit (CPU), a network processor (NP), a digital signal processor (DSP), a micro controller unit (MCU), a programmable logic device (PLD), or other integrated chips.
[0294] It should be understood that each step in the above method embodiments can be completed by integrated logic circuits in the processor hardware or by instructions in software form. The method steps disclosed in the embodiments of this application can be directly manifested as being executed by a hardware processor, or being executed by a combination of hardware and software modules in the processor.
[0295] This application also provides a computer-readable storage medium storing a computer program. When the computer program is run on a computer, it causes the computer to perform the aforementioned steps to implement the sound effect control method in the above embodiments.
[0296] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned related steps to implement the sound effect control method in the above embodiments.
[0297] In addition, this application also provides an apparatus. Specifically, the apparatus may be a component or module, and may include one or more processors and a memory connected together. The memory is used to store a computer program. When the computer program is executed by one or more processors, the apparatus performs the sound effect control methods described in the above-described method embodiments.
[0298] The apparatus, computer-readable storage medium, computer program product, or chip provided in the embodiments of this application are all used to execute the corresponding methods provided above. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.
[0299] The steps of the methods or algorithms described in conjunction with the embodiments of this application can be implemented in hardware or by a processor executing software instructions. The software instructions can consist of corresponding software modules, which can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), registers, hard disks, portable hard disks, CD-ROMs, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can reside in an application-specific integrated circuit (ASIC).
[0300] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, the division of the above functional modules is only used as an example. In practical applications, the above functions can be assigned to different functional modules as needed; that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device, and unit described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0301] In the several embodiments provided in this application, it should be understood that the disclosed methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of modules or units is only a logical functional division, and there may be other division methods in actual implementation; for example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of modules or units may be electrical, mechanical or other forms.
[0302] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0303] Computer-readable storage media include, but are not limited to, any of the following: USB flash drive, portable hard drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, and other media capable of storing program code.
[0304] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A sound effect control method, characterized by, The method is applied to an electronic device, the electronic device being a folding-screen electronic device, the electronic device comprising a first loudspeaker and a second loudspeaker, the first loudspeaker and the second loudspeaker being located in different display areas of a folding screen of the electronic device, and the method comprising: In a first use state, the electronic device plays first audio with first sound effects through the first loudspeaker and the second loudspeaker, wherein the first loudspeaker plays with first sound effect parameters, and the second loudspeaker plays with second sound effect parameters; In response to a user operation, the electronic device switches to a second use state; In response to the electronic device switching to the second use state, the electronic device plays the first audio with second sound effects through the first loudspeaker and the second loudspeaker, wherein the first loudspeaker plays with third sound effect parameters, and the second loudspeaker plays with fourth sound effect parameters, the first sound effect parameters and the third sound effect parameters are different, the deviation between the first sound effects and the second sound effects is less than a first threshold, and the first use state and the second use state are related to a folding state of the electronic device.
2. The method of claim 1, wherein, The electronic device is a three-fold folding-screen electronic device, a first display area and a second display area of the folding screen of the electronic device are connected by a first folding axis, the second display area and a third display area of the folding screen of the electronic device are connected by a second folding axis, and the first loudspeaker is located in the first display area and the second loudspeaker is located in the third display area.
3. The method of claim 2, wherein, The first loudspeaker is located in the upper left corner of the first display area, and the second loudspeaker is located in the lower right corner of the third display area; or the first loudspeaker is located in the lower left corner of the first display area, and the second loudspeaker is located in the upper right corner of the third display area.
4. The method according to any one of claims 1 to 3, characterized in that, The first sound effects or the second sound effects are represented by values of at least one of the following measurement parameters: loudness, sound pressure, frequency, phase consistency, stereo effect, and distortion degree.
5. The method of claim 4, wherein, The deviation between the second sound effects and the first sound effects is less than a first threshold, comprising: the deviation between a first value of a measurement parameter corresponding to the first sound effects and a second value of the measurement parameter corresponding to the second sound effects is less than the first threshold.
6. The method according to any one of claims 1-5, characterized in that, The electronic device plays first audio with first sound effects through the first loudspeaker and the second loudspeaker, comprising: In response to a first audio event, a first folding angle of the electronic device is obtained; According to the first folding angle, the first use state of the electronic device is determined; According to the first use state, the first loudspeaker plays with the first sound effect parameters, and the second loudspeaker plays with the second sound effect parameters.
7. The method according to any one of claims 1 to 6, characterized in that, The second sound effect parameters and the fourth sound effect parameters are the same.
8. The method according to any one of claims 1 to 6, characterized in that, The second sound effect parameters and the fourth sound effect parameters are different.
9. The method according to any one of claims 1 to 8, characterized in that, The first use state is a first stable state; and in the first use state, the electronic device plays first audio with first sound effects through the first loudspeaker and the second loudspeaker, comprising: The electronic device matches the first sound effect parameter corresponding to the first stable state from a plurality of pre-configured sound effect parameters. The first loudspeaker plays with the first sound effect parameter.
10. The method according to any one of claims 1-9, characterized in that, The first use state is a first transition state; in the first use state, the electronic device plays first audio with a first sound effect through the first loudspeaker and the second loudspeaker, including: The electronic device matches the first sound effect parameter corresponding to the second stable state from a plurality of pre-configured sound effect parameters, the second stable state being the last stable state adjacent to the first transition state. The first loudspeaker plays with the first sound effect parameter.
11. The method according to any one of claims 1 to 9, characterized in that, The first use state is a first static transition state. In the first use state, the electronic device plays first audio with a first sound effect through the first loudspeaker and the second loudspeaker, including: The electronic device matches the fifth sound effect parameter corresponding to the third stable state and the sixth sound effect parameter corresponding to the fourth stable state from a plurality of pre-configured sound effect parameters, the third stable state and the fourth stable state being stable states adjacent to the first static transition state. The electronic device obtains the first sound effect parameter according to at least one of a second folding angle of the electronic device, the fifth sound effect parameter, and the sixth sound effect parameter; The first loudspeaker plays with the first sound effect parameter.
12. The method according to any one of claims 1 to 9, 11, characterized in that, The first use state is a first dynamic transition state; in the first use state, the electronic device plays first audio with a first sound effect through the first loudspeaker and the second loudspeaker, including: The electronic device matches the seventh sound effect parameter corresponding to the fifth stable state and the eighth sound effect parameter corresponding to the sixth stable state from a plurality of pre-configured sound effect parameters, the fifth stable state and the sixth stable state being stable states adjacent to the first dynamic transition state. The electronic device obtains the first sound effect parameter according to at least one of a folding speed of the electronic device, a folding direction of the electronic device, the seventh sound effect parameter, and the eighth sound effect parameter; The first loudspeaker plays with the first sound effect parameter.
13. The method of any of claims 1-12, wherein, In the process of dynamic change of the folding screen of the electronic device, the first sound effect parameter dynamically changes to the second sound effect parameter.
14. The method of any of claims 1-13, wherein, After the electronic device plays first audio with a second sound effect through the first loudspeaker and the second loudspeaker in response to the electronic device switching to the second use state, the method further includes: The electronic device displays a sound effect matching notification, the sound effect matching notification indicating that the electronic device has matched the sound effect corresponding to the second use state.
15. The method of any of claims 1-14, wherein, The first use state includes stable states and transition states, the stable states include an unfolded state and a stable folded state, the unfolded state includes any two display areas of the folding screen of the electronic device being completely unfolded, the stable folded state includes any two display areas of the folding screen of the electronic device being completely unfolded or closed, and the transition state includes a state in which any two display areas of the folding screen of the electronic device are partially unfolded.
16. The method of claim 15, wherein, The transition state includes a static transition state and a dynamic transition state, the static transition state indicating that the electronic device maintains the transition state for a time greater than or equal to a time threshold, and the dynamic transition state indicating that the electronic device maintains the transition state for a time less than the time threshold.
17. The method of any of claims 1-16, wherein, The electronic device switches to a second use state in response to a user operation, including: In response to the user operation, the electronic device obtains first detection data reported by an acceleration sensor and / or a gyroscope sensor; The electronic device obtains the second use state of the electronic device according to the first detection data.
18. The method of any of claims 1-17, wherein, The electronic device switches to a second use state in response to a user operation, including: In response to the user operation, the electronic device obtains first detection data reported by an acceleration sensor and / or a gyroscope sensor; The electronic device obtains the second use state of the electronic device according to the first detection data. including:
19. An electronic device, comprising: A processor, a memory, a first speaker and a second speaker, the memory, the first speaker and the second speaker being coupled with the processor, the memory being used to store computer program code, the computer program code including computer instructions, when the processor reads the computer instructions from the memory, causing the electronic device to execute the method as claimed in any one of claims 1-18. The computer readable storage medium includes a computer program, when the computer program runs on an electronic device, causing the electronic device to execute the method as claimed in any one of claims 1-18.
20. A computer-readable storage medium, characterized in that, When the computer program product runs on a computer, the computer executes the method as claimed in any one of claims 1-18.
21. A computer program product, characterised in that,
Citation Information
Patent Citations
Sound effect control method and electronic equipment
CN121056792A
Audio playing method and electronic equipment
CN116471355A
Loudspeaker control method and equipment
CN116744187A
Foldable electronic device including a plurality of speakers and method of operating the same
US20240073605A1
Channel switching method and apparatus, and electronic device
WO2023011473A1