Audio playing method and electronic device

By setting up multiple sound-generating devices and sound outlets in foldable screen devices, and adjusting sound effect parameters according to the folding shape and audio mode, the audio playback experience problem of foldable screen devices in different shapes has been solved, improving the user's listening experience.

WO2025232470A1PCT designated stage Publication Date: 2025-11-13HUAWEI TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2025/088790
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2024-05-06
Filing Date
2025-04-14
Publication Date
2025-11-13

AI Technical Summary

Technical Problem

How to improve the user listening experience when playing audio on foldable screen devices, especially the audio listening effect under different folding forms and audio playback modes.

Method used

By setting up multiple sound-generating devices and sound outlets in foldable screen devices, the use of sound-generating devices is switched according to the shape of the foldable screen and the audio playback mode, and the sound effect parameters are adjusted to ensure an optimized audio playback experience in earpiece mode, external speaker mode, half-folded state and unfolded state.

Benefits of technology

It improves the audio listening quality for users in different folding modes, including in-ear clarity in earpiece mode, loudness and sound effect enhancement in speaker mode, and spatial perception and sound field openness in semi-folded and unfolded states.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025088790_13112025_PF_FP_ABST
    Figure CN2025088790_13112025_PF_FP_ABST
Patent Text Reader

Abstract

Provided in the present application are an audio playing method and an electronic device. The method can be applied to an electronic device having a foldable screen. The foldable screen can comprise a first screen portion and a second screen portion. The electronic device can comprise a first sound-producing device, a second sound-producing device and a third sound-producing device. The first sound-producing device can produce sound in a direction opposite the orientation of the first screen portion. The second sound-producing device can produce sound in the orientation of the first screen portion. The third sound-producing device can produce sound in the orientation of the bottom of the electronic device. In an earpiece mode, if the foldable screen is in a folded state, the electronic device can play audio by means of the first sound-producing device; and if the foldable screen is in an unfolded state, the electronic device can play audio by means of the second sound-producing device. A user can clearly hear played audio in an earpiece mode no matter whether a held electronic device is in a folded state or in an unfolded state.
Need to check novelty before this filing date? Find Prior Art

Description

Audio playback methods and electronic devices

[0001] This application claims priority to Chinese Patent Application No. 202410551156.2, filed on May 6, 2024, entitled "Audio Playback Method and Electronic Device", the entire contents of which are incorporated herein by reference. Technical Field

[0002] This application relates to the field of terminal technology, and in particular to audio playback methods and electronic devices. Background Technology

[0003] With the development of electronic devices, more and more foldable screen devices are appearing on the market. How to improve the user listening experience when playing audio on foldable screen devices is an urgent problem to be solved. Summary of the Invention

[0004] This application provides an audio playback method and an electronic device. The method can be applied to an electronic device. The electronic device may include a foldable screen, a first sound-emitting device, and a first sound outlet. The first sound outlet may be located on the back of the foldable screen. The first sound-emitting device can emit sound through the first sound outlet. When the foldable screen is in a closed state, if the audio playback mode of the audio to be played is earpiece mode, the electronic device can use the first sound-emitting device to play the audio. In this way, a user can hold the closed electronic device and clearly listen to the played audio through the first sound-emitting device in an earpiece playback scenario.

[0005] Firstly, this application provides an audio playback method. This method can be applied to an electronic device, which includes a foldable screen, a first sound-emitting device, and a first sound outlet. The first sound outlet is located on the back of the foldable screen, and the first sound-emitting device emits sound through the first sound outlet; the foldable screen is in a closed state. The electronic device acquires a first audio to be played, which includes audio from an instant messaging application. The electronic device uses the first sound-emitting device to play the first audio to be played.

[0006] The folding screen of the electronic device may include screen A and screen B as shown in FIG. 3A of this application. The first sound-emitting device may refer to the external screen speaker shown in FIG. 3C of this application. The first sound outlet may refer to the sound outlet of the external screen speaker shown in FIG. 3B of this application.

[0007] The electronic device can determine that the current audio playback mode is earpiece mode. In earpiece mode, the electronic device can use the first sound-emitting device to play the first audio to be played.

[0008] As can be seen, since the first sound outlet is located on the back of the foldable screen, the sound emission direction of the first sound-emitting device can include the orientation of the back of the foldable screen (e.g., the opposite direction of screen A or screen B in the foldable screen). If the user holds the back of the foldable screen (e.g., the back of screen A or the back of screen B) close to their ear, the sound emission direction of the first sound-emitting device can be the direction into the ear. In this way, the user can hold the electronic device with the foldable screen in its closed state and directly answer calls without unfolding the screen. This method can improve the user's listening experience when answering calls or receiving voice messages while the foldable screen is in its closed state.

[0009] In conjunction with the first aspect, in some embodiments, the electronic device further includes a second sound-emitting device and a second sound outlet, the second sound outlet being located on the side where the folding screen is located, and the second sound-emitting device emitting sound through the second sound outlet; after the electronic device plays the first audio using the first sound-emitting device, when the folding screen changes from a closed state to an unfolded state, the electronic device plays the first audio to be played using the second sound-emitting device.

[0010] The second sound-emitting device can refer to the top speaker shown in Figure 2C of this application. The second sound outlet can refer to the sound outlet of the top speaker shown in Figure 2A of this application. The second sound outlet can be located at the top of the side where the folding screen is located.

[0011] As can be seen, since the second sound outlet is located on the side where the folding screen is located, the sound emission direction of the second sound device can include the orientation of the folding screen (e.g., the orientation of screen A in the folding screen). If the user places the location of the second sound outlet close to their ear, the sound emission direction of the second sound device can be the direction into the ear. In this way, when a user holds an electronic device with the folding screen in the unfolded state to answer a call, they can hear the call audio relatively clearly.

[0012] In some embodiments, when the folding screen changes from an unfolded state to a closed state, the electronic device can switch the sound-emitting device that plays the first audio to be played to a first sound-emitting device.

[0013] As can be seen, in earpiece mode, the electronic device can determine the sound-producing device for audio playback based on the folding shape of the screen. This allows users to clearly hear the audio being played whether the device is in a closed or unfolded state. This improves the user experience when listening to audio on foldable electronic devices in earpiece mode.

[0014] In conjunction with the first aspect, in some embodiments, the electronic device further includes a second sound-emitting device, a third sound-emitting device, a second sound outlet, and a third sound outlet. The second sound outlet is located on the side where the foldable screen is located, and the second sound-emitting device emits sound through the second sound outlet. The third sound outlet is located on the bottom edge of the electronic device, and the third sound-emitting device emits sound through the third sound outlet. Before acquiring the first audio to be played, the electronic device can use the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device to play the second audio to be played, which includes a first prompt tone. The electronic device receives a first operation.

[0015] The third sound-emitting device can refer to the bottom speaker shown in Figure 2C of this application. The third sound outlet can refer to the sound outlet of the bottom speaker shown in Figure 2A of this application.

[0016] Where the first audio to be played is a call audio, the first prompt tone can be a ringtone for an incoming call, and the first operation can be an operation to answer the call. Where the first audio to be played is a voice message audio, the first prompt tone can be a prompt tone for receiving a voice message, and the first operation can be an operation to trigger the electronic device to play the voice message (e.g., an operation to click on the voice message).

[0017] In earpiece mode, when the electronic device uses the first sound-emitting device to play the first audio to be played, the second and third sound-emitting devices do not need to play audio.

[0018] It can be seen that the aforementioned first prompt tone can be played in speakerphone mode. Using the first, second, and third sound-emitting devices to play the first prompt tone helps to notify the user that their electronic device has received an incoming call or voice message, thus facilitating the user to answer the call or listen to the voice message in a timely manner.

[0019] In conjunction with the first aspect, in some embodiments, the electronic device further includes a second sound-emitting device, a third sound-emitting device, a second sound outlet, and a third sound outlet. The second sound outlet is located on the side where the foldable screen is located, and the second sound-emitting device emits sound through the second sound outlet. The third sound outlet is located on the bottom edge of the electronic device, and the third sound-emitting device emits sound through the third sound outlet. After the electronic device plays a first audio to be played using the first sound-emitting device, the electronic device receives an operation to activate hands-free calling; the electronic device acquires a third audio to be played, which includes audio from an instant messaging application; the electronic device plays the third audio to be played using the first, second, and third sound-emitting devices.

[0020] As can be seen, users can choose to play the audio from the aforementioned instant messaging application in either earpiece mode or speaker mode, depending on their needs. In speaker mode, the highest power among the first, second, and third sound-emitting devices used to play the third audio to be played is greater than the power used in earpiece mode when the electronic device plays the first or second sound-emitting device to play the first audio to be played. Therefore, in speaker mode, the audio volume is louder, and users can listen to the audio without having to bring their ears close to the sound-emitting devices.

[0021] In conjunction with the first aspect, in some embodiments, when the foldable screen is in a closed state and the audio playback mode is external speaker mode, the sound effect parameters for the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device to play the third audio to be played are the first sound effect parameters. The aforementioned first sound effect parameters can be referenced to sound effect parameter 4 shown in Figure 7D of this application.

[0022] When the folding screen changes from a closed state to an unfolded state, the electronic device uses a first sound-emitting device, a second sound-emitting device, and a third sound-emitting device to play a third audio to be played according to the second sound effect parameters. The second sound effect parameters and the first sound effect parameters differ in loudness and / or equalizer (EQ) parameters. The second sound effect parameters can be referred to as sound effect parameter 2 shown in Figure 6D of this application.

[0023] In some embodiments, the third audio to be played includes a first frequency band audio. The frequency band of the first frequency band audio is a first frequency band. For example, the first frequency band can be a low-frequency band. In the first sound effect parameters, the volume of the first sound-emitting device playing the first frequency band audio can be higher than the volume of the second and third sound-emitting devices playing the first frequency band audio. That is to say, in the above-mentioned first sound effect parameters, the volume of the first sound-emitting device playing the low-frequency band can be amplified.

[0024] In some embodiments, in the second sound effect parameters, the volume of the second sound-emitting device playing the first frequency band audio and the third sound-emitting device playing the first frequency band audio can be higher than the volume of the first sound-emitting device playing the first frequency band audio. That is to say, in the above-mentioned second sound effect parameters, the volume of the low-frequency band played by the second sound-emitting device and the third sound-emitting device can be enhanced.

[0025] It can be seen that when playing audio from instant messaging applications in speaker mode, the low-frequency audio emitted by one or more of the first, second, and third sound-emitting devices can be amplified. This achieves a better low-frequency sound effect. Furthermore, since the electronic device uses three sound-emitting devices to play the audio, the audio playback loudness is enhanced, resulting in a louder sound. Based on the aforementioned first or second sound effect parameters, the electronic device can improve the user's listening experience when playing audio from instant messaging applications in speaker mode.

[0026] In conjunction with the first aspect, in some embodiments, the electronic device further includes a second sound-emitting device, a third sound-emitting device, a second sound outlet, and a third sound outlet. The second sound outlet is located on the side where the foldable screen is located, and the second sound-emitting device emits sound through the second sound outlet. The third sound outlet is located on the bottom edge of the electronic device, and the third sound-emitting device emits sound through the third sound outlet. The electronic device acquires a fourth audio to be played, which includes audio from a media application; the electronic device uses the first, second, and third sound-emitting devices to play the fourth audio to be played.

[0027] It can be seen that the audio of media applications is usually played in speaker mode. Electronic devices can use a first sound-emitting device, a second sound-emitting device, and a third sound-emitting device to play the audio of media applications, thereby improving the playback sound effect.

[0028] When the folding screen is in the closed state, the sound effect parameters for the fourth audio to be played by the first, second, and third sound-emitting devices are the third sound effect parameters. The third sound effect parameters can be determined based on the fourth audio to be played and the fact that the folding screen is in the closed state. The third sound effect parameters can be referred to as the sound effect parameters 7 shown in Figure 8F of this application.

[0029] In some embodiments, when the folding screen is in the closed state, the sound sources for the first, second, and third sound-emitting devices when playing the fourth audio to be played can be the same. In the third sound effect parameters, the phases of the audio played by the first, second, and third sound-emitting devices can be the same to achieve in-phase superposition, and the volume of the low-frequency band played by the first, second, and third sound-emitting devices can all be amplified.

[0030] Based on the aforementioned third sound effect parameter, when an electronic device plays audio from a media application in the foldable screen closed state, it can achieve low-frequency enhancement and increase the loudness of the audio playback, thereby achieving a loud external speaker and good low-frequency sound effect. This can improve the user's listening experience for audio and video played externally when the foldable screen is closed.

[0031] When the folding screen changes from a closed state to a semi-folded state, the electronic device uses the first, second, and third sound-emitting devices to play a fourth audio signal according to the fourth sound effect parameters. The fourth sound effect parameters differ from the third sound effect parameters in one or more of the phase, loudness, and EQ parameters. The fourth sound effect parameters can be determined based on the fourth audio signal and the folding screen being in the semi-folded state. The fourth sound effect parameters can refer to the sound effect parameters 6 shown in Figure 8D of this application.

[0032] In some embodiments, the fourth audio to be played may include a first audio signal, a second audio signal, and a third audio signal. The first audio signal, the second audio signal, and the third audio signal may be audio signals from different channels of the fourth audio to be played. Specifically, in a half-folded state, the first sound-emitting device can play the first audio signal. The second sound-emitting device can play the second audio signal. The third sound-emitting device can play the third audio signal. In the fourth sound effect parameters, the phase of the audio played by the first, second, and third sound-emitting devices can be changed to alter the distance at which the user hears the sound; and the volume of the low-frequency band played by the first and second sound-emitting devices can be amplified, while the volume of the low-frequency band played by the third sound-emitting device can be reduced.

[0033] Based on the aforementioned fourth sound effect parameter, when an electronic device plays audio from a media application in a semi-folded state, the user can identify that the location of the sound being heard is aligned with the location of the video image, achieving centered sound and full vocals. This enhances the user's listening experience when the folded screen is in a semi-folded state.

[0034] When the folding screen changes from a closed state to an unfolded state, the electronic device uses the first, second, and third sound-emitting devices to play a fourth audio to be played according to the fifth sound effect parameters. The fifth sound effect parameters differ from the third sound effect parameters in one or more of the phase, loudness, and EQ parameters. The fifth sound effect parameters can be determined based on the fourth audio to be played and the folding screen being in the unfolded state. The fifth sound effect parameters can refer to the sound effect parameters 5 shown in Figure 8B of this application.

[0035] Optionally, the electronic device can also detect the landscape or portrait orientation of the foldable screen and play a fourth audio file using different sound effect parameters when the foldable screen is in landscape or portrait orientation.

[0036] In some embodiments, the fourth audio to be played may include a fourth audio signal, a fifth audio signal, and a sixth audio signal. The fourth, fifth, and sixth audio signals may be audio signals from different channels of the fourth audio to be played. In the deployed state, the first sound-emitting device can play the fourth audio signal. The second sound-emitting device can play the fifth audio signal. The third sound-emitting device can play the sixth audio signal. In the fifth sound effect parameters, the phase of the audio played by the first, second, and third sound-emitting devices can be changed to alter the direction in which the user hears the sound, and the EQ parameters of the audio played by the first, second, and third sound-emitting devices can also be changed.

[0037] Based on the aforementioned fifth sound effect parameter, when an electronic device plays audio from a media application while the foldable screen is unfolded, it allows users to perceive the sound as originating from an actual sound source in space, thus achieving a sense of spatial presence and a wide soundstage. This enhances the user's listening experience when using external audio and video playback while the foldable screen is unfolded.

[0038] As can be seen from the above embodiments, electronic devices can jointly determine the sound-producing device and sound effect parameters for playing audio based on the audio playback scenario (i.e., audio playback mode) and the folding shape. This allows users to listen to audio in different audio playback scenarios and under different folding shapes, improving the user's audio listening experience.

[0039] In conjunction with the first aspect, in some embodiments, when the foldable screen is in the closed state, if the audio playback mode is the earpiece mode, in addition to using the first sound-emitting device to play the first audio to be played, the electronic device also uses a second sound-emitting device and / or a third sound-emitting device to play the first audio to be played; wherein, the phase of the second sound-emitting device and / or the third sound-emitting device playing the first audio to be played is opposite to the phase of the first sound-emitting device playing the first audio to be played.

[0040] In conjunction with the first aspect, in some embodiments, when the folding screen changes from a closed state to an unfolded state and the audio playback mode is earpiece mode, in addition to using a second sound-emitting device to play the first audio to be played, the electronic device also uses the first sound-emitting device and / or a third sound-emitting device to play the first audio to be played; wherein, the phase of the first audio to be played played by the first sound-emitting device and / or the third sound-emitting device is opposite to the phase of the first audio to be played played by the second sound-emitting device.

[0041] As can be seen, in earpiece mode, since different sound-producing devices can play audio with opposite phases, this can cancel out the sound waves and suppress their spread to the surroundings, thus reducing sound leakage.

[0042] Secondly, this application provides an audio playback method applied to an electronic device. The electronic device includes a foldable screen, a first sound-emitting device, a second sound-emitting device, a third sound-emitting device, a first sound outlet, a second sound outlet, and a third sound outlet. The first sound outlet is located on the back of the foldable screen, and the first sound-emitting device emits sound through the first sound outlet. The second sound outlet is located on one side of the foldable screen, and the second sound-emitting device emits sound through the second sound outlet. The third sound outlet is located on the bottom edge of the electronic device, and the third sound-emitting device emits sound through the third sound outlet. The electronic device acquires a fourth audio to be played, which includes audio from a media application; the electronic device uses the first, second, and third sound-emitting devices to play the fourth audio to be played.

[0043] It can be seen that the audio of media applications is usually played in speaker mode. Electronic devices can use a first sound-emitting device, a second sound-emitting device, and a third sound-emitting device to play the audio of media applications, thereby improving the playback sound effect.

[0044] In conjunction with the second aspect, in some embodiments, when the foldable screen is in the closed state, the sound effect parameters for the first, second, and third sound-emitting devices to play the fourth audio to be played are the third sound effect parameters. The third sound effect parameters can be referenced to the sound effect parameters 7 shown in Figure 8F of this application.

[0045] In some embodiments, when the folding screen is in the closed state, the sound sources for the first, second, and third sound-emitting devices when playing the fourth audio to be played can be the same. In the third sound effect parameters, the phases of the audio played by the first, second, and third sound-emitting devices can be the same to achieve in-phase superposition, and the volume of the low-frequency band played by the first, second, and third sound-emitting devices can all be amplified.

[0046] Based on the aforementioned third sound effect parameter, when an electronic device plays audio from a media application in the foldable screen closed state, it can achieve low-frequency enhancement and increase the loudness of the audio playback, thereby achieving a loud external speaker and good low-frequency sound effect. This can improve the user's listening experience for audio and video played externally when the foldable screen is closed.

[0047] In conjunction with the second aspect, in some embodiments, when the folding screen changes from a closed state to a semi-folded state, the electronic device uses a first sound-emitting device, a second sound-emitting device, and a third sound-emitting device to play a fourth audio to be played according to a fourth sound effect parameter. The fourth sound effect parameter differs from the third sound effect parameter in one or more of the phase, loudness, and EQ parameters. The fourth sound effect parameter can be referred to as the sound effect parameter 6 shown in Figure 8D of this application.

[0048] In some embodiments, the fourth audio to be played may include a first audio signal, a second audio signal, and a third audio signal. The first audio signal, the second audio signal, and the third audio signal may be audio signals from different channels of the fourth audio to be played. Specifically, in a half-folded state, the first sound-emitting device can play the first audio signal. The second sound-emitting device can play the second audio signal. The third sound-emitting device can play the third audio signal. In the fourth sound effect parameters, the phase of the audio played by the first, second, and third sound-emitting devices can be changed to alter the distance at which the user hears the sound; and the volume of the low-frequency band played by the first and second sound-emitting devices can be amplified, while the volume of the low-frequency band played by the third sound-emitting device can be reduced.

[0049] Based on the aforementioned fourth sound effect parameter, when an electronic device plays audio from a media application in a semi-folded state, the user can identify that the location of the sound being heard is aligned with the location of the video image, achieving centered sound and full vocals. This enhances the user's listening experience when the folded screen is in a semi-folded state.

[0050] In conjunction with the second aspect, in some embodiments, when the folding screen changes from a closed state to an unfolded state, the electronic device uses a first sound-emitting device, a second sound-emitting device, and a third sound-emitting device to play a fourth audio to be played according to a fifth sound effect parameter. The fifth sound effect parameter differs from the third sound effect parameter in one or more of the phase, loudness, and EQ parameters. The fifth sound effect parameter can be referred to as sound effect parameter 5 shown in Figure 8B of this application.

[0051] Optionally, the electronic device can also detect the landscape or portrait orientation of the foldable screen and play a fourth audio file using different sound effect parameters when the foldable screen is in landscape or portrait orientation.

[0052] In some embodiments, the fourth audio to be played may include a fourth audio signal, a fifth audio signal, and a sixth audio signal. The fourth, fifth, and sixth audio signals may be audio signals from different channels of the fourth audio to be played. In the deployed state, the first sound-emitting device can play the fourth audio signal. The second sound-emitting device can play the fifth audio signal. The third sound-emitting device can play the sixth audio signal. In the fifth sound effect parameters, the phase of the audio played by the first, second, and third sound-emitting devices can be changed to alter the direction in which the user hears the sound, and the EQ parameters of the audio played by the first, second, and third sound-emitting devices can also be changed.

[0053] Based on the aforementioned fifth sound effect parameter, when an electronic device plays audio from a media application while the foldable screen is unfolded, it allows users to perceive the sound as originating from an actual sound source in space, thus achieving a sense of spatial presence and a wide soundstage. This enhances the user's listening experience when using external audio and video playback while the foldable screen is unfolded.

[0054] As can be seen from the above embodiments, electronic devices can jointly determine the sound-producing device and sound effect parameters for playing audio based on the audio playback scenario (i.e., audio playback mode) and the folding shape. This allows users to listen to audio in different audio playback scenarios and under different folding shapes, improving the user's audio listening experience.

[0055] Thirdly, this application provides an electronic device. The electronic device may include a foldable screen, a first sound-emitting device, a first sound outlet, a memory, and a processor. The first sound outlet is located on the back of the foldable screen. The first sound-emitting device emits sound through the first sound outlet. The memory can be used to store computer programs. The processor can be used to invoke the computer program to execute any possible implementation method as described in the first or second aspect.

[0056] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed by a processor, can implement any possible implementation method as described in the first or second aspect.

[0057] Fifthly, this application provides a computer program product that may contain computer instructions that, when executed on a processor, can implement any possible implementation method as described in the first or second aspect.

[0058] In a sixth aspect, this application provides a chip for use in an electronic device, the chip including one or more processors, the processors being configured to invoke computer instructions to cause the electronic device to perform any possible implementation method as described in the first or second aspect.

[0059] It is understood that the electronic device provided in the third aspect, the computer-readable storage medium provided in the fourth aspect, the computer program product provided in the fifth aspect, and the chip provided in the sixth aspect are all used to execute the methods provided in the embodiments of this application. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here. Attached Figure Description

[0060] Figures 1A and 1B are schematic diagrams of the orientation of the folding screen provided in the embodiments of this application;

[0061] Figures 1C to 1E are schematic diagrams of some folding forms of the inward folding screen provided in the embodiments of this application;

[0062] Figures 2A to 2D are schematic diagrams of speakers of some electronic devices 100 provided in the embodiments of this application;

[0063] Figures 3A to 3E are schematic diagrams of speakers in some other electronic devices 100 provided in the embodiments of this application;

[0064] Figure 4A is a schematic diagram of the hardware structure of an electronic device 100 provided in an embodiment of this application;

[0065] Figure 4B is a software structure block diagram of an electronic device 100 provided in an embodiment of this application;

[0066] Figure 5 illustrates an audio playback method provided in an embodiment of this application.

[0067] Figure 6A shows an audio playback scenario for a handheld call provided in an embodiment of this application;

[0068] Figure 6B illustrates an audio playback method provided in an embodiment of this application.

[0069] Figure 6C illustrates an audio playback scenario for hands-free calling provided in an embodiment of this application.

[0070] Figure 6D illustrates an audio playback method provided in an embodiment of this application.

[0071] Figure 7A shows another audio playback scenario for handheld calls provided in an embodiment of this application;

[0072] Figure 7B illustrates an audio playback method provided in an embodiment of this application.

[0073] Figure 7C shows another audio playback scenario for hands-free calling provided in an embodiment of this application;

[0074] Figure 7D illustrates an audio playback method provided in an embodiment of this application.

[0075] Figure 8A illustrates an audio playback scenario for externally played audio and video according to an embodiment of this application.

[0076] Figure 8B illustrates an audio playback method provided in an embodiment of this application.

[0077] Figure 8C shows another audio playback scenario for external audio and video provided in an embodiment of this application;

[0078] Figure 8D illustrates an audio playback method provided in an embodiment of this application.

[0079] Figure 8E shows another audio playback scenario for external audio and video provided in an embodiment of this application;

[0080] Figure 8F illustrates an audio playback method provided in an embodiment of this application.

[0081] Figure 9A illustrates a method for preventing sound leakage according to an embodiment of this application.

[0082] Figure 9B illustrates another method for preventing sound leakage provided in an embodiment of this application.

[0083] Figure 10 is a schematic diagram of the sound field of an electronic device 100 provided in an embodiment of this application. Detailed Implementation

[0084] 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 limit the application. As used in the specification and appended claims of this application, the singular expressions "a," "the," "the," "the," and "this" are intended to also 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). The term "and / or" is used to describe the relationship between related objects, indicating that three relationships can exist; for example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship.

[0085] 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.

[0086] 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.

[0087] To facilitate understanding of the audio playback method described in this application, we will first introduce foldable screen devices.

[0088] A foldable screen device refers to an electronic device with a foldable screen. Foldable screens can have various folding methods. For example, a foldable screen can fold outwards or inwards. A foldable screen that folds outwards can be called an outward-folding foldable screen or an inward-folding screen, etc. A foldable screen that folds inwards can be called an inward-folding foldable screen or an inward-folding screen, etc. In some embodiments, the foldable screen of a foldable screen device can fold outwards or inwards. A foldable screen can include at least two screens, for example, a first screen and a second screen. The first screen can be called a first display area. The second screen can be called a second display area. The angle between the first screen and the second screen changes as the foldable screen folds. After an outward-folding foldable screen is folded, the orientation of the first screen and the orientation of the second screen are opposite to each other. After an inward-folding foldable screen is folded, the orientation of the first screen and the orientation of the second screen are opposite to each other. The first screen can also be called screen A. The second screen can also be called screen B. This application does not limit the folding method of the foldable screen.

[0089] Figure 1A illustrates a schematic diagram showing the orientation of screen A and screen B in an inward-folding screen.

[0090] As shown in Figure 1A, the angle α between screen A and screen B in an inward-folding screen can range from [0°, 180°]. Vector 1 is perpendicular to screen A, and its direction indicates the orientation of screen A. Vector 2 is perpendicular to screen B, and its direction indicates the orientation of screen B. Vectors 1 and 2 can be determined by the folding screen device based on a gyroscope sensor or other modules used to detect the folding angle. The folding screen device can determine the size of the angle α based on vectors 1 and 2.

[0091] It can be seen that after the inward folding screen is folded, the included angle α is 0°, and the orientation of screen A is opposite to that of screen B.

[0092] Figure 1B illustrates a schematic diagram showing the orientation of screen A and screen B in an outward-folding screen.

[0093] As shown in Figure 1B, the angle α between screen A and screen B in an outward-folding screen can range from [180°, 360°]. Vector 1 is perpendicular to screen A, and its direction indicates the orientation of screen A. Vector 2 is perpendicular to screen B, and its direction indicates the orientation of screen B. Vectors 1 and 2 can be determined by the folding screen device based on a gyroscope sensor or other modules used to detect the folding angle. The folding screen device can determine the size of the angle α based on vectors 1 and 2.

[0094] As can be seen, after the outward-folding screen is folded, the included angle α is 360°, and the orientation of screen A is opposite to that of screen B.

[0095] The following section will introduce the folding form of foldable screens using the example of an inward-folding foldable screen.

[0096] Figures 1C to 1E illustrate schematic diagrams of some folding configurations of inward-folding screens.

[0097] 1. Expanded state.

[0098] As shown in Figure 1C, the folding screen of electronic device 100 is in the unfolded state. The unfolded state can represent the fully unfolded form of the folding screen. The folding screen of electronic device 100 may include screen A and screen B. When the angle between screen A and screen B of the folding screen is 180° or approximately 180°, the folding screen of electronic device 100 can be unfolded into a plane, with screen A and screen B distributed on both sides of the folding edge and located on the same plane. In the unfolded state, screen A and screen B can be displayed as a single screen. The folding screen of electronic device 100 can be folded along the folding edge in directions 11a and 11b as shown in Figure 1C, forming the semi-folded state shown in Figure 1D.

[0099] 2. Half-folded state.

[0100] As shown in Figure 1D, the folding screen of the electronic device 100 is in a semi-folded state. The semi-folded state can be an intermediate state between the closed state and the unfolded state of the folding screen. The semi-folded state can also be called the support state, semi-folded state, etc.

[0101] In the semi-folded state, screens A and B are visible to the user. The folding screen of electronic device 100 can continue to fold along the folding edge in directions 12a and 12b as shown in Figure 1D, forming the closed state shown in Figure 1E.

[0102] 3. Closed state.

[0103] As shown in Figure 1E, the folding screen of electronic device 100 is in the closed state. The closed state can refer to the folding screen being fully folded. It can also be called the folded state, etc. When the angle between screen A and screen B of the folding screen is 0° or approximately 0°, screen A and screen B can be attached together. In this case, the folding screen of electronic device 100 is not visible to the user. In the closed state, since the folding screen of electronic device 100 is an inward-folding screen, the orientation of screen A and the orientation of screen B are opposite.

[0104] In some embodiments, a display screen, referred to as a third screen, may be provided on the back of screen A or screen B of the foldable screen in the electronic device 100. For example, as shown in FIG1E, screen C (i.e., the third screen) may be provided on the back of screen A. Screen C may be a display screen independent of the foldable screen. In the closed state, screen C is visible to the user. Screen C is optional. In some embodiments, the electronic device 100 may also not include the aforementioned screen C.

[0105] In the closed state, screens A and B can rotate along the folding edge in a direction away from each other. In this way, the folding screen can change from the closed state shown in Figure 1E to the semi-folded state shown in Figure 1D, and finally to the unfolded state shown in Figure 1C.

[0106] In some embodiments, the angle α between screen A and screen B can range from [0°, 180°]. The angle α between screen A and screen B is the folding angle of the folding screen. Wherein, if α∈[0°, P1], the electronic device 100 can determine that the folding screen is in a closed state. If α∈(P1, P2), the electronic device 100 can determine that the folding screen is in a half-folded state. If α∈[P2, 180°], the electronic device 100 can determine that the folding screen is in an unfolded state. Wherein, 0°<P1<P2<180°. P1 and P2 can be preset angle thresholds. P1 and P2 can be determined based on the usage habits of a large number of users of folding screens; or, P1 and P2 can be set by the user in the electronic device 100.

[0107] For example, based on the usage habits of most users, when the angle α between screen A and screen B is greater than 100°, the user is more likely to want to use screen A and screen B as a whole (i.e., as a complete display), and the folding screen is in the unfolded state. When the angle α between screen A and screen B is less than 80°, the user is more likely to want to use screen C alone, and the folding screen is in the closed state.

[0108] Therefore, in this embodiment of the application, the preset angle threshold P1 can be in the range of (0, 80°), and the preset angle threshold P2 can be in the range of [100°, 180°]. For example, the preset angle threshold P1 can be 75°, and the preset angle threshold P2 can be 105°. The above examples are merely for explaining this application and should not be construed as limiting it.

[0109] In some embodiments, the foldable screen can be a single, integrated screen. For example, the foldable screen can be a flexible foldable screen. A flexible foldable screen includes folding edges made of a flexible material. Part or all of the flexible foldable screen is made of a flexible material. That is to say, screens A and B shown in Figures 1C and 1D above can be single, integrated screens.

[0110] In some embodiments, the foldable screen can be a multi-screen foldable screen, which may consist of multiple independent displays. These multiple displays can be connected sequentially via a folding axis. Each display can rotate about the folding axis linked to it, thereby enabling the multi-screen foldable screen to fold. For example, the foldable screen may include screen A and screen B. The electronic device 100 can independently control screen A and screen B.

[0111] In Figures 1C to 1E, the folding screen of the electronic device 100 is folded horizontally, meaning it is folded along the horizontal folding edge to form two screens (screen A and screen B). In this embodiment, the folding screen can also be folded vertically, meaning it is folded along the vertical folding edge to form two screens (left and right). This application does not limit the folding method of the electronic device 100's folding screen. Subsequent embodiments will specifically use the horizontally folded inward-folding screen shown in Figures 1C to 1E as an example for explanation.

[0112] Figures 2A to 2D exemplarily illustrate speaker diagrams of some electronic devices 100.

[0113] As shown in Figure 2A, the electronic device 100 may include a top speaker and a bottom speaker. The top speaker can be located at the top of the electronic device 100. Since the electronic device 100 is an inward-folding screen, the inner screen of the electronic device 100 can be a folding screen (i.e., screen A and screen B). The inner screen side is the side where the folding screen is located. The bottom speaker can be located at the bottom of the electronic device 100. The top speaker may also be referred to as the inner screen speaker, etc. The bottom speaker may also be referred to as the lower screen speaker, etc. Both the top speaker and the bottom speaker may include a speaker array. In some embodiments, the top speaker can emit sound through a micro-slit. The bottom speaker can emit sound through an opening. This application does not limit the specific structure of the top speaker and the bottom speaker.

[0114] In some embodiments, each speaker in the electronic device 100 may have a sound outlet at its corresponding position. The speakers can emit sound through these sound outlets. For example, as shown in FIG2A, the sound outlet of the top speaker may be formed by an opening at the top of the inner screen side, and the sound outlet of the bottom speaker may be formed by an opening on the bottom edge of the electronic device 100. The sound outlet of the top speaker may be smaller than that of the bottom speaker. The sound emission direction of the speaker may be related to the orientation of the sound outlet. This application embodiment does not limit the structure of the sound outlets of each speaker.

[0115] The orientation of the top speaker's sound outlet can be the same as the direction of vector 2. The direction of vector 2 can be the orientation of screen A. Vector 2 is perpendicular to screen A. The orientation of the bottom speaker's sound outlet can be vectored by the direction of vector 3. The direction of vector 3 can be the orientation of the bottom edge of the electronic device 100. Vector 3 can be perpendicular to vector 1. The direction of vector 1 can be the orientation of screen B. Vector 1 is perpendicular to screen B. Vector 1 and vector 2 can be referred to the description in Figure 1A above.

[0116] As shown in Figure 2B, the outer screen side of the electronic device 100 is the side facing away from the inner screen side. In some embodiments, the outer screen side of the electronic device 100 may be provided with a screen 211 and a camera 212. The screen 211 can be referred to as the outer screen of the electronic device 100. The screen 211 may be the C-screen shown in Figure 1E above. The camera 212 may be a rear-facing camera of the electronic device 100.

[0117] As shown in Figure 2C, the folding screen of the electronic device 100 includes an upper screen A and a lower screen B. The electronic device 100 can be folded along the folding edge to change the orientation of screen A (i.e., the direction of vector 1) and screen B (i.e., the direction of vector 2). The orientation of screen A and screen B can be referred to the description in Figure 1A above.

[0118] The orientation of the sound outlet of the top speaker is the same as the orientation of the A-screen (it should be understood that "same orientation" can mean that the angle between the orientation of the sound outlet and the orientation of the A-screen is within a certain error range). Based on the sound outlet of the top speaker, the sound emission direction of the top speaker can include the orientation of the A-screen.

[0119] The orientation of the sound outlet of the bottom speaker (i.e., the direction of vector 3) is the same as the orientation of the bottom frame of the electronic device 100 (it should be understood that being in the same direction can include the angle between the orientation of the sound outlet and the orientation of the bottom frame being within a certain error range). Based on the sound outlet of the bottom speaker described above, the sound emission direction of the bottom speaker can include the orientation of the bottom frame of the electronic device 100.

[0120] For example, when the foldable screen is fully unfolded and placed face up on a horizontal table, the sound-emitting direction of the top speaker can include a direction upward toward the horizontal table (e.g., a direction perpendicular to the plane of the horizontal table and facing upward). The bottom speaker can emit sound in a horizontal direction (e.g., a direction parallel to the plane of the horizontal table).

[0121] In some embodiments, the top speaker can be a receiver, i.e., a handset. Audio played by the receiver needs to be brought close to the ear to be heard. The bottom speaker can be a speaker. Audio played by the speaker can be heard by the user even when the ear is not close. For example, when electronic device 100 answers a phone call or plays a voice message, electronic device 100 can play audio through the top speaker. In this case, the user needs to unfold the folded screen and bring the top speaker close to their ear to listen to the audio. When electronic device 100 makes hands-free calls or plays audio / video, electronic device 100 can play audio through the bottom speaker.

[0122] The sound direction of the top and bottom speakers is not convenient for users to answer calls or listen to voice messages when the foldable screen is closed.

[0123] As shown in Figure 2D, when the folding screen is closed, the electronic device 100 answers phone calls or listens to voice messages by playing audio through the top speaker. If the user holds the side of screen A facing away from their ear, the sound from the top speaker will be directed away from the user's ear, rather than towards the ear. Furthermore, when the folding screen is closed, screen A and screen B are pressed together, and the top speaker may be blocked by screen B. Therefore, when the folding screen is closed, the sound quality when the user answers phone calls or listens to voice messages through the top speaker is poor.

[0124] This application provides an audio playback method. This method can be applied to an electronic device with a foldable screen. The foldable screen of the electronic device may include a first screen and a second screen. The electronic device may include at least three sound-emitting devices: sound-emitting device 1, sound-emitting device 2, and sound-emitting device 3.

[0125] The sound-emitting device 1 can be disposed on the top of the electronic device. The sound-emitting device 1 emits sound through a sound outlet located at the top of the inner screen side of the electronic device. The direction of the sound outlet at the top of the inner screen side can be the same as the direction in which the first screen faces (e.g., the light emission direction of the first screen). The sound-emitting direction of the sound-emitting device 1 includes the direction in which the first screen faces. The sound-emitting device 1 can refer to the aforementioned top speaker. The direction in which the first screen faces can refer to the orientation of screen A shown in Figure 1A, i.e., the direction of vector 1.

[0126] The sound-emitting device 2 can be disposed at the bottom of the electronic device. The sound-emitting device 2 can emit sound through a sound outlet provided on the bottom edge of the electronic device. The orientation of the sound outlet on the bottom edge can be the same as the orientation of the bottom edge. The sound-emitting direction of the sound-emitting device 2 includes the direction in which the bottom edge of the electronic device faces. The sound-emitting device 2 can refer to the aforementioned bottom speaker.

[0127] The sound-emitting device 3 can be disposed on the outer screen side of the electronic device. The sound-emitting device 3 emits sound through a sound outlet on the outer screen side of the electronic device. The orientation of this sound outlet on the outer screen side can be the same as or opposite to the orientation of the first screen or the opposite orientation of the second screen. The sound-emitting direction of the sound-emitting device 2 includes the opposite direction of the orientation of the first screen or the opposite direction of the orientation of the second screen. The opposite direction of the orientation of the first screen can be the opposite direction of vector 1 shown in Figure 1A. The opposite direction of the orientation of the second screen can be the opposite direction of vector 2 shown in Figure 1A.

[0128] Electronic devices can determine the sound-emitting device used for playing audio based on the audio playback scenario and the folding shape of the foldable screen. The audio playback scenario can include a handset playback scenario and a speaker playback scenario. A handset playback scenario refers to a scenario where the user needs to bring their ear close to the sound-emitting device to listen to the audio. In the handset playback scenario, the sound-emitting device can play audio at power 1, resulting in a relatively low volume. For example, handset playback scenarios may include, but are not limited to, handheld call scenarios and listening to voice messages. A speaker playback scenario refers to a scenario where the user does not need to bring their ear close to the sound-emitting device to listen to the audio. In the speaker playback scenario, the sound-emitting device can play audio at power 2, resulting in a higher volume. Power 2 is greater than power 1. This application embodiment does not limit the values ​​of power 1 and power 2. For example, speaker playback scenarios may include, but are not limited to, hands-free call scenarios and audio / video (such as music, movies, etc.) speaker playback scenarios. The aforementioned handset playback scenario can also be called a hands-on playback scenario, etc. The aforementioned speaker playback scenario can also be called a speaker playback scenario, etc.

[0129] In some embodiments, during earpiece playback, if the foldable screen is in a closed state, the electronic device can play audio through the sound-emitting device 3. Since the sound-emitting device 3 can emit sound in the opposite direction to either the first or second screen, if the user places the side of the first or second screen facing away from their ear, the sound-emitting device 3 can emit sound in the direction of entry into the ear. This improves the user's listening experience when answering calls or receiving voice messages while the foldable screen is in a closed state.

[0130] In some embodiments, in a handset playback scenario, if the foldable screen is in the unfolded state, the electronic device can play audio through the sound-emitting device 1. In a speaker playback scenario, the electronic device can play audio through the sound-emitting device 1, sound-emitting device 2, and sound-emitting device 3 to improve the audio playback sound effect.

[0131] In a handset-based audio playback scenario, the audio playback mode of an electronic device can be called handset mode. In a speaker-based audio playback scenario, the audio playback mode of an electronic device can be called speaker mode.

[0132] Figures 3A to 3E exemplarily illustrate speaker diagrams of other electronic devices 100.

[0133] Electronic device 100 may include sound-generating device 1, sound-generating device 2, and sound-generating device 3.

[0134] As shown in Figures 3A and 3B, the sound-emitting device 1 can be a top speaker, the sound-emitting device 2 can be a bottom speaker, and the sound-emitting device 3 can be an external screen speaker. The top and bottom speakers can be described in Figures 2A to 2C. The sound outlet of the external screen speaker can be located on the external screen side of the electronic device 100. For example, the external screen side of the electronic device 100 can be the side opposite to the folding screen. The side where the folding screens (i.e., screen A and screen B) of the electronic device 100 are located is the inner screen side. The sound outlet of the external screen speaker can be located on the back of screen A or the back of screen B. Optionally, the sound outlet of the external screen speaker can be located on the left or right side of the external screen side. This application embodiment does not limit the specific location of the sound outlet of the external screen speaker. The external screen speaker can emit sound through its sound outlet.

[0135] The sound outlet of the external screen speaker can face the same direction as either the opposite direction of screen A or the opposite direction of screen B. For example, as shown in Figure 3B, the sound outlet of the external screen speaker is located on the back of screen A. The sound outlet of the external screen speaker can face the direction of vector 4. Vector 4 is perpendicular to both screen C and screen A. The direction of vector 4 is opposite to the direction of vector 1. The direction of vector 1 is the direction of screen A. It can be seen that the sound outlet of the external screen speaker faces the opposite direction of screen A, which is also the direction of screen C.

[0136] As shown in Figure 3C, the sound-emitting direction of the external screen speaker can include the direction in which screen C faces. In some embodiments, screen C can be disposed behind screen A. Therefore, the sound-emitting direction of the external screen speaker can include the opposite direction in which screen A faces, that is, opposite to the sound-emitting direction of the top speaker described above. Alternatively, screen C can be disposed behind screen B. Then the sound-emitting direction of the external screen speaker can include the opposite direction in which screen B faces. It can be seen that the top speaker can emit sound towards the inner screen side, and the external screen speaker can emit sound towards the outer screen side.

[0137] In some embodiments, the external speaker can be a receiver. The external speaker can play audio at power 1, in which case the user needs to bring the external speaker close to their ear to listen to the audio played by the external speaker.

[0138] In some embodiments, the top speaker and / or the external speaker can play audio at power 2. In this case, the user can hear the audio played by the top speaker and / or the external speaker without having to bring them close to their ear. Power 2 is greater than the power 1 mentioned above. This application embodiment does not limit the power range of the top speaker, the external speaker, and the bottom speaker during operation.

[0139] The aforementioned external speaker allows users to answer calls or listen to voice messages when the foldable screen is closed.

[0140] As shown in Figure 3D, when the folding screen is closed, the electronic device 100 can answer phone calls or listen to voice messages by playing audio through the external screen speaker. Since the sound direction of the external screen speaker includes the direction the C-screen is facing, the user can bring the side with the C-screen close to their ear when the folding screen is closed, thus ensuring the sound from the external screen speaker is directed towards the ear. Specifically, the user can place the external screen speaker on the side with the C-screen close to their ear. This allows the sound emitted by the external screen speaker to reach the user's ear more effectively.

[0141] The above method, by adding an external speaker to the electronic device 100, can improve the user's audio listening experience when the folding screen is in a closed state during earpiece playback.

[0142] In some embodiments, the sound outlet of the external screen speaker can also be disposed on the edge of the electronic device 100. The edge of the electronic device 100 can refer to the side edge line of the electronic device 100, such as the left side edge line or the right side edge line. As shown in FIG3E, the sound outlet of the external screen speaker is disposed on the side edge line of the right side of the electronic device 100 near the external screen. The orientation of the sound outlet of the external screen speaker can be the direction of vector 5. The direction of vector 5 can be between the direction of vector 4 and the orientation of the right side frame of the electronic device 100. For example, there is a preset angle between the direction of vector 5 and the direction of vector 4 (e.g., 20° or 30°, etc.). Vector 4 is perpendicular to the C-screen, and the direction of vector 4 is the orientation of the C-screen. Based on the sound outlet of the external screen speaker, the sound emission direction of the external screen speaker can include the direction of vector 5. The embodiments of this application do not specifically limit the direction of vector 5.

[0143] It should be noted that the positions of the top speaker, bottom speaker, external screen speaker, and corresponding sound outlet shown in Figures 3A to 3E are merely illustrative examples of this application and should not be construed as limiting this application.

[0144] The structure of the electronic device 100 involved in this application is described herein.

[0145] Figure 4A shows a schematic diagram of the hardware structure of the electronic device 100.

[0146] As shown in Figure 4A, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc.

[0147] 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.

[0148] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0149] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of instruction fetching and execution.

[0150] The processor 110 may also include a memory for storing instructions and data. In some examples, 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 is recurring. 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.

[0151] In this application, a computer program may be stored in the memory to enable a controller or processor to implement the focusing method of this application through an interface or protocol. For example, the computer program stored in the memory may be used to: detect the type of audio playback scene when the electronic device 100 plays audio, detect the folding shape of the foldable screen of the electronic device 100, determine the sound-emitting device playing the audio based on the audio playback scene and folding shape, determine the sound effect parameters of the audio played by each sound-emitting device, etc.

[0152] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback.

[0153] The charging management module 140 receives charging input from a charger, which can be a wireless charger or a wired charger. While charging the battery 142, the charging management module 140 can also supply power to the electronic device via the power management module 141.

[0154] The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, internal memory 121, external memory, display 194, camera 193, and wireless communication module 160, etc.

[0155] The wireless communication function of electronic device 100 can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor, etc.

[0156] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.

[0157] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1.

[0158] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.

[0159] 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, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering.

[0160] The display screen 194 is used to display images, videos, etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than 1.

[0161] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0162] The ISP is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, converting it into an image visible to the naked eye.

[0163] Camera 193 is used to capture still images or videos. In some embodiments, electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.

[0164] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.

[0165] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.

[0166] The external storage interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.

[0167] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. 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.

[0168] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0169] 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.

[0170] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.

[0171] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a telephone call or voice message, the receiver 170B can be brought close to the ear to hear the voice.

[0172] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C.

[0173] The 170D headphone jack is used to connect wired headphones.

[0174] In this application, the electronic device 100 may include at least three sound-generating devices. These sound-generating devices can be used to convert audio electrical signals into sound signals. Some of these three sound-generating devices may be receivers 170B, and others may be speakers 170A. For example, the top speaker and the outer screen speaker shown in Figure 3A may be receivers 170B. The bottom speaker shown in Figure 3A may be a speaker 170A. Alternatively, all three sound-generating devices may be speakers 170A. This application does not limit the specific structure of these three sound-generating devices. The structures of these three sound-generating devices may be the same or different.

[0175] The sensor module 180 may include pressure sensors, gyroscope sensors, barometric pressure sensors, magnetic sensors, accelerometers, gravity sensors, distance sensors, proximity sensors, fingerprint sensors, temperature sensors, touch sensors, ambient light sensors, bone conduction sensors, angle sensors, etc.

[0176] The gyroscope sensor can be used to determine the motion posture of the electronic device 100. In some embodiments, the gyroscope sensor can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor can also determine the offset angle of the electronic device 100. In some embodiments, the electronic device 100 can detect the angle (i.e., folding angle) between two adjacent screens included in the folding screen using the gyroscope sensor. The two adjacent screens can rotate along the same folding edge. The display screen 194 of the electronic device 100 can be folded and may include multiple screens. Each of these multiple screens can be equipped with a gyroscope sensor, which can be used to measure the orientation (i.e., the orientation direction vector) of the corresponding screen. The electronic device 100 can determine the angle between adjacent screens based on the change in the orientation angle of each screen measured by the gyroscope sensor.

[0177] An accelerometer can detect the magnitude of acceleration of an electronic device 100 in various directions (typically three axes). In some embodiments, the accelerometer can be used to identify the posture of the electronic device 100, and can be applied to applications such as screen orientation switching and pedometers.

[0178] Magnetic sensors may include Hall effect sensors, magnetometers, and the like. In some embodiments, electronic device 100 can detect the folding shape of the foldable screen using a magnetic sensor.

[0179] An angle sensor can be used to detect the folding angle of the foldable screen of the electronic device 100. In some embodiments, the angle sensor can be located at the folding portion of the foldable screen, for example, at the location of the folding edge. Based on the folding angle, the electronic device 100 can determine the folding shape of the foldable screen. This application does not limit the method by which the electronic device 100 detects the folding angle of the foldable screen.

[0180] Buttons 190 include a power button, volume buttons, etc. Motor 191 can generate vibration feedback. Indicator 192 can be an indicator light, used to indicate charging status, battery level changes, and also to indicate messages, missed calls, notifications, etc.

[0181] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and detach from the electronic device 100. The electronic device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The electronic device 100 interacts with the network through the SIM card to achieve functions such as calls and data communication. In some examples, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be removed from it.

[0182] 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 a layered architecture. Taking the system as an example, the software structure of electronic device 100 is illustrated.

[0183] Figure 4B is a software structure block diagram of an electronic device 100 according to an embodiment of this application.

[0184] 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 following is omitted as the text is incomplete and likely refers to a specific implementation or feature]. The system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android Runtime and system libraries, and the kernel layer.

[0185] The application layer can include a series of application packages.

[0186] As shown in Figure 4B, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, SMS, and video.

[0187] The application framework layer provides APIs and a programming framework for applications within the application layer. The application framework layer includes some predefined functions.

[0188] As shown in Figure 4B, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, activity manager, audio management module, etc.

[0189] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0190] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0191] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0192] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).

[0193] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0194] The notification manager allows applications to display notifications in the status bar (such as the pull-down notification bar). It 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 download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.

[0195] The Activity Manager is responsible for managing activities, including starting, switching, and scheduling components in the system, as well as managing and scheduling applications. The Activity Manager can be called by upper-level applications to open the corresponding activities.

[0196] The audio management module can be used to manage the audio output path and the sound effect parameters for playing audio. In some embodiments, when an application needs to play audio, the application can send the audio to be played and the audio playback scenario to the audio management module. The audio management module can obtain the folding angle of the foldable screen and determine the folding shape of the foldable screen based on the folding angle. Based on the audio playback scenario and folding shape, the audio management module can determine which sound-emitting devices (such as the top speaker, bottom speaker, external screen speaker, etc.) in the electronic device 100 should be used to play the audio. For example, if it is determined that the top speaker should be used to play the audio, the audio management module can transmit the audio from the application to the top speaker. If it is determined that the top speaker, bottom speaker, and external screen speaker should be used to play the audio, the audio management module can transmit the audio from the application to the top speaker, bottom speaker, and external screen speaker.

[0197] In some embodiments, under different audio playback scenarios and / or different folding configurations, the audio management module can determine different sound effect parameters, causing the electronic device 100 to produce different sound effects when playing audio. For example, sound effect parameters may include, but are not limited to, loudness, equalizer (EQ) parameters, etc. EQ parameters may include frequency, gain, influence range, and gain / attenuation mode. The frequency mentioned above can be used to indicate the audio frequency to be adjusted. The gain mentioned above can be used to indicate the volume increase or decrease of the audio frequency to be adjusted. The influence range can be used to indicate the frequency range whose volume is changed. The gain / attenuation mode can be used to adjust the volume change trend of a specified audio frequency. That is to say, EQ parameters can be used to adjust the volume of a specified frequency band.

[0198] In addition to the audio to be played, the audio management module can send sound effect parameters to the sound-producing devices. Each sound-producing device can then play the audio according to the corresponding sound effect parameters. Different sound-producing devices can use different sound effect parameters. The above embodiments can improve the user's audio listening experience.

[0199] The electronic device 100 can store sound effect parameters corresponding to different types of audio in different audio playback scenarios. These sound effect parameters can be preset. For example, they may include sound effect parameters for playing call audio in a handheld call scenario (which can be called the earpiece mode parameters for call audio), sound effect parameters for playing call audio in a hands-free call scenario (which can be called the external speaker mode parameters for call audio), sound effect parameters for playing audio in an audio / video external speaker scenario (which can be called the audio / video sound effect parameters), and so on. This application embodiment does not limit the preset sound effect parameters mentioned above.

[0200] In some embodiments, the audio management module can process the audio signal from the application before transmitting the processed audio to the sound-generating device for playing the audio. For example, in a handset playback scenario, to control sound leakage, the audio management module can adjust the phase of the played audio so that the sound-generating device of the electronic device 100 plays audio with an opposite phase. As another example, the audio to be played may include multiple channels. The audio management module can distinguish the multiple channels of the audio to be played and transmit each channel to a different sound-generating device. Multiple sound-generating devices can play different channels of the same audio, thereby producing stereo or surround sound effects.

[0201] In some embodiments, the audio management module may include multiple audio management modules for managing different types of audio. For example, the audio management module may include an audio management module for managing call audio playback and an audio management module for managing audio and video playback. The audio management module for managing call audio playback and the audio management module for managing audio and video playback may be independent of each other.

[0202] The Android Runtime consists of core libraries and a virtual machine. The Android Runtime is responsible for the scheduling and management of the Android system.

[0203] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0204] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0205] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0206] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0207] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0208] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0209] A 2D graphics engine is a graphics engine for 2D drawing.

[0210] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0211] Figure 5 illustrates an audio playback method provided in this application.

[0212] As shown in Figure 5, the method may include steps S511 to S514. This method can be applied to the electronic device 100 shown in Figures 3A to 3D, which includes at least three sound-generating devices.

[0213] S511. Determine the audio playback scenario, which includes earpiece playback scenario and external speaker scenario.

[0214] In some embodiments, the audio playback scenario may be determined by the application in the electronic device 100 that needs to play audio. The application in the electronic device 100 that needs to play audio may include instant messaging applications and media applications. Instant messaging applications may refer to applications used for sending and receiving messages with other users and making telephone calls. For example, instant messaging applications may include, but are not limited to, calling applications, Instant messaging applications, such as messaging apps, can include audio from calls and voice messages. Media applications refer to applications used for listening to or watching multimedia content. For example, media applications can include, but are not limited to, music applications and video applications. The audio in media applications can include music, movie audio, TV show audio, and so on.

[0215] The audio of the aforementioned instant messaging application can be set to play in earpiece mode or in speaker mode.

[0216] For example, when the calling application of electronic device 100 is making a voice call, if hands-free mode is not enabled, the calling application can determine that the call audio is played in earpiece mode. That is, the call audio playback scenario is earpiece playback. If hands-free mode is enabled, the calling application can determine that the call audio is played in speaker mode. That is, the call audio playback scenario is speaker playback.

[0217] The audio in the aforementioned media applications is typically played in speaker mode.

[0218] For example, when the music application of electronic device 100 is playing audio, if the electronic device 100 is not connected to headphones, the music application can determine that the music is being played in speaker mode. That is, the music playback scenario is a speaker scenario. This application embodiment does not limit the method for determining the audio playback scenario.

[0219] S512. Determine the folding mode of the foldable screen. The folding mode includes unfolded state, half-folded state, and closed state.

[0220] The electronic device 100 can determine the folding mode based on the folding angle of the folding screen. The unfolded state, half-folded state, and closed state can be referred to the description in the foregoing embodiments.

[0221] S513. Determine the sound-generating device and sound effect parameters for playing audio based on the audio playback scenario and folding shape.

[0222] S514. Play audio using the sound-generating device and sound effect parameters determined above.

[0223] In some embodiments, if the audio playback scenario is a handset playback scenario and the foldable screen is in a closed state, the electronic device 100 can use the external speaker to play audio. If the audio playback scenario is a handset playback scenario and the foldable screen is in an unfolded state, the electronic device 100 can use the top speaker to play audio. In the handset playback scenario, the sound effect parameters of the audio played by the external speaker and the audio played by the top speaker can be the same. Thus, the sound effect heard by the user when the foldable screen is closed and close to the sound-emitting device (i.e., the external speaker) can be the same as the sound effect heard when the foldable screen is unfolded and close to the sound-emitting device (i.e., the top speaker). That is to say, in the handset playback scenario, the user's audio listening experience can be consistent across different folding configurations. This can improve the user experience of playing audio using the foldable screen.

[0224] Alternatively, the audio parameters for the external speaker can be different from those for the top speaker.

[0225] In some embodiments, if the audio playback scenario is an external speaker scenario, the electronic device 100 can use a top speaker, a bottom speaker, and an external screen speaker to play audio. The sound effect parameters of the audio played by the sound-emitting device can differ depending on the folding configuration.

[0226] For example, in the unfolded state, the top speaker, bottom speaker, and outer screen speaker can play audio according to the sound effect parameters provided by the audio management module to achieve a sound effect with spatial presence and a wide sound field. In the semi-folded state, the top speaker, bottom speaker, and outer screen speaker can play audio according to the sound effect parameters provided by the audio management module to achieve a sound effect with centered sound image and full vocals. In the closed state, the top speaker, bottom speaker, and outer screen speaker can play audio according to the sound effect parameters provided by the audio management module to achieve a sound effect with high external volume and good low frequencies.

[0227] The sound effect parameters used by the sound-emitting devices in different audio playback scenarios and different folding forms will be described in detail in subsequent embodiments, and will not be elaborated here. This application embodiment does not limit the sound effect parameters used by the multiple sound-emitting devices in the electronic device 100 to play audio to achieve the above-mentioned sound effects.

[0228] In some embodiments, in an external speaker scenario, the electronic device 100 may use one or both of the top speaker, bottom speaker, and external screen speaker to play audio.

[0229] As can be seen from the above method, the electronic device 100 can jointly determine the sound-producing device and sound effect parameters for playing audio based on the audio playback scenario and the folding shape. This allows users to listen to audio in different audio playback scenarios and under different folding shapes, improving the user's audio listening experience.

[0230] The following uses a call scenario as an example to introduce the audio playback scenario and method of this application. The call scenario can include a handheld call scenario and a hands-free call scenario. The handheld call scenario belongs to the aforementioned earpiece playback scenario. The hands-free call scenario belongs to the aforementioned external speaker scenario.

[0231] Figure 6A illustrates an audio playback scenario during a handheld phone call.

[0232] As shown in Figure 6A, the electronic device 100 establishes a call connection with other devices and receives call audio from the other end of the call connection. The electronic device 100 can display a user interface 630 on a foldable screen. The user interface 630 may include a hands-free control 631. The hands-free control 631 can be used to turn the hands-free function on or off. When the hands-free control 631 is in the unselected state shown in Figure 6A, the hands-free function is off. That is, the current call scenario is a handheld call scenario.

[0233] As shown in Figure 6A, the folding screen of the electronic device 100 is in the unfolded state. Therefore, the electronic device 100 can use the top speaker to play call audio. The external screen speaker and the bottom speaker do not need to play call audio.

[0234] As shown in Figure 6A, when answering a call, the user can hold the foldable electronic device 100 with the screen unfolded and place the speaker on the top side of the inner screen close to their ear. This ensures that the sound is emitted from the ear, allowing the user to hear the call audio clearly.

[0235] In some embodiments, before the electronic device 100 displays the user interface 630 shown in FIG. 6A, that is, before the call is connected, the electronic device 100 receives an incoming call notification. Upon receiving the incoming call notification, the electronic device 100 can display the incoming call notification interface and play the call ringtone. The electronic device 100 can play the call ringtone through a top speaker, a bottom speaker, and an external screen speaker. That is, the call ringtone can be played in speakerphone mode.

[0236] When an incoming call is detected, the electronic device 100 can connect the call. The incoming call notification interface may include an answer control. The answer control can be used to answer the call. The operation of answering the call may include an operation on the answer control, or an operation of bringing the speaker (e.g., the top speaker or the external speaker) close to the ear. A proximity sensor may be provided near the top speaker and the external speaker. When an incoming call notification is received, the electronic device 100 can use the proximity sensor to detect whether the user has brought the top speaker or the external speaker close to their ear. If the user brings the top speaker or the external speaker close to their ear, the electronic device 100 can connect the call.

[0237] Figure 6B illustrates an audio playback method provided in this application.

[0238] S611. In the earpiece playback scenario, the foldable screen is in the unfolded state.

[0239] The method by which the electronic device 100 determines the audio playback scenario and folding configuration can be found in the description of the foregoing embodiments. For example, the earpiece playback scenario can be the handheld call scenario shown in Figure 6A above.

[0240] S612, Use the top speaker to play audio according to sound effect parameter 1.

[0241] In some embodiments, the electronic device 100 can retrieve sound effect parameter 1 from a memory. Sound effect parameter 1 can be the sound effect parameter corresponding to the audio to be played in a handset playback scenario. For example, the audio to be played is a call audio. The aforementioned sound effect parameter 1 can be the handset mode parameter for the call audio. As another example, the audio to be played is a voice message. The aforementioned sound effect parameter 1 can be the handset mode parameter for the voice message.

[0242] The sound effect parameter 1 may include loudness 1, EQ parameter 1, etc. This application embodiment does not limit the specific values ​​of loudness 1 and EQ parameter 1. The loudness 1 mentioned above is generally low. This reduces the possibility of the audio played by the top speaker being heard by a user far away from the electronic device 100.

[0243] Figure 6C illustrates an audio playback scenario for hands-free calling provided in this application.

[0244] When the hands-free function is off, in response to an operation on the hands-free control 631 as shown in FIG6A, such as a click operation, the electronic device 100 can turn on the hands-free function and display the user interface 630 shown in FIG6C.

[0245] As shown in Figure 6C, the hands-free control 631 is selected. This indicates that the hands-free function is enabled. When the hands-free function is enabled, the call scenario changes from the handheld call scenario shown in Figure 6A to the hands-free call scenario shown in Figure 6C.

[0246] As shown in Figure 6C, the folding screen of the electronic device 100 is in the unfolded state. The electronic device 100 can use the top speaker, bottom speaker, and external screen speaker to play call audio.

[0247] In some embodiments, when switching from a hands-free calling scenario to a handheld calling scenario, the electronic device 100 can adjust the sound-emitting device used to play call audio from the top speaker, bottom speaker, and external screen speaker to the top speaker, that is, stop using the external screen speaker and bottom speaker to play call audio.

[0248] As shown in Figure 6C, when the call scenario switches from a handheld call to a hands-free call, the electronic device 100 can adjust the sound-emitting device used to play the call audio from the top speaker to a top speaker, a bottom speaker, and an external screen speaker. In the hands-free call scenario, the electronic device 100 can use the above three sound-emitting devices to enhance the loudness of the call audio playback and improve the user's call experience.

[0249] Figure 6D illustrates an audio playback method provided in this application.

[0250] S621. In hands-free calling scenarios, the foldable screen is in the unfolded state.

[0251] S622, Use the top speaker, bottom speaker and external screen speaker to play call audio according to sound effect parameter 2.

[0252] In some embodiments, the top speaker, bottom speaker, and external screen speaker can all receive call audio. That is, in a hands-free calling scenario, the audio source played by the top speaker, bottom speaker, and external screen speaker can be the same.

[0253] Electronic device 100 can retrieve external speaker mode parameters for call audio from memory, such as sound effect parameter 2'. Sound effect parameter 2' may include loudness 2' and EQ parameter 2'. Electronic device 100 can increase the weight of sound waves emitted by the top speaker and bottom speaker.

[0254] Specifically, the electronic device 100 can increase the volume of the low-frequency band based on EQ parameter 2', resulting in EQ parameters 2a and 2b. The volume of the low-frequency band in both EQ parameters 2a and 2b is higher than the volume of the low-frequency band in EQ parameter 2'. For example, the aforementioned low-frequency band may include audio frequencies below 1kHz. This application embodiment does not limit the range of the low-frequency band. Optionally, EQ parameters 2a and EQ parameters 2b can be the same.

[0255] Electronic device 100 can transmit loudness 2' and EQ parameter 2a to the top speaker. The top speaker can then play the call audio according to loudness 2' and EQ parameter 2a.

[0256] Electronic device 100 can transmit loudness 2' and EQ parameter 2b to the bottom speaker. The bottom speaker can then play call audio according to loudness 2' and EQ parameter 2b.

[0257] Electronic device 100 can transmit loudness 2' and EQ parameter 2' to the external screen speaker. The external screen speaker can play the call audio according to loudness 2' and EQ parameter 2'.

[0258] In other words, sound effect parameter 2 can include loudness 2', EQ parameter 2', EQ parameter 2a, and EQ parameter 2b.

[0259] Optionally, the electronic device 100 can increase the loudness based on the loudness 2' mentioned above, resulting in loudness 2a and loudness 2b. Both loudness 2a and loudness 2b are higher than loudness 2'. Loudness 2a and loudness 2b can be the same. Specifically, the top speaker can play the call audio at loudness 2a. The bottom speaker can play the call audio at loudness 2b. The external screen speaker can play the call audio at loudness 2'.

[0260] In some embodiments, when the foldable screen shown in FIG. 6C is in the unfolded state and the audio playback scenario is an external speaker scenario, the power of the top speaker, the external screen speaker, and the bottom speaker in playing audio can be the same or different. If the power of the top speaker, the external screen speaker, and the bottom speaker in playing audio is the same, then this power is greater than the power of the top speaker in playing audio when the foldable screen is in the unfolded state and the audio playback scenario is an earpiece playback scenario as shown in FIG. 6A. If the power of the top speaker, the external screen speaker, and the bottom speaker in playing audio is different, then the maximum power of the top speaker, the external screen speaker, and the bottom speaker in playing audio is greater than the power of the top speaker in playing audio when the foldable screen is in the unfolded state and the audio playback scenario is an earpiece playback scenario as shown in FIG. 6A.

[0261] As shown by the above method, in a hands-free calling scenario, the electronic device 100 can use three sound-emitting devices to play the call audio. This enhances the loudness of the call audio playback. The three sound-emitting devices can play the call audio according to sound effect parameter 2. Since the volume of the low-frequency band played by the top and bottom speakers is enhanced in sound effect parameter 2, the low-frequency sound effect of the call audio is good. The above method can achieve a loud and good low-frequency sound effect in a hands-free calling scenario, improving the user's listening experience during hands-free calls.

[0262] It should be noted that when the folded screen is unfolded and the audio playback scenario is an external speaker scenario (such as the hands-free call scenario shown in Figure 6C), the user typically places the electronic device 100 on the table with the folded screen facing upwards. In this case, the external speaker is blocked by the table surface when playing audio. Therefore, the electronic device 100 can amplify the volume of the low-frequency bands played by the top and bottom speakers to improve the audio playback sound effect.

[0263] In some embodiments, when the folded screen is in the unfolded state and the audio playback scenario is an external speaker scenario, the electronic device 100 can detect the placement posture of the electronic device 100. If the electronic device 100 is placed with the folded screen facing upwards, the electronic device 100 can play audio according to the sound effect parameters 2 shown in FIG. 6D. If the electronic device 100 is placed with the folded screen facing downwards, the electronic device 100 can enhance the playback of low-frequency audio through the external speaker and the bottom speaker to improve the audio playback sound effect. It is understood that when the electronic device 100 is placed with the folded screen facing downwards, the top speaker will be blocked when playing audio. The embodiments of this application do not limit the method for detecting the placement posture of the electronic device 100 described above.

[0264] In some embodiments, during hands-free calling, if the foldable screen is in the unfolded state, the electronic device 100 can use one or both of the top speaker, bottom speaker, and external screen speaker to play the call audio. When using one of the top speaker, bottom speaker, and external screen speaker to play the call audio, the power of the speaker playing the call audio can be higher than the power of the top speaker playing the call audio as shown in Figure 6A.

[0265] Figure 7A shows another scenario of audio playback during handheld calls.

[0266] As shown in Figure 7A, the folding screen of the electronic device 100 is in a closed state. The electronic device 100 has established a call connection with other devices. The electronic device 100 can display a user interface 730 on the C screen. The user interface 730 may include a hands-free control 731. The hands-free control 731 can refer to the hands-free control 631 shown in Figure 6A above. Referring to the scenario shown in Figure 6A above, the current call scenario is a handheld call scenario. Therefore, the electronic device 100 can use the external screen speaker to play call audio. The top speaker and bottom speaker do not need to play call audio.

[0267] In some embodiments, during a handheld call scenario, if the folding state of the foldable screen changes from the unfolded state shown in FIG. 6A to the closed state shown in FIG. 7A, the electronic device 100 can switch the sound-emitting device for playing call audio from the top speaker to the external screen speaker. Conversely, during a handheld call scenario, if the folding state of the foldable screen changes from the closed state shown in FIG. 7A to the unfolded state shown in FIG. 6A, the electronic device 100 can switch the sound-emitting device for playing call audio from the external screen speaker to the top speaker.

[0268] As shown in Figure 7A, users can answer calls directly using the outer screen (i.e., the C-screen) without unfolding the folding screen. Users can hold the electronic device 100 with the folding screen closed and place the outer screen speaker close to their ear (see Figure 3D). This ensures that the call audio is emitted from the ear, allowing the user to hear it clearly. Whether the folding screen is unfolded or closed, the electronic device 100 provides a good call audio listening experience for handheld calls.

[0269] Figure 7B illustrates an audio playback method provided in this application.

[0270] S711. In the earpiece playback scenario, the foldable screen is in a closed state.

[0271] For example, the earpiece playback scenario can be the handheld call scenario shown in Figure 7A.

[0272] S712, Use the external speaker to play audio according to sound effect parameter 3.

[0273] In some embodiments, the sound effect parameter 3 can be pre-stored in the memory of the electronic device 100. The sound effect parameter 3 can be the same as the sound effect parameter 1 shown in Figure 6B above, that is, the sound effect parameter corresponding to the audio to be played in the earpiece playback scenario. This can achieve consistency in the user's audio listening experience under different folding forms in the earpiece playback scenario.

[0274] Alternatively, the sound effect parameters for the audio to be played when the folded screen is in a closed state during earpiece playback can be different from the sound effect parameters for the audio to be played when the folded screen is in an unfolded state during earpiece playback. That is, sound effect parameter 3 can be different from sound effect parameter 1. Both sound effect parameter 3 and sound effect parameter 1 can be stored in the memory of the electronic device 100. In typical handheld scenarios, the electronic device 100 can select to use either sound effect parameter 1 or sound effect parameter 3 depending on the folded state.

[0275] Figure 7C illustrates an audio playback scenario for hands-free calling provided in this application.

[0276] When the hands-free function is off, in response to an operation on the hands-free control 731 as shown in FIG7A, such as a click operation, the electronic device 100 can turn on the hands-free function and display the user interface 730 shown in FIG7C.

[0277] As shown in Figure 7C, the hands-free control 731 is selected. This indicates that the hands-free function is enabled. When the hands-free function is enabled, the call scenario changes from the handheld call scenario shown in Figure 7A to the hands-free call scenario shown in Figure 7C.

[0278] As shown in Figure 7C, the folding screen of the electronic device 100 is in the closed state. The electronic device 100 can use the top speaker, bottom speaker, and external screen speaker to play call audio.

[0279] As shown in Figure 7C and Figure 6C above, in hands-free calling scenarios, regardless of whether the foldable screen is in a closed or unfolded state, the electronic device 100 can use the top speaker, bottom speaker, and external screen speaker to play call audio. This enhances the loudness of the call audio playback and improves the user's calling experience.

[0280] Figure 7D illustrates an audio playback method provided in this application.

[0281] S721. In hands-free calling scenarios, the foldable screen is in a closed state.

[0282] S722: Play call audio using the top speaker, bottom speaker, and external screen speaker according to audio parameter 4.

[0283] The top speaker, bottom speaker, and external screen speaker can all play the same audio source.

[0284] In some embodiments, the electronic device 100 can retrieve the external playback mode parameters of the call audio in the closed state from the memory, such as sound effect parameter 4'. Sound effect parameter 4' may be different from sound effect parameter 2' shown in FIG. 6D. Sound effect parameter 2' may be the external playback mode parameters of the call audio in the unfolded state. Alternatively, sound effect parameter 4' and sound effect parameter 2' may be the same.

[0285] The sound effect parameter 4' can include loudness 4' and EQ parameter 4'. Electronic device 100 can increase the weight of the sound waves emitted by the external speaker.

[0286] Specifically, electronic device 100 can increase the volume of the low-frequency band based on EQ parameter 4' to obtain EQ parameter 4a. That is, the volume of the low-frequency band in EQ parameter 4a is higher than the volume of the low-frequency band in EQ parameter 4'.

[0287] Electronic device 100 can transmit loudness 4' and EQ parameter 4' to the top speaker. The top speaker can then play the call audio according to loudness 4' and EQ parameter 4'.

[0288] Electronic device 100 can transmit loudness 4' and EQ parameter 4' to the bottom speaker. The bottom speaker can then play call audio according to loudness 4' and EQ parameter 4'.

[0289] Electronic device 100 can transmit loudness 4' and EQ parameter 4a to the external screen speaker. The external screen speaker can then play the call audio according to the loudness 4' and EQ parameter 4a.

[0290] In other words, sound effect parameter 4 can include loudness 4', EQ parameter 4', and EQ parameter 4a.

[0291] Optionally, the electronic device 100 can increase the loudness based on the loudness 4' mentioned above to obtain loudness 4a. Loudness 4a is higher than loudness 4'. The external screen speaker can play call audio at loudness 4a.

[0292] In some embodiments, sound effect parameter 4 can be the same as sound effect parameter 2 shown in FIG. 6D. Step S722 can refer to step S622 shown in FIG. 6D. That is, in a hands-free call scenario, the audio playback method when the folded screen is in the closed state can be the same as the audio playback method when the folded screen is in the unfolded state. The electronic device 100 can detect the audio playback scenario. If the audio playback scenario is a hands-free call scenario, the electronic device 100 can directly play the call audio according to step S622 without further detecting the folding state of the folded screen. If the audio playback scenario is a handset playback scenario (such as a handheld call scenario), the electronic device 100 can further detect the folding state of the folded screen. When the folded screen is in the unfolded state, the electronic device 100 can play the audio according to step S612; when the folded screen is in the closed state, the electronic device 100 can play the audio according to S712.

[0293] In some embodiments, when the foldable screen shown in FIG. 7C is in the closed state and the audio playback scenario is an external speaker scenario, the power of the top speaker, the external screen speaker, and the bottom speaker in playing audio can be the same or different. If the power of the top speaker, the external screen speaker, and the bottom speaker in playing audio is the same, then this power is greater than the power of the top speaker in playing audio when the foldable screen is in the closed state and the audio playback scenario is an earpiece playback scenario, as shown in FIG. 7A. If the power of the top speaker, the external screen speaker, and the bottom speaker in playing audio is different, then the maximum power of the top speaker, the external screen speaker, and the bottom speaker in playing audio is greater than the power of the top speaker in playing audio when the foldable screen is in the unfolded state and the audio playback scenario is an earpiece playback scenario, as shown in FIG. 7A.

[0294] As shown above, in a hands-free calling scenario, the electronic device 100 can use three sound-emitting devices to play the call audio. This enhances the loudness of the call audio playback. The three sound-emitting devices can play the call audio according to sound effect parameter 4. Because the volume of the low-frequency band played by the external screen speaker is enhanced in sound effect parameter 4, the low-frequency sound effect of the call audio is good. The above method can achieve a loud and good low-frequency sound effect in a hands-free calling scenario, improving the user's listening experience during hands-free calls.

[0295] It should be noted that when the foldable screen is closed and the audio playback scenario is an external speaker scenario (such as the hands-free call scenario shown in Figure 7C), the user typically places the electronic device 100 on a table with the outer screen display (e.g., the C screen) facing upwards. When the foldable screen is closed, the top speaker is blocked when playing audio. Therefore, the electronic device 100 can amplify the volume of the low-frequency band played by the external speaker to improve the audio playback sound effect.

[0296] In some embodiments, when the foldable screen is in a closed state and the audio playback scenario is an external speaker scenario, the electronic device 100 can detect the placement posture of the electronic device 100. If the electronic device 100 is placed with the outer screen side display facing upwards, the electronic device 100 can play audio according to the sound effect parameter 4 shown in FIG7D. If the electronic device 100 is placed with the outer screen side display facing downwards, the electronic device 100 can enhance the playback of low-frequency audio through the bottom speaker to improve the audio playback sound effect. It is understood that when the electronic device 100 is placed with the outer screen side display facing downwards, the external speaker will be blocked when playing audio. The embodiments of this application do not limit the method for detecting the placement posture of the electronic device 100 described above.

[0297] In some embodiments, during hands-free calling, if the foldable screen is in a closed state, the electronic device 100 can use one or both of the top speaker, bottom speaker, and external screen speaker to play the call audio. When using one of the top speaker, bottom speaker, and external screen speaker to play the call audio, the power of the speaker playing the call audio can be higher than the power of the top speaker playing the call audio as shown in Figure 7A.

[0298] In some embodiments, when the earpiece is in the stand state, the electronic device 100 can play audio using the top speaker or the external screen speaker in the earpiece playback scenario. The sound effect parameters used by the electronic device 100 to play the audio can be the same as or different from sound effect parameter 1 or sound effect parameter 3 described above.

[0299] In hands-free calling scenarios, if the foldable screen is in stand mode, the electronic device 100 can use the top speaker, the external screen speaker, and the bottom speaker to play call audio. The sound effect parameters used by the electronic device 100 to play the call audio can be the same as or different from sound effect parameters 2 and 4 mentioned above.

[0300] For voice messages or other audio messages that can switch audio playback modes, the methods for playing them in earpiece mode and speakerphone mode can refer to the above methods for playing call audio.

[0301] The following section uses an audio / video external playback scenario as an example to introduce the audio playback scenario and method of this application. The audio / video external playback scenario can include scenarios where sound is played externally when playing multimedia content such as videos (e.g., movies, TV series, short videos) or music. The audio / video external playback scenario belongs to the category of external playback scenarios.

[0302] Figure 8A illustrates an audio playback scenario using external speaker audio / video.

[0303] As shown in Figure 8A, the foldable screen is in the unfolded state, and the electronic device 100 is playing a video. The electronic device 100 can display a video playback interface 810. The electronic device 100 can play audio using a top speaker, a bottom speaker, and an external screen speaker. The sound effect parameters for the top speaker, bottom speaker, and external screen speaker can be different. For example, the top speaker can play audio according to parameter 11, the external screen speaker can play audio according to parameter 12, and the bottom speaker can play audio according to parameter 13. These sound effect parameters will be described in detail in the embodiment shown in Figure 8B later, and will not be elaborated here.

[0304] In some embodiments, the top speaker, bottom speaker and outer screen speaker play audio according to the sound effect parameters shown in FIG8A, which can achieve a wide sound field and a sense of spatial presence.

[0305] In some embodiments, in addition to the audio playback scenario and folding form, the electronic device 100 can also determine the sound effect parameters based on the horizontal or vertical screen state of the folding screen. For example, in the audio / video playback scenario shown in Figure 8A, where the folding screen is in the unfolded state, if the folding screen is in the horizontal state, the electronic device 100 can play audio according to the sound effect parameters shown in Figure 8A (such as parameters 11, 12, and 13). In this way, when the user watches the video in horizontal mode using the electronic device 100, the top speaker and bottom speaker can be equivalent to two speakers placed to the left and right front of the user, achieving a wide sound field.

[0306] Figure 8B illustrates an audio playback method provided in this application.

[0307] S811: In audio and video playback scenarios, the foldable screen is in the unfolded state.

[0308] S812, use the top speaker, bottom speaker and external screen speaker to play audio according to sound effect parameter 5.

[0309] In some embodiments, in audio / video external playback scenarios, the audio to be played can be multi-channel audio. A channel can refer to an independent audio signal collected or played when sound is recorded or played from different spatial locations. Different channels can represent different sound sources. For example, multi-channel audio can include stereo audio, 4.0 surround sound (including four channels), 5.1 surround sound (including six channels), and so on.

[0310] The electronic device 100 can match different audio sources to the top speaker, bottom speaker, and external speaker. Specifically, the electronic device 100 can perform channel separation on the audio to be played, obtaining audio signals from different channels of the audio to be played. The electronic device 100 can distribute the audio signals from different channels to the top speaker, bottom speaker, and external speaker. The top speaker, bottom speaker, and external speaker can play audio signals from different channels. This application embodiment does not limit the specific method of distributing different channels among multiple speakers as described above.

[0311] The electronic device 100 can retrieve the sound effect parameters of the audio to be played in an external playback scenario from the memory, such as sound effect parameter 5'. Sound effect parameter 5' may include loudness 5' and EQ parameter 5'. In some embodiments, sound effect parameter 5 may also include phase 5'.

[0312] During audio playback, the electronic device 100 can adjust the phase of the audio signals played by each speaker based on phase 5', thereby changing the perceived location of the sound heard by the user. For example, the electronic device 100 can adjust the phase of the audio signal played by the top speaker to phase 5a, the phase of the audio signal played by the outer screen speaker to phase 5b, and the phase of the audio signal played by the bottom speaker to phase 5c. This embodiment does not limit the specific value of the phase of the audio signals played by each speaker in the electronic device 100. Furthermore, the phase of the audio signals played by each speaker in the electronic device 100 can change dynamically during audio playback. This allows for real-time adjustment of the perceived location of the sound emitted by each sound object in the audio being played, enhancing the user's sense of spatial presence when listening to the audio.

[0313] During audio playback, the electronic device 100 can also adjust the transfer function of sound waves emitted by each speaker to the human ear. For example, this transfer function can be the head-related transfer function (HRTF). HRTF describes how the human ear receives sound from a sound source in space. Before sound reaches the human ear, due to the different shapes and sizes of each person's head and auricle, these structures alter the sound (e.g., boosting some frequencies and attenuating others), thus affecting the user's perception of the sound. Changing the transfer function of sound waves emitted by the speakers to the human ear can include changing the loudness and / or EQ parameters. For example, the electronic device 100 can adjust the loudness of the audio signal played by the top speaker to loudness 5a and the EQ parameter to EQ parameter 5a. The electronic device 100 can adjust the loudness of the audio signal played by the external screen speaker to loudness 5b and the EQ parameter to EQ parameter 5b. The electronic device 100 can adjust the loudness of the audio signal played by the bottom speaker to loudness 5c and the EQ parameter to EQ parameter 5c. The loudness mentioned above can be adjusted based on loudness 5'. The EQ parameters mentioned above can be adjusted based on EQ parameter 5'. This application does not limit the specific values ​​of the loudness of the audio signals played by each speaker or the EQ parameters in the embodiments described above.

[0314] In other words, parameter 11 shown in Figure 8A above may include loudness 5a, EQ parameter 5a, and phase 5a; parameter 12 may include loudness 5b, EQ parameter 5b, and phase 5b; and parameter 13 may include loudness 5c, EQ parameter 5c, and phase 5c. Sound effect parameter 5 may include parameters 11, 12, and 13.

[0315] By adjusting one or more of the aforementioned phase, loudness, and EQ parameters, the electronic device 100 can simulate sounds from different locations through the top speaker, external screen speaker, and bottom speaker. This allows users to perceive the sound as originating from actual objects in space when listening to audio, achieving a spatially immersive and wide-field sound effect (referred to as sound effect 1). This method allows users to listen to audio when the folding screen is unfolded, especially in video viewing scenarios, providing a more immersive experience. For example, the location from which a user hears a sound from an object in a video can be the same as or close to the location from which the user sees that same object in the video. This method enhances the user's listening experience when the folding screen is unfolded.

[0316] In some embodiments, the electronic device 100 can also detect the landscape and portrait states of the folding screen. In an audio / video playback scenario, if the folding screen is in an unfolded state and in landscape mode, the electronic device 100 can execute the above-described step S812. In an audio / video playback scenario, if the folding screen is in an unfolded state and in portrait mode, the electronic device 100 uses the top speaker, bottom speaker, and external screen speaker to play audio according to the audio effect parameter 5'. In the portrait mode, the audio sources played by the top speaker, bottom speaker, and external screen speaker can be audio signals from different channels of the audio to be played. This application embodiment does not limit the audio effect parameters of the audio played by the top speaker, bottom speaker, and external screen speaker in the above-described portrait mode.

[0317] Figure 8C illustrates another audio playback scenario using external speaker audio / video.

[0318] As shown in Figure 8C, the foldable screen is in a semi-folded state, and the electronic device 100 is playing a video. The electronic device 100 can display a video playback interface 820. The electronic device 100 can play audio using a top speaker, a bottom speaker, and an external screen speaker. The audio effect parameters for the top speaker, bottom speaker, and external screen speaker can be different. For example, the top speaker can play audio according to parameter 21, the external screen speaker can play audio according to parameter 22, and the bottom speaker can play audio according to parameter 23. These audio effect parameters will be described in detail in the embodiment shown in Figure 8D later, and will not be elaborated here.

[0319] In some embodiments, in audio and video external playback scenarios, the sound effect achieved by the electronic device 100 when playing audio in the folded screen semi-folded state may be different from the sound effect achieved by the electronic device 100 when playing audio in the folded screen unfolded state. For example, the top speaker, bottom speaker, and external screen speaker described above can achieve a centered sound image and full vocals when playing audio according to the sound effect parameters shown in FIG8C.

[0320] Figure 8D illustrates an audio playback method provided in this application.

[0321] S821. In audio and video playback scenarios, the foldable screen is in a semi-folded state.

[0322] S822: Play audio using the top speaker, bottom speaker, and external screen speaker according to sound effect parameter 6.

[0323] In some embodiments, the electronic device 100 can match different audio sources to the top speaker, bottom speaker, and external screen speaker. Specifically, the electronic device 100 can perform channel separation on the audio to be played, obtaining audio signals of different channels in the audio to be played. The electronic device 100 can distribute the audio signals of different channels to the top speaker, bottom speaker, and external screen speaker. The top speaker, bottom speaker, and external screen speaker can play audio signals of different channels.

[0324] The electronic device 100 can retrieve the sound effect parameters of the audio to be played in an external speaker scenario and when the folded screen is in a semi-folded state from the memory, for example, sound effect parameter 6'. Sound effect parameter 6' may be different from sound effect parameter 5' in step S812 shown in FIG8B. The aforementioned sound effect parameter 5' may be the sound effect parameter of the audio to be played in an external speaker scenario and when the folded screen is unfolded. Alternatively, sound effect parameter 6' and sound effect parameter 5' may be the same.

[0325] The sound effect parameter 6' can include loudness 6', EQ parameter 6', and phase 6'.

[0326] During audio playback, the electronic device 100 can adjust the phase of the audio signals played by each speaker based on phase 6', thereby changing the distance at which the user hears the sound. For example, the electronic device 100 can adjust the phase of the audio signal played by the top speaker to phase 6a, the phase of the audio signal played by the outer screen speaker to phase 6b, and the phase of the audio signal played by the bottom speaker to phase 6c. This embodiment does not limit the specific value of the phase of the audio signals played by each speaker in the electronic device 100. Furthermore, the phase of the audio signals played by each speaker in the electronic device 100 can change dynamically during audio playback. This allows for real-time adjustment of the relative distance between the user and the sound objects in the audio being played, concentrating the sound image in the center of the electronic device 100.

[0327] Electronic device 100 can increase the weight of sound waves emitted by the top speaker and the outer screen speaker, and decrease the weight of sound waves emitted by the bottom speaker.

[0328] Specifically, the electronic device 100 can further increase the volume of the low-frequency band based on EQ parameter 6', resulting in EQ parameters 6a and 6b. The electronic device 100 can also decrease the volume of the low-frequency band based on EQ parameter 6', resulting in EQ parameter 6c. The top speaker can play audio according to EQ parameter 6a. The external speaker can play audio according to EQ parameter 6b. The bottom speaker can play audio according to EQ parameter 6c. These adjustments achieve a full and rich vocal sound.

[0329] In some embodiments, the electronic device 100 can further adjust the loudness of the audio signals played by each speaker based on the loudness 6'. For example, the electronic device 100 can adjust the loudness of the audio signal played by the top speaker to loudness 6a, the loudness of the audio signal played by the external screen speaker to loudness 6b, and the loudness of the audio signal played by the bottom speaker to loudness 6c. Optionally, the loudness 6a and loudness 6b can be higher than loudness 6'. The loudness 6c can be lower than loudness 6'. The embodiments of this application do not limit the loudness of the audio signals played by each speaker.

[0330] In other words, parameter 21 shown in Figure 8C above may include loudness 6a, EQ parameter 6a, and phase 6a; parameter 22 may include loudness 6b, EQ parameter 6b, and phase 6b; and parameter 23 may include loudness 6c, EQ parameter 6c, and phase 6c. Sound effect parameter 6 may include parameters 21, 22, and 23.

[0331] Based on the aforementioned sound effect parameter 6, the electronic device 100 allows the user to identify that the location of the sound being heard is consistent with the location of the video screen, achieving a centered sound image and full vocals (which can be referred to as sound effect 2). The above method can improve the user's listening experience when the folded screen is in a semi-folded state.

[0332] Figure 8E illustrates another audio playback scenario using external speaker audio / video.

[0333] As shown in Figure 8E, the foldable screen is in the closed state, and the electronic device 100 is playing music. The electronic device 100 can display a user interface 830. The user interface 830 may include one or more controls for user control of music playback. The electronic device 100 can play audio using a top speaker, a bottom speaker, and an external screen speaker. The sound effect parameters for the top speaker, bottom speaker, and external screen speaker can be different. For example, the top speaker can play audio according to parameter 31. The external screen speaker can play audio according to parameter 32. The bottom speaker can play audio according to parameter 33. These sound effect parameters will be described in detail in the embodiment shown in Figure 8F, and will not be elaborated here.

[0334] In some embodiments, in audio and video playback scenarios, the sound effect achieved by the electronic device 100 when playing audio with the folded screen in the closed state can be different from the sound effect achieved by the electronic device 100 when playing audio with the folded screen in the unfolded state and the semi-folded state. For example, the top speaker, bottom speaker and external screen speaker described above can achieve a loud and good low-frequency sound effect when playing according to the sound effect parameters shown in FIG8E.

[0335] Figure 8F illustrates an audio playback method provided in this application.

[0336] S831. In audio and video playback scenarios, the foldable screen is in a closed state.

[0337] S832, use the top speaker, bottom speaker and external screen speaker to play audio according to sound effect parameter 7.

[0338] In some embodiments, the electronic device 100 can match the same audio source to the top speaker, bottom speaker, and external screen speaker. Specifically, the electronic device 100 can send the audio to be played to the top speaker, bottom speaker, and external screen speaker. That is, in audio / video playback scenarios where the foldable screen is closed, the audio played by the top speaker, bottom speaker, and external screen speaker can be the same.

[0339] The electronic device 100 can retrieve the sound effect parameters of the audio to be played in an external speaker scenario with the folded screen in a closed state from the memory, for example, sound effect parameter 7'. Sound effect parameter 7' may be different from sound effect parameter 5' in step S812 shown in FIG8B. Alternatively, sound effect parameter 7' and sound effect parameter 5' may be the same.

[0340] The sound effect parameter 7' can include loudness 7', EQ parameter 7', and phase 7'.

[0341] In some embodiments, sound effect parameter 7 is the same as sound effect parameter 7'. That is to say, parameters 31, 32, and 33 shown in Figure 8E above can be the same, all including loudness 7', EQ parameter 7', and phase 7'.

[0342] Understandably, in the closed configuration, the top speaker, bottom speaker, and outer screen speaker are positioned close together. These three speakers play the same audio signal with the same audio parameters, achieving in-phase superposition and resulting in low-frequency enhancement and loudness increase.

[0343] In some embodiments, the electronic device 100 can increase the volume of the low-frequency band based on EQ parameter 7', resulting in EQ parameters 7a, 7b, and 7c. EQ parameters 7a, 7b, and 7c can be the same or different. The top speaker can play audio according to EQ parameter 7a. The external speaker can play audio according to EQ parameter 7b. The bottom speaker can play audio according to EQ parameter 7c. These adjustments can enhance the volume of the low-frequency band played by each speaker, improving the sound effect in the low-frequency band.

[0344] Optionally, the electronic device 100 can increase the loudness of the audio signal played by each speaker based on the loudness 7', resulting in loudness 7a, loudness 7b, and loudness 7c. Specifically, the top speaker can play audio at loudness 7a. The outer screen speaker can play audio at loudness 7b. The bottom wall speaker can play audio at loudness 7c.

[0345] In other words, sound effect parameter 7 includes parameters 31, 32, and 33. Parameter 31 can include loudness 7a, EQ parameter 7a, and phase 7'. Parameter 32 can include loudness 7b, EQ parameter 7b, and phase 7'. Parameter 33 can include loudness 7c, EQ parameter 7c, and phase 7'.

[0346] The above embodiments can achieve low-frequency enhancement to a greater extent and improve the loudness of audio playback, thereby achieving a loud external speaker and good low-frequency sound effect (which can be referred to as sound effect 3). The above method can improve the user's listening experience of external audio and video when the foldable screen is in the closed state.

[0347] As can be seen from the audio playback method in the above audio and video external playback scenario, the electronic device 100 can use different sound effect parameters to achieve the corresponding sound effects (such as sound effect 1, sound effect 2, and sound effect 3) under different folding forms. The sound effect parameter 5 shown in Figure 8B for achieving sound effect 1, the sound effect parameter 6 shown in Figure 8D for achieving sound effect 2, and the sound effect parameter 7 shown in Figure 8F for achieving sound effect 3 are merely exemplary illustrations of this application and should not be construed as limiting this application.

[0348] In some embodiments, during the playback of audio and video, if the folding shape of the foldable screen changes, the electronic device 100 can accordingly change the audio effect parameters of the top speaker, bottom speaker, and external screen speaker to achieve the corresponding audio effect after the change in folding shape. For example, if the foldable screen changes from an unfolded state to a semi-folded state, the electronic device 100 can adjust the audio effect parameter from the aforementioned audio effect parameter 5 to audio effect parameter 6, thereby changing the audio playback sound effect from sound effect 1 to sound effect 2. In this way, users can adjust the folding shape according to their personal needs when playing audio and video, thereby experiencing the corresponding audio playback sound effect. This can improve the user's audio listening experience when using a foldable screen.

[0349] In some embodiments, in audio / video external playback scenarios, the electronic device 100 may use one or both of the top speaker, external screen speaker, and bottom speaker to play audio. This application embodiment does not limit the method for selecting the sound-generating device for playing audio.

[0350] In handset-based audio playback scenarios, the electronic device 100 may experience audio leakage issues when playing audio through the top speaker or external screen speaker at low power. For example, in a handheld call scenario, the user holds the top speaker or external screen speaker close to their ear to answer the call. The audio played through the top speaker or external screen speaker may be heard by others in the vicinity of the user. This audio leakage issue could compromise user privacy.

[0351] In some embodiments, during handset playback, the electronic device 100 can use a top speaker, an external screen speaker, and a bottom wall speaker to play audio. These three speakers can play audio with opposite phases. This phase cancellation suppresses sound wave propagation and reduces sound leakage.

[0352] Figure 9A illustrates an exemplary method for preventing sound leakage.

[0353] S911: When playing music through the earpiece, the foldable screen is in the unfolded state.

[0354] S912, uses a top speaker, an external screen speaker, and a bottom speaker to play audio, wherein the audio played by the external screen speaker and the bottom speaker is out of phase with the audio played by the top speaker.

[0355] As shown in Figure 6A above, in the earpiece playback scenario when the foldable screen is in the unfolded state, users typically hold the top speaker close to their ear to listen to audio. Therefore, the electronic device 100 can use the top speaker as the main speaker and the external screen speaker and bottom speaker as auxiliary speakers. The main speaker can function as an earpiece, allowing the user to listen to audio close to their ear. The auxiliary speakers can be used to reduce sound leakage.

[0356] Because the audio played by the outer and bottom speakers is out of phase with the audio played by the top speaker, the sound waves emitted by the outer and bottom speakers cancel each other out. Therefore, the sound waves emitted by the top, bottom, and outer speakers will not travel far.

[0357] As can be seen from the above method, when the folding screen is in the unfolded state, the electronic device 100 reduces sound leakage through the external screen speaker and the bottom speaker. In this way, users can bring the top speaker close to their ears to listen to audio without worrying that the audio they are listening to will be heard by others nearby.

[0358] In some embodiments, during earpiece playback, if the foldable screen is in the unfolded state, the electronic device 100 can use either the external screen speaker or the bottom speaker as an auxiliary speaker. For example, the electronic device 100 can use both the top speaker and the external screen speaker to play audio. The audio played by the top speaker is out of phase with the audio played by the external screen speaker. The bottom speaker may not need to play audio. Alternatively, the electronic device 100 can use both the top speaker and the bottom speaker to play audio. The audio played by the top speaker is out of phase with the audio played by the bottom speaker. The external screen speaker may not need to play audio.

[0359] Figure 9B illustrates another method for preventing sound leakage.

[0360] S921. In the earpiece playback scenario, the foldable screen is in a closed state.

[0361] S922, using a top speaker, an external screen speaker, and a bottom speaker to play audio, wherein the audio played by the top speaker and the bottom speaker is out of phase with the audio played by the external screen speaker.

[0362] As shown in Figure 7A above, in the earpiece playback scenario when the foldable screen is in the closed state, users are usually accustomed to holding the external screen speaker close to their ears to listen to audio. Therefore, the electronic device 100 can use the external screen speaker as the main speaker and the top and bottom speakers as auxiliary speakers.

[0363] Because the audio played by the top and bottom speakers is out of phase with the audio played by the external screen speaker, the sound waves emitted by the top and bottom speakers cancel each other out. Therefore, the sound waves emitted by the top, bottom, and external screen speakers will not travel far.

[0364] As can be seen from the above method, when the folding screen is in the closed state, the electronic device 100 reduces sound leakage through the top and bottom speakers. In this way, users can bring the external screen speaker close to their ears to listen to audio without worrying that the audio they are listening to will be heard by others nearby.

[0365] In some embodiments, during earpiece playback, if the foldable screen is in the closed state, the electronic device 100 can use either the top speaker or the bottom speaker as an auxiliary speaker. For example, the electronic device 100 can use both the top speaker and the external screen speaker to play audio. The audio played by the top speaker is out of phase with the audio played by the external screen speaker. The bottom speaker may not need to play audio. Alternatively, the electronic device 100 can use both the external screen speaker and the bottom speaker to play audio. The audio played by the external screen speaker is out of phase with the audio played by the bottom speaker. The top speaker may not need to play audio.

[0366] In some embodiments, in a handset playback scenario, the electronic device 100 can adjust the sound effect parameters of the top speaker, bottom speaker and external screen speaker to ensure that the effect of suppressing sound leakage is consistent in all directions of the sound field where the electronic device 100 is located.

[0367] Figure 10 illustrates a schematic diagram of the sound field where the electronic device 100 is located.

[0368] As shown in Figure 10, region 1 can be the near-field region of the speaker array consisting of the top speaker, the outer screen speaker, and the bottom speaker. The area outside region 1 can be the far-field region of the speaker array consisting of the top speaker, the outer screen speaker, and the bottom speaker. Position L1 can be any point at a distance d1 from the electronic device 100. The distance d1 can be preset. This application does not limit the value of distance d1.

[0369] Electronic device 100 can adjust the volume of one or more frequency bands of audio played by the top speaker, external screen speaker, and bottom speaker, so that the sound waves emitted by the top speaker, external screen speaker, and bottom speaker completely cancel each other out or the remaining sound wave energy after cancellation is less than an energy threshold when they propagate to any position point (e.g., position L1) at a distance d1 from electronic device 100. Thus, in earpiece playback mode, when electronic device 100 plays audio as shown in Figure 9A or Figure 9B, users at a distance d1 or greater from electronic device 100 will not hear the audio played by the top speaker, external screen speaker, and bottom speaker.

[0370] This application embodiment does not limit the specific method of adjusting the volume of one or more frequency bands to completely cancel out the sound waves emitted by the multiple speakers of the electronic device 100 at any position at a preset distance from the electronic device 100.

[0371] The above embodiments can reduce sound leakage in all directions of the electronic device 100, achieve better sound leakage prevention effect, and protect the user's privacy when listening to audio in the earpiece playback scenario.

[0372] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, can implement the steps in the above-described method embodiments.

[0373] This application also provides a computer program product, including a computer program that, when run on a processor, can implement the steps in the various method embodiments described above.

[0374] This application also provides a chip system, which includes a processing circuit and an interface circuit. The interface circuit receives code instructions and transmits them to the processing circuit. The processing circuit executes the code instructions to enable the chip system to implement the steps of any method embodiment of this application. The chip system can be a single chip or a chip module composed of multiple chips.

[0375] It is understood that the user interfaces described in the embodiments of this application are merely example interfaces and do not constitute a limitation on the solution of this application. In other embodiments, the user interface may adopt different interface layouts, may include more or fewer controls, and may add or remove other functional options, as long as they are based on the same inventive concept provided in this application, they are all within the protection scope of this application.

[0376] It should be noted that, without causing contradictions or conflicts, any feature in any embodiment of this application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of this application.

[0377] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. An audio playback method, characterized in that, The method is applied to an electronic device, which includes a foldable screen, a first sound-emitting device, and a first sound outlet. The first sound outlet is located on the back of the foldable screen, and the first sound-emitting device emits sound through the first sound outlet. The foldable screen is in a closed state; the method includes: The electronic device acquires a first audio to be played, the first audio to be played including audio from an instant messaging application; The electronic device uses the first sound-emitting device to play the first audio to be played.

2. The method according to claim 1, characterized in that, The electronic device further includes a second sound-emitting device and a second sound outlet, the second sound outlet being located on the side where the folding screen is located, and the second sound-emitting device emitting sound through the second sound outlet; After the electronic device plays the first audio using the first sound-emitting device, the method further includes: When the folding screen changes from a closed state to an unfolded state, the electronic device uses the second sound-emitting device to play the first audio to be played.

3. The method according to claim 1 or 2, characterized in that, The electronic device further includes a second sound-emitting device, a third sound-emitting device, a second sound outlet, and a third sound outlet. The second sound outlet is located on the side where the foldable screen is located, and the second sound-emitting device emits sound through the second sound outlet. The third sound outlet is located on the bottom edge of the electronic device, and the third sound-emitting device emits sound through the third sound outlet. Before the electronic device acquires the first audio to be played, the method further includes: The electronic device uses the first sound-generating device, the second sound-generating device, and the third sound-generating device to play a second audio to be played, the second audio to be played including a first prompt tone; The electronic device receives the first operation.

4. The method according to claim 1, characterized in that, The electronic device further includes a second sound-emitting device, a third sound-emitting device, a second sound outlet, and a third sound outlet. The second sound outlet is located on the side where the foldable screen is located, and the second sound-emitting device emits sound through the second sound outlet. The third sound outlet is located on the bottom edge of the electronic device, and the third sound-emitting device emits sound through the third sound outlet. After the electronic device plays the first audio to be played using the first sound-emitting device, the method further includes: The electronic device receives the command to enable hands-free calling; The electronic device acquires a third audio file to be played, the third audio file to be played including the audio from the instant messaging application; The electronic device uses the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device to play the third audio to be played.

5. The method according to claim 4, characterized in that, The sound effect parameters for the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device to play the third audio to be played are the first sound effect parameters.

6. The method according to claim 5, characterized in that, The method further includes: When the folding screen changes from a closed state to an unfolded state, the electronic device uses the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device to play the third audio to be played according to the second sound effect parameters, wherein the second sound effect parameters and the first sound effect parameters are different in loudness and / or equalizer EQ parameters.

7. The method according to claim 1, characterized in that, The electronic device further includes a second sound-emitting device, a third sound-emitting device, a second sound outlet, and a third sound outlet. The second sound outlet is located on the side where the foldable screen is located, and the second sound-emitting device emits sound through the second sound outlet. The third sound outlet is located on the bottom edge of the electronic device, and the third sound-emitting device emits sound through the third sound outlet. The method further includes: The electronic device acquires a fourth audio file to be played, which includes audio from a media application. The electronic device uses the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device to play the fourth audio to be played.

8. The method according to claim 7, characterized in that, The sound effect parameters for the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device to play the fourth audio to be played are the third sound effect parameters.

9. The method according to claim 8, characterized in that, The method further includes: When the folding screen changes from a closed state to a semi-folded state, the electronic device uses the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device to play the fourth audio to be played according to the fourth sound effect parameter. The fourth sound effect parameter is different from the third sound effect parameter in one or more of the phase, loudness, and EQ parameters.

10. The method according to claim 8, characterized in that, The method further includes: When the folding screen changes from a closed state to an unfolded state, the electronic device uses the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device to play the fourth audio to be played according to the fifth sound effect parameter. The fifth sound effect parameter is different from the third sound effect parameter in one or more of the phase, loudness, and EQ parameters.

11. The method according to claim 1, characterized in that, The electronic device further includes a second sound-emitting device, a third sound-emitting device, a second sound outlet, and a third sound outlet. The second sound outlet is located on the side where the foldable screen is located, and the second sound-emitting device emits sound through the second sound outlet. The third sound outlet is located on the bottom edge of the electronic device, and the third sound-emitting device emits sound through the third sound outlet. The method further includes: The electronic device also uses the second sound-emitting device and / or the third sound-emitting device to play the first audio to be played; wherein the phase of the second sound-emitting device and / or the third sound-emitting device playing the first audio to be played is opposite to the phase of the first sound-emitting device playing the first audio to be played.

12. The method according to claim 2, characterized in that, The electronic device further includes a third sound-emitting device and a third sound outlet, the third sound outlet being located on the bottom edge of the electronic device, and the third sound-emitting device emitting sound through the third sound outlet; the method further includes: When the folding screen changes from a closed state to an unfolded state, the electronic device also uses the first sound-emitting device and / or the third sound-emitting device to play the first audio to be played; wherein the phase of the first audio to be played played by the first sound-emitting device and / or the third sound-emitting device is opposite to the phase of the first audio to be played played by the second sound-emitting device.

13. An audio playback method, characterized in that, The method is applied to an electronic device, which includes a foldable screen, a first sound-emitting device, a second sound-emitting device, a third sound-emitting device, a first sound outlet, a second sound outlet, and a third sound outlet. The first sound outlet is located on the back of the foldable screen, and the first sound-emitting device emits sound through the first sound outlet. The second sound outlet is located on one side of the foldable screen, and the second sound-emitting device emits sound through the second sound outlet. The third sound outlet is located on the bottom edge of the electronic device, and the third sound-emitting device emits sound through the third sound outlet. The method includes: The electronic device acquires a fourth audio file to be played, which includes audio from a media application. The electronic device uses the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device to play the fourth audio to be played.

14. The method according to claim 13, characterized in that, When the folding screen is in a closed state, the sound effect parameters for the fourth audio to be played by the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device are the third sound effect parameters.

15. The method according to claim 14, characterized in that, The method further includes: When the folding screen changes from a closed state to a semi-folded state, the electronic device uses the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device to play the fourth audio to be played according to the fourth sound effect parameter. The fourth sound effect parameter is different from the third sound effect parameter in one or more of the phase, loudness, and EQ parameters.

16. The method according to claim 14, characterized in that, The method further includes: When the folding screen changes from a closed state to an unfolded state, the electronic device uses the first sound-emitting device, the second sound-emitting device, and the third sound-emitting device to play the fourth audio to be played according to the fifth sound effect parameter. The fifth sound effect parameter is different from the third sound effect parameter in one or more of the phase, loudness, and EQ parameters.

17. An electronic device, characterized in that, The electronic device includes a foldable screen, a first sound-emitting device, a first sound outlet, a memory, and a processor, wherein the first sound outlet is located on the back of the foldable screen; the first sound-emitting device emits sound through the first sound outlet; the memory is used to store a computer program; and the processor executes the computer program to implement the method of any one of claims 1-16.

18. A computationally readable storage medium storing instructions, characterized in that, When the instructions are executed by the processor, they implement the method of any one of claims 1-16.

19. A computer program product, characterized in that, The computer program product includes computer instructions that, when executed by a processor, implement the method of any one of claims 1-16.

Citation Information

Patent Citations

  • Control method of electronic equipment and electronic equipment

    CN110730260A

  • Sound channel switching method and device and electronic equipment

    CN113630695A

  • Method for counteracting sound leakage and electronic equipment

    CN113746975A

  • Electronic equipment, audio adjustment method and device and medium

    CN114827323A

  • Electronic equipment, audio playing method and device and readable storage medium

    CN114860030A