Audio playing method and device, electronic equipment and storage medium

By using the closed cavity surrounded by the middle frame and the battery cover in the electronic device as the rear cavity of the speaker, and attenuating the audio signal of the target frequency band, the problem of vibration of the battery cover under the open rear cavity design is solved, improving the user experience.

CN119105723AInactive Publication Date: 2024-12-10REALME MOBILE TELECOMM SHENZHEN CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411019647.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-12-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Electronic devices with an open rear cavity design are prone to vibration when playing audio, which affects the user experience.

Method used

By attenuating the audio signal in the target frequency band by the closed cavity surrounded by the middle frame of the electronic device and the battery cover as the rear cavity of the speaker, the audio signal bands output by the speaker are matched to reduce vibration.

Benefits of technology

It effectively reduces vibration caused by the battery cover due to the speaker playing the audio signal in the target frequency band, and improves the user's experience of electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119105723A_ABST
    Figure CN119105723A_ABST
Patent Text Reader

Abstract

The invention discloses an audio playing method and device, electronic equipment and a storage medium, the audio playing method is applied to the electronic equipment, the electronic equipment comprises a middle frame, a battery cover and a first loudspeaker, and a closed cavity defined by the middle frame and the battery cover serves as a rear cavity of the first loudspeaker. The method comprises the following steps: acquiring a to-be-played first audio signal of the first loudspeaker; after a sub-audio signal of a target frequency band in the first audio signal is attenuated, the first audio signal is played through the first loudspeaker, and the target frequency band is matched with the frequency band of the audio signal output by the first loudspeaker in a target state. The target state is a state when the battery cover vibrates under the condition that the electronic equipment performs audio playing. The method can be used for the electronic equipment comprising a loudspeaker with an open-type rear cavity, and the battery cover is prevented from vibrating when the electronic equipment plays the audio.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of electronic equipment, and more specifically, to an audio playback method, device, electronic equipment and storage medium. Background Art

[0002] With the rapid advancement of technology and living standards, electronic devices (such as smart phones, tablet computers, etc.) have become one of the commonly used electronic products in people's lives. Many current electronic devices have speakers with an open back cavity design, but when playing audio, the electronic device with this design is prone to cause the battery cover of the electronic device to vibrate. Summary of the invention

[0003] The present application proposes an audio playback method, device, electronic device and storage medium, which can be used for electronic devices including speakers with open back cavities to prevent vibration of a battery cover when the electronic device plays audio.

[0004] In a first aspect, an embodiment of the present application provides an audio playback method, which is applied to an electronic device, wherein the electronic device comprises a middle frame, a battery cover and a first speaker, wherein a closed cavity surrounded by the middle frame and the battery cover serves as a back cavity of the first speaker, and the method comprises: obtaining a first audio signal to be played by the first speaker; after attenuating a sub-audio signal of a target frequency band in the first audio signal, playing the first audio signal through the first speaker, wherein the target frequency band matches the frequency band of the audio signal output by the first speaker in a target state, and the target state is a state when the battery cover vibrates when the electronic device is performing audio playback.

[0005] In a second aspect, an embodiment of the present application provides an audio playback device, which is applied to an electronic device, wherein the electronic device includes a middle frame, a battery cover and a first speaker, and a closed cavity surrounded by the middle frame and the battery cover serves as a back cavity of the first speaker. The device includes: an audio acquisition module and a playback execution module, wherein the audio acquisition module is used to acquire a first audio signal of the electronic device; the playback execution module is used to attenuate a sub-audio signal of a target frequency band in the first audio signal, and then play the first audio signal through the first speaker, the target frequency band matches the frequency band of the audio signal output by the first speaker in a target state, and the target state is the state when the battery cover vibrates when the electronic device is performing audio playback.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, comprising: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the audio playback method provided in the first aspect above.

[0007] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the audio playback method provided in the first aspect above.

[0008] The solution provided by the present application is that when the closed cavity surrounded by the middle frame and the battery cover in the electronic device is used as the back cavity of the first speaker (that is, the first speaker of the electronic device adopts an open back cavity), by obtaining the first audio signal to be played by the first speaker, the sub-audio signal of the target frequency band in the first audio signal is attenuated, and the first audio signal is played through the first speaker, and the target frequency band matches the frequency band of the audio signal output by the first speaker in the target state, and the target state is the state when the battery cover vibrates when the electronic device plays audio. Since the audio signal of the above target frequency band played by the first speaker is attenuated, the possibility of the battery cover vibrating due to the audio signal of the above target frequency band played by the first speaker can be reduced, thereby avoiding the vibration of the battery cover when the electronic device plays audio, and improving the user experience of the electronic device. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0010] Figure 1 A schematic diagram of the disassembled structure of an electronic device provided in an embodiment of the present application is shown.

[0011] Figure 2 for Figure 1 A partial cross-sectional view of the electronic device shown in FIG.

[0012] Figure 3 A schematic flow chart of an audio playback method according to an embodiment of the present application is shown.

[0013] Figure 4 A flow chart of an audio playback method according to another embodiment of the present application is shown.

[0014] Figure 5 A schematic flow chart of an audio playback method according to another embodiment of the present application is shown.

[0015] Figure 6 A flow chart of an audio playback method according to another embodiment of the present application is shown.

[0016] Figure 7 A schematic flow chart of an audio playback method according to yet another embodiment of the present application is shown.

[0017] Figure 8 A schematic flow chart of an audio playback method according to yet another embodiment of the present application is shown.

[0018] Fig. 9 A schematic flow chart of an audio playback method according to yet another embodiment of the present application is shown.

[0019] Fig.10 A block diagram of an audio playback device according to an embodiment of the present application is shown.

[0020] Fig.11 It is a block diagram of an electronic device according to an embodiment of the present application for executing the audio playback method according to an embodiment of the present application.

[0021] Fig.12 It is a storage unit of an embodiment of the present application for storing or carrying a program code for implementing the audio playback method according to an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0023] In current electronic devices, some electronic device speakers use an open back cavity design, that is, the space enclosed by the middle frame and the battery cover of the whole device is used as the back cavity of the speaker, especially the speaker near the top of the shell of the electronic device. By adopting such a design for the speaker, there is no need to design a closed cavity or BOX (box) for the speaker separately, thereby saving the production cost of the electronic device; and because the space enclosed by the middle frame and the battery cover is used as the back cavity of the speaker, the volume of the back cavity of the speaker can be increased, thereby improving the playback effect of the speaker in the mid- and low-frequency bands.

[0024] However, for electronic devices that adopt this design, when playing audio, the battery cover of the electronic device is likely to resonate with the sound waves in the back cavity of the speaker. When the playback volume is high, it is easy to cause the battery cover to produce vibrations that the user can feel, thereby affecting the user's experience of the electronic device.

[0025] In response to the above problems, the inventors have proposed an audio playback method, device, electronic device, and storage medium provided in the embodiments of the present application. By using the sealed cavity surrounded by the middle frame and the battery cover in the electronic device as the back cavity of the first speaker, the audio signal of the above target frequency band played by the first speaker is attenuated, thereby reducing the possibility of the battery cover vibrating due to the audio signal of the above target frequency band played by the first speaker, thereby avoiding the vibration of the battery cover when the electronic device plays audio, and improving the user experience of the electronic device. Among them, the specific audio playback method is described in detail in the subsequent embodiments.

[0026] The following first introduces the scenarios involved in the embodiments of the present application.

[0027] like Figure 1 and Figure 2 As shown, the scene involved in the embodiment of the present application includes an electronic device 100, which includes a middle frame 101, a battery cover 102 and a first speaker 103. The middle frame and the battery cover can be arranged along a first direction (for example Figure 1 and Figure 2 The middle frame 101 is arranged in the AA' direction shown in FIG. 1 , and the middle frame is connected to the battery cover. The first speaker 103 can be arranged on the middle frame 101 and located between the middle frame 101 and the battery cover 102. The middle frame 101 and the battery cover 102 can jointly define a closed cavity 10A, that is, the enclosed space is the closed cavity 10A, and the first speaker 103 is located in the closed cavity 10A, so that all or part of the space of the closed cavity 10A serves as the back cavity 10B of the first speaker 103.

[0028] In the above manner, it can be understood that the rear cavity 10B of the first speaker 103 is an open rear cavity, that is, the first speaker 103 itself is not provided with a rear cavity. After the battery cover 102 and the middle frame 101 are docked and installed, the shell structure of the first speaker 103 itself and the battery cover 102 and the middle frame 101 can form a closed rear cavity 10B, and then the first speaker 103 can use the rear cavity 10B to produce sound. Therefore, it is not necessary to design a closed rear cavity separately for the first speaker 103, so that the production cost of the electronic device can be saved; and, since the space enclosed by the middle frame and the battery cover is used as the rear cavity 10B of the first speaker 101, the volume of the rear cavity 10B of the first speaker 101 can be increased, thereby improving the playback effect of the first speaker 101 in the middle and low frequency bands.

[0029] In some embodiments, the electronic device may further include a battery assembly 104 and a display screen 105. The battery assembly 104 may also be disposed on the middle frame 101 and located in the space enclosed by the middle frame 101 and the battery cover 102, that is, occupying part of the above-enclosed cavity 10A; the display screen 105 may be disposed on the middle frame 101, and the middle frame 101 may be located at the edge of the display screen 105. Of course, the electronic device may also include other components, such as a circuit board located in the above-enclosed cavity 10A.

[0030] For the above electronic device 100, the present application provides an audio playback method, which attenuates the audio signal of the above target frequency band played by the first speaker 103, thereby reducing the possibility of the battery cover 102 vibrating due to the first speaker 103 playing the audio signal of the above target frequency band, thereby avoiding the battery cover 102 from vibrating when the electronic device 100 plays audio, thereby improving the user experience of the electronic device 100.

[0031] The audio playback method provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.

[0032] See also Figure 3 , Figure 3 The flowchart of the audio playback method provided by an embodiment of the present application is shown. In a specific embodiment, the audio playback method is the electronic device 100. It can be understood that the electronic device used in this embodiment can be a smart phone, a tablet computer, an e-book, etc., which is not limited here. Figure 3 The process shown is described in detail, and the audio playing method may specifically include the following steps:

[0033] Step S110: obtaining a first audio signal to be played by the first speaker.

[0034] In an embodiment of the present application, the electronic device can obtain an audio signal to be played, that is, obtain an audio signal that needs to be played for the entire device; based on the audio signal to be played by the electronic device, a first audio signal that needs to be played by the first speaker can be determined.

[0035] In some implementations, the electronic device may only include the first speaker. Then, for the electronic device, the audio signal to be played by the electronic device may be used as the first audio signal to be played by the first speaker.

[0036] In some embodiments, in addition to the above first speaker, the electronic device may also include other speakers. In this case, different speakers may need to play different parts of the audio signal to be played by the electronic device. The electronic device can decompose the audio signal to be played into the audio signal corresponding to each speaker, so as to obtain the first audio signal to be played by the above first speaker. For example, the electronic device can use multiple speakers to achieve a stereo playback effect, so different speakers can correspond to different stereo channels. At this time, the audio signal to be played by the electronic device includes the audio signal corresponding to each channel, and the audio signal to be played by each speaker is the audio signal corresponding to its corresponding channel.

[0037] Step S120: After attenuating the sub-audio signal of the target frequency band in the first audio signal, the first audio signal is played through the first speaker, and the target frequency band matches the frequency band of the audio signal output by the first speaker in a target state, and the target state is the state when the battery cover vibrates when the electronic device is playing audio.

[0038] In the embodiment of the present application, considering that the first speaker uses the space enclosed by the battery cover and the middle frame as the back cavity, the first speaker is likely to cause vibration of the battery cover when playing audio. Therefore, after the electronic device obtains the first audio signal to be played by the first speaker, it can attenuate the sub-audio signal of the target frequency band in the first audio signal, thereby avoiding the battery cover from vibrating due to the first speaker playing audio.

[0039] Among them, the target frequency band matches the frequency band of the audio signal output by the first speaker when the battery cover vibrates when the electronic device plays audio. The target frequency band can be the same as the frequency band, or the difference between the maximum value of the target frequency band and the maximum value of the frequency band is less than the first threshold, and the difference between the minimum value of the target frequency band and the minimum value of the frequency band is less than the second threshold. The specific values ​​of the first threshold and the second threshold may not be limited, for example, they may be 10 Hz, 20 Hz, etc. It can also be understood that the target frequency band can be the frequency band of the sound that causes the battery cover to resonate when playing audio. By attenuating the sub-audio signal of the target frequency band in the first audio signal, the sound of the target frequency band played by the first speaker can be weakened, thereby reducing the magnitude of the vibration of the battery cover caused by the sound.

[0040] In some implementations, the first audio signal may be separated into sub-audio signals of the target frequency band; then, for the sub-audio signals of the target frequency band, the audio parameters related to the response of the speaker may be reduced, thereby reducing the vibration of the battery cover caused by the sound.

[0041] In a possible implementation, the frequency range of the audio played when the first speaker causes the battery cover to vibrate and the vibration amplitude reaches the target amplitude when playing audio can be detected, and the frequency range can be determined as the target frequency band.

[0042] In a possible implementation, the range of the vibration frequency of the battery cover can be detected when the vibration amplitude of the battery cover reaches the target amplitude when the first speaker plays audio, based on the Helmholtz resonant cavity principle, and the range can be used as the above target frequency band. It can be understood that according to the Helmholtz resonant cavity principle, since the vibration of the battery cover is caused by the vibration of the sound, the vibration of the sound is consistent with the vibration spectrum of the battery cover, so the range of the vibration frequency of the battery cover can be used as the above target frequency band. Exemplarily, through the above method, it can be determined that the vibration spectrum of the battery cover is mainly distributed in the middle and low frequencies within 800Hz, that is, the target frequency band can be a frequency range lower than 800Hz, for example, it can be set to a range of 20Hz to 800Hz.

[0043] In some embodiments, considering that attenuation of the sub-audio signal of the above target frequency band by the electronic device may affect the playback effect of the electronic device, and in some audio playback scenarios, the user may mainly want to hear the sound of the above target frequency band, the electronic device can, when the target playback function is in an on state, attenuate the sub-audio signal of the target frequency band in the first audio signal, and then play the first audio signal through the first speaker; when the above target playback function is in an off state, the sub-audio signal of the above target frequency band of the first audio signal is not attenuated, but the first audio signal is directly played through the first speaker.

[0044] In one possible implementation, the electronic device may display a setting interface for the target playback function, which may include a setting switch control for the target playback function; the electronic device may control the target playback function to be in an on state or an off state in response to a control operation on the setting switch control.

[0045] In a possible implementation, the electronic device may detect a touch operation in a display interface, and upon detecting a sliding operation of a target sliding track in a target touch area, may control the above target playback function to be in an on state or an off state in response to the sliding operation.

[0046] In some embodiments, the electronic device can identify the frequency distribution in the audio signal to be played for the first audio signal. For example, the frequency distribution of the audio signal can be obtained through steps such as sampling, preprocessing, window function application, Fourier transform, spectrum representation and power spectrum density calculation; according to the frequency distribution, the main frequency components in the first audio signal can be determined; if the main frequency components do not include the above target frequency band, then attenuating the audio signal in the target frequency band has little impact on the audio playback effect, so the sub-audio signal of the target frequency band in the first audio signal can be attenuated and then the first audio signal can be played through the first speaker; if the main frequency components include the above target frequency band, it means that the audio signal to be played currently is mainly composed of the signal of the target frequency band. If the audio signal in the target frequency band is attenuated, the audio playback effect will be affected. Therefore, in this case, the sub-audio signal of the above target frequency band is not attenuated for the first audio signal, but the first audio signal is played directly through the first speaker.

[0047] The audio playback method provided in the embodiment of the present application is for a first speaker in an electronic device that has an open rear cavity and a closed cavity surrounded by a middle frame and a battery cover is used as a rear cavity. The audio signal of the above target frequency band played by the first speaker is attenuated, thereby reducing the possibility of the battery cover vibrating due to the audio signal of the above target frequency band played by the first speaker, thereby avoiding vibration of the battery cover when the electronic device plays audio, and improving the user experience of the electronic device.

[0048] See also Figure 4 , Figure 4 A flowchart of an audio playback method provided by another embodiment of the present application is shown. The audio playback method is applied to the above-mentioned electronic device, which includes a middle frame, a battery cover, and a first speaker. The closed cavity surrounded by the middle frame and the battery cover serves as the back cavity of the first speaker. Figure 4 The process shown is described in detail, and the audio playing method may specifically include the following steps:

[0049] Step S210: obtaining a first audio signal to be played by the first speaker.

[0050] In the embodiment of the present application, step S210 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0051] Step S220: After reducing the gain of the sub-audio signal of the target frequency band in the first audio signal, the first audio signal is played through the first speaker, and the target frequency band matches the frequency band of the audio signal output by the first speaker in a target state, and the target state is the state when the battery cover vibrates when the electronic device is playing audio.

[0052] In an embodiment of the present application, after obtaining the first audio signal to be played by the first speaker, when attenuating the sub-audio signal of the target frequency band in the first audio signal, the gain of the sub-audio signal of the target frequency band in the first audio signal can be reduced. Wherein, the gain is the ratio between the output level and the input level of the device, usually measured in decibels (dB). When the audio is played, the gain reflects the amplification or attenuation of the sound at different frequencies.

[0053] In some embodiments, when reducing the gain of the sub-audio signal of the target frequency band in the first audio signal, an equalizer (EQ) can be used to reduce the gain of the sub-audio signal of the target frequency band in the first audio signal based on the first frequency response parameter, and then the first audio signal after the gain of the sub-audio signal is reduced is played through the first speaker. Among them, EQ can adjust the amplification of the electrical signal of various frequency components respectively, compensate for the defects of the speaker and the sound field by adjusting the electrical signals of various different frequencies, compensate and modify various sound sources and other special functions. Generally, the equalizer on the mixing console can only adjust the electrical signals of three frequency bands: high frequency, medium frequency and low frequency respectively.

[0054] In the above implementation, the first frequency response parameter may be a frequency response curve, the gain corresponding to the target frequency band in the first frequency response parameter is lower than the gain corresponding to the target frequency band in the second frequency response parameter, and the second frequency response parameter may be a frequency response parameter when the first speaker plays audio without attenuating the sub-audio signal of the target frequency band in the audio signal to be played by the first speaker, that is, the frequency response parameter of the first speaker playing audio under normal circumstances, so that the EQ can reduce the gain of the sub-audio signal of the target frequency band in the first audio signal based on the first frequency response parameter.

[0055] In a possible implementation, when the gain of the sub-audio signal in the target frequency band of the first audio signal is reduced through the equalizer and based on the first frequency response parameter, the frequency response parameter of the first speaker when playing the first audio signal can be controlled according to the parameter of the equalizer corresponding to the first frequency response parameter, so that the gain of the sub-audio signal in the target frequency band is reduced. The parameters of the equalizer may include a center frequency, a gain amount, and a quality factor. The center frequency may be the frequency center point of the gain to be adjusted, the gain amount may be the amplitude change at the center frequency after the gain is adjusted, and the quality factor is used to characterize the influence bandwidth of the gain amount on the surrounding frequencies of the center frequency. The quality factor and the center frequency determine the frequency range in which the gain needs to be adjusted.

[0056] The audio playback method provided in the embodiment of the present application is aimed at the case where the first speaker in the electronic device is an open back cavity and the closed cavity surrounded by the middle frame and the battery cover is used as the back cavity. By reducing the gain of the sub-audio signal of the target frequency band in the first audio signal, the possibility of the battery cover vibrating due to the first speaker playing the audio signal of the above target frequency band can be reduced, thereby avoiding the battery cover from vibrating when the electronic device plays audio, thereby improving the user experience of the electronic device.

[0057] See also Figure 5 , Figure 5 A flowchart of an audio playback method provided by another embodiment of the present application is shown. The audio playback method is applied to the above-mentioned electronic device, which includes a middle frame, a battery cover, and a first speaker, and the closed cavity surrounded by the middle frame and the battery cover serves as the back cavity of the first speaker. Figure 5 The process shown is described in detail, and the audio playing method may specifically include the following steps:

[0058] Step S310: obtaining a first audio signal to be played by the first speaker.

[0059] In the embodiment of the present application, step S310 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0060] Step S320: If the amplitude of the first audio signal reaches the target threshold, the sub-audio signal of the target frequency band in the first audio signal is attenuated, and the first audio signal is played through the first speaker. The target frequency band matches the frequency band of the audio signal output by the first speaker in the target state, and the target state is the state when the battery cover vibrates when the electronic device is playing audio.

[0061] In an embodiment of the present application, after obtaining the first audio signal to be played by the first speaker, the amplitude of the first audio signal can be obtained, so as to determine whether to attenuate the sub-audio signal of the target frequency band in the first audio signal based on the amplitude of the first audio signal. Among them, the amplitude of the audio signal is an important parameter describing the amplitude of the sound wave, reflecting the strength or loudness of the sound signal. After obtaining the amplitude of the first audio signal, the amplitude of the first audio signal can be compared with the target threshold; according to the comparison result, if the amplitude of the first audio signal reaches the target threshold (that is, the amplitude is greater than or equal to the target threshold), it means that the volume is high when playing the first audio signal, and the vibration amplitude is large, so it is easy to cause the battery cover to vibrate. Therefore, in this case, the sub-audio signal of the target frequency band in the first audio signal can be attenuated, and the first audio signal can be played through the first speaker, so as to avoid the vibration of the battery cover caused by playing the first audio signal at a high volume. Among them, the specific value of the target threshold can be not limited, for example, it can be 30Db, 40dB, 50dB, etc.

[0062] In some implementations, the playback volume of the first speaker when playing audio causing the battery cover to vibrate can be detected, and based on the detected volume, the minimum volume can be determined from all detected volumes, and the minimum volume can be regarded as the minimum playback volume when causing the battery cover to vibrate; after obtaining the minimum playback volume, the minimum playback volume can be determined as the above target threshold. Of course, the specific method of determining the above target threshold may not be limited in the embodiments of the present application.

[0063] Step S330: If the amplitude of the first audio signal does not reach the target threshold, the first audio signal is played through the first speaker.

[0064] In an embodiment of the present application, after comparing the amplitude of the first audio signal with the target threshold, according to the comparison result, if the amplitude of the first audio signal does not reach the target threshold (that is, the amplitude is less than the target threshold), it means that the volume is low and the vibration amplitude is small when the first audio signal is played, and therefore it is not easy to cause the battery cover to vibrate. Therefore, in this case, the sub-audio signal of the target frequency band in the first audio signal may not be attenuated, but the first audio signal may be played directly through the first speaker, thereby avoiding the loss of sound in the target frequency band and ensuring the audio playback effect.

[0065] The audio playback method provided in the embodiment of the present application is aimed at the case where the first speaker in the electronic device is an open back cavity and the closed cavity surrounded by the middle frame and the battery cover is used as the back cavity. By reducing the gain of the sub-audio signal of the target frequency band in the first audio signal, the possibility of the battery cover vibrating due to the first speaker playing the audio signal of the above target frequency band can be reduced, thereby avoiding the vibration of the battery cover when the electronic device plays audio and improving the user experience of the electronic device; and, the sub-audio signal of the target frequency band is attenuated only when the amplitude of the first audio signal reaches the target threshold, and the sub-audio signal of the target frequency band is not attenuated when the amplitude of the first audio signal reaches the target threshold, thereby avoiding the loss of sound in the target frequency band and ensuring the audio playback effect.

[0066] See also Figure 6 , Figure 6 A flowchart of an audio playback method provided by another embodiment of the present application is shown. The audio playback method is applied to the above-mentioned electronic device, which includes a middle frame, a battery cover, and a first speaker, and the closed cavity surrounded by the middle frame and the battery cover serves as the back cavity of the first speaker. Figure 6 The process shown is described in detail, and the audio playing method may specifically include the following steps:

[0067] Step S410: obtaining a first audio signal to be played by the first speaker.

[0068] In the embodiment of the present application, step S410 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0069] Step S420: After attenuating the sub-audio signal of the target frequency band in the first audio signal and calibrating the time delay of the first audio signal, the first audio signal is played through the first speaker, and the target frequency band matches the frequency band of the audio signal output by the first speaker in a target state, and the target state is the state when the battery cover vibrates when the electronic device is playing audio.

[0070] In the embodiment of the present application, considering that the first speaker attenuates the sounds in the above target frequency band, and the directionality of sounds in different frequency bands is different, the speed at which the sounds perceived by the user reach the human ear will change. Therefore, after attenuating the sub-audio signal of the target frequency band in the first audio signal, the time delay of the first audio signal can also be calibrated to ensure the audio playback effect of the electronic device.

[0071] In some embodiments, since the frequency band of the sound that causes the battery cover to vibrate (i.e., the target frequency band) is usually medium and low frequency, after the sub-audio signal of the target frequency band in the first audio signal is attenuated, only the high-frequency signal that has not been attenuated remains in the first audio signal, and the high-frequency sound is more directional, so that the user can auditorily perceive that the sound played by the first speaker will reach the human ear faster. Therefore, after the sub-audio signal of the target frequency band in the first audio signal is attenuated, the delay of the first audio signal can be increased so that the delay of the first audio signal is calibrated to ensure that the sound generated when the first speaker plays the first audio signal reaches the user's ear at the same speed when the sub-audio signal of the target frequency band in the first audio signal is attenuated or not.

[0072] In one possible implementation, the target speed of the sound reaching the user's ear can be detected in advance when the first speaker plays the audio signal without attenuating the sound in the target frequency band; in addition, when the first speaker plays the audio signal, the delay of the audio signal after the sub-audio signal of the target frequency band is continuously increased, and the speed of the sound corresponding to the played audio signal reaching the user's ear is detected. When the detected speed is the same as the above target speed, the delay of the audio signal played at this time is obtained and used as the target delay. When adjusting the delay of the first audio signal above, the delay of the first audio signal can be increased to the target delay.

[0073] The audio playback method provided in the embodiment of the present application is aimed at the case where the first speaker in the electronic device is an open back cavity and the closed cavity surrounded by the middle frame and the battery cover is used as the back cavity. By reducing the gain of the sub-audio signal of the target frequency band in the first audio signal, the possibility of the battery cover vibrating due to the first speaker playing the audio signal of the above target frequency band can be reduced, thereby avoiding the vibration of the battery cover when the electronic device plays audio, thereby improving the user experience of the electronic device; in addition, after attenuating the sub-audio signal of the target frequency band in the first audio signal, the time delay of the first audio signal is also calibrated to ensure that the speed at which the sound generated when the first speaker plays the first audio signal reaches the user's ear is the same when the sub-audio signal of the target frequency band in the first audio signal is attenuated and when it is not attenuated, thereby ensuring the audio playback effect of the electronic device.

[0074] See also Figure 7 , Figure 7A flowchart of an audio playback method provided by another embodiment of the present application is shown. The audio playback method is applied to the above-mentioned electronic device, which includes a middle frame, a battery cover, and a first speaker, and the closed cavity surrounded by the middle frame and the battery cover serves as the back cavity of the first speaker. In addition, in the embodiment of the present application, the electronic device may also include a second speaker, and a separate back cavity is provided in the second speaker. The following will focus on Figure 7 The process shown is described in detail, and the audio playing method may specifically include the following steps:

[0075] Step S510: obtaining a first audio signal to be played by the first speaker.

[0076] Step S520: After attenuating the sub-audio signal of the target frequency band in the first audio signal, the first audio signal is played through the first speaker, and the target frequency band matches the frequency band of the audio signal output by the first speaker in a target state, and the target state is the state when the battery cover vibrates when the electronic device is playing audio.

[0077] In the embodiment of the present application, step S510 and step S520 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0078] Step S530: obtaining a second audio signal to be played by the second speaker.

[0079] In the embodiment of the present application, in addition to the first speaker with an open back cavity, the electronic device may also include the second speaker, and the second speaker is provided with a separate back cavity, that is, the back cavity of the second speaker is the second speaker itself. When the electronic device plays audio, it may also obtain a second audio signal to be played by the second speaker.

[0080] The second audio signal may be the same as the first audio signal; the second audio signal may also be different from the first audio signal, for example, the first audio signal and the second audio signal correspond to audio signals of different channels respectively.

[0081] Step S540: After enhancing the sub-audio signal in the target frequency band in the second audio signal, the second audio signal is played through the second speaker.

[0082] In the embodiment of the present application, since the sub-audio signal of the target frequency band in the first audio signal played by the first speaker is attenuated, it will affect the loudness and sound quality of the entire electronic device. Therefore, for the second audio signal to be played by the second speaker, the sub-audio signal of the target frequency band in the second audio signal can be enhanced, and then the second audio signal can be played through the second speaker. In this way, the loss of the sound of the target frequency band in the audio signal played by the first speaker can be compensated, thereby ensuring the audio playback effect of the electronic device. Among them, the method of enhancing the sub-audio signal of the target frequency band in the second audio signal can refer to the method of attenuating the sub-audio signal of the target frequency band in the first audio signal in the aforementioned embodiment. For example, the gain of the sub-audio signal of the target frequency band in the second audio signal can be increased through an equalizer EQ and based on the second frequency response parameter described in the aforementioned embodiment, and then the second audio signal can be played through the second speaker.

[0083] In some embodiments, it is also considered that the second speaker enhances the sound in the above target frequency band, and the directionality of sounds in different frequency bands is different, so the speed at which the sound perceived by the user reaches the human ear will change. Therefore, after enhancing the sub-audio signal of the target frequency band in the second audio signal, the time delay of the second audio signal can also be calibrated to ensure the audio playback effect of the electronic device.

[0084] In a possible implementation, different from the above first audio signal, after the sub-audio signal of the target frequency band in the second audio signal is attenuated, the delay of the second audio signal can be reduced, so that the delay of the second audio signal is calibrated to ensure that the sound generated by the second speaker when playing the first audio signal reaches the user's ear at the same speed whether the sub-audio signal of the target frequency band in the second audio signal is enhanced or not.

[0085] It should be noted that there is no limitation on the execution order of the above steps S510 and S520, and the above steps S530 and S540. The above steps S510 and S520, and the above steps S530 and S540 can be executed simultaneously to ensure that the first speaker and the second speaker play the audio signal synchronously.

[0086] The audio playback method provided in the embodiment of the present application can reduce the gain of the sub-audio signal of the target frequency band in the first audio signal to be played by the first speaker, thereby reducing the possibility of the battery cover vibrating due to the audio signal of the above target frequency band played by the first speaker, thereby avoiding the battery cover from vibrating when the electronic device plays audio and improving the user experience of the electronic device; in addition, for the second audio signal to be played by the second speaker, the sub-audio signal of the target frequency band in the second audio signal is enhanced, thereby compensating for the loss of sound in the target frequency band in the audio signal played by the first speaker, thereby ensuring the audio playback effect of the electronic device.

[0087] See also Figure 8 , Figure 8 FIG. 1 is a flow chart showing an audio playback method provided by yet another embodiment of the present application. The audio playback method is applied to the above electronic device. Figure 8 The process shown is described in detail, and the audio playing method may specifically include the following steps:

[0088] Step S610: obtaining a first audio signal to be played by the first speaker.

[0089] In the embodiment of the present application, step S610 can refer to the contents of the aforementioned embodiment and will not be described again here.

[0090] Step S620: If the current audio playback scene of the electronic device is a target playback scene, the sub-audio signal of the target frequency band in the first audio signal is attenuated, and the first audio signal is played through the first speaker. The importance of the sound of the target frequency band in the target playback scene is lower than the importance of the sound of the target frequency band in other audio playback scenes.

[0091] In the embodiment of the present application, considering that the electronic device attenuates the sub-audio signal of the above target frequency band, which will cause the loss of the sound of the target frequency band, and in some audio playback scenarios, the importance of the sounds of these target frequency bands is relatively high, and the user does not want to lose these sounds, therefore, after obtaining the audio signal to be played by the first speaker, the audio playback scene in which the current electronic device is located can be determined; determine whether the audio playback scene is the target playback scene, and the importance of the sound of the target frequency band in the target playback scene is lower than the importance of the sound of the target frequency band in other audio playback scenes; if the audio playback scene in which the electronic device is located is the target playback scene, it means that the importance of the sound of the target frequency band is relatively low in the audio playback scene, and therefore the sub-audio signal of the target frequency band in the first audio signal can be attenuated, and the first audio signal can be played through the first speaker; and if the audio playback scene in which the electronic device is located is not the target playback scene, it means that the importance of the sound of the target frequency band in the audio playback scene is relatively high, and therefore the sub-audio signal of the target frequency band in the first audio signal can be not attenuated, but the first audio signal can be directly played through the first speaker.

[0092] In some embodiments, the above audio playback scene can be determined based on at least one of the application currently playing audio on the electronic device and the type of audio currently being played. Among them, the above audio types can be divided according to the audio type, for example, they can include music audio, voice audio, broadcast audio, etc. It can be understood that when the application playing the audio is different, the content of the audio played by the application is also different, so the importance of the sound of the target frequency band may also be different. Similarly, when the above audio types are different, the content of the audio is also different, so the importance of the sound of the target frequency band may also be different. Therefore, the audio playback scene can be determined based on at least one of the application currently playing audio on the electronic device and the type of audio currently being played, and the determined audio playback scene can reflect the current demand for the sound of the target frequency band, and also reflect the importance of the sound of the target frequency band.

[0093] In a possible implementation, the application program for playing audio and the type of audio played may form different combinations, and each combination may serve as an audio playing scenario.

[0094] In some embodiments, the above target playback scene can be determined in advance based on the importance of the audio playback scene, and the target playback scene can include at least one playback scene; the electronic device can determine whether the current audio playback scene matches any playback scene in the target playback scene. If it matches any playback scene in the target playback scene, it can be determined that the current audio playback scene is the target playback scene; if it does not match any playback scene in the target playback scene, it can be determined that the current audio playback scene is not the target playback scene.

[0095] In some embodiments, the scene priority corresponding to the current audio playback scene can be determined, and the scene priority is used to characterize the importance of the sound in the target frequency band, and the scene priority can be positively correlated with the importance of the sound in the target frequency band. After the electronic device determines the above scene priority, it can determine whether the scene priority is greater than the target priority; if the scene priority is not greater than the target priority, it can be determined that the above audio playback scene is the target playback scene; if the scene priority is greater than the target priority, it can be determined that the above audio playback scene is not the target playback scene. Among them, the scene priorities corresponding to different audio playback scenes can be determined in advance, and the correspondence between different audio playback scenes and scene priorities can be stored in the electronic device. Based on the correspondence, the scene priority corresponding to the above current audio playback scene can be determined.

[0096] In a possible implementation, since the above scene priority characterizes the importance of the sound of the target frequency band, the attenuation degree of the sub-audio signal of the target frequency band corresponding to different scene priorities may be different; based on the above scene priority, the corresponding attenuation degree may be determined, and then the sub-audio signal of the target frequency band in the first audio signal may be attenuated according to the determined attenuation degree. The above attenuation degree may be negatively correlated with the above scene priority, that is, the lower the scene priority, the greater the attenuation degree, and the higher the scene priority, the smaller the attenuation degree.

[0097] The audio playback method provided in the embodiment of the present application is aimed at the case where the first speaker in the electronic device is an open back cavity and the closed cavity surrounded by the middle frame and the battery cover is used as the back cavity. By reducing the gain of the sub-audio signal of the target frequency band in the first audio signal, the possibility of the battery cover vibrating due to the first speaker playing the audio signal of the above target frequency band can be reduced, thereby avoiding the vibration of the battery cover when the electronic device plays audio and improving the user experience of the electronic device; and, the sub-audio signal of the target frequency band is attenuated only when the current audio playback scene is the target playback scene, and the sub-audio signal of the target frequency band is not attenuated when the current audio playback scene is not the target playback scene, thereby ensuring the playback effect of the electronic device and meeting the playback needs of the user in different audio playback scenes.

[0098] It should be noted that the above different embodiments can be combined with each other. For example, the electronic device includes a middle frame, a battery cover, a first speaker and a second speaker. The closed cavity surrounded by the middle frame and the battery cover serves as the back cavity of the first speaker. The second speaker is provided with a back cavity. Fig. 9 After acquiring the first audio signal to be played by the first speaker and the second audio signal to be played by the second speaker, the electronic device can determine whether the amplitude of the first audio signal reaches the target threshold; if the target threshold is reached, the sub-audio signal of the target frequency band in the first audio signal is attenuated, and the delay of the first audio signal is increased, and the first audio signal is played through the first speaker; in addition, the sub-audio signal of the target frequency band in the second audio signal is enhanced, and the delay of the second audio signal is reduced, and the second audio signal is played through the second speaker.

[0099] See also Fig.10 , which shows a structural block diagram of an audio playback device 700 provided in an embodiment of the present application. The audio playback device 700 applies the above-mentioned electronic device, which includes a middle frame, a battery cover and a first speaker, and the closed cavity surrounded by the middle frame and the battery cover serves as the back cavity of the first speaker. The audio playback device 700 includes: an audio acquisition module 710 and a playback execution module 720. Among them, the audio acquisition module 710 is used to acquire a first audio signal of the electronic device; the playback execution module 720 is used to attenuate the sub-audio signal of the target frequency band in the first audio signal, and then play the first audio signal through the first speaker, the target frequency band matches the frequency band of the audio signal output by the first speaker in the target state, and the target state is the state when the battery cover vibrates when the electronic device performs audio playback.

[0100] In some implementations, the play execution module 720 may be specifically configured to: after reducing the gain of the sub-audio signal in the target frequency band of the first audio signal, play the first audio signal through the first speaker.

[0101] In a possible implementation, the playback execution module 720 may also be configured to reduce the gain of a sub-audio signal in a target frequency band in the first audio signal through an equalizer and based on a first frequency response parameter; and play the first audio signal after the gain of the sub-audio signal is reduced through the first speaker.

[0102] In some implementations, the play execution module 720 may be specifically configured to: if the amplitude of the first audio signal reaches a target threshold, attenuate the sub-audio signal of the target frequency band in the first audio signal, and then play the first audio signal through the first speaker.

[0103] In a possible implementation, the play execution module 720 may also be configured to play the first audio signal through the first speaker if the amplitude of the first audio signal does not reach a target threshold.

[0104] In some implementations, the play execution module 720 may be specifically configured to: attenuate the sub-audio signal of the target frequency band in the first audio signal, calibrate the time delay of the first audio signal, and then play the first audio signal through the first speaker.

[0105] In some embodiments, the audio acquisition module 710 can also be used to acquire a second audio signal to be played by the second speaker; the playback execution module 720 can also be used to enhance the sub-audio signal of the target frequency band in the second audio signal and then play the second audio signal through the second speaker.

[0106] In a possible implementation, the play execution module 720 may also be used to enhance the sub-audio signal of the target frequency band in the second audio signal, and after calibrating the time delay of the second audio signal, play the second audio signal through the second speaker.

[0107] In some embodiments, the playback execution module 720 can be specifically used for: if the audio playback scene in which the electronic device is currently located is a target playback scene, then after attenuating the sub-audio signal of the target frequency band in the first audio signal, the first audio signal is played through the first speaker, and the importance of the sound of the target frequency band in the target playback scene is lower than the importance of the sound of the target frequency band in other audio playback scenes.

[0108] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here.

[0109] In several embodiments provided in the present application, the coupling between modules may be electrical, mechanical or other forms of coupling.

[0110] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0111] In summary, the solution provided by the present application is that when the closed cavity surrounded by the middle frame and the battery cover in the electronic device serves as the back cavity of the first speaker, the first audio signal to be played by the first speaker is obtained, and the sub-audio signal of the target frequency band in the first audio signal is attenuated, and then the first audio signal is played through the first speaker, and the target frequency band matches the frequency band of the audio signal output by the first speaker in the target state, and the target state is the state when the battery cover vibrates when the electronic device plays audio. Since the audio signal of the above target frequency band played by the first speaker is attenuated, the possibility of the battery cover vibrating due to the audio signal of the above target frequency band played by the first speaker can be reduced, thereby avoiding the vibration of the battery cover when the electronic device plays audio, and improving the user experience of the electronic device.

[0112] Please refer to Fig.11 , which shows a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 100 may be an electronic device capable of running applications, such as a smart phone, a tablet computer, an e-book, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, and one or more applications, wherein the one or more applications may be stored in the memory 120 and configured to be executed by one or more processors 110, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.

[0113] The processor 110 may include one or more processing cores. The processor 110 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes various functions and processes data of the electronic device 100 by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120. Optionally, the processor 110 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 110 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 110, but may be implemented separately through a communication chip.

[0114] The memory 120 may include a random access memory (RAM) or a read-only memory (ROM). The memory 120 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 120 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc. The data storage area may also store data (such as a phone book, audio and video data, chat record data) created by the electronic device 100 during use.

[0115] Please refer to Fig.12 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable medium 800 stores program codes, which can be called by a processor to execute the method described in the above method embodiment.

[0116] The computer readable storage medium 800 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 800 includes a non-transitory computer-readable storage medium. The computer readable storage medium 800 has storage space for program code 810 that performs any method step in the above method. These program codes can be read from or written to one or more computer program products. The program code 810 can be compressed, for example, in an appropriate form.

[0117] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. An audio playback method, characterized in that: Applied to an electronic device, the electronic device comprises a middle frame, a battery cover and a first speaker, the closed cavity surrounded by the middle frame and the battery cover serves as a back cavity of the first speaker, and the method comprises: Acquire a first audio signal to be played by the first speaker; After attenuating the sub-audio signal of the target frequency band in the first audio signal, the first audio signal is played through the first speaker, and the target frequency band matches the frequency band of the audio signal output by the first speaker in a target state, and the target state is the state when the battery cover vibrates when the electronic device is playing audio.

2. The method according to claim 1, characterized in that After attenuating the sub audio signal of the target frequency band in the first audio signal, playing the first audio signal through the first speaker includes: After reducing the gain of the sub-audio signal in the target frequency band of the first audio signal, the first audio signal is played through the first speaker.

3. The method according to claim 2, characterized in that After reducing the gain of the sub-audio signal in the target frequency band in the first audio signal, playing the first audio signal through the first speaker includes: Using an equalizer and based on a first frequency response parameter, reducing a gain of a sub-audio signal in a target frequency band of the first audio signal; The first audio signal after the gain of the sub audio signal is reduced is played through the first speaker.

4. The method according to claim 1, characterized in that: After attenuating the sub audio signal of the target frequency band in the first audio signal, playing the first audio signal through the first speaker includes: If the amplitude of the first audio signal reaches the target threshold, the sub-audio signal in the target frequency band of the first audio signal is attenuated, and then the first audio signal is played through the first speaker.

5. The method according to claim 4, characterized in that The method further comprises: If the amplitude of the first audio signal does not reach the target threshold, the first audio signal is played through the first speaker.

6. The method according to claim 1, characterized in that After attenuating the sub audio signal of the target frequency band in the first audio signal, playing the first audio signal through the first speaker includes: After attenuating the sub audio signal of the target frequency band in the first audio signal and calibrating the time delay of the first audio signal, the first audio signal is played through the first speaker.

7. The method according to any one of claims 1 to 6, characterized in that: The electronic device further includes a second speaker, wherein the second speaker is provided with a back cavity, and the method further includes: Acquire a second audio signal to be played by the second speaker; After enhancing the sub-audio signal in the target frequency band in the second audio signal, the second audio signal is played through the second speaker.

8. The method according to claim 7, characterized in that After enhancing the sub-audio signal in the target frequency band in the second audio signal, playing the second audio signal through the second speaker includes: After enhancing the sub-audio signal of the target frequency band in the second audio signal and calibrating the time delay of the second audio signal, the second audio signal is played through the second speaker.

9. The method according to any one of claims 1 to 6, characterized in that: After attenuating the sub audio signal of the target frequency band in the first audio signal, playing the first audio signal through the first speaker includes: If the current audio playback scene of the electronic device is a target playback scene, the first audio signal is played through the first speaker after the sub-audio signal of the target frequency band in the first audio signal is attenuated, and the importance of the sound of the target frequency band in the target playback scene is lower than the importance of the sound of the target frequency band in other audio playback scenes.

10. An audio playback device, characterized in that: Applied to an electronic device, the electronic device comprises a middle frame, a battery cover and a first speaker, the closed cavity surrounded by the middle frame and the battery cover serves as a back cavity of the first speaker, the device comprises: an audio acquisition module and a playback execution module, wherein: The audio acquisition module is used to acquire a first audio signal of the electronic device; The playback execution module is used to attenuate the sub-audio signal of the target frequency band in the first audio signal and then play the first audio signal through the first speaker. The target frequency band matches the frequency band of the audio signal output by the first speaker in a target state. The target state is the state when the battery cover vibrates when the electronic device is playing audio.

11. An electronic device, characterized in that: include: one or more processors; Memory; One or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs are configured to execute the method according to any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program codes, which can be called by a processor to execute the method according to any one of claims 1 to 9.

Citation Information

Cited By

  • Audio distortion repairing method, audio playing method and system

    CN120015056A