Sound effect control method and electronic equipment
By adjusting the speaker's audio parameters, the problem of unstable audio effects in foldable screen electronic devices under changing usage conditions was solved, resulting in stable audio playback, improved user experience, and extended speaker lifespan.
Patent Information
- Application Number
- CN202410700924.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2025-12-02
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 audio experience under different usage conditions, reduces hardware wear and tear, extends speaker life, and enhances the user experience through simultaneous visual and auditory perception.
Smart Images

Figure CN121056792A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to a sound effect control method and electronic device. Background Technology
[0002] 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
[0003] 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.
[0004] To achieve the above-mentioned technical objectives, this application provides the following technical solution:
[0005] 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.
[0006] 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.
[0007] 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.
[0008] 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.
[0009] 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.
[0010] 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.
[0011] 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.
[0012] 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.
[0013] 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.
[0014] 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.
[0015] 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.
[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 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.
[0017] 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.
[0018] 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.
[0019] 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.
[0020] 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.
[0021] 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.
[0022] Depending on the first aspect, or any of the implementations of the first aspect above, the second and fourth sound effect parameters are different.
[0023] 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.
[0024] 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.
[0025] 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.
[0026] In this way, the electronic device can obtain its usage status by observing the corresponding states between different display areas.
[0027] 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.
[0028] 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.
[0029] 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.
[0030] 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.
[0031] 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.
[0032] 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.
[0033] 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.
[0034] 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.
[0035] 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.
[0036] 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.
[0037] 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.
[0038] 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.
[0039] 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.
[0040] 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.
[0041] 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.
[0042] 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.
[0043] 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.
[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 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.
[0045] 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.
[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 different.
[0047] 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.
[0048] 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.
[0049] 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.
[0050] 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.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] 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.
[0056] 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.
[0057] 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.
[0058] 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.
[0059] 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.
[0060] The technical effects of the aforementioned aspects can be referenced from each other, and will not be elaborated further here. Attached Figure Description
[0061] Figure 1 This is a schematic diagram of a three-fold folding screen electronic device provided in an embodiment of this application;
[0062] Figure 2A A schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application;
[0063] Figure 2B A schematic diagram illustrating the number of magnetic sensors installed in the electronic device provided in the embodiments of this application;
[0064] Figure 3 A schematic diagram of the software structure of an electronic device provided in an embodiment of this application;
[0065] Figure 4 A schematic diagram of the stable state provided for an embodiment of this application;
[0066] Figure 5 This is a schematic diagram of the transition state provided in the embodiments of this application;
[0067] Figure 6 Flowchart of the sound effect control method provided in the embodiments of this application Figure 1 ;
[0068] Figure 7 A schematic diagram of the program initialization process for a power-on or reset scenario provided in an embodiment of this application;
[0069] Figure 8 This is a schematic diagram of module interaction provided in an embodiment of this application;
[0070] Figure 9 Schematic diagram 2 of the sound effect control method provided in the embodiments of this application;
[0071] Figure 10 Flowchart of the sound effect control method provided in the embodiments of this application Figure 3 ;
[0072] Figure 11 Flowchart of the sound effect control method provided in the embodiments of this application Figure 4 ;
[0073] Figure 12 This is a schematic diagram of the interface provided for an embodiment of this application;
[0074] Figure 13 Flowchart of the sound effect control method provided in the embodiments of this application Figure 5 ;
[0075] Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0076] 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).
[0077] 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.
[0078] 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.
[0079] 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.
[0080] For example, such as Figure 1 The diagram shown is a product form illustration of a tri-fold folding screen electronic device according to an embodiment of this application. This tri-fold folding screen electronic device is equipped with a speaker 1 and a speaker 2. Wherein, Figure 1 Image (a) is a schematic diagram of the fully unfolded tri-fold screen electronic device. In this fully unfolded state, the tri-fold screen electronic device is equipped with two folding axes, allowing it to fold along these axes. Figure 1 As shown in (a), direction 101a folds inward and direction 102a folds outward. For example... Figure 1Figure (b) shows a schematic diagram of the fully folded tri-fold screen electronic device. In this state, the device is in a fully folded position. 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, the discontinuous sound fields of the different speakers may cause problems such as blurred sound images and unclear vocals.
[0081] 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.
[0082] 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.
[0083] 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.
[0084] Optionally, the electronic device 100 is equipped with a flexible folding screen, which can be folded or unfolded in response to user operation.
[0085] For example, Figure 2A A schematic diagram of an electronic device 100 is shown.
[0086] 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.
[0087] 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.
[0088] Processor 110 may include one or more processing units, such as application processors (APs), modem processors, graphics processing units (GPUs), image signal processors (ISPs), controllers, video codecs, digital signal processors (DSPs), baseband processors, and / or neural network processing units (NPUs). These different processing units may be independent devices or integrated into one or more processors.
[0089] The controller can generate operation control signals based on the instruction opcode and timing signals to complete the control of instruction fetching and execution.
[0090] 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.
[0091] 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.
[0092] 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.
[0093] 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.
[0094] 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.
[0095] 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.
[0096] 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.
[0097] 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 configured with at least one magnetic sensor. For example, as... Figure 2B As shown, the electronic device 100 is a three-fold folding screen electronic device, including a folding axis 1 and a folding axis 2. The folding 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 from 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 from magnetic sensors 2 and 3.
[0098] 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.
[0099] 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.
[0100] 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.
[0101] 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.
[0102] 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.
[0103] 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.
[0104] 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.
[0105] 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.
[0106] 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.
[0107] For example, such as Figure 1As shown in (a), the electronic device 100 is a tri-fold folding screen electronic device. The electronic device 100 includes two folding axes, for example, 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, for example, speaker 1 and speaker 2. Speaker 1 is located in the first display area, and speaker 2 is located in the third display area.
[0108] Optionally, such as Figure 1 As shown in (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.
[0109] The speaker being located within the display area includes the speaker being located inside the electronic device corresponding to the display area, and the speaker's corresponding sound hole may be located near the speaker's location. For example, such as Figure 1 In the scenario shown in (a), the speaker hole corresponding to the speaker 1 is realized by means of punching holes, etc., 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.
[0110] 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.
[0111] 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.
[0112] 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).
[0113] 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.
[0114] In this way, electronic device 100 can provide users with a similar sound experience in different usage states.
[0115] 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.
[0116] 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.
[0117] 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.
[0118] 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.
[0119] Figure 3 This is a software structure block diagram of the electronic device 100 according to an embodiment of this application.
[0120] 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.
[0121] The application layer can include a series of application packages.
[0122] like Figure 3 As shown, an application package can include applications such as audio applications and video applications.
[0123] 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.
[0124] like Figure 3 As shown, the application framework layer may include audio services, notification managers, etc.
[0125] 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.
[0126] 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.
[0127] 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.
[0128] In some embodiments, after obtaining the usage status, the electronic device 100 determines the sound effect parameters corresponding to the current usage status through HAL.
[0129] The kernel layer is the layer between hardware and software. Examples of kernel layer components include audio drivers, sensor drivers, and display drivers.
[0130] 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.
[0131] 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.
[0132] In the embodiments of this application, such as Figure 4 As shown, the display screen of the tri-fold foldable 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... Figure 4 As shown in (a), the electronic device is in an unfolded state when any two display areas connected by a hinge are fully unfolded. A stable folded state can include any two display areas connected by a hinge being either fully unfolded or closed. For example, as... Figure 4As shown in (b), the first and second display areas are fully extended, while the second and third display areas are fully closed. Therefore, the electronic device is in a stable folded state. Figure 4 As shown in (c), the first and second display areas are completely closed, while the second and third display areas are completely unfolded. Therefore, the electronic device is currently in a stable folded state. Figure 4 As shown in (d), if any two display areas connected by a hinge are in a completely closed state, then the current electronic device is in a stable folded state.
[0133] In this embodiment, the transition state may include a state in which two display areas connected by a hinge are partially unfolded. This partially unfolded state indicates that the two display areas connected by the hinge are not fully unfolded or closed. Optionally, the usage state exhibited by the electronic device during the transition from one stable state to another folded state is a transition state. For example, as... Figure 5 As shown, 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. Figure 5 As shown in (a), the first and second display areas are fully expanded, while the second and third display areas are partially expanded. Therefore, the electronic device is currently in a transitional state. Figure 5 As shown in (b), the first and second display areas are completely closed, while the second and third display areas are partially expanded. Therefore, the electronic device is currently in a transitional state. Figure 5 As shown in (c), the first and second display areas are partially expanded, while the second and third display areas are fully expanded. Therefore, the electronic device is currently in a transitional state. Figure 5 As shown in (d), the first and second display areas are partially expanded, while the second and third display areas are completely closed. Therefore, the electronic device is currently in a transitional state. Figure 5 As shown in (e), if any two display areas connected by a hinge are partially unfolded, then the current electronic device is in a transitional state.
[0134] It should be understood that the embodiments of this application do not limit the connection order of the three display areas of the tri-fold foldable screen electronic device. For example, as Figure 4 or Figure 5 In the scenario shown, taking the second display area as the middle display area between folding axis 1 and folding axis 2, and the first and third display areas as the display areas on both sides of the second display area, the usage status of the electronic device is explained.
[0135] 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.
[0136] 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.
[0137] 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.
[0138] 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.
[0139] Figure 6 This is a flowchart illustrating a sound effect control method provided in an embodiment of this application. It should be noted that this method does not rely on... Figure 6 The specific order described below is a limitation. It should be understood that in other embodiments, the order of some steps in the method can be interchanged according to actual needs, or some steps can be omitted or deleted. The method includes the following steps:
[0140] S601, Electronic device acquires audio events.
[0141] Audio events include events triggered by applications configured with audio playback capabilities, such as music playback, audio / video playback, phone calls, and alarms.
[0142] 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.
[0143] 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.
[0144] S602. Electronic devices acquire the usage status of electronic devices.
[0145] 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.
[0146] For example, an electronic device is as follows Figure 4 or Figure 5 The diagram shows a tri-fold foldable screen electronic device. The opening angle between the first and second display areas is denoted as angle1, and the opening angle between the second and third display areas is denoted as angle2. As shown in Table 1, the electronic device identifies the values of angle1 and angle2 and determines its current usage status based on whether these values fall within the corresponding angle threshold range.
[0147] 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°.
[0148] 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°.
[0149] Table 1
[0150] angle1 threshold range angle2 threshold range Usage Status Bit value angle1 = 180° angle2 = 180° steady state 11 angle1 = 180° angle2 = 0° steady state 12 angle1 = 180° 0° < angle2 < 180° transition state 13 angle1 = 0° angle2 = 180° steady state 21 angle1 = 0° angle2 = 0° steady state 22 angle1 = 0° 0° < angle2 < 180° transition state 23 0° < angle1 < 180° angle2 = 180° transition state 31 0° < angle1 < 180° angle2 = 0° transition state 32 0° < angle1 < 180° 0° < angle2 < 180° transition state 33
[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 hinge. In this way, the electronic device obtains its usage status based on the opening and closing state of the folding hinge. For example, as... Figure 2B As shown, magnetic sensors are installed on the three display areas of the electronic device to detect the opening and closing states of the folding axes corresponding to adjacent display areas. Optionally, the opening and closing state of each folding axis can be 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 This is a schematic diagram of the program initialization process for a power-on or reset scenario provided in an embodiment of this application. Figure 7 As shown, 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, such as Figure 8As shown, the electronic device includes a usage status acquisition module, an algorithm adjustment module, a sound effect enable module, and a notification module. In some examples, after acquiring the usage status of the electronic device, the usage status acquisition module can send this status to the algorithm adjustment module. The algorithm adjustment module can then calculate the corresponding sound effect parameters based on this usage status. For example, the algorithm adjustment module can obtain the sound effect parameters corresponding to the current usage status based on 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, such as Figure 9 As shown, step S603 may include steps S901 and S902. The electronic device can obtain the sound effect parameters corresponding to the usage state through steps S901 and S902.
[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 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 parameters 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 obtains its current usage state as follows through step S602: Figure 4 The stable state shown in (a) is labeled 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, such as Figure 4 As shown in (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, the electronic device changes to the following state: Figure 4 Before the stable state shown in (b), the electronic device is in a transition state, and the preceding stable state is as follows: Figure 4 The stable state is shown in (a). For example, during this process, the electronic device acquires a state such as... Figure 5 The transition state is shown in (a). Therefore, the electronic device can acquire the following: Figure 4 The sound effect parameters corresponding to the stable state shown in (a) are used as the current sound effect parameters. Figure 5 The sound effect parameters corresponding to the transition state shown in (a) are as follows.
[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, such as Figure 10 As shown, 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, such as Figure 4 As shown in (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, the electronic device changes to the following state: Figure 4 Before the stable state shown in (b), the electronic device is in a transition state, and the two adjacent stable states are as follows: Figure 4 The stable state shown in (a) and as shown in (a) Figure 4 The stable state shown in (b) is an example. For instance, during this process, the electronic device acquires a state such as... Figure 5 Transition state 1 is shown in (a). If the electronic device maintains transition 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 transition state 1 is a dynamic transition state. If the electronic device maintains transition state 1 for a time greater than or equal to the time threshold and still does not change the usage state corresponding to folding axis 2, then the electronic device can determine that transition state 1 is a static transition 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 such Figure 5 When transition state 1 shown in (a) is a dynamic transition state, its two adjacent stable states are as follows: Figure 4 The stable state shown in (a) and as shown in (a) Figure 4 The stable state is shown in (b). The electronic device can acquire the preset sound effect parameters (such as sound effect parameter A and sound effect parameter B) corresponding to the 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, the electronic device according to such Figure 4 The stable state shown in (a) and as shown in (a) Figure 4 The stable state shown in (b) and the folding direction of the electronic device can, for example, determine the current electronic device as being composed of... Figure 4 The steady-state transformation shown in (a) is as follows: Figure 4 As shown in (b), given the stable state, the electronic device can then determine the switching time required 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. Afterward, 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, in such Figure 5 When transition state 1 shown in (a) is a static transition state, its two adjacent stable states are as follows: Figure 4 The stable state shown in (a) and as shown in (a) Figure 4 The stable state is shown in (b). The electronic device can obtain the preset sound effect parameters corresponding to the two adjacent stable states and use these two sound effect parameters as input 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 input.
[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, electronic devices are in the state of... Figure 4 The stable state A shown in (a) and as shown in (a) Figure 4 The static transition states between stable states B shown in (b). For example, the electronic device maintains a state as shown in (b). Figure 5 In transition state 1 shown in (a), the current folding angle is 135 degrees. The electronic device can determine the similarity A between transition state 1 and stable state A (0.75) and the similarity B between transition state 1 and stable state B (0.25) based on the similarity between folding angles. The similarity A is then assigned as the weight A of the sound effect parameter A corresponding to stable state A, and the similarity B is assigned as the weight B of the sound effect parameter B corresponding to stable state B. Subsequently, the electronic device uses a weighted average of sound effect parameter A, weight A, sound effect parameter B, and weight B to obtain the sound effect parameter corresponding to transition state 1.
[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, such as Figure 8 As shown, 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, such as Figure 6 As shown, steps S602-S604 above 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, such as Figure 11 As shown, after step S604, 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, such as Figure 8 As shown, 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, such as Figure 12 As shown in (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] For example, such as Figure 12 As shown in (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 This is a flowchart illustrating another sound effect control method provided in an embodiment of this application. It should be noted that this method does not rely on... Figure 13The specific order described below is a limitation. It should be understood that in other embodiments, the order of some steps in the 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, electronic devices obtain their operational status through detection data reported by accelerometer and / or gyroscope sensors. Alternatively, refer to the above text. Figure 7 According to the relevant content of the embodiment, when the electronic device is in the powered-on or reset state, the electronic device obtains the usage status of the electronic device through the detection data reported by the 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 step 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 states, usage parameters corresponding to different usage states can be obtained. For example, the electronic device is as follows: Figure 4 The stable state shown in (a) can be matched with the corresponding sound effect parameter from among a number of pre-configured sound effect parameters. Alternatively, the electronic device is as follows: Figure 5 The transition state shown in (a) can be used to obtain the previous stable state adjacent to the transition state, for example, as shown in (a). Figure 4 Given the stable state shown in (a), the electronic device can obtain the following: Figure 4 The sound effect parameters corresponding to the stable state shown in (a) are used as the sound effect parameters for the current transition 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 step S1002 or S1003 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 states, usage parameters corresponding to different usage states can be obtained. For example, the electronic device is as follows: Figure 5 The static transition state shown in (a) can be used to obtain two stable states adjacent to the static transition state. For example, the two stable states adjacent to the static transition state are as follows: Figure 4 The stable state shown in (a) and as shown in (a) Figure 4 The stable state is shown in (b). Therefore, 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, the electronic device can be as follows: Figure 5 The dynamic transition state shown in (a) can be used to obtain two stable states adjacent to the dynamic transition state. For example, the two stable states adjacent to the dynamic transition state are as follows: Figure 4 The stable state shown in (a) and as shown in (a) Figure 4 The stable state is shown in (b). Therefore, 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, such as Figure 4 As shown in (a), the electronic device is in steady state 1, indicating that the speaker is playing 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 steady state 1 to the state shown in (a). Figure 4 The stable state 2 is shown in (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 the sound using the corresponding sound effect parameters. Afterwards, when the electronic device changes to stable state 2, it instructs the speaker to play the sound using the sound effect parameters 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 above combination Figures 4-13 The sound effect control method provided in the embodiments of this application is described in detail below. Figure 14 This application provides a detailed description of the electronic device provided in its embodiments.
[0282] In one possible design, Figure 14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 14 As shown, 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 used to support the electronic device 1400 in performing operations. Figure 6 S601, S602, and S603; and / or, for supporting the electronic device 1400 to perform Figure 7 S702, S703, and S704; and / or, for supporting the electronic device 1400 to perform Figure 9 S901 and S902 in the above; and / or, for supporting the electronic device 1400 to perform Figure 10 S1001, S1002, and S1003; and / or, for supporting the electronic device 1400 to perform Figure 13 S1302 in the middle.
[0284] Optionally, the transceiver unit 1402 is used to support the electronic device 1400 in performing... Figure 6S604 in; and / or, for supporting electronic device 1400 to perform Figure 7 S701 in; and / or, for supporting electronic device 1400 to perform Figure 13 S1301 and S1303 in the example.
[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, Figure 14 The electronic device 1400 shown may also include a display unit ( Figure 14 (Not shown in the image). This display unit is used to support the electronic device 1400 in performing [operations / functions]. Figure 11 S605 in the middle.
[0287] Optionally, Figure 14 The illustrated electronic device 1400 may also include a storage unit ( Figure 14 (not shown in the image), this storage unit stores a program or instruction. When the processing unit 1401 and the transceiver unit 1402 execute the program or instruction, it causes... Figure 14 The electronic device 1400 shown can execute the sound effect control method described in the above method embodiments.
[0288] Figure 14 The technical effects of the electronic device 1400 shown can be referred to the technical effects of the sound effect control method described in the above method embodiments, 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, wherein when the program or instructions are executed by the processor, the chip system implements the methods in any of the above method embodiments.
[0291] Optionally, the chip system may contain 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 in that, Applied to an electronic device, wherein the electronic device is a foldable screen electronic device, the electronic device includes a first speaker and a second speaker, the first speaker and the second speaker being located in different display areas of the foldable screen of the electronic device, the method comprising: 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 plays the audio signal using a first sound effect parameter and the second speaker plays the audio signal using a second sound effect parameter; 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 with a second sound effect through the first speaker and the second speaker, wherein the first speaker plays using a third sound effect parameter, the second speaker plays using a fourth sound effect parameter, 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 a first threshold, and the first usage state and the second usage state are related to the folded state of the electronic device.
2. The method according to claim 1, characterized in that, The electronic device is a tri-fold screen electronic device. The first display area and the second display area of the folded screen of the electronic device are connected by a first folding axis, and the second display area and the third display area of the folded 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.
3. The method according to claim 2, characterized in that, 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.
4. The method according to any one of claims 1-3, characterized in that, 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 distortion level.
5. The method according to claim 4, characterized in that, 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.
6. The method according to any one of claims 1-5, characterized in that, The electronic device plays first audio with a first sound effect through the first speaker and the second speaker, including: In response to a first audio event, the first folding angle of the electronic device is obtained; The first usage state of the electronic device is determined based on the first folding angle; According to the first usage state, the first speaker plays using the first sound effect parameters, and the second speaker plays using the second sound effect parameters.
7. The method according to any one of claims 1-6, characterized in that, The second sound effect parameter is the same as the fourth sound effect parameter.
8. The method according to any one of claims 1-6, characterized in that, The second sound effect parameter is different from the fourth sound effect parameter.
9. The method according to any one of claims 1-8, characterized in that, 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 the first speaker and the second speaker, including: The electronic device matches the first sound effect parameter corresponding to the first stable state among a plurality of pre-configured sound effect parameters; The first speaker plays using the first sound effect parameters.
10. The method according to any one of claims 1-9, characterized in that, The first usage state is a first transitional state; in the first usage state, the electronic device plays first audio with a first sound effect through the first speaker and the second speaker, including: The electronic device matches the first sound effect parameter corresponding to the second stable state among a plurality of pre-configured sound effect parameters, wherein the second stable state is the previous stable state adjacent to the first transition state; The first speaker plays using the first sound effect parameters.
11. The method according to any one of claims 1-9, characterized in that, The first usage state is the first static transition state; In a first usage state, the electronic device plays first audio with a first sound effect through the first speaker and the second speaker, including: The electronic device matches a fifth sound effect parameter corresponding to the third stable state and a 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 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 parameters.
12. The method according to any one of claims 1-9, 11, characterized in that, 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 the first speaker and the second speaker, including: 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. 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 electronic device's folding speed, the electronic device's folding direction, the seventh sound effect parameter, and the eighth sound effect parameter; The first speaker plays using the first sound effect parameters.
13. The method according to any one of claims 1-12, characterized in that, 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.
14. The method according to any one of claims 1-13, characterized in that, After the electronic device switches to the second usage state and plays the first audio with a second sound effect through the first speaker and the second speaker, the method further includes: The electronic device displays a sound effect matching notification, which indicates that the electronic device has matched the sound effect corresponding to the second usage state.
15. The method according to any one of claims 1-14, characterized in that, 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.
16. The method according to claim 15, characterized in that, The transition state includes a static transition state and a dynamic transition state. The static transition state indicates that the electronic device maintains the transition state for a duration greater than or equal to a time threshold, and the dynamic transition state indicates that the electronic device maintains the transition state for a duration less than the time threshold.
17. The method according to any one of claims 1-16, characterized in that, The step of switching the electronic device to a second usage state in response to a user operation includes: In response to the user's operation, the electronic device acquires first detection data reported by the accelerometer and / or gyroscope sensor; The electronic device obtains its second usage state based on the first detection data.
18. The method according to any one of claims 1-17, characterized in that, The step of switching the electronic device to a second usage state in response to a user operation includes: In response to the user's operation, the electronic device obtains that the electronic device is in a powered-on state or a reset state; The electronic device acquires the second detection data reported by the magnetic sensor; The electronic device obtains its second usage state based on the second detection data.
19. An electronic device, characterized in that, include: The electronic device comprises a processor, a memory, a first speaker, and a second speaker, wherein the memory, the first speaker, and the second speaker are coupled to the processor, the memory being used to store computer program code including computer instructions, wherein when the processor reads the computer instructions from the memory, the electronic device performs the method as described in any one of claims 1-18.
20. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a computer program that, when run on an electronic device, causes the electronic device to perform the method as described in any one of claims 1-18.
21. A computer program product, characterized in that, When the computer program product is run on a computer, it causes the computer to perform the method as described in any one of claims 1-18.
Citation Information
Cited By
Audio effect control method and electronic device
EP4787898A1
Audio effect control method and electronic device
WO2025246370A1