Audio playing method and device, electronic equipment and storage medium

By using the combination of the first audio output module and the second audio output module in the electronic device to play the call audio signal and ultrasonic signal, the sound leakage problem during the call is solved, and better privacy protection and cost-effectiveness are achieved.

CN119211412AInactive Publication Date: 2024-12-27REALME MOBILE TELECOMM SHENZHEN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411381439.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-29
Publication Date
2024-12-27
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Electronic devices are prone to sound leakage when talking, resulting in user privacy leakage. The existing technology is complex and costly, and the sound leakage prevention effect is poor.

Method used

By using the first audio output module in the electronic device to play the call audio signal and play the ultrasonic signal through the second audio output module, the output sound forms an ultrasonic frequency band after it propagates to the far-field position, the amplitude of the ultrasonic signal is greater than the threshold value, and the frequency is It is greater than the maximum audible frequency range of the human ear to avoid sound leakage.

Benefits of technology

It effectively avoids sound leakage phenomenon of electronic devices during calls, improves sound leakage effect, reduces implementation costs, is not restricted by space, and avoids the need to increase additional devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211412A_ABST
    Figure CN119211412A_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 first audio output module and a second audio output module, and the method comprises the following steps: obtaining a call audio signal to be played in a call process; the call audio signal is played through the first audio output module, and an ultrasonic signal is played through the second audio output module, so that sound output by the first audio output module and sound output by the second audio output module are transmitted to a far field position to form sound of a first frequency, the amplitude of the ultrasonic signal is greater than an amplitude threshold, and the first frequency is greater than the maximum value of an audible frequency range of human ears. According to the method, the phenomenon of sound leakage of the electronic equipment during the call can be effectively avoided.
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. Among the many functions of electronic devices, voice calls are an important function of electronic devices. However, when people use electronic devices to make calls, the electronic devices may leak sound, resulting in the leakage of user privacy. Summary of the invention

[0003] The present application proposes an audio playback method, device, electronic device and storage medium, which can effectively prevent the electronic device from leaking sound during a call.

[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 includes a first audio output module and a second audio output module, and the method includes: obtaining a call audio signal to be played during a call; playing the call audio signal through the first audio output module, and playing an ultrasonic signal through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module form a sound of a first frequency after propagating to a far-field position, the amplitude of the ultrasonic signal is greater than an amplitude threshold, and the first frequency is greater than the maximum value of the audible frequency range of the human ear.

[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 first audio output module and a second audio output module, and the device includes: an audio acquisition module and a playback execution module, wherein the audio acquisition module is used to acquire a call audio signal to be played during a call; the playback execution module plays the call audio signal through the first audio output module, and plays an ultrasonic signal through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module form a sound of a first frequency after propagating to a far-field position, the amplitude of the ultrasonic signal is greater than an amplitude threshold, and the first frequency is greater than the maximum value of the audible frequency range of the human ear.

[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 to obtain the call audio signal to be played during the call, play the call audio signal through the first audio output module, and play the ultrasonic signal through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module form a sound of the first frequency after propagating to the far field position, the amplitude of the ultrasonic signal is greater than the amplitude threshold, and the first frequency is greater than the maximum value of the audible frequency range of the human ear. In this way, when playing the call audio signal, the sound corresponding to the call audio signal gradually transfers to the ultrasonic frequency band that the human ear cannot hear as it propagates, thereby effectively avoiding the phenomenon of sound leakage in the electronic device during a call. 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 an application environment provided by an embodiment of the present application is shown.

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

[0012] Figure 3 A schematic diagram showing a principle of an audio playback method provided in an embodiment of the present application is shown.

[0013] Figure 4 A schematic diagram showing a principle of an audio playback method provided in an 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 schematic flow chart of an audio playback method according to another embodiment of the present application is shown.

[0016] Figure 7 A flow chart of an audio playback method according to 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 diagram of an interface provided in an embodiment of the present application is shown.

[0019] Fig.10 A schematic diagram of an interface provided in an embodiment of the present application is shown.

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

[0021] Fig.12 A schematic diagram of an interface provided in an embodiment of the present application is shown.

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

[0023] Fig.14 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.

[0024] Fig.15 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

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

[0026] When an electronic device interacts with other devices to provide users with voice call functions, the earpiece (also called a receiver) of the electronic device can play audio signals from other devices, converting the audio signals into sound and transmitting them to the user's ears. In the process of the electronic device outputting sound, due to the hardware structure of the electronic device, the earpiece may leak sound, which may cause the above-mentioned voice communication content to be heard by people around, resulting in the leakage of user privacy and affecting the user's privacy security. Especially in quiet public places such as elevators, offices, taxis, subways, etc., privacy leakage caused by sound leakage has become an important pain point scenario for users.

[0027] In the related art, the method of eliminating call leakage is mainly achieved by emitting a sound wave that is 180 degrees out of phase with the call sound. For example, a dual-diaphragm / dipole speaker can be used, and the two diaphragms emit sound waves with opposite phases but equal amplitudes, which cancel each other out in the far field to achieve the purpose of preventing sound leakage; for another example, an exciter similar to a motor is used to drive the screen to vibrate, and through the screen sound-generating mechanism, sound waves with opposite phases to the earpiece are emitted, which cancel each other out in the far field, and can also prevent sound leakage. However, in this way, the spatial restriction on the phase is strong. To achieve the effect of mutual cancellation, the phase difference must be 180 degrees, and this requirement can only be achieved at certain specific spatial points, so the effect of preventing sound leakage is not good; in addition, this method requires the addition of a sound unit and an audio amplifier, which makes the technology complicated and increases the manufacturing cost of the electronic device.

[0028] In response to the above problems, the inventors proposed the audio playback method, device, electronic device and storage medium provided in the embodiments of the present application, which plays the call audio signal through the first audio output module and plays the ultrasonic signal through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module form a sound of the first frequency after propagating to the far field position, the amplitude of the ultrasonic signal is greater than the amplitude threshold, and the first frequency is greater than the maximum value of the audible frequency range of the human ear. Therefore, when playing the call audio signal, the sound corresponding to the call audio signal gradually transfers to the ultrasonic frequency band that the human ear cannot hear as it propagates, thereby effectively avoiding the phenomenon of sound leakage in the electronic device during a call. Among them, the specific audio playback method is described in detail in the subsequent embodiments.

[0029] It should be noted that the electronic device in the embodiment of the present application includes a first audio output module and a second audio output module, the first audio output module can be a handset (also called a receiver, an upper speaker), and the second audio output module can be a speaker (also called a horn, a lower speaker). The first audio output module can be set at a position close to the top of the electronic device, and the second audio output module can be set at a position close to the bottom of the electronic device. Among them, the first audio output module and the second audio output module can both be used to play the audio signal transmitted by the other end of the call during the electronic device making a call.

[0030] For example, Figure 1 As shown, taking the electronic device as a mobile phone 10 as an example, the mobile phone 10 includes an earpiece and a speaker, wherein the earpiece can be arranged in a top area 11 of the mobile phone 10 , and the speaker can be arranged in a bottom area 12 of the mobile phone 10 .

[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 2 , Figure 2 A schematic diagram of a flow chart of an audio playback method provided by an embodiment of the present application is shown. In a specific embodiment, the audio playback method is applied to the above-mentioned electronic device. Figure 2 The process shown is described in detail, and the audio playing method may specifically include the following steps:

[0033] Step S110: Acquire a call audio signal to be played during a call.

[0034] In an embodiment of the present application, the electronic device can obtain a call audio signal to be played during a call. The above call process can be a process after the electronic device has established a call with the device of the call object; the above call process can also be a process in which the electronic device is requesting to establish a call with the device of the call object.

[0035] Among them, when the call process is the process after the electronic device has established a call with the device of the call party, the call audio signal to be played can be an audio signal corresponding to the call content transmitted by the device of the call party to the electronic device.

[0036] In the case where the call process is the process in which the electronic device is requesting to establish a call with the device of the call object, the above call audio signal can be an audio signal that needs to be played while waiting for the call object to answer the call. At this time, by playing the call audio signal, the user can be prompted that the call object is currently waiting for the call object to respond to the request to establish the call. For example, the electronic device sends a request to establish a call to other devices through the mobile communication system. In the process of waiting for the call object's device to respond to the request, the mobile communication system will transmit a ring tone to the electronic device, and the electronic device will play the ring tone through the device to prompt the user that the call object's device is currently waiting for a response.

[0037] It should be noted that in the embodiments of the present application, the call established between the electronic device and the device of the call object can be implemented based on voice service or data service. Among them, the voice service implementation depends on the operator's communication network, and the circuit switching (CS) technology can be used to implement the call; the data service implementation can be implemented by packet switching (PS) technology, such as VoIP (Voice over Internet Protocol) technology.

[0038] Step S120: Play the call audio signal through the first audio output module, and play the ultrasonic signal through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module form a sound of a first frequency after propagating to a far-field position, the amplitude of the ultrasonic signal is greater than the amplitude threshold, and the first frequency is greater than the maximum value of the audible frequency range of the human ear.

[0039] In an embodiment of the present application, after the electronic device obtains the call audio signal to be played, it can play the call audio signal through the first audio output module and play the ultrasonic signal through the second audio output module. Since the amplitude of the ultrasonic signal is greater than the amplitude threshold, the sound output by the first audio output module when playing the call audio signal and the sound output by the second audio output module when playing the ultrasonic signal can form a sound in the ultrasonic frequency band after propagating to the far-field position, so that the frequency of the sound at the far-field position is greater than the maximum value of the audible frequency range of the human ear, so that the human ear cannot hear the sound output when playing the call audio signal at the far-field position, thereby avoiding the phenomenon of sound leakage in the electronic device during a call. Among them, the far-field position can refer to a position far away from the sound source, for example, it can refer to a position where the distance from the sound is greater than 1 meter.

[0040] It can be understood that according to the principle of nonlinear acoustic parameter conversion, in the propagation of high-intensity sound waves (amplitude greater than the above amplitude threshold), the superposition principle is no longer applicable, and sound waves of different frequencies will interact to produce sound waves of combined frequencies. For example, the frequency of the above call audio signal can be f1, and the frequency of the above ultrasonic signal can be f2. Then, after the sound output by the first audio output module and the sound output by the second audio output module propagate to the far field position, a difference frequency wave of (f2-f1) and a sum frequency wave of (f2+f1) can be formed. And because the frequency of human voice (the sound output by the first audio output module when playing the call audio signal) is much lower than the frequency of ultrasonic wave, as the sound propagates, the energy of the sound output by the first audio output module when playing the call audio signal will gradually transfer to the sound wave in the high frequency band (the sound output by the second audio output module when playing the ultrasonic signal), so that the energy of human voice is gradually transferred to the ultrasonic frequency band that cannot be heard by the human ear, thereby effectively avoiding the phenomenon of sound leakage in electronic equipment during calls.

[0041] In some embodiments, the frequency of the above ultrasonic signal can satisfy: after the sound corresponding to the ultrasonic signal and the sound corresponding to the call audio signal propagate to the far-field position, the frequency of the difference frequency wave formed is still greater than the maximum value of the audible frequency range of the human ear. For example, the maximum value of the audible frequency range of the human ear is 20KHz (kilohertz), and the frequency of the sound corresponding to the call audio signal is 20Hz (hertz) ~ 3.4KHz, then the frequency of the ultrasonic signal can be greater than 24KHz, so that even if the sound output by the first audio output module and the sound output by the second audio output module form a difference frequency wave after propagating to the far-field position, the frequency is still greater than the maximum value of the audible frequency range of the human ear, so that the human ear at this position cannot hear the sound played during the call.

[0042] In some embodiments, the first audio output module in the embodiment of the present application may be a handset, and the second audio output module may be a speaker. The electronic device may determine whether the audio playback mode of the current call is the handset playback mode. In the handset playback mode, the electronic device plays the call audio transmitted by the device of the call partner through the handset; if the audio playback mode of the current call is the handset playback mode, the call audio signal may be played through the handset, and the ultrasonic signal with an amplitude greater than the amplitude threshold may be played through the speaker, so that the sound corresponding to the call audio signal and the sound corresponding to the ultrasonic signal are propagated to the far-field position to form a sound of the first frequency that cannot be heard by the human ear.

[0043] For example, see Figure 3 , when the audio playback mode used during a call is the handset playback mode, the electronic device plays the call audio signal with a frequency of f1 through the handset, and the output sound has a frequency of f1, and plays the ultrasonic signal with a frequency of f2 through the speaker, and the output sound has a frequency of f2. According to the principle of nonlinear acoustic parameter conversion, after the sound played by the handset and the speaker propagates to the far field position, a difference frequency wave (f2-f1) and a sum frequency wave (f2+f1) that are inaudible to the human ear are formed, thereby achieving the effect of preventing sound leakage. For details, please refer to Figure 4 The electronic device can transmit the call audio signal to the audio power amplifier (Power Amplifier) ​​1 through the system on a chip (System on a Chip, SOC), and then the audio power amplifier 1 amplifies the call audio signal and plays it through the earpiece; and while playing the call audio signal, the ultrasonic signal is transmitted to the audio power amplifier 2 through the system on a chip, and the audio power amplifier 2 amplifies the ultrasonic signal and plays it through the speaker.

[0044] In addition, after determining whether the audio playback mode of the current call is the earpiece playback mode, if the audio playback mode of the current call is not the earpiece playback mode, but the speaker mode is adopted, that is, the call audio signal is played through the speaker, therefore, the electronic device may not perform anti-sound leakage processing, but directly play the call audio signal to be played through the speaker.

[0045] It can be understood that although both the handset and the speaker in the electronic device can play the call audio signal, the intensity of the sound that the user can perceive when the handset and the speaker play the call audio signal is different. For example, when the electronic device is configured with the same volume level, the intensity of the sound that the user can perceive will be higher when the speaker plays the call audio signal. When playing the call audio signal through the speaker, since the electronic device itself is in an external state, the user wants to hear the call content even if his ear is not close to the electronic device. Therefore, when the audio playback mode is not the handset playback mode but the speaker mode, the sound leakage prevention processing can be omitted; however, in the process of playing the call audio through the handset, the sound played by the handset may still be heard by other people. Therefore, by performing the sound leakage prevention processing, that is, playing the call audio signal through the handset, and playing the ultrasonic signal with an amplitude greater than the amplitude threshold through the speaker, the sound output by the handset can be prevented from being heard by others to a greater extent.

[0046] The audio playback method provided in the embodiment of the present application plays the call audio signal during a call, based on the principle of nonlinear acoustic parameter conversion, through the first audio output module to play the call audio signal, and through the second audio output module to play the ultrasonic signal, so that the energy of the sound output during the call audio signal is gradually transferred to the sound waves in the high-frequency band (the sound waves corresponding to the ultrasonic signal), so that the energy of the human voice is gradually transferred to the ultrasonic frequency band that cannot be heard by the human ear, thereby effectively preventing the electronic device from leaking sound during a call; and since there is no need to emit a sound wave that is 180 degrees out of phase with the call sound, it is not limited by space, can improve the effect of preventing sound leakage, and there is no need to add additional devices to emit sound waves with opposite phases, so it can also reduce the implementation cost of electronic equipment for preventing sound leakage.

[0047] See also Figure 5 , Figure 5 A schematic diagram of a flow chart of an audio playback method provided by another embodiment of the present application is shown. The audio playback method is applied to the above electronic device. Figure 5 The process shown is described in detail, and the audio playing method may specifically include the following steps:

[0048] Step S210: Acquire a call audio signal to be played during a call.

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

[0050] Step S220: Based on the maximum value of the audible frequency range, determine a second frequency of the ultrasonic signal, where the second frequency is greater than the maximum value.

[0051] In an embodiment of the present application, when performing sound leakage prevention processing during a call, the electronic device can determine the frequency of the ultrasonic signal to be played. The electronic device can determine the frequency of the ultrasonic signal (as the second frequency) based on the maximum value of the audible frequency range of the human ear, and the determined second frequency of the ultrasonic signal is at least greater than the maximum value of the above audible frequency range.

[0052] In some embodiments, when determining the second frequency of the ultrasonic signal, the electronic device may obtain the sum of the maximum value of the audible frequency range and the fixed value, and use the sum as the frequency of the ultrasonic signal to be played. The specific value of the fixed value may not be limited, for example, it may be 3KHz, 4KHz, 5KHz, etc. It can be understood that on the basis of the maximum value of the audible frequency range, the frequency of the fixed value is increased as the frequency of the ultrasonic signal to be played, so that the sound output by the first audio output module and the sound output by the second audio output module are propagated to the far field position to form a difference frequency wave, and the frequency of the difference frequency wave is still high, thereby achieving the effect of preventing sound leakage.

[0053] Step S230: Play the call audio signal through the first audio output module, and play the ultrasonic signal of the second frequency through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module form a sound of the first frequency after propagating to the far-field position, the amplitude of the ultrasonic signal is greater than the amplitude threshold, and the first frequency is greater than the maximum value of the audible frequency range of the human ear.

[0054] In an embodiment of the present application, the electronic device can play the call audio signal through the first audio output module, and play the ultrasonic signal of the second frequency through the second audio output module, so that the energy of the sound output during the call audio signal will gradually be transferred to the sound waves in the high-frequency band (the sound waves corresponding to the ultrasonic signal), thereby achieving the effect of preventing sound leakage.

[0055] In some embodiments, the ultrasonic signal of the second frequency played by the electronic device through the second audio output module may be a pre-stored audio file corresponding to the ultrasonic signal of the second frequency. When playing the ultrasonic signal of the second frequency, the audio file can be directly read and played, thereby achieving the playback of the ultrasonic signal of the second frequency.

[0056] In some embodiments, an audio editing application may be installed in the electronic device, and the audio editing application may generate an ultrasonic signal. The electronic device may run the audio editing application, generate an ultrasonic signal of a second frequency through the audio editing application, and then play the ultrasonic signal generated by the audio editing application through the second audio output module.

[0057] Of course, the specific method for the electronic device to obtain the ultrasonic signal of the second frequency is not limited.

[0058] The audio playback method provided in the embodiment of the present application plays the call audio signal during a call through the first audio output module and plays the ultrasonic signal through the second audio output module based on the principle of nonlinear sound parameter conversion, which can effectively avoid the phenomenon of sound leakage in the electronic device during a call, improve the effect of preventing sound leakage, and reduce the implementation cost of preventing sound leakage in the electronic device; in addition, the frequency of the ultrasonic signal to be played is determined based on the maximum value of the audible range of the human ear, so that the energy of the sound corresponding to the call audio signal can be accurately controlled to gradually transfer to the ultrasonic frequency band that cannot be heard by the human ear, further improving the effect of preventing sound leakage.

[0059] 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 electronic device. Figure 6 The process shown is described in detail, and the audio playing method may specifically include the following steps:

[0060] Step S310: Acquire a call audio signal to be played during a call.

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

[0062] Step S320: Obtain a sum value between the frequency of the call audio signal and the maximum value of the audible frequency range as a first sum value.

[0063] In an embodiment of the present application, when the electronic device determines the frequency of the ultrasonic signal based on the maximum value of the audible frequency range of the human ear, it can also combine the specific frequency of the call audio signal to more accurately determine the frequency of the ultrasonic signal to be played. Among them, the electronic device can obtain the sum of the frequency of the call audio signal and the maximum value of the audible frequency range, and use the sum as the first sum. For example, the audible frequency range is f3~f4, and the frequency of the call audio signal is identified as f5, then f4+f5 can be calculated to obtain the above first sum.

[0064] In some embodiments, considering that the call audio signal includes audio signals of different frequencies, the frequency range corresponding to the call audio signal can be identified; according to the determined frequency range corresponding to the call audio signal, the maximum frequency of the frequency range can be obtained; then, the sum between the maximum frequency and the maximum value of the above audible frequency range is obtained, and the sum is used as the first sum. For example, the audible frequency range is f3-f4, and the frequency range corresponding to the call audio signal is identified to be f6-f7, then f4+f7 can be calculated to obtain the above first sum. It can be understood that considering that the sound output by the first audio output module and the sound output by the second audio output module may form a difference frequency wave after propagating to the far field position, the maximum frequency of the frequency range corresponding to the call audio signal and the sum between the maximum frequency of the audible frequency range are taken, and the frequency of the ultrasonic signal is determined according to the sum later, so that even if a difference frequency wave is generated, the difference frequency wave can be made to be in the ultrasonic frequency band, thereby achieving the effect of preventing sound leakage.

[0065] In some embodiments, since the call audio signal is continuous during a call, the electronic device can determine the frequency of the call audio signal within the initial time period of the call, and then obtain the sum of the maximum value of the above audible frequency range and the determined frequency of the call audio signal, and use the sum as the first sum. The initial time period can be 3 seconds, 5 seconds, etc., and the specific duration may not be limited. That is to say, in this method, it is only necessary to determine the frequency of the call audio signal at the beginning of the call, and obtain the above first sum, and then determine the frequency of the ultrasonic signal through subsequent steps, and the determined frequency of the ultrasonic signal can be directly used in the subsequent time of this call.

[0066] In a possible implementation, since the frequency of the ultrasonic signal is only determined in the initial stage of the call in the above method, and the frequency of the call audio signal may change, the electronic device may also obtain the frequency of the call audio signal in the target time period at each target time interval, and determine the above first sum value, and then determine the frequency of the ultrasonic signal through subsequent steps to update the frequency of the ultrasonic signal. Among them, the target time period can be a time period of a specified length before the current moment, which can be 3 seconds, 5 seconds, etc., and the specific length can be unlimited; the target length can be 10 seconds, 30 seconds, 60 seconds, etc., and the specific length can be unlimited.

[0067] Step S330: Based on the first sum value, determine a second frequency of the ultrasonic signal, where the second frequency is greater than the first sum value.

[0068] In an embodiment of the present application, after determining the above first sum value, the electronic device can determine the frequency of the ultrasonic signal (as the second frequency) based on the first sum value, and the determined second frequency is greater than the above first sum value. In this way, even if the sound corresponding to the ultrasonic signal played subsequently and the sound corresponding to the call audio signal produce a difference frequency wave at the far field position, the frequency of the sound corresponding to the ultrasonic signal minus the frequency of the sound corresponding to the call audio signal can still be greater than the maximum value of the human ear audible frequency range, so that the human ear at the far field position still cannot hear the sound corresponding to the call audio signal, thereby better achieving the effect of preventing sound leakage.

[0069] In some embodiments, when the electronic device determines the second frequency of the ultrasonic signal to be played based on the first sum value, it can obtain the sum of the first sum value and the set value, and use the obtained sum value as the frequency of the ultrasonic signal to be played. Wherein, the set value can be 500Hz, 600Hz, 700Hz, etc., and the specific value can be unlimited. For example, the above set value can be 600Hz, the maximum value of the audible frequency range of the human ear is 20KHz, and the frequency of the sound corresponding to the call audio signal is 3.4KHz, then the above first sum value obtained is 23.4KHz, and on the basis of the first sum value, the above set value can be increased to obtain the frequency of the ultrasonic signal of 24KHz, so that even if the sound output by the first audio output module and the sound output by the second audio output module are propagated to the far field position to form a difference frequency wave, the frequency is still greater than the maximum value of the audible frequency range of the human ear, so that the human ear at this position cannot hear the sound played during the call.

[0070] Step S340: Play the call audio signal through the first audio output module, and play the ultrasonic signal of the second frequency through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module form a sound of the first frequency after propagating to the far-field position, the amplitude of the ultrasonic signal is greater than the amplitude threshold, and the first frequency is greater than the maximum value of the audible frequency range of the human ear.

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

[0072] The audio playback method provided in the embodiment of the present application plays the call audio signal during a call through the first audio output module and plays the ultrasonic signal through the second audio output module based on the principle of nonlinear acoustic parameter conversion. This can effectively avoid the phenomenon of sound leakage in the electronic device during a call, improve the effect of preventing sound leakage, and reduce the implementation cost of preventing sound leakage in the electronic device. In addition, based on the maximum value of the audible range of the human ear and the actual frequency of the call audio signal, the frequency of the ultrasonic signal to be played can be accurately determined, and then the energy of the sound corresponding to the call audio signal can be accurately controlled to be gradually transferred to the ultrasonic frequency band that cannot be heard by the human ear, further improving the effect of preventing sound leakage.

[0073] See also Figure 7 , Figure 7 A schematic diagram of a flow chart of an audio playback method provided by another embodiment of the present application is shown. The audio playback method is applied to the above electronic device. Figure 7 The process shown is described in detail, and the audio playing method may specifically include the following steps:

[0074] Step S410: Acquire a call audio signal to be played during a call.

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

[0076] Step S420: obtaining a sum value between the maximum value of the human voice range and the maximum value of the audible frequency range as a second sum value.

[0077] In an embodiment of the present application, when the electronic device determines the frequency of the ultrasonic signal based on the maximum value of the audible frequency range of the human ear, it can also combine the maximum value of the human voice range to more accurately determine the frequency of the ultrasonic signal to be played. Among them, the electronic device can obtain the sum of the maximum value of the human voice range and the maximum value of the audible frequency range, and use the sum as the second sum. For example, the audible frequency range is f3~f4, and the human voice range is f8~f9, then f4+f9 can be calculated to obtain the above second sum. Optionally, the electronic device can obtain the statistical human voice range from the server. For example, the server may store the human voice range in an acoustic book.

[0078] Step S430: Based on the second sum value, determine a second frequency of the ultrasonic signal, where the second frequency is greater than the second sum value.

[0079] In an embodiment of the present application, after determining the above second sum value, the electronic device can determine the frequency of the ultrasonic signal (as the second frequency) based on the second sum value, and the determined second frequency is greater than the above second sum value. In this way, even if the sound corresponding to the ultrasonic signal played subsequently and the sound corresponding to the call audio signal produce a difference frequency wave at the far-field position, the frequency of the sound corresponding to the ultrasonic signal minus the frequency of the sound corresponding to the call audio signal can still be greater than the maximum value of the human ear audible frequency range, so that the human ear at the far-field position still cannot hear the sound corresponding to the call audio signal, thereby better achieving the effect of preventing sound leakage.

[0080] In some embodiments, when the electronic device determines the second frequency of the ultrasonic signal to be played based on the second sum value, it can obtain the sum of the second sum value and the set value, and use the obtained sum value as the frequency of the ultrasonic signal to be played. Among them, the set value can be 500Hz, 600Hz, 700Hz, etc., and the specific value can be unlimited. For example, the above set value can be 600Hz, the maximum value of the audible frequency range of the human ear is 20KHz, and the human voice range is 20Hz~3.4KHz, then the second sum value obtained is 23.4KHz. On the basis of the second sum value, the above set value can be increased to obtain the frequency of the ultrasonic signal of 24KHz. In this way, even if the sound output by the first audio output module and the sound output by the second audio output module are propagated to the far field position to form a difference frequency wave, the frequency is still greater than the maximum value of the audible frequency range of the human ear, so that the human ear at this position cannot hear the sound played during the call.

[0081] Step S440: Play the call audio signal through the first audio output module, and play the ultrasonic signal of the second frequency through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module form a sound of the first frequency after propagating to the far-field position, the amplitude of the ultrasonic signal is greater than the amplitude threshold, and the first frequency is greater than the maximum value of the audible frequency range of the human ear.

[0082] In the embodiment of the present application, step S440 can refer to the contents of the aforementioned embodiment and will not be repeated here.

[0083] The audio playback method provided in the embodiment of the present application plays the call audio signal during a call through the first audio output module and plays the ultrasonic signal through the second audio output module based on the principle of nonlinear acoustic parameter conversion. This can effectively avoid the phenomenon of sound leakage in the electronic device during a call, improve the effect of preventing sound leakage, and reduce the implementation cost of preventing sound leakage in the electronic device. In addition, based on the maximum value of the audible range of the human ear and the maximum value of the human voice range, the frequency of the ultrasonic signal to be played can be accurately determined, and then the energy of the sound corresponding to the call audio signal can be accurately controlled to gradually transfer to the ultrasonic frequency band that cannot be heard by the human ear, further improving the effect of preventing sound leakage.

[0084] See also Figure 8 , Figure 8 A schematic diagram of a flow chart of an audio playback method provided by another embodiment of the present application is shown. 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:

[0085] Step S510: Acquire a call audio signal to be played during a call.

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

[0087] Step S520: If the electronic device is currently in the earpiece playback mode and the call volume is less than the volume threshold, the call audio signal is played through the earpiece, and the ultrasonic signal is played through the speaker, so that the sound output by the earpiece and the sound output by the speaker are propagated to the far-field position to form a sound of the first frequency.

[0088] The amplitude of the ultrasonic signal is greater than an amplitude threshold, and the first frequency is greater than a maximum value of an audible frequency range of a human ear.

[0089] In an embodiment of the present application, the first audio output module in the electronic device may be a handset, and the second audio output module may be a speaker. The electronic device may determine whether the audio playback mode of the current call is the handset playback mode. In the handset playback mode, the electronic device plays the call audio transmitted by the device of the call partner through the handset; if the audio playback mode of the current call is the handset playback mode, the electronic device may further determine the current call volume (i.e., the volume of the call audio); the electronic device may compare the call volume with a volume threshold; according to the comparison result, if the call volume is less than the volume threshold, the call audio signal is played through the handset, and the ultrasonic signal is played through the speaker.

[0090] It can be understood that the call volume represents the intensity of the sound played when the electronic device plays the call audio signal. The louder the call volume of the electronic device, the greater the intensity of the sound played, and the louder the sound that the user may perceive. When the call volume of the electronic device is large, even if the call audio signal is played through the handset, the played sound will still be relatively large. In this case, even if the anti-leakage sound processing is enabled, a good anti-leakage sound effect cannot be obtained. Furthermore, when it is determined that the audio playback mode is the handset playback mode, the call volume of the electronic device can be further detected. When the call volume is less than the volume threshold, the call audio signal is played through the handset, and the ultrasonic signal is played through the speaker to achieve the effect of anti-leakage sound, which can improve the effectiveness of the anti-leakage sound processing. The above volume threshold can be configured by the developer when the electronic device is set at the factory, or it can be configured by the user of the electronic device according to their own needs.

[0091] Step S530: If the electronic device is currently in the earpiece playback mode and the call volume is greater than or equal to the volume threshold, a prompt message is output, where the prompt message is used to prompt to lower the call volume.

[0092] In an embodiment of the present application, when it is determined that the electronic device is currently in the earpiece playback mode, after comparing the call volume with the volume threshold, if the call volume is greater than or equal to the volume threshold, the electronic device can output a prompt message to prompt the user to lower the call volume, thereby triggering the electronic device to perform anti-sound leakage processing during the call.

[0093] In some implementations, the electronic device may display the above prompt information in the status bar of the call interface. The electronic device may further display the prompt information while maintaining the information originally displayed in the status bar.

[0094] For example, see Fig. 9The status bar A2 of the call interface A1 originally displayed by the electronic device displays time information, WiFi connection information, mobile signal information and battery information; please refer to Fig.10 , you can keep Fig. 9 In the case where the information originally displayed in the status bar A2 remains unchanged, the above prompt information is added. The prompt information can be Fig.10 The prompt text shown in the text box reads "Please lower the call volume to trigger the anti-leakage processing."

[0095] Step S540: If it is detected that the call volume is less than the volume threshold, the call audio signal is played through the receiver, and the ultrasonic signal is played through the speaker.

[0096] In an embodiment of the present application, after outputting the above prompt information, the electronic device can continuously detect the current call volume. If the user controls the electronic device to reduce the call volume to a volume less than the above volume threshold according to the prompt information output by the electronic device, then the electronic device can detect that the call volume is less than the volume threshold. At this time, the electronic device can perform anti-leakage processing for this call, that is, play the call audio signal to be played through the earpiece, and play the ultrasonic signal through the speaker.

[0097] The audio playback method provided in the embodiment of the present application plays the call audio signal during a call, based on the principle of nonlinear acoustic parameter conversion, through the first audio output module to play the call audio signal, and through the second audio output module to play the ultrasonic signal, which can effectively avoid the phenomenon of sound leakage in the electronic device during a call, and can improve the effect of preventing sound leakage, and can also reduce the implementation cost of the electronic device for preventing sound leakage; in addition, the above anti-sound leakage processing is performed only when the electronic device is in the earpiece playback mode and the call volume is less than the volume threshold, thereby improving the effectiveness of the anti-sound leakage processing, and when the call volume is greater than or equal to the volume threshold, a prompt message is output to prompt the user to lower the call volume, and when it is detected that the call volume is less than the volume threshold, the anti-sound leakage processing is triggered, thereby meeting the user's needs for anti-sound leakage processing during a call.

[0098] See also Fig.11 , Fig.11 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. Fig.11 The process shown is described in detail, and the audio playing method may specifically include the following steps:

[0099] Step S610: Displaying an incoming call notification interface, wherein the incoming call notification interface includes a first answering control and a second answering control.

[0100] In an embodiment of the present application, before making a call, the electronic device may display an incoming call notification interface, which may include a first answering control and a second answering control. The first answering control is used to answer the call and enable the anti-leakage call mode (i.e., the anti-leakage processing when the call is triggered), and the second answering control is used to answer the call, but the anti-leakage call mode is not enabled.

[0101] In some embodiments, when displaying the first answering control and the second answering control, the electronic device may display the first indication information in the location area corresponding to the first answering control and the second indication information in the location area corresponding to the second answering control. The first indication information is used to indicate that the first answering control is used for both answering calls and enabling the anti-leakage call mode; the second indication information is used to indicate that the second answering control is used for answering calls. For example, see Fig.12 , the electronic device may display a first answering control A4 and a second answering control A5 in the displayed incoming call notification interface A3, and may display a first indication message "slide to answer and enable the anti-leakage call mode" in the first answering control A4, and may display a first indication message "slide to answer" in the second answering control A5. In this way, the user can clearly know the different functions of the above two answering controls, so that the user can choose whether to enable the anti-leakage call mode according to their needs.

[0102] Step S620: In response to the operation on the first answering control, a call is established with the device of the call object, and the anti-leakage call mode is controlled to be in an enabled state.

[0103] In the embodiment of the present application, after displaying the above incoming call notification interface, the electronic device can detect the operation in the incoming call notification interface. If the operation on the first answering control is detected, the electronic device can respond to the operation to establish a call with the device of the call object, and control the anti-leakage call mode to be in an enabled state. The operation on the first answering control can be a click operation, a sliding operation, etc., and the specific operation type is not limited.

[0104] Step S630: Acquire the call audio signal to be played during the call.

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

[0106] Step S640: If the anti-sound leakage call mode is enabled, the call audio signal is played through the first audio output module, and the ultrasonic signal is played through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module are propagated to the far-field position to form a sound of the first frequency.

[0107] The amplitude of the ultrasonic wave signal is greater than an amplitude threshold, and the first frequency is greater than a maximum value of an audible frequency range of a human ear.

[0108] In an embodiment of the present application, during a call, if the anti-sound leakage mode of the electronic device is enabled, the electronic device can perform anti-sound leakage processing when playing the call audio signal to be played, that is, play the call audio signal through the first audio output module and play the ultrasonic signal through the second audio output module.

[0109] Step S650: In response to the operation on the second answering control, a call is established with the device of the call object, and the call audio signal to be played during the call is played through the first audio output module.

[0110] In an embodiment of the present application, after displaying the above incoming call notification interface, the electronic device can detect the operation in the incoming call notification interface. If an operation on the second answering control is detected, the call can be established with the device of the call object in response to the operation. Among them, the operation on the second answering control can be a click operation, a sliding operation, etc., and the specific operation type may not be limited. After establishing a call with the device of the call object, since the anti-leakage call mode is not enabled, the electronic device can directly play the call audio signal to be played through the first audio output module without performing anti-leakage processing.

[0111] In some embodiments, in addition to displaying the first answering control and the second answering control in the incoming call notification interface before the user answers the call, so that the user can use the displayed controls to control whether the anti-leakage call mode is in an enabled state, the electronic device can also display a control switch in the call interface, and the control switch is used to control the anti-leakage call mode to be in an enabled state or an disabled state, so that the user can operate the control switch according to his needs during the call to control the anti-leakage call mode to be in an enabled state or an disabled state.

[0112] In some implementations, the electronic device may also automatically control whether the anti-leakage call mode is enabled based on the environment in which it is located.

[0113] In a possible implementation, when the electronic device is making a call, it can obtain the number of people in the environment where the electronic device is located, and the number of people refers to the number of other people in the environment where the electronic device is located except the user of the electronic device. It can be understood that the purpose of enabling the anti-leakage call mode of the electronic device is to protect the privacy of the user. If there is only one user in the environment where the electronic device is located, even if there is a call leakage, it will not cause privacy leakage. In this case, still starting the anti-leakage call mode may cause a certain waste of resources, which can be understood as the power resources and processor resources of the electronic device. Therefore, the number of people in the environment where the electronic device is located can be detected. If the number of people in the environment where the electronic device is located is greater than 0, the anti-leakage call mode can be enabled; if the number of people in the environment where the electronic device is located is 0, the anti-leakage call mode is not enabled.

[0114] Optionally, the electronic device can detect the number of people in the environment where the electronic device is located (excluding the user of the electronic device) by emitting ultrasonic waves. When a user uses the handset playback mode to answer a call, the screen side of the electronic device is usually facing the user, and the back cover side of the electronic device is facing away from the user. In this case, the ultrasonic transmitting and receiving device can be configured on the back cover of the electronic device, and then the number of people around can be detected by ultrasonic signals. Of course, when the back cover of the electronic device is provided with a camera, the number of people in the environment where the electronic device is located can also be detected by starting the camera.

[0115] In a possible implementation, when the electronic device makes a call, it can determine the call object. When the call object is the target object, the above anti-leakage call mode can be enabled; when the call object is not the target object, the above anti-leakage call mode can be disabled. Among them, the target object can be pre-configured by the electronic device according to the user operation. It can be understood that for different call objects, the content of the call made by the user of the electronic device is different. The content of the call with some users will involve personal privacy, while the content of the call with some users does not involve user privacy. For example, if the call is between colleagues, the content of the call may involve some content that needs to be kept confidential; for another example, if the call is between family and friends, the content of the call may involve some personal privacy; for another example, if the call is between salesmen, the content of the call may be about the content of promoting products and does not involve privacy. Therefore, the electronic device can pre-configure the above target objects according to the user operation, so that when the call is made with the target object, the anti-leakage call mode can be automatically enabled.

[0116] Optionally, the electronic device can display a setting interface for the sound leakage prevention call mode, which can include an entry control for setting the above target object in the setting interface; after detecting an operation on the entry control, the electronic device can respond to the operation, call the address book information, and display the configuration interface of the target object based on the address book information; in the configuration interface, the electronic device can display information of different contacts, and the electronic device can determine the contact selected by the selection operation as the above target object based on the user's selection operation of different contact information, and store the determined target object. Of course, the specific method of configuring the above target object may not be limited in the embodiments of the present application.

[0117] The audio playback method provided in the embodiment of the present application plays the call audio signal during a call. According to the principle of nonlinear sound parameter conversion, the call audio signal is played through the first audio output module, and the ultrasonic signal is played through the second audio output module. This can effectively avoid the phenomenon of sound leakage in the electronic device during a call, improve the effect of preventing sound leakage, and reduce the implementation cost of preventing sound leakage in the electronic device. In addition, before making a call, different answering controls are displayed in the call notification interface, so that the user can choose whether to turn on the anti-sound leakage call mode according to their needs.

[0118] See also Fig.13 , 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, and the electronic device includes a first audio output module and a second audio output module. 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 call audio signal to be played during a call; the playback execution module 720 plays the call audio signal through the first audio output module, and plays an ultrasonic signal through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module form a sound of a first frequency after propagating to a far-field position, the amplitude of the ultrasonic signal is greater than the amplitude threshold, and the first frequency is greater than the maximum value of the audible frequency range of the human ear.

[0119] In some embodiments, the audio playback device 700 may further include a frequency determination module. The frequency determination module is used to determine the second frequency of the ultrasonic signal based on the maximum value of the audible frequency range before playing the call audio signal through the first audio output module and playing the ultrasonic signal through the second audio output module, and the second frequency is greater than the maximum value; the playback execution module 720 may be specifically used to play the ultrasonic signal of the second frequency through the second audio output module.

[0120] In a possible implementation, the frequency determination module can be specifically used to obtain the sum of the frequency of the call audio signal and the maximum value of the audible frequency range as a first sum; based on the first sum, determine the second frequency of the ultrasonic signal, and the second frequency is greater than the first sum.

[0121] In a possible implementation, the frequency determination module can be specifically used to obtain the sum of the maximum value of the human voice range and the maximum value of the audible frequency range as a second sum; based on the second sum, determine the second frequency of the ultrasonic signal, and the second frequency is greater than the second sum.

[0122] In some implementations, the first audio output module is an earpiece, and the second audio output module is a speaker. The play execution module 720 may be specifically configured to play the call audio signal through the earpiece and play the ultrasonic signal through the speaker if the electronic device is currently in an earpiece play mode.

[0123] In a possible implementation, the play execution module 720 may be specifically configured to play the call audio signal through the earpiece and the ultrasonic signal through the speaker if the electronic device is currently in an earpiece play mode and the call volume is less than a volume threshold.

[0124] Optionally, the audio playback device 700 may also include a prompt module, which may be used to output a prompt message if the electronic device is currently in an earpiece playback mode and the call volume is greater than or equal to a volume threshold, wherein the prompt message is used to prompt to lower the call volume; the playback execution module 720 may also be used to play the call audio signal through the earpiece and play the ultrasonic signal through the speaker if it is detected that the call volume is less than the volume threshold.

[0125] In some implementations, the play execution module 720 may be specifically configured to play the call audio signal through the first audio output module and play the ultrasonic signal through the second audio output module if the sound leakage prevention call mode is enabled.

[0126] In a possible implementation, the audio playback device 700 may further include an interface display module and a mode control module. The interface display module may be used to display an incoming call notification interface before acquiring the call audio signal to be played during the call process, wherein the incoming call notification interface includes a first answering control and a second answering control; the mode control module is used to establish a call with the device of the call party in response to an operation on the first answering control, and control the anti-leakage call mode to be in an enabled state.

[0127] Optionally, the play execution module 720 can also be used to establish a call with the device of the call partner in response to the operation of the second answering control, and play the call audio signal to be played during the call through the first audio output module.

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

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

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

[0131] In summary, the solution provided by the present application, by acquiring the call audio signal to be played during the call, plays the call audio signal through the first audio output module, and plays the ultrasonic signal through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module are propagated to the far field position to form a sound of the first frequency, the amplitude of the ultrasonic signal is greater than the amplitude threshold, and the first frequency is greater than the maximum value of the audible frequency range of the human ear. In this way, when playing the call audio signal, the sound corresponding to the call audio signal is gradually transferred to the ultrasonic frequency band that cannot be heard by the human ear as it propagates, thereby effectively avoiding the phenomenon of sound leakage in the electronic device during a call.

[0132] Please refer to Fig.14 , 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, a smart watch, etc. The electronic device 100 in the present application may include one or more of the following components: a processor 110, a memory 120, an audio output device 130, 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.

[0133] The processor 110 uses various interfaces and lines to connect various parts within the entire electronic device 100, and performs various functions of the electronic device 100 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 120, and calling data stored in the memory 120.

[0134] 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 above-mentioned various method embodiments, etc.

[0135] The audio output device 130 may include at least the first audio output module and the second audio output module in the aforementioned embodiment, the first audio output module may be a receiver, and the second audio output module may be a speaker. The first audio output module may be arranged near the top of the electronic device, and the second audio output module may be arranged near the bottom of the electronic device.

[0136] Please refer to Fig.15 , 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.

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

[0138] 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 includes a first audio output module and a second audio output module, and the method includes: Obtaining the call audio signal to be played during the call; The call audio signal is played through the first audio output module, and the ultrasonic signal is played through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module form a sound of a first frequency after propagating to a far-field position, the amplitude of the ultrasonic signal is greater than the amplitude threshold, and the first frequency is greater than the maximum value of the audible frequency range of the human ear.

2. The method according to claim 1, characterized in that Before playing the call audio signal through the first audio output module and playing the ultrasonic signal through the second audio output module, the method further includes: determining a second frequency of the ultrasonic signal based on a maximum value of the audible frequency range, the second frequency being greater than the maximum value; The playing of the ultrasonic signal through the second audio output module includes: The ultrasonic signal of the second frequency is played through the second audio output module.

3. The method according to claim 2, characterized in that The determining the second frequency of the ultrasonic signal based on the maximum value of the audible frequency range comprises: Obtaining a sum value between the frequency of the call audio signal and the maximum value of the audible frequency range as a first sum value; Based on the first sum value, a second frequency of the ultrasonic signal is determined, the second frequency being greater than the first sum value.

4. The method according to claim 2, characterized in that: The determining the second frequency of the ultrasonic signal based on the maximum value of the audible frequency range comprises: Obtaining a sum value between a maximum value in a human voice range and a maximum value in the audible frequency range as a second sum value; Based on the second sum value, a second frequency of the ultrasonic signal is determined, the second frequency being greater than the second sum value.

5. The method according to claim 1, characterized in that The first audio output module is a receiver, the second audio output module is a speaker, the call audio signal is played through the first audio output module, and the ultrasonic signal is played through the second audio output module, including: If the electronic device is currently in the earpiece playing mode, the call audio signal is played through the earpiece, and the ultrasonic signal is played through the speaker.

6. The method according to claim 5, characterized in that If the electronic device is currently in the earpiece playing mode, playing the call audio signal through the earpiece and playing the ultrasonic signal through the speaker, comprising: If the electronic device is currently in the earpiece playing mode and the call volume is less than the volume threshold, the call audio signal is played through the earpiece and the ultrasonic signal is played through the speaker.

7. The method according to claim 6, characterized in that The method further comprises: If the electronic device is currently in the handset playback mode and the call volume is greater than or equal to the volume threshold, outputting a prompt message, wherein the prompt message is used to prompt to lower the call volume; If it is detected that the call volume is less than a volume threshold, the call audio signal is played through the receiver, and the ultrasonic signal is played through the speaker.

8. The method according to any one of claims 1 to 7, characterized in that: Playing the call audio signal through the first audio output module and playing the ultrasonic signal through the second audio output module includes: If the sound leakage prevention call mode is enabled, the call audio signal is played through the first audio output module, and the ultrasonic signal is played through the second audio output module.

9. The method according to claim 8, characterized in that Before acquiring the call audio signal to be played during the call, the method further includes: Displaying an incoming call notification interface, wherein the incoming call notification interface includes a first answering control and a second answering control; In response to an operation on the first answering control, a call is established with the device of the call object, and the anti-leakage call mode is controlled to be in an enabled state.

10. The method according to claim 9, characterized in that After displaying the incoming call notification interface, the method further includes: In response to the operation on the second answering control, a call is established with the device of the call object, and the call audio signal to be played during the call is played through the first audio output module.

11. An audio playback device, characterized in that: Applied to electronic equipment, the electronic equipment includes a first audio output module and a second audio output module, the device includes: an audio acquisition module and a play execution module, wherein: The audio acquisition module is used to acquire the call audio signal to be played during the call; The playback execution module plays the call audio signal through the first audio output module, and plays the ultrasonic signal through the second audio output module, so that the sound output by the first audio output module and the sound output by the second audio output module form a sound of a first frequency after propagating to a far-field position, the amplitude of the ultrasonic signal is greater than the amplitude threshold, and the first frequency is greater than the maximum value of the audible frequency range of the human ear.

12. 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 10.

13. 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 10.