Sound channel mode switching method, device, and storage medium
By implementing the channel mode switching method in electronic devices and switching the channel mode according to the user's volume adjustment, the problem of privacy information leakage in voice communication is solved, and a balance between information protection and listening experience is achieved.
Patent Information
- Application Number
- PCT/CN2023/130635
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-01-17
- Filing Date
- 2023-11-09
- Publication Date
- 2024-09-12
AI Technical Summary
During voice communication, users' private information can easily be heard by people around them, leading to the problem of information leakage.
By implementing the channel mode switching method in electronic devices, the channel mode is switched in real time according to the user's volume adjustment. When the volume is lowered, the private channel mode is used to reduce leakage, and when the volume is raised, the standard channel mode is used to ensure the listening experience.
It effectively protects users' private information, reduces the leakage of voice communication content, and maintains the user's listening experience.
Smart Images

Figure CN2023130635_12092024_PF_FP_ABST
Abstract
Description
Channel mode switching method, device and storage medium
[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office on January 17, 2023, with application number 202310090577.5 and application name “Channel Mode Switching Method, Device and Storage Medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of audio processing technology, and in particular to a channel mode switching method, device, and storage medium. Background Art
[0003] Voice communication is an important function of electronic devices.
[0004] Currently, voice communication features include real-time voice calls and voice chat messages. When a user uses an electronic device to make a real-time voice call or voice chat message, the electronic device can play a sound signal through the earpiece. However, when the user holds the electronic device in a crowded place such as an elevator, a shopping mall, or a square, the sound signal played by the earpiece may be heard by others nearby, resulting in the disclosure of the user's private information.
[0005] Summary of the Invention
[0006] The present application provides a channel mode switching method, device and storage medium, which solves the technical problem that the voice communication content may be heard by other people around, resulting in the leakage of the user's privacy information.
[0007] To achieve the above objectives, this application adopts the following technical solutions:
[0008] In a first aspect, an embodiment of the present application provides a method for switching a channel mode. The method includes:
[0009] Receive a first user operation and, in response to the first operation, display the interface of the call application. Then, receive a second user operation and, in response to the second operation, play the voice signal of the call application at the first volume. Then, receive a third user operation. When the third operation is an operation of increasing the first volume to the second volume, in response to the third operation, adopt the standard channel mode and play the voice signal at the second volume; or, when the third operation is an operation of reducing the first volume to the third volume, in response to the third operation, adopt the privacy channel mode and play the voice signal at the third volume. The second volume is greater than the first volume, and the third volume is less than the first volume.
[0010] In the above solution, when an electronic device plays a voice signal from a call application, the electronic device can increase or decrease the volume of the voice signal and switch the channel mode when playing the voice signal according to the user's volume adjustment operation. When the volume of the electronic device is lowered, the privacy channel mode can be used to reduce the leakage of voice communication content and ensure the security and privacy of private information. When the volume of the electronic device is increased, privacy protection may not be necessary. In this case, the standard channel mode is used to play the sound at a higher volume, thereby ensuring the user's listening experience.
[0011] Typically, when a user listens to a voice signal played by an electronic device, if there are other people around the user but the user does not want their private information to be heard by others, the user may subconsciously lower the volume of the voice signal. At this time, the electronic device will not only lower the volume but also switch the channel mode to the privacy channel mode, thereby reducing the leakage of voice communication content and protecting the user's privacy.
[0012] In one possible implementation, the voice signal may also be referred to as an audio signal. The call application may be a phone application, voice chat application, video chat application, or social networking application with voice messaging functionality, which requires high privacy for voice signals. For phone applications, voice chat applications, and video chat applications, the voice signal may specifically be an audio signal containing real-time voice call content. For social networking applications with voice messaging functionality, the voice signal may specifically be an audio signal corresponding to one or more voice messages.
[0013] In one possible implementation, this application provides two audio channel modes: one is a standard audio channel mode, which can, for example, use an earpiece to play sound. This mode can be used when privacy protection is not required. The other is a privacy audio channel mode, which can, for example, use a screen sound device to vibrate to produce sound, or use two sound devices to emit two audio signals with different phases. This mode can be used when privacy protection is required.
[0014] In the far field, the two channel modes have the following relationship: when the electronic device adopts the standard channel mode to play the voice signal at the fourth volume, the loudness at the first position is the first loudness. Alternatively, when the electronic device adopts the privacy channel mode to play the voice signal at the fifth volume, the loudness at the first position is the second loudness. The distance between the first position and the electronic device is greater than or equal to the preset distance. The second loudness is less than the first loudness. The fourth volume is the same as the fifth volume. As an example, the first loudness and the second loudness can satisfy the following relationship: the difference between the first loudness and the second loudness is greater than or equal to the first difference. It should be understood that when the electronic device adopts the same volume, the privacy channel mode will reduce sound leakage compared to the standard channel mode, thereby reducing the far-field loudness of the voice signal, thereby reducing sound leakage from the electronic device, reducing the far-field loudness, and reducing the leakage of voice communication content.
[0015] In the near field, the two channel modes have the following relationship: when the electronic device uses the standard channel mode to play the voice signal at the fourth volume, the loudness at the second position is the third loudness. Alternatively, when the electronic device uses the privacy channel mode to play the voice signal at the fifth volume, the loudness at the second position is the fourth loudness. The distance between the second position and the electronic device is less than the preset distance. The third loudness and the fourth loudness satisfy the following relationship: the difference between the third loudness and the fourth loudness is less than or equal to the second difference, and the second difference is less than the first difference. It should be understood that when the electronic device uses the same volume, the privacy channel mode can maintain the near-field loudness compared to the standard channel mode, thereby ensuring the user's listening experience.
[0016] In one possible implementation, for applications with lower privacy requirements for audio and video signals, such as music players, video players, game applications, and map applications with voice navigation functions, the following playback method can be used: receiving a fourth operation from the user, and in response to the fourth operation, displaying the interface of a first application, where the first application is a non-call application installed on the electronic device. Receive a fifth operation from the user, and in response to the fifth operation, play the audio and video signal in standard channel mode or external speaker mode. If a sixth operation of adjusting the volume is received from the user while the audio and video signal is playing in standard channel mode, then in response to the sixth operation, continue to play the audio and video signal in standard channel mode at the adjusted volume; or, if a seventh operation of adjusting the volume is received from the user while the audio and video signal is playing in external speaker mode, then in response to the seventh operation, continue to play the audio and video signal in external speaker mode at the adjusted volume. It should be understood that for non-call applications that have lower requirements for the privacy of audio and video signals, on the one hand, the conventional standard channel mode or external speaker mode can be used to play audio and video signals without the need to use the privacy channel mode to protect privacy, thereby ensuring the user's listening experience in different scenarios; on the other hand, when using the standard channel mode or external speaker mode to play audio and video signals, the volume will only be increased or decreased according to the user's volume adjustment operation, and the mode will not be switched, which is more in line with the user's needs when using non-call applications.
[0017] In one possible implementation, in response to a second operation, playing a voice signal of a call application at a first volume includes: generating a first event for playing a voice signal in response to the second operation; obtaining a historical volume, determining a first volume based on the historical volume, and setting the channel mode to standard channel mode or privacy channel mode, wherein the historical volume is the volume of the call application playing a voice signal in response to an event preceding the first event, and the first volume is less than or equal to the historical volume. In standard channel mode or privacy channel mode, playing the voice signal at the first volume.
[0018] It should be understood that after generating and broadcasting the first event of establishing a voice call or requesting to play a voice message, the electronic device can determine that the channel type of the first event belongs to the call channel type, and thus adjust the volume of this call by using the historical volume, so that the volume of this voice call will not exceed the preset volume. In this way, the user's auditory experience can be guaranteed and the user's privacy and security can be protected.
[0019] In one possible implementation, determining the first volume based on the historical volume includes: if the historical volume is less than or equal to a preset volume, using the historical volume as the first volume. Alternatively, if the historical volume is greater than a preset volume, using the preset volume as the first volume. The preset volume is greater than a minimum volume and less than a maximum volume.
[0020] It should be understood that when the historical volume is low, the volume of the current voice call can be set to be consistent with the historical volume, which may be more in line with the user's listening habits; however, when the historical volume is high, if the volume of the current voice call is set to a higher value, it may leak user privacy or disturb other people around. Therefore, the volume of the current voice call can be appropriately reduced so that its maximum does not exceed the preset volume.
[0021] In one possible implementation, setting the channel mode to the standard channel mode or the privacy channel mode includes: selecting a channel mode that meets the conditions between the standard channel mode and the privacy channel mode based on a preset priority of the channel mode, a historical channel mode, or external environmental noise, and adopting the channel mode that meets the conditions. The historical channel mode is the channel mode adopted by the call application when playing the voice signal in response to the event before the first event.
[0022] Example 1: When selecting a qualified channel mode based on the preset priority of the channel mode, it can be achieved in the following way: if the preset priority of the privacy channel mode is higher than the preset priority of the standard channel mode, the privacy channel mode is determined to be the qualified channel mode; or, if the preset priority of the standard channel mode is higher than the preset priority of the privacy channel mode, the standard channel mode is determined to be the qualified channel mode.
[0023] Example 2: When selecting a qualified channel mode based on a historical channel mode, it can be achieved in the following way: if the historical channel mode is a privacy channel mode, then the privacy channel mode is determined to be a qualified channel mode; or, if the historical channel mode is a standard channel mode, then the standard channel mode is determined to be a qualified channel mode.
[0024] Example 3: When selecting a qualified channel mode based on external environmental noise, it can be achieved in the following way: if the loudness of the external environmental noise is greater than or equal to the preset loudness, the privacy channel mode is determined to be the qualified channel mode; or, if the loudness of the external environmental noise is less than the preset loudness, the standard channel mode is determined to be the qualified channel mode.
[0025] It should be understood that if the target event is a call channel type, then a qualified channel mode can be selected from the standard channel mode or the privacy channel mode based on factors such as the preset priority of the channel mode, the historical channel mode, or the external environmental noise, so that the channel mode automatically selected by the electronic device is more in line with the user's usage needs. Regardless of how the electronic device selects the channel mode, since the ultimately selected channel mode meets the screening criteria, if the electronic device adopts the ultimately selected channel mode, the user's listening experience will be improved.
[0026] In one possible implementation, in response to the third operation, the standard channel mode is adopted to play the voice signal at the second volume, including: in response to the third operation, if it is determined that the second volume meets the standard channel mode switching condition, then in the standard channel mode, the voice signal is played at the second volume.
[0027] Exemplarily, the standard channel mode switching condition may include any one of the following:
[0028] (1) The second volume is greater than the first volume. That is, as long as the channel mode setting (setMode) module of the electronic device detects that the volume has increased, it can be determined that the standard channel mode switching condition is met.
[0029] (2) The difference between the second volume and the first volume is greater than or equal to a preset difference. That is, when the channel mode setting (setMode) module of the electronic device detects that the volume increase is greater than or equal to the preset difference, it can be determined that the volume meets the standard channel mode switching condition.
[0030] (3) The ratio of the second volume to the first volume is greater than or equal to a preset ratio. That is, when the channel mode setting (setMode) module of the electronic device detects that the volume increase is greater than or equal to the preset ratio, it can be determined that the volume meets the standard channel mode switching condition.
[0031] (4) The second volume is greater than the preset volume. That is, when the channel mode setting (setMode) module of the electronic device detects that the changed volume is greater than the preset volume, it can be determined that the volume meets the standard channel mode switching condition.
[0032] In one possible implementation, if the channel mode used before receiving the third operation was the standard channel mode, then after determining that the standard channel mode switching condition is satisfied, the method further includes: maintaining the standard channel mode. Alternatively, if the channel mode used before receiving the third operation was the privacy channel mode, then after determining that the standard channel mode switching condition is satisfied, the method further includes: switching from the privacy channel mode to the standard channel mode.
[0033] It should be understood that when the standard channel mode switching condition is met, the standard channel mode can be maintained or switched to the standard channel mode, so that sound can be played in the standard channel mode.
[0034] In one possible implementation, in response to the third operation, the privacy channel mode is adopted to play the voice signal at a third volume, including: in response to the third operation, if it is determined that the third volume meets the privacy channel mode switching condition, then in the privacy channel mode, the voice signal is played at the third volume.
[0035] Exemplarily, the privacy channel mode switching condition may include any of the following:
[0036] (1) The third volume is smaller than the first volume. That is, as long as the channel mode setting (setMode) module of the electronic device detects that the volume is reduced, it can be determined that the volume meets the privacy channel mode switching condition.
[0037] (2) The difference between the first volume and the third volume is greater than or equal to a preset difference. That is, when the channel mode setting (setMode) module of the electronic device detects that the volume reduction is greater than or equal to the preset difference, it can be determined that the volume meets the privacy channel mode switching condition.
[0038] (3) The ratio of the first volume to the third volume is greater than or equal to a preset ratio. That is, when the channel mode setting (setMode) module of the electronic device detects that the volume reduction is greater than or equal to the preset ratio, it can be determined that the volume meets the privacy channel mode switching condition.
[0039] (4) The third volume is less than or equal to the preset volume. That is, when the channel mode setting (setMode) module of the electronic device detects that the changed volume is less than or equal to the preset volume, it can be determined that the volume meets the privacy channel mode switching condition.
[0040] In one possible implementation, if the channel mode used before receiving the third operation was the privacy channel mode, then after determining that the privacy channel mode switching condition is satisfied, the method further includes: maintaining the privacy channel mode. Alternatively, if the channel mode used before receiving the third operation was the standard channel mode, then after determining that the privacy channel mode switching condition is satisfied, the method further includes: switching from the standard channel mode to the privacy channel mode.
[0041] It should be understood that when the privacy channel mode switching condition is met, the privacy channel mode can be maintained or switched to the privacy channel mode, so that sound can be played in the privacy channel mode.
[0042] In one possible implementation, if the voice signal is a voice message, in response to a second operation, playing the voice signal of the call application at a first volume includes: in response to the second operation, detecting whether there is a user within a preset range. If the user is within the preset range, selecting a matching channel mode between standard channel mode and privacy channel mode, and playing the voice message in the matching channel mode. Alternatively, if the user is not within the preset range, using external speaker mode, playing the voice message at a sixth volume, the sixth volume being greater than the first, second, and third volumes.
[0043] It should be understood that when an electronic device plays a voice message, if the user is close to the electronic device, the user may need to protect privacy information, and in this case, the standard channel mode or privacy channel mode with a lower playback volume is used; if the user is far away from the electronic device, the user may not need to protect privacy information, and in this case, the external speaker mode with a higher playback volume is used.
[0044] In one possible implementation, when the voice signal is a voice message, if the qualified channel mode is the privacy channel mode, the method further includes: after playing the voice message in the privacy channel mode, if no volume increase operation is received and a user is within a preset range, continuing to play other voice messages received after the voice message in the privacy channel mode. Alternatively, after playing the voice message in the privacy channel mode, if a volume increase operation is received, the switching conditions for the standard channel mode are met, and a user is within a preset range, continuing to play other voice messages received after the voice message in the standard channel mode. Alternatively, after playing the voice message in the privacy channel mode, if a volume increase operation is received, the switching conditions for the standard channel mode are met, and a user is within a preset range, continuing to play other voice messages received after the voice message in the privacy channel mode. Alternatively, after playing the voice message in the privacy channel mode, if a volume increase operation is received, the switching conditions for the standard channel mode are not met, and a user is within a preset range, continuing to play other voice messages received after the voice message in the privacy channel mode. Alternatively, after playing the voice message in the privacy channel mode, if no user is within the preset range, playing other voice messages received after the voice message in the external speaker mode at a sixth volume. Regarding the switching conditions for the standard channel mode, reference may be made to the description of the above embodiment and will not be repeated here.
[0045] It should be understood that when an electronic device is playing a voice message, the user can move away from or closer to the electronic device at any time, and can also turn the volume up or down at any time. Therefore, the electronic device can adjust the sound channel mode in real time based on whether the detected user is within a preset range and whether there is an operation to adjust the volume.
[0046] In one possible implementation, when the third operation is an operation of increasing the first volume to the second volume, the third operation may specifically be an operation of increasing the volume by pressing a physical volume key or sliding a volume control. For example, the third operation may be pressing a "volume +" button set on the side frame, or sliding the volume control in the settings to the right or upward.
[0047] It should be understood that by pressing the physical volume button or sliding the volume control to increase the volume, you can enter the standard channel mode and play the sound at a higher volume, thereby improving the user's listening experience.
[0048] In one possible implementation, when the third operation is an operation of reducing the first volume to a third volume, the third operation may specifically be an operation of reducing the volume by pressing a physical volume key or sliding a volume control. For example, the third operation may be pressing a "volume-" button set on the side frame, or sliding the volume control in the settings to the left or downward.
[0049] It should be understood that by pressing the physical volume button or sliding the volume control to reduce the volume, you can enter the privacy channel mode, thereby reducing sound leakage from electronic devices and reducing the leakage of voice communication content, while maintaining near-field loudness to ensure that the user's listening effect remains basically unchanged.
[0050] In one possible implementation, after receiving the second operation or the third operation to adjust the volume, the method further includes: saving the second volume or the third volume, wherein the second volume or the third volume is a historical volume when the call application plays the audio signal in response to the next event after the first event.
[0051] It should be understood that by saving the adjusted volume as the historical volume for the next voice call or the next voice message playback, the next time the user uses the electronic device to conduct voice communication such as a call or voice chat with other devices, the electronic device can use the saved volume as the historical volume for the next voice call or the next voice message playback, so that the volume for the next audio playback can be set according to the historical volume value.
[0052] In a second aspect, the present application provides an audio processing device, comprising units / modules for executing the method of the first aspect. The device may be configured to execute the method described in the first aspect. For a description of the units / modules in the device, refer to the description of the first aspect above and are not further elaborated here for the sake of brevity.
[0053] In a third aspect, an electronic device is provided, comprising a processor coupled to a memory, the processor being configured to execute a computer program or instruction stored in the memory, so that the electronic device implements any channel mode switching method in the first aspect.
[0054] In a fourth aspect, a chip is provided, which is coupled to a memory and configured to read and execute a computer program stored in the memory to implement the channel mode switching method according to any one of the first aspects.
[0055] In a fifth aspect, a computer-readable storage medium is provided, which stores a computer program. When the computer program is run on an electronic device, the electronic device executes the channel mode switching method as described in any one of the first aspects.
[0056] In a sixth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute the channel mode switching method as described in any one of the first aspects.
[0057] It can be understood that the beneficial effects of the second to sixth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] FIG1 is a schematic diagram of scenarios of a standard channel mode and a privacy channel mode provided in an embodiment of the present application;
[0059] FIG2 is a schematic structural diagram of a mobile phone with a screen sound device provided in an embodiment of the present application;
[0060] FIG3 is a schematic diagram of an embodiment of the present application providing an earpiece and a speaker on two side frames of a mobile phone;
[0061] FIG4 is a schematic diagram of a waveform of a first audio signal played through an earpiece according to an embodiment of the present application;
[0062] FIG5 is a schematic diagram of a waveform of a second audio signal after being offset by a first audio signal according to an embodiment of the present application;
[0063] FIG6 is a schematic diagram of the three-dimensional structure of a mobile phone with two sound-emitting elements provided in an embodiment of the present application;
[0064] FIG7 is a schematic front cross-sectional view of a mobile phone with two sound-emitting elements provided in an embodiment of the present application;
[0065] FIG8 is a schematic diagram of the near field and far field provided by an embodiment of the present application;
[0066] FIG9 is a schematic diagram of one of the application scenarios of controlling channel mode switching provided by an embodiment of the present application;
[0067] FIG10 is a second schematic diagram of an application scenario of controlling channel mode switching according to an embodiment of the present application;
[0068] FIG11 is a third schematic diagram of an application scenario for controlling channel mode switching according to an embodiment of the present application;
[0069] FIG12 is a fourth schematic diagram of an application scenario of controlling channel mode switching according to an embodiment of the present application;
[0070] FIG13 is a fifth schematic diagram of an application scenario of controlling channel mode switching according to an embodiment of the present application;
[0071] FIG14 is a sixth schematic diagram of an application scenario of controlling channel mode switching according to an embodiment of the present application;
[0072] FIG15 is a seventh schematic diagram of an application scenario for controlling channel mode switching according to an embodiment of the present application;
[0073] FIG16 is an eighth schematic diagram of an application scenario of controlling channel mode switching according to an embodiment of the present application;
[0074] FIG17 is a ninth schematic diagram of an application scenario for controlling channel mode switching according to an embodiment of the present application;
[0075] FIG18 is a tenth schematic diagram of an application scenario of controlling channel mode switching provided by an embodiment of the present application;
[0076] FIG19 is an eleventh schematic diagram of an application scenario for controlling channel mode switching according to an embodiment of the present application;
[0077] FIG20 is a twelfth schematic diagram of an application scenario of controlling channel mode switching provided by an embodiment of the present application;
[0078] FIG21 is a thirteenth schematic diagram of an application scenario of controlling channel mode switching provided by an embodiment of the present application;
[0079] FIG22 is a schematic diagram of the architecture of an electronic device provided in an embodiment of the present application;
[0080] FIG23 is a flow chart of a method for switching a channel mode according to an embodiment of the present application;
[0081] FIG24 is a schematic flow chart of another channel mode switching method provided in an embodiment of the present application;
[0082] FIG25 is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0083] In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments.
[0084] In the description of this application, unless otherwise specified, " / " means or. For example, A / B can mean A or B. In the description of this application, "and / or" is simply a way to describe the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0085] In the specification and claims of this application, the terms "first" and "second" are used to distinguish different objects or to distinguish different processing of the same object, rather than to describe a specific order of objects. For example, the terms "first operation" and "second operation" are used to distinguish different operations, rather than to describe a specific order of operations. In the embodiments of this application, "plurality" refers to two or more.
[0086] References to "one embodiment" or "some embodiments" in this specification mean that a particular feature, structure, or characteristic described in conjunction with that embodiment is included in one or more embodiments of the present application. Thus, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," and "in other embodiments" appearing in various places in this specification do not necessarily refer to the same embodiment, but rather mean "one or more but not all embodiments," unless otherwise specifically emphasized. The terms "including," "comprising," "having," and variations thereof all mean "including but not limited to," unless otherwise specifically emphasized.
[0087] When an electronic device is engaged in voice communication, such as a call or voice chat, with another device, it can convert the audio signal from the other device into an audio signal and play it through the earpiece. While the user is listening to the audio signal, it can also be easily heard by others due to various reasons, such as the omnidirectional radiation of the audio signal and the reflection of the audio signal by the user's head, leading to the leakage of relevant private information.
[0088] In particular, when a user holds an electronic device in a crowded place such as an elevator, public transportation, shopping mall, or hospital, the noisy external ambient noise may interfere with the call quality. If the user increases the volume to communicate with the other party, it is very easy to leak the user's private information. If the user does not want others to hear the content of the call, the user can lower the volume of the electronic device or put the ear close to the electronic device to reduce the possibility of the audio signal being heard by others. However, by lowering the volume of the electronic device, the user himself will not be able to hear the audio signal played by the electronic device clearly, resulting in a poor listening experience for the user. The effect of putting the receiver close to the ear is also not ideal. The audio signal emitted by the receiver passes through the user's head and produces physical phenomena such as reflection and diffraction, so that other people around the user can still hear the audio signal emitted by the user's mobile phone relatively clearly. For those who do not intend to eavesdrop, this audio signal is also a form of noise pollution and can easily cause auditory discomfort.
[0089] In view of the above problems, an embodiment of the present application provides a method for switching channel modes by volume control. When a user uses an electronic device to make a real-time voice call with another device, or when a user uses an electronic device to exchange voice chat messages with other devices, the electronic device can detect volume changes in real time. When the current volume setting is relatively low, a privacy channel mode can be used to reduce the far-field loudness when the electronic device plays voice content, reduce the leakage of voice content, and at the same time maintain the near-field loudness when the electronic device plays voice content, ensuring that the user's listening effect remains basically unchanged. When the current volume setting is relatively high, the user may no longer need to protect privacy information, and can use the standard channel mode to play sound at a higher volume in both the near field and the far field, thereby improving the user's listening experience. This method can adjust the playback volume according to actual needs and switch the channel mode in real time, thereby ensuring the user's auditory experience and protecting the user's privacy and security.
[0090] The method for switching the channel mode by controlling the volume provided in the embodiment of the present application can be applied to various electronic devices, such as terminal devices, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc. The terminal device can be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, or a wireless terminal in smart home, etc., or can be other devices or apparatuses capable of voice communication. The embodiment of the present application does not impose any restrictions on the specific type of electronic device.
[0091] In the embodiment of the present application, the electronic device provides three channel modes:
[0092] The first is the traditional standard channel mode. When privacy protection is not required, electronic devices can use the standard channel mode. The earpiece of the electronic device plays the audio signal at the historical volume value or the volume value set by the user, without any sound leakage processing.
[0093] The second mode is privacy channel mode. When privacy protection is required, electronic devices can implement privacy channel mode through software or hardware improvements, thereby playing back processed audio signals. On the one hand, privacy channel mode reduces the far-field loudness of the audio signal, thereby reducing sound leakage; on the other hand, privacy channel mode maintains the near-field loudness of the audio signal, ensuring that the user's listening experience remains largely unchanged.
[0094] The third mode is the traditional loudspeaker mode. When privacy protection is not necessary, electronic devices can also use this mode. The speaker plays the audio signal at the historical volume value or the user-set volume value. Compared to standard channel mode, the speaker's driving power is greater than the earpiece's. Therefore, the playback volume in loudspeaker mode is higher than in standard channel mode.
[0095] It should be noted that compared to external speaker mode, the playback volume in both standard channel mode and privacy channel mode is lower. To more clearly distinguish between standard channel mode and privacy channel mode, the following uses a mobile phone as an example to explain the specific differences between standard channel mode and privacy channel mode when the mobile phone outputs the same audio volume value.
[0096] As shown in (a) of Figure 1, when a user uses a mobile phone to communicate with other users, assuming that the volume value of the mobile phone is 3 grids (different numbers of grids represent different volume values) and the standard channel mode is used, then in the near field range centered on the sound device of the mobile phone, for example, the position of the user's ear is represented by P1. Since position P1 is very close to the sound device of the mobile phone, the loudness of the audio signal heard by the user is equal to or slightly less than 60dB. In addition, other people around are near the user (for example, the distance between other people and the user is 1 meter). After the audio signal emitted by the sound device of the mobile phone propagates through the air medium to the far field range centered on the sound device of the mobile phone, there will be a certain attenuation. For example, it will be attenuated to 58dB at the position of the ears of other people around. However, the loudness of the audio signal is still relatively large, so other people around can also hear the sound played by the user's mobile phone.
[0097] As shown in Figure 1 (b), when a user uses their mobile phone to communicate with another user, assuming the phone's volume is set to 3 bars and privacy channel mode is enabled, the phone first performs privacy processing on the audio signal based on a pre-set algorithm corresponding to privacy channel mode, and then plays the privacy-processed audio signal. On the one hand, within the near-field centered on the phone's sound element, for example, the user's ear is located at position P1. Because position P1 is very close to the phone's sound element, the near-field loudness of the audio signal is maintained at position P1, resulting in the user hearing an audio signal at or slightly less than 60dB. On the other hand, for other people nearby (for example, the distance between the user and the other person is 1 meter), the privacy-processed audio signal propagates through the air to the far-field centered on the phone's sound element. The audio signal is significantly attenuated, for example, to 25dB at the ear of the other person. Due to the significant reduction in the loudness of the audio signal, other people nearby may not be able to clearly hear the sound played by the user's phone, thus effectively protecting the user's privacy information.
[0098] The above analysis demonstrates that the embodiments of this application primarily utilize a privacy channel mode to securely protect user privacy information. This privacy channel mode can be implemented through software improvements to the electronic device, hardware improvements to the electronic device, or both, and is not specifically limited in this embodiment.
[0099] The following uses a mobile phone as an example to provide specific implementations of three privacy channel modes.
[0100] Implementation Method 1
[0101] In this embodiment, in addition to the traditional speaker, the phone may also be equipped with a screen sound device. The screen sound device can be located on the back or upper half of the screen. When the screen sound device is in operation, it can cause the screen to vibrate, thereby emitting sound. The speaker is located inside the phone near the sound outlet, and the sound produced by the speaker when in operation can be output to the external environment through the sound outlet.
[0102] In some embodiments, the screen sound-generating device may be any device that can generate controllable vibrations, such as a piezoelectric ceramic exciter, a voice coil exciter, etc., and the embodiments of the present application are not limited thereto.
[0103] For example, Figure 2 shows a schematic structural diagram of a mobile phone 100 with a screen sound device 104 provided in an embodiment of the present application. Figure 2(a) shows a front view of the mobile phone 100, and Figure 2(b) shows a side cross-sectional view of the mobile phone 100. As shown in Figures 2(a) and 2(b), the mobile phone 100 may include a screen 101, a sound hole 102, a speaker 103, and a screen sound device 104.
[0104] The sound outlet 102 is provided on the top frame of the mobile phone 100, or even on the top side frame of the mobile phone 100. The mobile phone 100 uses the sound outlet 102 to output sound in two modes: one is a handset mode with a relatively low volume, and the other is a loudspeaker mode with a relatively high volume. The same sound-emitting unit (such as the speaker 103) can be used inside the mobile phone 100 to produce sound in the handset mode and the loudspeaker mode respectively. In the handset mode, a low volume of sound is achieved by reducing the power of the speaker 103; in the loudspeaker mode, a high volume of sound is achieved by increasing the power of the speaker 103. When a user uses the mobile phone 100 to communicate with other users by voice, if the user selects the handset mode, the user usually needs to place his ear directly toward the upper half of the screen 101. The sound emitted by the speaker 103 passes through the sound outlet 102 and is transmitted through the air medium. Some of the sound may leak to the outside area far away from the mobile phone 100. Therefore, for scenarios where users do not need to protect their privacy information, the mobile phone 100 can adopt the standard channel mode (ie, the handset mode). At this time, the speaker 103 can play sound, and the sound can be heard by the user after being transmitted to the external environment through the sound outlet 102.
[0105] The screen sound device 104 can be located in the upper half of the screen 101, for example, about one-third of the way along the length of the screen 101 from the top bezel of the phone 100. When a user holds the phone 100 close to their face or head to listen to sound, the screen sound device 104 is positioned close to the user's ear. The sound generated by the screen sound device 104, which causes the screen 101 to vibrate, is transmitted to the user's auditory ossicles and then received by the auditory nerves, allowing the user to hear the sound. It should be understood that compared to the airborne audio signal emitted by the sound outlet 102, the airborne audio signal generated by the screen sound device 104, which causes the screen 101 to vibrate, is weaker, thus preventing sound leakage or significantly reducing it. Therefore, for scenarios where users need to protect their private information, the phone 100 can adopt a private channel mode. In this mode, the screen sound device 104, which causes the screen 101 to vibrate, can generate an audio signal, effectively preventing sound leakage to the outside world.
[0106] It should be noted that the screen sound device 104 can be set in the center of the upper half of the screen 101, or it can be set in a non-central position. When the mobile phone 100 adopts the privacy channel mode, no matter which specific setting method is adopted for the screen sound device 104, the position where the screen 101 vibrates and emits sound is close to the user's ear, and most of the sound will be received by the user, thereby maintaining the near-field loudness of the audio signal. In addition, most of the unreceived sound will be blocked by the user's head, reducing sound leakage and lowering the far-field loudness of the audio signal.
[0107] Implementation Method 2
[0108] In this embodiment, the mobile phone may be provided with an earpiece and a speaker. The earpiece may be provided at the top of the screen or on the top side frame (also referred to as the upper frame) of the mobile phone, and the speaker may be provided on the bottom side frame (also referred to as the lower frame) of the mobile phone.
[0109] For example, Figure 3 shows a schematic diagram of an earpiece 106 and a speaker 108 disposed on the two side frames of a mobile phone 100. As shown in Figure 3(a), an earpiece 106 is disposed on the upper frame 105 adjacent to the screen 101 of the mobile phone 100. The earpiece 106 includes multiple sound holes. As shown in Figure 3(b), a speaker 108, a USB port 109, and a SIM card port 110 are disposed on the lower frame 107 adjacent to the screen 101. The speaker 108 may also include multiple sound holes. The upper frame 105 and the lower frame 107 are two side frames of the mobile phone 100 disposed opposite each other. It should be noted that in actual implementation, the position and number of the earpiece and speakers can be adjusted according to the actual design requirements of the product. For example, the earpiece and speaker can be disposed on the left and right frames of the mobile phone 100, respectively. For another example, the earpiece and speaker can be disposed in the center of a frame or at the edge of a frame. It should be understood that different layout directions of the earpiece and the speaker will result in different sound fields generated by the earpiece and the speaker.
[0110] Taking the mobile phone 100 shown in FIG. 3 as an example, a method for counteracting sound leakage is provided below.
[0111] Typically, the waveform of an audio signal (i.e., a sound wave) is a spherical wave when there is no obstacle blocking it. When there is an obstacle blocking it, the waveform of the audio signal is also similar to a spherical wave. For example, referring to Figure 4, it shows a waveform diagram of a first audio signal played through the earpiece 106 during voice communication by the mobile phone 100. As shown in Figure 4, the waveform 111 of the first audio signal is similar to a spherical wave. When other people around are close to the user (i.e., the distance between other people around and the user is less than a preset distance), the first audio signal can not only enter the user's ears and be heard by the user, but can also propagate in other directions, such as through the air medium to the ears of other people around and be heard by other people around. For example, the preset distance can be any value such as 0.5 meters, 0.55 meters, or 0.6 meters. This may lead to the leakage of the user's private information and affect the user's privacy security.
[0112] Based on this, during voice communication, the mobile phone 100 can control the speaker 108 to emit a second audio signal (i.e., an anti-phase sound wave) with a phase opposite to the first audio signal according to the acoustic dipole radiation phenomenon, so as to offset the leakage of the first audio signal in a preset area around the mobile phone 100, reduce the leakage of voice communication content, and thus protect the user's privacy and security.
[0113] The second audio signal and the first audio signal are both analog audio signals, and the second audio signal has an opposite phase to the first audio signal. Specifically, the phase difference between the second audio signal and the first audio signal is approximately 180°. For example, the phase difference between the second audio signal and the first audio signal may be [180°-p, 180°+p]. Where p is less than a preset angle threshold. For example, p may be 0°, or any value close to 0°, such as 1°, 2°, or 3°. The preset angle threshold may be any value close to 0°, such as 1°, 2°, or 3°.
[0114] It can be understood that for a sound wave, the phase is the position of the sound wave in its waveform at a certain moment, such as a peak, a trough, or a point between a peak and a trough. The phase can be used as a scale for the point at which the sound wave is at a peak, a trough, or a point between a peak and a trough at a certain moment. For example, at a certain moment, when the first audio signal is at a peak, the second audio signal is at a trough; when the first audio signal is at a trough, the second audio signal is at a peak. Moreover, if two sound waves from different sources have the same parameters such as amplitude and frequency at the same moment, but the phases of the two sound waves are opposite, then the two sound waves can cancel each other out in specific areas and angles during propagation.
[0115] As shown in Figure 4, the waveform 111 of the first audio signal approximates a spherical wave. However, during the propagation process, the first audio signal may encounter a second audio signal with a phase opposite to that of the first audio signal at some locations (also referred to as preset areas). At this time, since the second audio signal has an opposite phase to the first audio signal, the second audio signal and the first audio signal can cancel each other out in the preset area. In this way, the waveform of the first audio signal may change due to the cancellation of the second audio signal. For example, the waveform of the first audio signal changes from the waveform 111 shown in Figure 4 to the waveform 112 shown in Figure 5. The waveform 112 shown in Figure 5 is the waveform of the second audio signal after being canceled out by the first audio signal.
[0116] As shown in FIG5 , the first and second audio signals cancel each other out during propagation in the area indicated by the dotted line L, thereby reducing leakage of the first audio signal in that area. As shown in FIG5 , other people nearby are in the leakage-cancelling area and are therefore unable to hear the first audio signal played by the earpiece 106, thereby protecting the user's privacy.
[0117] When the mobile phone 100 plays the first audio signal through the earpiece 106, the mobile phone 100 is held in portrait mode. For example, the relative positions of the earpiece 106 and the speaker 108 of the mobile phone 100 are shown in Figure 5. As shown in Figure 5, point O is the midpoint of the line connecting the positions of the earpiece 106 and the speaker 108; the straight line L is perpendicular to the line connecting the positions of the earpiece 106 and the speaker 108, and the straight line L passes through point O. Among them, the preset area may include an area on or near the straight line L shown in Figure 5. The method for canceling sound leakage provided in an embodiment of the present application can cancel sound leakage in an area on or near the straight line L shown in Figure 5, which is about a preset distance away from point O. That is, the preset area may include an area on or near the straight line L shown in Figure 5, which is about a preset distance away from point O.
[0118] It should be noted that the frequency range of human voice is approximately 100 Hz-10 kHz. During a voice call between a user and another user, the frequency and intensity of the other user's audio signal (first audio signal) may change in real time. In addition, the cancellation effect of two audio signals with opposite phases may vary at different frequencies.
[0119] In this embodiment, for scenarios where the user does not need to protect privacy information, the mobile phone 100 can adopt a standard channel mode (i.e., earpiece mode). At this time, the earpiece 106 can play a first audio signal, and the first audio signal can be heard by the user of the mobile phone 100 and other people around the mobile phone 100.
[0120] For scenarios where users need to protect their privacy information, the mobile phone 100 can adopt a privacy channel mode. The earpiece 106 can play a first audio signal while the speaker 108 plays a second audio signal. Since the first audio signal and the second audio signal have opposite phases, the first audio signal and the second audio signal cancel each other out in a preset area around the mobile phone 100, thereby reducing the leakage of voice communication content and protecting the user's privacy.
[0121] Implementation Method 3
[0122] Similar to the above-mentioned second embodiment, another solution is provided in the third embodiment based on the acoustic dipole radiation phenomenon, which uses two audio signals with different phases to cancel each other out to reduce the leakage of voice communication content.
[0123] 6 and 7 illustrate schematic structural diagrams of a mobile phone 100 with two sound-emitting elements according to an embodiment of the present application, wherein FIG6 illustrates a perspective view of the mobile phone 100 and FIG7 illustrates a front cross-sectional view of the mobile phone 100.
[0124] As shown in Figures 6 and 7, the mobile phone 100 may include a housing 113 and a first sound-emitting element 114. The first sound-emitting element 114 is disposed within the housing 113 and can emit a first audio signal through a first sound outlet 116 for the user to hear. The mobile phone 100 also includes a second sound-emitting element 115 for use with the first sound-emitting element 114. The second sound-emitting element 115 is also disposed within the housing 113 and can emit a second audio signal, which can be emitted through a sound outlet 117, thereby performing substantially the same function as the first sound-emitting element 114. It should be understood that the first and second audio signals emitted by the mobile phone 100 originate from the same source. The first and second audio signals carry the same information. For example, the first and second audio signals may both refer to the sound from the other end of a call, or the first and second audio signals may both refer to sounds generated by clicking on a voice message or song.
[0125] In some embodiments, the housing 113 may include a middle frame, a back cover, and a baffle. Within the space formed by the middle frame surrounding the back cover, the baffle can cooperate with the back cover to form a relatively independent cavity to accommodate the first sound-emitting element 114 and the second sound-emitting element 115. It should be understood that the baffle can be integrally formed with the back cover using a mold, or secured by welding or other methods.
[0126] The first sound-emitting element 114 and the second sound-emitting element 115 are both disposed within the housing 113. Together, the first sound-emitting element 114, the second sound-emitting element 115, and the housing 113 form a rear cavity 118. In other words, the first sound-emitting element 114 and the second sound-emitting element 115 share the same rear cavity 118. The first sound-emitting element 114 is located inside the first sound outlet 116 and emits a first audio signal through the first sound outlet 116. The second sound-emitting element 115 is located inside the second sound outlet 117 and emits a second audio signal through the second sound outlet 117.
[0127] For example, the first sound emitting element 114 and the second sound emitting element 115 can both be receivers or speakers. The distance between the first sound outlet 116 and the second sound outlet 117 is 3 mm to 30 mm. The area of the first sound outlet 116 and the second sound outlet 117 are both 2 mm2 to 20 mm2.
[0128] It should be understood that the first sound outlet 116 and the second sound outlet 117 each have an inner side and an outer side relative to each other. The inner side is the side pointing toward the interior of the housing 113 or toward the sound-emitting element, and the outer side is the side pointing toward free space. Based on this, the first audio signal can be input from the inner side of the first sound outlet 116 and then transmitted from the outer side of the first sound outlet 116 to radiate into free space. Similarly, the second audio signal can also be input from the inner side of the second sound outlet 117 and then transmitted from the outer side of the second sound outlet 117 to radiate into free space.
[0129] In order to reduce the possibility of the audio signal transmitted by the mobile phone 100 being heard by others, the mobile phone 100 provided in this application equates the first sound-emitting element 114 and the second sound-emitting element 115 to acoustic dipoles, and there is a certain phase difference between the first audio signal transmitted by the first sound-emitting element 114 and the second audio signal transmitted by the second sound-emitting element 115. For example, the phase difference between the first audio signal and the second audio signal is 160° to 200°. It should be understood that based on this phase difference, in the far field defined by physical quantities such as the Rayleigh length, the first audio signal and the second audio signal can cancel each other to a certain extent, thereby reducing the possibility of other people in the far field hearing the audio signal transmitted by the user's mobile phone 100, thereby reducing the possibility of user-related privacy information being leaked.
[0130] Furthermore, because phase differences can also lead to a certain degree of attenuation of near-field loudness, to improve the overall near-field presentation of the two audio signals, the first and second sound-emitting elements 114, 115 share a common rear chamber 118. When the first and second sound-emitting elements 114, 115 synchronously emit the first and second audio signals with different phases, for example, the first sound-emitting element 114 compresses the air in the rear chamber 118 to emit the first audio signal, while the second sound-emitting element 115 stretches the air in the rear chamber 118 to emit the second audio signal, the volume of the air in the rear chamber 118 remains essentially unchanged due to the simultaneous compression and stretching of the air. This effectively makes the volume of the rear chamber 118 infinite. Accordingly, the first and second sound-emitting elements 114, 115 can both smoothly compress and stretch the air to emit their corresponding audio signals, thereby improving the overall low-frequency radiation efficiency of the first and second audio signals in the near field and enhancing the low-frequency loudness in the near field, facilitating better listening for the user. Therefore, the external environment where the user of this application is located is relatively noisy.
[0131] In this embodiment, for scenarios where the user does not need to protect privacy information, the mobile phone 100 can adopt a standard channel mode (i.e., earpiece mode). At this time, the first sound element 114 or the second sound element 115 can play a first audio signal, or the first sound element 114 or the second sound element 115 can simultaneously play audio signals with the same phase. At this time, the audio signal can be heard by the user of the mobile phone 100 and other people around the mobile phone 100.
[0132] For scenarios where users need to protect their privacy, the mobile phone 100 can use a private channel mode, where the first sound element 114 can play a first audio signal while the second sound element 115 plays a second audio signal. Because the first audio signal and the second audio signal have different phases (for example, the phase difference between the first audio signal and the second audio signal is 160° to 200°), the first audio signal and the second audio signal cancel each other out in a preset area around the mobile phone 100, thereby reducing the leakage of voice communication content and protecting the user's privacy. In addition, because the first sound element 114 and the second sound element 115 share a back cavity 118, the first sound element 114 and the second sound element 115 can both emit corresponding audio signals by compressing and stretching air, thereby improving the overall low-frequency radiation efficiency of the first audio signal and the second audio signal in the near field, thereby improving the low-frequency loudness in the near field for better listening by the user.
[0133] The above embodiments describe three specific implementations of privacy channel modes. It should be understood that when privacy information protection is required, privacy channel modes can also be implemented using other hardware and / or software methods. Regardless of the specific method used by an electronic device to implement a privacy channel mode, the privacy channel mode can achieve the following effect: reducing the far-field loudness of the audio signal while maintaining the near-field loudness of the audio signal.
[0134] In the embodiments of this application, the near field is also referred to as the near-field region or near-field range, and the far field is also referred to as the far-field region or far-field range. The near field and far field are two relative ranges centered on the sound-emitting device of the electronic device. The near field is closer to the sound-emitting device of the electronic device, and the far field is farther away from the sound-emitting device of the electronic device.
[0135] Exemplarily, FIG8 shows a schematic diagram of the near field and the far field. As shown in FIG8 , the position of the sound-emitting device of the electronic device is represented by P, and the distance from any point in the near field to point P is less than or equal to L1, and the distance from any point in the far field to point P is greater than or equal to L2, and L2 is greater than or equal to L1. For example, L1 = 0.1 meters, L2 = 0.5 meters. L1 and L2 affect the area size and area shape of the near field and the far field. In combination with the introduction to the privacy channel mode in the above embodiment, it can be seen that when the electronic device adopts different methods to implement the privacy channel mode, the area size and area shape of the near field and the far field may change. The embodiment of the present application does not make specific limitations on this and can be adjusted according to actual usage requirements.
[0136] Assume that the user sets the volume of the electronic device to the target volume level. If at the target volume level, the electronic device adopts the standard channel mode, the loudness of point X in the near field is equal to loudness 1 (for example, 60dB), and the loudness of point Y in the far field is equal to loudness 2 (for example, 58dB). If at the target volume level, the electronic device adopts the privacy channel mode, the volume of point X in the near field is equal to loudness 3 (for example, 60dB or 59dB), and the loudness of point Y in the far field is equal to loudness 4 (for example, 25dB). It should be understood that, whether in the near field or the far field, the farther the user is from point P, the smaller the sound heard, so loudness 2 is smaller than loudness 1, and loudness 4 is smaller than loudness 3.
[0137] Among them, loudness 1 and loudness 3 are equal or approximately equal, and loudness 4 is much smaller than loudness 2.
[0138] Specifically, loudness 1 and loudness 3, and loudness 2 and loudness 4 may satisfy the following relationship:
[0139] 1. The difference between Loudness 1 and Loudness 3 is less than or equal to Difference 1, the difference between Loudness 2 and Loudness 4 is greater than or equal to Difference 2, and Difference 2 is greater than Difference 1. For example, Difference 1 can be 0 or approximately 0, meaning Loudness 3 is equal to or slightly less than Loudness 1. This allows the near-field loudness of the audio signal to be maintained when the electronic device switches from standard channel mode to privacy channel mode, ensuring that the user's listening experience remains largely unchanged. Difference 2 can be a larger value, such as 10dB, meaning Loudness 4 is significantly less than Loudness 2. This allows the far-field loudness of the audio signal to be significantly reduced when the electronic device switches from standard channel mode to privacy channel mode.
[0140] 2. The ratio of Loudness 1 to Loudness 3 is equal to or approximately equal to Ratio 1, the ratio of Loudness 2 to Loudness 4 is greater than or equal to Ratio 2, and Ratio 2 is greater than Ratio 1. For example, Difference 1 can be equal to or close to 1, and Ratio 2 can be 1.5 or 2, etc. In this way, when the electronic device switches from standard channel mode to privacy channel mode, the near-field loudness of the audio signal can be maintained, ensuring that the user's listening experience remains essentially unchanged, while significantly reducing the far-field loudness of the audio signal.
[0141] The following takes a mobile phone as an example of an electronic device and illustrates an application scenario of the method for switching channel modes by controlling volume provided in an embodiment of the present application in combination with FIG. 9 to FIG. 20 .
[0142] The first exemplary application scenario: a regular call scenario.
[0143] A typical call scenario involves using the Phone app provided by the mobile phone system to make calls, including incoming call scenarios (answering calls) and outgoing call scenarios (making calls). The following example uses the incoming call scenario as an example.
[0144] As shown in Figure 9(a) or Figure 10(a), after mobile phone 1 receives a call service request from mobile phone 2, mobile phone 1 displays an incoming call interface, which includes a reject control and an answer control 11. If the user clicks the answer control 11, mobile phone 1 responds to the user's click and configures parameters such as the channel mode and volume for mobile phone 1 based on the channel type of the call service request.
[0145] The embodiments of the present application provide three channel types: call channel type, media channel type and Bluetooth channel type. If the channel type is a call channel type, then the standard channel mode or privacy channel mode is entered, and audio is played in the standard channel mode or privacy channel mode, wherein the standard channel mode plays sound based on the earpiece, and the privacy channel mode plays sound based on the screen sound device or two sound devices. If the channel type is a media channel type, then the external speaker mode is entered, and audio is played in the external speaker mode, wherein the external speaker mode plays sound based on the speaker. If the channel type is a Bluetooth channel type, then the Bluetooth channel mode is entered, and audio is played through Bluetooth devices such as Bluetooth headphones, Bluetooth speakers or Bluetooth watches.
[0146] Since the channel type requested by the call service is a call channel type, and the call channel type corresponds to a standard channel mode and a privacy channel mode, mobile phone 1 can select a channel mode that meets the requirements between the standard channel mode and the privacy channel mode. In one example, mobile phone 1 can pre-set the privacy channel mode to a high priority and the standard channel mode to a low priority. Therefore, when it is determined that the channel type is a call channel, mobile phone 1 directly configures the current channel mode to the privacy channel mode. In another example, mobile phone 1 can pre-save the channel mode used during the last regular call. If the channel mode used during the last regular call was the standard channel mode, mobile phone 1 configures the current channel mode to the standard channel mode; if the channel mode used during the last regular call was the privacy channel mode, mobile phone 1 configures the current channel mode to the privacy channel mode. In another example, mobile phone 1 can obtain current environmental parameters. If the current environmental parameters indicate that the external environment is relatively noisy, mobile phone 1 configures the channel mode to privacy channel mode; if the current environmental parameters indicate that the external environment is relatively quiet, mobile phone 1 configures the channel mode to standard channel mode.
[0147] After mobile phone 1 responds to user input and configures parameters such as the channel mode and volume based on the channel type, a voice call link can be established between mobile phone 1 and mobile phone 2, displaying the call interface shown in Figure 9(b) or Figure 10(b). On the one hand, mobile phone 1 can collect the user's voice signal through its microphone, convert it into an audio signal through its audio data signal processor (ADSP), and then send the audio signal to mobile phone 2, which can then play the audio signal. On the other hand, mobile phone 1 can convert the audio signal from mobile phone 2 into a sound signal and play it through the sound device of mobile phone 1 according to the configured channel mode and volume parameters. For example, as shown in Figure 9(b), mobile phone 1 can enter private channel mode and use the private channel mode to play the sound signal at the historical volume value. Because private channel mode reduces the far-field loudness of the audio signal while maintaining the near-field loudness of the audio signal, it can ensure the user's listening experience while protecting the user's privacy and security, preventing the disclosure of the user's private information. For the specific implementation of the privacy channel mode, please refer to the description of the above embodiment and will not be repeated here.
[0148] During a call, the user can adjust the volume of the mobile phone 1 according to actual needs. Accordingly, the mobile phone 1 can respond to the user's adjustment operation, adjust the volume to the volume corresponding to the adjustment operation, and switch the channel mode to the channel mode corresponding to the adjusted volume.
[0149] In an exemplary regular call scenario, a user can operate the answer control 11 (Figure 9(a)) to trigger the phone 1 to display the call interface (Figure 9(b)) and enter private channel mode. If the external environment is noisy but the user does not need to protect their privacy, they can increase the volume of the phone 1. As shown in Figure 9(c), the user presses the "Volume +" button 12 on the side frame of the phone 1 for the first time. In response to this first press, the phone 1 displays the volume control 13 (Figure 9(d)). The volume control 13 includes a circular button 13a and a volume bar 13b. The circular button 13a can slide along the volume bar 13b, and the specific position of the circular button 13a within the volume bar 13b indicates the current volume of the phone 1. Then, as shown in Figure 9(e), the user can continue to press the "Volume +" button 12 for the Nth time, where N is an integer greater than or equal to 2. As shown in (f) of FIG9 , each time the user presses the “Volume +” button 12, the volume of the mobile phone 1 increases by one level, and the circular button 13a of the volume control 13 slides upward a preset distance, so that the user can know the current volume increase. If the mobile phone 1 has already entered the standard channel mode before the user presses the “Volume +” button 12, the mobile phone 1 will continue to maintain the standard channel mode and increase the volume of the played audio according to the number of times the “Volume +” button 12 is pressed. Alternatively, if the mobile phone 1 is in the private channel mode and has not yet entered the standard channel mode before the user presses the “Volume +” button 12, the mobile phone 1 will switch from the private channel mode to the standard channel mode after detecting that the standard channel mode switching conditions are met, and increase the volume of the played audio according to the number of times the “Volume +” button 12 is pressed.
[0150] Wherein, assuming that the volume before the change is the first volume and the volume after the change is the second volume, the standard channel mode switching condition can be any one of the following: (1) The second volume is greater than the first volume. That is, as long as the volume increase is detected, it can be determined that the standard channel mode switching condition is met. (2) The difference between the second volume and the first volume is greater than or equal to the preset difference. That is, when it is detected that the volume increase is greater than or equal to the preset difference, it can be determined that the volume meets the standard channel mode switching condition. (3) The ratio of the second volume to the first volume is greater than or equal to the preset ratio. That is, when it is detected that the volume increase is greater than or equal to the preset ratio, it can be determined that the volume meets the standard channel mode switching condition. (4) The second volume is greater than the preset volume. That is, when it is detected that the volume after the change is greater than the preset volume, it can be determined that the volume meets the standard channel mode switching condition.
[0151] In another exemplary regular call scenario, a user can trigger the phone 1 to display the call interface (see Figure 10(b)) and enter standard audio mode by operating the answer control 11 (see Figure 10(a)). If the user is around others and needs to protect their privacy, they may need to lower the volume of their phone to prevent others from hearing the call. As shown in Figure 10(c), the user presses the "Volume-" button 14 on the side frame of the phone 1 for the first time. In response to this first press, the phone 1 displays the volume control 13, as shown in Figure 10(d). The volume control 13 includes a circular button 13a and a volume bar 13b. The circular button 13a can slide along the volume bar 13b, and the specific position of the circular button 13a within the volume bar 13b indicates the current volume of the phone 1. Then, as shown in Figure 10(e), the user can continue to press the "Volume-" button 14 for the Nth time, where N is an integer greater than or equal to 2. As shown in (f) of FIG10 , each time the user presses the “volume-” button 14, the volume of the mobile phone 1 decreases by one level, and the circular button of the volume control 13 slides downward a preset distance, so that the user can know the current volume reduction. If the mobile phone 1 has already entered the privacy channel mode before the user presses the “volume-” button 14, the mobile phone 1 will continue to maintain the privacy channel mode and reduce the volume of the played audio according to the number of times the “volume-” button 14 is pressed. Alternatively, if the mobile phone 1 is in the standard channel mode and has not yet entered the privacy channel mode before the user presses the “volume-” button 14, the mobile phone 1 will switch from the standard channel mode to the privacy channel mode after detecting that the privacy channel mode conditions are met, and reduce the volume of the played audio according to the “volume-” button 14.
[0152] Assuming that the volume before the change is the first volume and the volume after the change is the third volume, the privacy channel mode condition can be any of the following: (1) The third volume is less than the first volume. That is, as long as the volume decreases, it can be determined that the volume meets the privacy channel mode switching condition. (2) The difference between the first volume and the third volume is greater than or equal to the preset difference. That is, when it is detected that the volume decreases by a greater than or equal to the preset difference, it can be determined that the volume meets the privacy channel mode switching condition. (3) The ratio of the first volume to the third volume is greater than or equal to the preset ratio. That is, when it is detected that the volume decreases by a greater than or equal to the preset ratio, it can be determined that the volume meets the privacy channel mode switching condition. (4) The third volume is less than or equal to the preset volume. That is, when it is detected that the volume after the change is less than or equal to the preset volume, it can be determined that the volume meets the privacy channel mode switching condition.
[0153] It should be noted that the above embodiment is described by taking the example of a user adjusting the volume by pressing mechanical buttons such as the "volume +" button 12 and the "volume -" button 14 to switch the channel mode, and does not limit the embodiment of the present application. The embodiment of the present application can also achieve volume adjustment through other methods, such as directly sliding the circular button 13a in the volume control 13 left and right or up and down to trigger the mobile phone to increase or decrease the volume, thereby switching the channel mode.
[0154] In an exemplary regular call scenario, as shown in FIG11(a), a user can click or long-press any blank area on the screen. As shown in FIG11(b), the volume control 13 is displayed on the mobile phone 1 near the clicked or long-pressed location. The volume control 13 includes a circular button 13a and a volume bar 13b. Then, as shown in FIG11(c), the user can slide the circular button 13a upward along the volume bar 13b, so that the mobile phone 1 increases the volume according to the distance slid upward and enters the standard channel mode.
[0155] In another exemplary regular call scenario, as shown in FIG12(a), the user can click or long-press any blank area on the screen. As shown in FIG12(b), the volume control 13 is displayed on the mobile phone 1 near the clicked or long-pressed location. The volume control 13 includes a circular button 13a and a volume bar 13b. Then, as shown in FIG12(c), the user can slide the circular button 13a downward along the volume bar 13b, so that the mobile phone 1 reduces the volume according to the downward sliding distance and enters the private channel mode.
[0156] In another exemplary regular call scenario, as shown in (a) of Figure 13, the user can slide down in the top area of the screen. As shown in (b) of Figure 13, the mobile phone 1 displays a shortcut bar 15, which includes Bluetooth controls, mobile data controls, mute controls, and volume controls 16. Among them, the volume control 16 includes a circular button 16a and a volume bar 16b. Then, as shown in (c) of Figure 13, the user can slide the circular button 16a to the right along the volume bar 16b, so that the mobile phone 1 increases the volume according to the distance slid to the right and enters the standard channel mode.
[0157] In another exemplary regular call scenario, as shown in (a) of Figure 14, the user can swipe down on the top area of the screen. As shown in (b) of Figure 14, the mobile phone 1 displays a shortcut bar 15, which includes Bluetooth controls, mobile data controls, mute controls, and volume controls 16. Among them, the volume control 16 includes a circular button 16a and a volume bar 16b. Then, as shown in (c) of Figure 14, the user can slide the circular button 16a to the left along the volume bar 16b, so that the mobile phone 1 reduces the volume according to the distance swiped to the left and enters the private channel mode.
[0158] The above embodiment introduces the specific implementation method of switching the channel mode using the incoming call scenario as an example. It should be understood that the implementation method of the outgoing call scenario is similar to that of the incoming call scenario. After mobile phone 1 initiates a call request to mobile phone 2, mobile phone 1 will configure the channel mode and volume and other parameters for mobile phone 1 according to the channel type. If the user using mobile phone 2 clicks the answer control, mobile phone 1 and mobile phone 2 establish a voice call link and display the call interface as shown in (b) in Figure 9 or (b) in Figure 10. Since the channel type of the outgoing call scenario is also the call channel type, and the call channel corresponds to the standard channel mode and the privacy channel mode, mobile phone 1 can select a channel mode that meets the conditions between the standard channel mode and the privacy channel mode, and during the call, mobile phone 1 can also adjust the volume to the corresponding volume in response to the user operation and switch to the channel mode corresponding to the current volume. The specific implementation method can refer to the specific description of the incoming call scenario and will not be repeated here.
[0159] The second exemplary application scenario: a third-party application call scenario.
[0160] Third-party app call scenarios include video calls and voice calls. In a video call, the user needs to see the other party's video image, so they need to maintain a certain distance from the screen. To clearly hear the other party's audio, the phone typically uses the speaker to play the audio. In a voice call, the user does not need to see the other party's video image. The phone can use the speaker to play the audio, or use the earpiece to play the audio in standard channel mode or privacy channel mode.
[0161] For example, Figures 15 to 17 show three third-party application call scenarios.
[0162] In an exemplary third-party application call scenario, when mobile phone 2 sends a voice call request to mobile phone 1, inviting mobile phone 1 to conduct a voice call, mobile phone 1 displays the voice call request interface shown in Figure 15 (a), which includes a rejection control and an answer control 17. If the user clicks the answer control 17, mobile phone 1 responds to the user's operation and configures parameters such as the channel mode and volume for mobile phone 1 based on the current channel type. Since the channel type in this scenario is a voice call type, mobile phone 1 can select a channel mode that meets the conditions between the standard channel mode and the privacy channel mode and establish a voice call link with mobile phone 2.
[0163] After establishing a voice call link between Phone 1 and Phone 2, Phone 1 displays the voice call interface shown in Figure 15(b) and enters private channel mode. On the one hand, Phone 1 can collect the user's voice signal through the microphone, convert the voice signal into an audio signal through the ADSP, and then send the audio signal to Phone 2, so that Phone 2 can play the audio signal. On the other hand, Phone 1 can convert the audio signal from Phone 2 into a sound signal and play it in private channel mode according to the historical volume value.
[0164] During a call, the user can adjust the volume and / or call mode of the phone 1 as needed. If the external environment is too noisy but privacy protection is not necessary, or if the user simply feels the current volume is too low, the user can increase the volume of the phone 1 to ensure a pleasant listening experience. As shown in Figure 15 (c), the user can press the "Volume +" button 12 on the side frame of the phone 1 one or more times. Each time the user presses the "Volume +" button 12, the volume of the phone 1 increases by one level, and the circular button 13a slides upward along the volume bar 13b, allowing the user to see the current volume increase. Since the phone 1 is in private channel mode and has not yet entered standard channel mode before the user presses the "Volume +" button 12, the phone 1 can switch from private channel mode to standard channel mode after detecting that the standard channel mode switching conditions have been met. The standard channel mode switching conditions can be referred to the description of the above embodiment and will not be repeated here.
[0165] In another exemplary third-party application call scenario, when mobile phone 1 sends a voice call request to mobile phone 2, inviting mobile phone 2 to make a voice call, mobile phone 1 displays the waiting for the other party to answer the voice call interface as shown in (a) in Figure 16. The waiting for the other party to answer the voice call interface includes a cancel control, a speaker off control, and a microphone on control. If the user of mobile phone 2 answers the voice call, mobile phone 1 can configure parameters such as channel mode and volume for mobile phone 1 based on the current channel type, and establish a voice call link with mobile phone 2. Since the channel type in this scenario is a voice call type, mobile phone 1 can select a channel mode that meets the conditions between the standard channel mode and the privacy channel mode.
[0166] After establishing a voice call link between Phone 1 and Phone 2, Phone 1 displays the voice call interface shown in Figure 16(b) and enters private channel mode. On the one hand, Phone 1 can collect the user's voice signal through the microphone, convert the voice signal into an audio signal through the ADSP, and then send the audio signal to Phone 2, so that Phone 2 can play the audio signal. On the other hand, Phone 1 can convert the audio signal from Phone 2 into a sound signal and play it in private channel mode according to the historical volume value.
[0167] The third-party application call scenario also provides a video call function, so the mobile phone 1 may also switch from a voice call to a video call. As shown in (b) of Figure 16, if the user clicks the switch to video answering control 18 in the voice call interface, the mobile phone 1 responds to the operation of switching to the video answering control 18, turns on the camera and speaker of the mobile phone 1, and switches from the voice call interface to the video call interface as shown in (c) of Figure 16. The video call interface includes a video image from the mobile phone 2. Among them, the speaker is off control is switched to the speaker is on control. It should be understood that in the video call scenario, the user wants to watch the other party's video image, so the user needs to keep a certain distance from the screen. At this time, in order to facilitate the user to hear the sound from the other end clearly, the mobile phone usually adopts the external speaker mode of playing the sound through the speaker.
[0168] In another exemplary third-party application call scenario, when mobile phone 2 sends a video call request to mobile phone 1, inviting mobile phone 1 to make a video call, mobile phone 1 displays the video call request interface shown in (a) of Figure 17. The video call request interface includes a rejection control, an answer control, and a switch to voice answer control 19. If the user clicks the answer control, mobile phone 1 responds to the user operation and establishes a video call link with mobile phone 2, and then sets the channel mode to an external speaker mode where the sound is played by the speaker. If the user clicks the switch to voice answer control 19, mobile phone 1 responds to the user operation and configures the channel mode, volume and other parameters for mobile phone 1 according to the current channel type. Since the channel type in this scenario is a voice call type, mobile phone 1 can select a channel mode that meets the conditions between the standard channel mode and the privacy channel mode, and establish a voice call link with mobile phone 2.
[0169] After a voice call link is established between Phone 1 and Phone 2, Phone 1 displays the voice call interface shown in Figure 17(b) and enters private channel mode. On the one hand, Phone 1 can collect the user's voice signal through the microphone, convert the voice signal into an audio signal through the ADSP, and then send the audio signal to Phone 2, so that Phone 2 can play the audio signal. On the other hand, Phone 1 can convert the audio signal from Phone 2 into a sound signal and play it in private channel mode according to the historical volume value.
[0170] In a voice call scenario, if the user of mobile phone 1 wants to share voice content with others around them, as shown in (b) of Figure 17, the user can click the speaker off control 20 on the voice call interface. Then, in response to the operation of the speaker off control 20, mobile phone 1 turns on the speaker of mobile phone 1, plays the sound outward through the speaker, and keeps displaying the voice call interface. Among them, the speaker off control 20 is updated to be displayed as the speaker on control 21 as shown in (c) of Figure 17. It should be understood that in a voice call scenario, since the volume of the external speaker mode is relatively high, when the user wants to share voice content with others around him, the external speaker mode can be used to play the sound at a higher volume.
[0171] It should be noted that this application only shows three exemplary third-party application call scenarios. In actual implementation, the channel mode switching method provided in the embodiment of this application can also be applied to any other possible third-party application call scenarios. For example, when mobile phone 1 is making a voice call, if the current channel mode is standard channel mode, the user can reduce the volume, and after the privacy call mode conditions are met, mobile phone 1 switches from standard channel mode to privacy channel mode. For another example, when mobile phone 1 switches from an ongoing video call to a voice call, the user does not need to manually adjust the volume, and mobile phone 1 automatically switches to standard channel mode or privacy channel mode. For another example, when mobile phone 1 is making a voice call, if the user puts his ear close to the receiver of mobile phone 1, the screen of mobile phone 1 is turned off, and it switches from external speaker mode to standard channel mode or privacy channel mode.
[0172] The above embodiment introduces the specific implementation method of switching the channel mode in the third-party application call scenario. Similar to the conventional call scenario, the third-party application call scenario can select a qualified channel mode from the standard channel mode and the privacy channel mode at the initial moment of establishing the voice call link. During the voice call, the third-party application call scenario can be switched through the following modes: by increasing the volume, switching from the privacy channel mode to the standard channel mode; by reducing the volume, switching from the standard channel mode to the privacy channel mode; by operating the speaker control that is turned off and switching to the video listening control, switching from the privacy channel mode or the standard channel mode to the external speaker mode; by operating the speaker control that is turned on and switching to the voice listening control, switching from the external speaker mode to the privacy channel mode or the standard channel mode.
[0173] At the initial moment of establishing a voice call link, mobile phone 1 may also select a matching channel mode between standard channel mode and privacy channel mode using any of the following methods: Method 1: Mobile phone 1 may pre-set the privacy channel mode to high priority and the standard channel mode to low priority. Therefore, if the channel type is determined to be a call channel, mobile phone 1 directly configures the current channel mode to privacy channel mode. Method 2: Mobile phone 1 may pre-store the channel mode used during the last regular call. If the channel mode used during the last regular call was standard channel mode, mobile phone 1 configures the current channel mode to standard channel mode; if the channel mode used during the last regular call was privacy channel mode, mobile phone 1 configures the current channel mode to privacy channel mode. Method 3: Mobile phone 1 may obtain current environmental parameters. If the current environmental parameters indicate that the external environment is relatively noisy, mobile phone 1 configures the channel mode to privacy channel mode; if the current environmental parameters indicate that the external environment is relatively quiet, mobile phone 1 configures the channel mode to standard channel mode.
[0174] The third exemplary application scenario: the scenario of playing a voice message.
[0175] In the communication scenario, both parties can exchange not only text chat messages but also voice chat messages. In the embodiment of the present application, the mobile phone can use any of the following playback modes to play the voice message from the other party: the external speaker mode based on the speaker, the standard channel mode based on the earpiece, and the private channel mode based on software / hardware implementation.
[0176] The following example illustrates how to achieve a privacy channel mode by canceling out a first audio signal emitted by a handset and a second audio signal emitted by a speaker (both the second audio signal and the first audio signal are analog audio signals, and the second audio signal has an opposite phase to the first audio signal) as provided in FIG3 .
[0177] As shown in FIG18(a), mobile phone 1 can display a conversation interface with Teacher Wang, which includes multiple voice messages from Teacher Wang and a voice message from the local user. If the user clicks on the first voice message 22 (or any other voice message) in the conversation interface, and the distance between the user and mobile phone 1 is greater than or equal to the preset distance, then as shown in FIG18(b), mobile phone 1 automatically enters loudspeaker mode and plays the content of the voice message aloud through the speaker at volume 1.
[0178] If the user does not want others around to hear the voice message, or does not want to disturb others, as shown in FIG18(c), the user can put his ear close to the receiver of mobile phone 1. Mobile phone 1 detects that the distance between the user and the ear is less than the preset distance and switches from the external speaker mode to the standard channel mode, thereby playing the voice message content through the receiver at volume 2. Volume 2 is lower than volume 1.
[0179] When playing the voice message at volume 2 through the receiver, if the user still feels that the volume is too loud and the content of the voice message may be heard by other people around, then as shown in (d) in Figure 18, the user can lower the volume by pressing the "volume-" button. Each time the user presses the "volume-" button, the volume of the mobile phone 1 is reduced by one level, and the circular button of the volume control slides down a preset distance. Before the user presses the "volume-" button, the mobile phone 1 is in standard channel mode and has not yet entered the privacy channel mode. After detecting that the privacy channel mode conditions are met, the mobile phone 1 switches from standard channel mode to privacy channel mode. For the privacy channel mode switching conditions, please refer to the description of the above embodiment and will not be repeated here.
[0180] It should be noted that the above embodiment is illustrated by taking the mobile phone 1 as an example of switching from the external speaker mode to the standard channel mode and then to the private channel mode, which does not limit the embodiment of the present application. The embodiment of the present application also provides another method for switching the channel mode:
[0181] As shown in (a) of FIG19 , after the user clicks on the first voice message 22 in the conversation interface, the mobile phone 1 detects in real time whether there is a user within the preset distance. If it is detected that the distance between the user and the mobile phone 1 is greater than the preset distance, as shown in (b) of FIG19 , the speaker external mode is adopted to play the first voice message at volume 1. Then, the mobile phone 1 can continue to detect whether there is a user within the preset distance. If the user can put his ear close to the receiver of the mobile phone 1, the mobile phone 1 will detect that the distance between the user and the mobile phone 1 is less than the preset distance, and the channel type of the mobile phone 1 is also a call channel type, then the mobile phone 1 can refer to the method provided in the above embodiment and select a channel mode that meets the conditions between the standard channel mode and the privacy channel mode.
[0182] Taking mobile phone 1 selecting private channel mode as an example, as shown in Figure 19 (c), mobile phone 1 switches from external speaker mode to private channel mode and plays the first voice message at volume 3, which is lower than volume 1. While playing the voice message at volume 3, if the user feels the volume is too low to hear the message clearly but does not want others nearby to hear the message through the speaker, the user can increase the volume by pressing the "Volume +" button, as shown in Figure 19 (d). Each time the user presses the "Volume +" button, the volume of mobile phone 1 increases by one level, and the circular button of the volume control slides upward a preset distance. Before the user presses the "Volume +" button, mobile phone 1 is in private channel mode and has not yet entered standard channel mode. Upon detecting that the standard channel mode conditions are met, mobile phone 1 switches from private channel mode to standard channel mode. The standard channel mode switching conditions can be referred to the description of the above embodiment and will not be repeated here.
[0183] Furthermore, as shown in (c) in Figure 18, (d) in Figure 18, (c) in Figure 19, and (d) in Figure 19, when the distance between the mobile phone 1 and the user is less than the preset distance, the user may put his ear close to the screen. At this time, the user may no longer need to watch the screen content and only need to listen to the sound. Therefore, the mobile phone 1 can switch the screen from the bright screen state to the off screen state, thereby reducing power consumption. It should be understood that for conventional call scenarios, third-party application call scenarios, and scenarios for playing voice messages, the mobile phone 1 can switch the screen from the bright screen state to the off screen state when the distance between the mobile phone 1 and the user is less than the preset distance. Of course, when the distance between the mobile phone 1 and the user is less than the preset distance, the mobile phone 1 can also continue to maintain the bright screen state according to actual needs, and the embodiments of the present application are not limited thereto.
[0184] While an electronic device is playing a voice message, the user may move away from or closer to the electronic device at any time, or may increase or decrease the volume at any time. Therefore, the electronic device can adjust the sound channel mode in real time based on the detected distance between the user and the electronic device and whether there is an operation to adjust the volume.
[0185] Taking the current audio channel mode of mobile phone 1 as the privacy audio channel mode as an example, the following adjustment methods can be specifically included:
[0186] Adjustment method 1: After mobile phone 1 switches from standard channel mode to private channel mode, if no user operation to increase the volume is received, and the distance between mobile phone 1 and the user remains less than the preset distance (that is, the user is within the preset distance), then after playing the first voice message, mobile phone 1 can continue to use the private channel mode to play the second voice message, the third voice message, and so on in sequence until all voice messages are played.
[0187] Adjustment method 2: After mobile phone 1 switches from standard channel mode to private channel mode, if it receives a volume increase operation, meets the standard channel mode switching conditions, and the distance between mobile phone 1 and the user remains less than a preset distance (i.e., the user is within the preset distance), then mobile phone 1 can use standard channel mode to play the remaining voice messages at the increased volume... and directly play all voice messages. The standard channel mode switching conditions are any of the following: mobile phone 1 detects a volume increase, mobile phone 1 detects a volume increase value greater than or equal to a preset value, and mobile phone 1's current volume value is greater than a preset volume threshold.
[0188] Adjustment method 3: After mobile phone 1 switches from standard channel mode to privacy channel mode, if a volume increase operation is received and the above-mentioned standard channel mode switching conditions are not met, and the distance between mobile phone 1 and the user remains less than the preset distance (that is, the user is within the preset distance), then mobile phone 1 can continue to use privacy channel mode and play the remaining voice messages to be played at the increased volume... and directly play all voice messages.
[0189] Adjustment Method 4: After mobile phone 1 switches from standard channel mode to privacy channel mode, if the distance between mobile phone 1 and the user is greater than or equal to the preset distance (i.e., no user is within the preset distance), mobile phone 1 can use external speaker mode to play the remaining voice messages at a volume higher than that in privacy channel mode and standard channel mode (e.g., volume 6)... and directly play all voice messages. It should be understood that when there is no user within the preset distance, it means that the user is far away from mobile phone 1. In order for the user to hear the sound clearly, it is necessary to switch to external speaker mode with a higher volume, such as using the speaker to play the sound.
[0190] It should be understood that when the current channel mode of the mobile phone 1 is the standard channel mode, if the user lowers the volume or moves away from the mobile phone 1, the mobile phone 1 can adjust the channel mode and volume according to the above four adjustment methods, which will not be repeated here.
[0191] The fourth exemplary application scenario: automatically switching the channel mode according to the external environmental noise.
[0192] The above embodiments are all illustrative of switching to a channel mode corresponding to the adjusted volume in response to a user's volume adjustment operation, and do not limit the embodiments of the present application. The embodiments of the present application provide another method for automatically switching channel modes based on external environmental noise.
[0193] The following example illustrates how to achieve a privacy channel mode by canceling out a first audio signal emitted by a handset and a second audio signal emitted by a speaker (both the second audio signal and the first audio signal are analog audio signals, and the second audio signal has an opposite phase to the first audio signal) as provided in FIG3 .
[0194] In voice communication scenarios such as when mobile phone 1 receives an incoming call request from mobile phone 2, sends an outgoing call request to mobile phone 2, receives a voice call request from mobile phone 2, sends a voice call request to mobile phone 2, or plays a voice message from mobile phone 2, mobile phone 1 can determine that the current channel type is a call channel type and then select a channel mode that meets the requirements between the standard channel mode and the privacy channel mode. The specific implementation method for mobile phone 1 selecting a channel mode that meets the requirements between the standard channel mode and the privacy channel mode can be referred to the description of the above embodiment and will not be repeated here.
[0195] If mobile phone 1 is in private channel mode but the external noise level is low, it indicates that the user is in a relatively quiet environment and the probability of other people around is low. In this case, user privacy protection may not be necessary. Alternatively, if the mobile phone is in standard channel mode but the external noise level is high, it indicates that the user is in a noisy environment and the probability of other people around is high. In this case, user privacy protection may be necessary.
[0196] For example, as shown in FIG20 , a microphone may also be provided on the side frame of mobile phone 1. After mobile phone 1 selects a suitable channel mode between standard channel mode and privacy channel mode according to the method of the above embodiment, mobile phone 1 turns on the microphone and uses it to collect external noise signals. Mobile phone 1 performs digital signal processing on the external noise signal to determine the loudness of the external noise.
[0197] In one example, if the loudness of the external noise is greater than or equal to the preset loudness, it means that the external environment where the user is located is relatively noisy, and there is a high probability that there are other people around. At this time, the user's privacy may need to be protected. Mobile phone 1 determines whether it is currently in privacy channel mode. If mobile phone 1 is in privacy channel mode, then the privacy channel mode can continue to be maintained. If mobile phone 1 is in standard channel mode, then the user's privacy may be leaked, and it is necessary to switch from standard channel mode to privacy channel mode. When using privacy channel mode, the earpiece can play a first audio signal, and the speaker plays a second audio signal at the same time. Since the first audio signal and the second audio signal have opposite phases, the first audio signal and the second audio signal cancel each other out in the preset area around mobile phone 1, thereby reducing the leakage of voice communication content, thereby protecting the user's privacy and security.
[0198] In another example, if the loudness of the external noise is less than the preset loudness, it means that the external noise is small, the user's environment is relatively quiet, and the probability of other people around is low. At this time, there may be no need to protect the user's privacy. Mobile phone 1 determines whether it is currently in standard channel mode. If mobile phone 1 is in standard channel mode, then the standard channel mode can continue to be maintained. If mobile phone 1 is in privacy channel mode, since the loudness or audio quality of the privacy channel mode may be limited by software and hardware conditions, the privacy channel mode cannot achieve the audio playback effect of the standard channel mode, so mobile phone 1 may need to switch from privacy channel mode to standard channel mode. When using the standard channel mode, the earpiece can play the first audio signal, and the speaker may not play the audio signal, so that the first audio signal can reach the preset area around the mobile phone 1, ensuring the user's auditory experience.
[0199] The above embodiment is explained by using a microphone to collect external noise to determine whether to switch the channel mode. However, when the external environment in which the user is located is relatively noisy, there may not be other people around the user. For example, when the user is on the road, the noise of vehicles makes it loud, but there may be no other people around the user. In this case, there is no need to switch from the standard channel mode to the privacy channel mode; or, when the external environment in which the user is located is relatively quiet, there may be other people around the user. For example, when the user is attending a meeting, although the meeting environment is relatively quiet, there are other people around the user. In this case, it is necessary to switch from the standard channel mode to the privacy channel mode. In view of these problems, the embodiment of the present application also provides another channel mode switching method:
[0200] For example, as shown in FIG21 , a camera may also be provided on the side frame of mobile phone 1. After mobile phone 1 selects a suitable audio channel mode between standard audio channel mode and privacy audio channel mode according to the method of the above embodiment, mobile phone 1 turns on the camera and uses it to capture the external image surrounding mobile phone 1. Mobile phone 1 analyzes the external image to determine whether there are other people nearby. If there are other people nearby, the phone enters privacy audio channel mode. If there are no other people nearby, the phone enters standard audio channel mode.
[0201] The architecture of the electronic device is introduced below with reference to FIG22 .
[0202] FIG22 shows a schematic diagram of the architecture of an electronic device provided in an embodiment of the present application.
[0203] As shown in Figure 22, electronic devices can adopt a layered architecture to divide the software into several layers, each with a clear role and division of labor. The layers communicate with each other through interfaces. In some embodiments, the software layers are divided from top to bottom into: application layer (APP), framework layer (FWK), hardware abstract layer (HAL), and kernel layer (Kernal). In addition to the software layer, Figure 22 also shows the hardware layer.
[0204] The application layer can include a series of application packages, such as call / phone applications, third-party communication applications, cameras, galleries, settings, calendars, maps, and navigation. When these application packages are running, they can access the various service modules provided by the application framework layer through the application programming interface (API) and perform corresponding intelligent services. Applications have visual user interfaces. For example, when a mobile phone makes a call or receives a call from another device using the call application, the mobile phone can display the call interface shown in Figures 9-14. For another example, when the mobile phone uses a third-party communication application to make a voice call with another device, the mobile phone can display the voice call interface shown in Figures 15-17. For another example, when the mobile phone plays a voice message from another device, the mobile phone can display the voice message interface shown in Figures 18-19. When the user operates any control in these interfaces, the application performs certain control operations through the application programming interface, such as starting a call, ending a call, playing a voice message, etc.
[0205] The framework layer supports the operation of various applications in the application layer. For example, the framework layer may include: the call window manager (PhoneWindowManager), the audio manager (AudioManager), the adjustSuggestedSteamVolume module, the getActiveStreamType module, the adjustSteamVolume module, and the setMode module. The call window manager (PhoneWindowManager) manages windows and application interfaces, such as updating the interface in response to user actions. The audio manager (AudioManager) provides APIs for controlling and accessing an application's audio streams, volume levels, and ringtone modes. The adjustSuggestedSteamVolume module adjusts the volume of the most relevant stream or a given fallback stream. The getActiveStreamType module retrieves the audio / channel type, such as the call channel type, media channel type, or Bluetooth channel type. The volume setting (adjustSteamVolume) module is used to obtain historical volume values and set the current audio volume based on these values. The channel mode setting (setMode) module is used to set the channel mode based on the audio / channel type, such as standard channel mode, privacy channel mode, and external speaker mode. For details on the three channel modes, refer to the descriptions in the previous embodiments and will not be repeated here.
[0206] The Hardware Abstraction Layer (HAL) encapsulates Linux kernel drivers and provides an interface to the operating system. It hides the platform-specific hardware interface details and provides a virtual hardware platform for the operating system, making it hardware-independent and portable across multiple platforms. For example, the HAL includes the Audio Hal and the Bluetooth Hal. The Audio Hal defines the standard interface that must be implemented by the phone when calling audio services to ensure the proper functioning of the audio hardware. It is responsible for associating the audio stream management (AudioFlinger) and audio policy (AudioPolicy) modules with the hardware devices.
[0207] The kernel layer is the layer between hardware and software. The kernel layer includes at least an earpiece driver, a speaker driver, a screen sound device driver, a headphone driver, a display driver, a camera driver and a sensor driver, etc. Among them, the earpiece driver is mainly responsible for interacting with the earpiece. The speaker driver is mainly responsible for interacting with the speaker. The screen sound device driver is mainly responsible for interacting with the screen sound device. In an embodiment of the present application, the kernel layer includes one or more pulse code modulation (PCM) virtual devices, also known as PCM logical devices, PCM middle layers or PCM native services. PCM virtual devices are PCM device files. In the Linux system, all devices are ultimately abstracted into one or more device files that can be accessed by user space. The user space process achieves the purpose of controlling the hardware by reading and writing these device files. For playing sound or recording sound, the audio Hal and Bluetooth Hal are implemented by reading and writing PCM device files. To implement call recording in the Android system, you need to obtain the recording data from a specified PCM virtual device. The recording data includes the audio of both parties on the call. The PCM virtual device can be specified by selecting an audio usecase, and one PCM virtual device can correspond to multiple usecases.
[0208] The hardware layer provides various hardware devices, such as receivers, speakers, screen sound devices, modems, ADSPs, Bluetooth chips and sensors, etc., which are not limited in the embodiments of the present application. Among them, the receiver and speaker are used to emit sound signals or audio signals, and the screen sound device is used to drive the screen to make sounds. The modem is used to convert the analog signal from the other end of the call into a digital signal, and to convert the digital signal from the ADSP into an analog signal. The ADSP is used to process audio data, such as sound effect processing of voice data, and mixing processing of multiple voice data. The Bluetooth chip is used to establish a Bluetooth connection with a Bluetooth device, and to transmit Bluetooth data, etc. In combination with the introduction of the standard channel mode, privacy channel mode and external speaker mode in the embodiments of the present application, when the electronic device adopts different channel modes, different sound devices (such as one or more of the receiver, speaker and screen sound device) will be used to make sounds.
[0209] It should be noted that the layers in the software structure shown in Figure 22 and the components contained in each layer do not constitute a specific limitation on the electronic device. In other embodiments, the electronic device may include more layers than shown in the figure, such as a system library (FWK LIB) layer. Each layer may include more or fewer components than shown in the figure. In addition, the above-mentioned functional modules may also be combined into one functional module, and the various layers may also be combined into one layer, such as the earpiece driver, speaker driver and screen sound device microphone can be combined into an audio driver.
[0210] It is understandable that in order to implement the channel mode switching method in the embodiment of the present application, the electronic device includes hardware and / or software modules that perform the corresponding functions. In combination with the algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments.
[0211] The channel mode switching method provided in the embodiment of the present application is exemplified below by taking the execution body of the channel mode switching method as the various modules in the software structure diagram shown in Figure 22 as an example.
[0212] For example, Figure 23 is a flow chart of a channel mode switching method provided in an embodiment of the present application. This method can be applied to the channel mode switching scenarios shown in Figures 9 to 19, or other audio playback scenarios. As shown in Figure 23, the method may include the following S00-S24. Among them, S00-S13 is used to describe how to set the channel mode before receiving the user's operation to adjust the volume, and S14-S24 is used to describe how to set the channel mode after receiving the user's operation to increase the volume.
[0213] S00: Receive an operation of activating a target application input by a user, and load and display an interface of a voice call application.
[0214] S01. A target application receives a user input requesting to establish a voice call or to play a voice message.
[0215] The target application may be a voice call application, specifically an application with real-time voice communication function, or an application with both real-time voice communication function and video communication function, or an application with voice message and text message interaction function.
[0216] For example, when the target application is a call / phone application, the operation of requesting to establish a voice call may be a click operation on the listening control 11 as shown in FIG. 9 (a) or FIG. 10 (a).
[0217] For another example, when the target application is a third-party communication application, the operation of requesting to establish a voice call can be a click operation on the answering control 17 as shown in (a) in Figure 15, or a confirmation operation of sending a voice call request to the other party as shown in (a) in Figure 16, or a click operation on switching to the voice answering control 19 as shown in (a) in Figure 17.
[0218] For another example, when the target application is a third-party communication application, the operation of requesting to play the voice message may be a click operation on the first voice message 22 as shown in (a) of FIG. 18 or (a) of FIG. 19 .
[0219] S02. The target application broadcasts a target event to initialize each module.
[0220] For example, after the target application receives an operation requesting to establish a voice call or to play a voice message, it may generate a target event for establishing a voice call or playing a voice message, and broadcast the target event to initialize various modules.
[0221] S03. The call window manager (PhoneWindowManager) initializes the user interface (UI) according to the monitored target event.
[0222] For example, when the operation requesting to establish a voice call is a click operation on the listening control 11 as shown in (a) in Figure 9, the call window manager (PhoneWindowManager) updates the incoming call interface as shown in (a) in Figure 9 to the calling interface as shown in (b) in Figure 9.
[0223] For another example, when the operation requesting to establish a voice call is a click operation on the answering control 17 as shown in (a) in Figure 15, or a confirmation operation of sending a voice call request to the other party as shown in (a) in Figure 16, or a click operation on switching to the voice answering control 19 as shown in (a) in Figure 17, the call window manager (PhoneWindowManager) updates these UI interfaces to the voice call interface.
[0224] For another example, when the operation requesting to play a voice message is a click operation on the first voice message 22 as shown in (a) in Figure 18, the call window manager (PhoneWindowManager) updates the UI interface shown in (a) in Figure 18 to the UI interface of playing the first voice message as shown in (b) in Figure 18.
[0225] S04. The call window manager (PhoneWindowManager) sends a message to the audio manager (AudioManager) to call the audio service.
[0226] It should be noted that the embodiment of the present application does not specifically limit the execution order of S03 and S04. For example, S03 can be executed first and then S04, or S04 can be executed first and then S03, or both can be executed at the same time.
[0227] S05. The AudioManager calls the adjustSuggestedSteamVolume module to set the channel mode and volume. The adjustSuggestedSteamVolume module is used to adjust the volume of the most relevant stream or a given fallback stream.
[0228] S06. The adjustSuggestedSteamVolume module calls the getActiveStreamType module to obtain the channel type corresponding to the target event.
[0229] The channel type acquisition (getActiveStreamType) module can pre-store multiple channel types, such as call channel type, media channel type and Bluetooth channel type. When user operations trigger the generation of different types of events, the channel type acquisition (getActiveStreamType) will determine the channel types corresponding to different types of events, and then enter different types of channel modes. For example, if the channel type is a call channel type, then it enters the standard channel mode and privacy channel mode, and plays audio in the standard channel mode and privacy channel mode. If the channel type is a media channel type, then it enters the external speaker mode and plays audio in the external speaker mode of the speaker. If the channel type is a Bluetooth channel type, then it enters the Bluetooth channel mode and plays audio through Bluetooth devices such as Bluetooth headphones, Bluetooth speakers or Bluetooth watches.
[0230] S07. The channel type acquisition (getActiveStreamType) module sends the acquired channel type to the volume setting (adjustSteamVolume) module and the channel mode setting (setMode) module respectively.
[0231] S08. The volume setting (adjustSteamVolume) module obtains the pre-stored historical volume according to the received channel type, and determines the volume of the current voice call (which may be referred to as the first volume) based on the historical volume.
[0232] In some embodiments, when the target event's channel type is determined to be a call channel type, the volume setting (adjustSteamVolume) module can retrieve pre-stored historical volume levels and determine the volume of the current voice call based on the historical volume levels. The channel type corresponding to the historical volume levels is also a call channel type.
[0233] For example, for call channel types, the electronic device may pre-store multiple volume levels as shown in Table 1 below. Volume level 1 corresponds to the lowest volume value, volume level 2 corresponds to a volume value greater than that corresponding to volume level 1, ..., volume level N+1 corresponds to a volume value greater than that corresponding to volume level N, ..., and volume level M corresponds to the highest volume value.
[0234] Wherein, N is an integer greater than 1 and less than M.
[0235] Table 1
[0236] Assuming that the volume value corresponding to volume level N is called the preset volume, and the preset volume is greater than the minimum volume and less than the maximum volume, the volume setting (adjustSteamVolume) module can determine the volume of the current voice call as follows: It determines whether the historical volume is less than or equal to the preset volume. If the historical volume is less than or equal to the preset volume, the historical volume is used as the volume for the current voice call. For example, if the historical volume is the volume value corresponding to volume level 2, the volume for the current voice call is the volume value corresponding to volume level 2. If the historical volume is greater than the preset volume, the preset volume is used as the volume for the current voice call. For example, if the historical volume is the volume value corresponding to volume level N+1, the volume for the current voice call is the volume value corresponding to volume level N+1. It should be understood that when the historical volume is low, the volume of the current voice call can be set to the same value as the historical volume, which may be more in line with user preferences. However, when the historical volume is high, setting the volume of the current voice call to a higher value may leak user privacy or disturb others. Therefore, the volume of the current voice call can be appropriately reduced to ensure that it does not exceed the preset volume. This ensures both a good listening experience and privacy.
[0237] S09. The channel mode setting (setMode) module sets the channel mode to a channel mode corresponding to the channel type according to the received channel type.
[0238] In an embodiment of the present application, the channel mode setting (setMode) module can store multiple channel modes, such as standard channel mode, privacy channel mode and external speaker mode.
[0239] If the received channel type is a call channel type, the channel mode setting (setMode) module sets the channel mode to standard channel mode or privacy channel mode, and plays audio in standard channel mode or privacy channel mode. If the received channel type is a media channel type, the channel mode setting (setMode) module sets the channel mode to external speaker mode, and plays audio through the speaker. If the received channel type is a Bluetooth channel type, the channel mode setting (setMode) module sets the channel mode to Bluetooth channel mode, and plays audio through Bluetooth devices such as Bluetooth headphones, Bluetooth speakers, or Bluetooth watches.
[0240] After the channel mode setting (setMode) module receives the channel type of the target event, the channel mode setting (setMode) module can determine that the channel type of the target event is a call channel type, so that it can select a qualified channel mode between the standard channel mode and the privacy channel mode, that is, automatically set the channel mode to the standard channel mode or the privacy channel mode.
[0241] Exemplarily, the channel mode setting (setMode) module may select a qualified channel mode from the standard channel mode or the privacy channel mode according to any one of the preset priority of the channel mode, the historical channel mode, and the external environmental noise.
[0242] Example 1: When selecting a qualified channel mode based on the preset priority of the channel mode, it can be achieved in the following way: if the preset priority of the privacy channel mode is higher than the preset priority of the standard channel mode, the privacy channel mode is determined to be the qualified channel mode; or, if the preset priority of the standard channel mode is higher than the preset priority of the privacy channel mode, the standard channel mode is determined to be the qualified channel mode.
[0243] Example 2: When selecting a qualified channel mode based on a historical channel mode, it can be achieved in the following way: if the historical channel mode is a privacy channel mode, then the privacy channel mode is determined to be a qualified channel mode; or, if the historical channel mode is a standard channel mode, then the standard channel mode is determined to be a qualified channel mode.
[0244] Example 3: When selecting a qualified channel mode based on external environmental noise, it can be achieved in the following way: if the loudness of the external environmental noise is greater than or equal to the preset loudness, the privacy channel mode is determined to be the qualified channel mode; or, if the loudness of the external environmental noise is less than the preset loudness, the standard channel mode is determined to be the qualified channel mode.
[0245] S10. The volume setting (adjustSteamVolume) module returns the first volume to the audio manager (AudioManager).
[0246] S11. The channel mode setting (setMode) module returns the set channel mode to the audio manager (AudioManager).
[0247] S12. The audio manager (AudioManager) determines a sound device corresponding to the set channel mode. If the set channel mode is different, the audio manager (AudioManager) determines a different sound device.
[0248] For example, the standard channel mode plays sound based on the earpiece, the privacy channel mode plays sound based on the screen sound device or two sound devices, and the external speaker mode plays sound based on the speaker.
[0249] S13. The audio manager (AudioManager) sends the set channel mode and first volume to the sound device to control the sound device to play the audio signal according to the set channel mode and first volume.
[0250] So far, the electronic device has completed the automatic setting of the channel mode through the above S01-S13. After S01-S13, the user can choose to increase or decrease the volume of the electronic device, and accordingly, the electronic device will switch the channel mode.
[0251] The following S14-S24 introduces how to set the channel mode when the user increases the volume of the electronic device.
[0252] S14. The call window manager (PhoneWindowManager) receives, through the target application, a user input for increasing the first volume to a second volume, wherein the second volume is greater than the first volume, and the user input is a pressing operation of a "volume +" button, or a sliding operation of a volume control in settings to the right or upward.
[0253] S15. The call window manager (PhoneWindowManager) sends a volume adjustment message to the audio manager (AudioManager).
[0254] S16. The audio manager (AudioManager) calls the adjustSuggestedSteamVolume module to adjust the channel mode and volume.
[0255] S17. The adjustSuggestedSteamVolume module sends a call message to the adjustSteamVolume module through the channel type acquisition (getActiveStreamType) module.
[0256] S18. The volume setting (adjustSteamVolume) module increases the first volume to the second volume.
[0257] S19. The channel mode setting (setMode) module determines whether the standard channel mode switching condition is met.
[0258] Exemplarily, the standard channel mode switching condition may include any one of the following:
[0259] (1) The second volume is greater than the first volume. That is, as long as the channel mode setting (setMode) module detects that the volume increases, it can be determined that the volume meets the standard channel mode switching condition.
[0260] (2) The difference between the second volume and the first volume is greater than or equal to the preset difference. That is, when the channel mode setting (setMode) module detects that the volume increase is greater than or equal to the preset difference, it can be determined that the volume meets the standard channel mode switching condition.
[0261] (3) The ratio of the second volume to the first volume is greater than or equal to a preset ratio. That is, when the channel mode setting (setMode) module detects that the volume increase is greater than or equal to the preset ratio, it can be determined that the volume meets the standard channel mode switching condition.
[0262] (4) The second volume is greater than the preset volume. That is, when the channel mode setting (setMode) module detects that the changed volume is greater than the preset volume, it can be determined that the volume meets the standard channel mode switching condition. The preset volume can be the volume value corresponding to the volume level N in Table 1.
[0263] S20: If the standard channel mode switching condition is met, the volume setting (adjustSteamVolume) module sets the channel mode to the standard channel mode. Otherwise, the channel mode used before receiving the volume increase operation is maintained.
[0264] Specifically, if the channel mode used before receiving the volume increase operation was the standard channel mode, then after determining that the standard channel mode switching condition is met, the standard channel mode is maintained. Alternatively, if the channel mode used before receiving the volume increase operation was the privacy channel mode, then after determining that the standard channel mode switching condition is met, the privacy channel mode is switched to the standard channel mode.
[0265] S21. The volume setting (adjustSteamVolume) module returns the second volume to the audio manager (AudioManager).
[0266] S22. The channel mode setting (setMode) module returns the standard channel mode to the audio manager (AudioManager).
[0267] S23. The audio manager (AudioManager) determines the sound device corresponding to the standard channel mode.
[0268] S24. The audio manager (AudioManager) sends the standard channel mode and the second volume to the sound device corresponding to the standard channel mode, so as to control the sound device to play the audio signal according to the standard channel mode and the second volume.
[0269] In an embodiment of the present application, when a user uses an electronic device to communicate with another device, such as by making a call or chatting, the electronic device can detect in real time whether the user has turned the volume up or down. When the conditions for switching to standard channel mode are met, the user may no longer need to protect their privacy information and can use standard channel mode to play the sound at a higher volume, thereby improving the user's listening experience.
[0270] For example, Figure 24 is a flow chart of another channel mode switching method provided in an embodiment of the present application. As shown in Figure 24, the method may include the following steps S00-S13, and S25-S35. S00-S13 are used to describe how to set the channel mode before receiving a user operation to adjust the volume, and S25-S35 are used to describe how to set the channel mode after receiving a user operation to lower the volume. The implementation of S01-S13 can refer to the description of the above embodiment and will not be repeated here.
[0271] The following S25-S35 introduces how to set the channel mode when the user lowers the volume of the electronic device.
[0272] S25. The call window manager (PhoneWindowManager) receives, through the target application, a user input for reducing the first volume to a third volume, where the third volume is lower than the first volume, and the user input is a pressing operation of a "Volume-" button or a sliding operation of a volume control in settings to the left or downward direction.
[0273] S26. The call window manager (PhoneWindowManager) sends a volume adjustment message to the audio manager (AudioManager).
[0274] S27. The audio manager (AudioManager) calls the adjustSuggestedSteamVolume module to adjust the channel mode and volume.
[0275] S28. The adjustSuggestedSteamVolume module sends a call message to the adjustSteamVolume module through the channel type acquisition (getActiveStreamType) module.
[0276] S29. The volume setting (adjustSteamVolume) module reduces the first volume to a third volume.
[0277] S30: The channel mode setting (setMode) module determines whether a privacy channel mode switching condition is met.
[0278] Exemplarily, the privacy channel mode switching condition may include any of the following:
[0279] (1) The third volume is less than the first volume. That is, as long as the channel mode setting (setMode) module detects that the volume is reduced, it can be determined that the volume meets the privacy channel mode switching condition.
[0280] (2) The difference between the first volume and the third volume is greater than or equal to a preset difference. That is, when the channel mode setting (setMode) module detects that the volume reduction is greater than or equal to the preset difference, it can be determined that the volume meets the privacy channel mode switching condition.
[0281] (3) The ratio of the first volume to the third volume is greater than or equal to a preset ratio. That is, when the channel mode setting (setMode) module detects that the volume reduction is greater than or equal to the preset ratio, it can be determined that the volume meets the privacy channel mode switching condition.
[0282] (4) The third volume is less than or equal to the preset volume. That is, when the channel mode setting (setMode) module detects that the changed volume is less than or equal to the preset volume, it can be determined that the volume meets the privacy channel mode switching condition. The preset volume can be the volume value corresponding to the volume level N in Table 1.
[0283] S31. If the privacy channel mode switching condition is met, the volume setting (adjustSteamVolume) module sets the channel mode to the privacy channel mode. Otherwise, the channel mode used before receiving the volume reduction operation is maintained.
[0284] Specifically, if the channel mode used before receiving the volume reduction operation was the standard channel mode, then after determining that the privacy channel mode switching condition is met, the standard channel mode is switched to the privacy channel mode. Alternatively, if the channel mode used before receiving the volume reduction operation was the privacy channel mode, the privacy channel mode is maintained.
[0285] S32. The volume setting (adjustSteamVolume) module returns the third volume to the audio manager (AudioManager).
[0286] S33. The channel mode setting (setMode) module returns the private channel mode to the audio manager (AudioManager).
[0287] S34. The audio manager (AudioManager) determines the sound device corresponding to the private channel mode.
[0288] S35. The audio manager (AudioManager) sends the privacy channel mode and the third volume to the sound device corresponding to the privacy channel mode, so as to control the sound device to play the audio signal according to the privacy channel mode and the third volume.
[0289] It should be understood that after the user turns up the volume, the user can turn it down again, and if the conditions for switching to the private channel mode are met, the electronic device will enter the private channel mode. Alternatively, after the user turns down the volume, the user can turn it up again, and if the conditions for switching to the standard channel mode are met, the electronic device will enter the standard channel mode.
[0290] In some embodiments, after the volume setting (adjustSteamVolume) module increases the first volume to the second volume, or decreases the first volume to the third volume, the volume setting (adjustSteamVolume) module may further save the current volume value, i.e., the second volume or the third volume. Thus, the next time the user uses the electronic device for voice communication, such as a call or voice chat, with another device, the electronic device may use the second volume or the third volume as a historical volume value and set the next volume based on the historical volume value.
[0291] In an embodiment of the present application, when a user uses an electronic device to communicate with another device, such as by making a call or chatting, the electronic device can detect in real time whether the user has turned the volume up or down. When the privacy channel mode is switched, the privacy channel mode can be used to reduce sound leakage from the electronic device and the disclosure of voice communication content, while ensuring that the user's listening experience remains essentially unchanged. This ensures a good listening experience while protecting the user's privacy.
[0292] The above embodiment uses a voice call application as an example to describe how to switch channel modes. For audio and video applications, such as music players and video players, embodiments of the present application also provide another method for switching channel modes. The method includes: receiving a user trigger operation on an audio and video application icon; in response to the operation, displaying the interface of the audio and video application. Then, receiving a user trigger operation on the audio and video application interface, playing the audio and video signals in either standard channel mode or external speaker mode. For example, the user can determine whether to use standard channel mode or external speaker mode by detecting the distance between the user and the electronic device. When the distance is less than a preset distance, the standard channel mode is used; when the distance is greater than or equal to the preset distance, the external speaker mode is used. The user can then adjust the volume of the electronic device. If a user volume adjustment operation is received while the audio and video signals are playing in standard channel mode, the audio and video signals continue to play in standard channel mode at the adjusted volume. Alternatively, if a user volume adjustment operation is received while the audio and video signals are playing in external speaker mode, the audio and video signals continue to play in external speaker mode at the adjusted volume. That is to say, when playing music using an audio and video application, you cannot switch modes by adjusting the volume, and the volume can only be increased or decreased in a certain mode.
[0293] It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure or software module corresponding to each function, or a combination of the two. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0294] FIG25 shows a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present application.
[0295] Taking the electronic device as a mobile phone 100 as an example, as shown in FIG25 , the mobile phone 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a screen sound device 170E, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display 194, and a subscriber identification module (SIM) card interface 195, etc. Among them, the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, and a bone conduction sensor 180M, etc.
[0296] The processor 110 may include one or more processing units, for example: the processor 110 may include a controller, an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, the controller may be the nerve center and command center of the mobile phone 100. The controller may generate an operation control signal based on the instruction opcode and timing signal to complete the control of instruction fetching and execution. The processor 110 may also be provided with a memory for storing instructions and data.
[0297] In an embodiment of the present application, the processor 110 is configured to detect in real time whether the user has increased or decreased the volume. When the current volume setting is low, a privacy channel mode can be used to reduce sound leakage and minimize the disclosure of voice communication content while ensuring that the user's listening experience remains essentially unchanged. When the current volume setting is high, the user may no longer need to protect their privacy information and can use a standard channel mode to play sound at a higher volume, thereby improving the user's listening experience.
[0298] The wireless communication function of the mobile phone 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0299] Mobile phone 100 implements its display function through a GPU, display screen 194, and an application processor. The GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and is used for graphics rendering, such as rendering the user interface diagrams shown in Figures 9-21.
[0300] The display screen 194 is used to display the operation interface of the projection APP, the projection image and the projection video, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), and a quantum dot light-emitting diode (QLED). In some embodiments, the mobile phone 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.
[0301] The mobile phone 100 can realize the shooting function through the ISP, camera 193, video codec, GPU, display 194 and application processor.
[0302] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and transformed into a visible image. The ISP can also perform algorithmic optimization on image noise, brightness, and skin tone. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0303] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the mobile phone 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0304] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the mobile phone 100 is selecting a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0305] Video codecs are used to compress or decompress digital video. Mobile phone 100 may support one or more video codecs. This allows mobile phone 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0306] The external memory interface 120 can be used to connect an external memory card to expand the storage capacity of the mobile phone 100. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function.
[0307] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the mobile phone 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, at least one application required for a function (such as a call application, a third-party communication application), etc. The data storage area can store data created during the use of the mobile phone 100 (such as the current volume value), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, and a universal flash storage (UFS), etc.
[0308] The mobile phone 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0309] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0310] The speaker 170A, also called a "horn," is used to convert audio electrical signals into sound signals. The mobile phone 100 can listen to music or make hands-free calls through the speaker 170A.
[0311] The receiver 170B, also called the "earpiece", is used to convert audio electrical signals into sound signals. When the mobile phone 100 receives a call or a voice message, the voice can be heard by placing the receiver 170B close to the ear.
[0312] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The mobile phone 100 can be provided with at least one microphone 170C. In other embodiments, the mobile phone 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the mobile phone 100 can also be provided with three, four or more microphones 170C to realize sound signal collection, noise reduction, and identification of sound sources, and realize directional recording function, etc.
[0313] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0314] The screen sound-generating device 170E can be any device that can generate controllable vibrations, such as a piezoelectric ceramic exciter, a voice coil exciter, etc., and is used to drive the display screen 194 to vibrate, thereby causing the display screen 194 to emit sound.
[0315] It should be understood that the structures illustrated in the embodiments of the present application do not constitute a specific limitation on the mobile phone 100. In other embodiments of the present application, the mobile phone 100 may include more or fewer components than shown, or may combine or separate certain components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0316] The embodiment of the present application also provides a computer-readable storage medium, which stores computer instructions; when the computer-readable storage medium is run on an electronic device, the electronic device executes the method shown above. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more media integrated therein. The available medium can be a magnetic medium (e.g., a floppy disk, hard disk or tape), an optical medium or a semiconductor medium (e.g., a solid state disk (SSD)), etc.
[0317] An embodiment of the present application further provides a computer program product, which includes computer program code. When the computer program code runs on a computer, the computer executes the methods in the above embodiments.
[0318] An embodiment of the present application further provides a chip coupled to a memory, the chip being used to read and execute computer programs or instructions stored in the memory to perform the methods described in each of the above embodiments. The chip may be a general-purpose processor or a dedicated processor. In some embodiments, the chip includes a processor, a transceiver, and a storage medium. The processor is used to support the electronic device in executing the technical solution described above. The transceiver is used to accept control of the processor and support the electronic device in executing the technical solution described above.
[0319] It should be noted that the chip can be implemented using the following circuits or devices: one or more field programmable gate arrays (FPGAs), programmable logic devices (PLDs), controllers, state machines, gate logic, discrete hardware components, any other suitable circuits, or any combination of circuits that can perform the various functions described throughout this application.
[0320] The electronic device, computer-readable storage medium, computer program product and chip provided in the above-mentioned embodiments of the present application are all used to execute the methods provided above. Therefore, the beneficial effects that can be achieved can refer to the corresponding beneficial effects of the methods provided above, and will not be repeated here.
[0321] It should be understood that the above is only to help those skilled in the art better understand the embodiments of the present application, and is not intended to limit the scope of the embodiments of the present application. Based on the above examples given, those skilled in the art can obviously make various equivalent modifications or changes. For example, certain steps in each embodiment of the above detection method may be unnecessary, or certain new steps may be added. Or a combination of any two or any multiple embodiments described above. Such modifications, changes, or combined solutions also fall within the scope of the embodiments of the present application.
[0322] It should also be understood that “greater than” can be replaced with “greater than or equal to”, “less than or equal to” can be replaced with “less than”, or “greater than or equal to” can be replaced with “greater than”, and “less than” can be replaced with “less than or equal to”.
[0323] It should also be understood that the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0324] It should also be understood that in the embodiments of the present application, "pre-setting" and "pre-definition" can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including an electronic device), and the present application does not limit its specific implementation method.
[0325] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A channel mode switching method, It is characterized in that Applied to electronic equipment, the method comprises: Receiving a first operation from a user; In response to the first operation, displaying an interface of a call application; receiving a second operation of the user; In response to the second operation, playing the voice signal of the call application at a first volume; receiving a third operation of the user; When the third operation is an operation of increasing the first volume to a second volume, in response to the third operation, the standard channel mode is adopted to play the voice signal at the second volume; or, when the third operation is an operation of reducing the first volume to a third volume, in response to the third operation, the privacy channel mode is adopted to play the voice signal at the third volume; When the electronic device adopts the standard channel mode to play the voice signal at the fourth volume, the loudness at the first position is the first loudness; when the electronic device adopts the privacy channel mode to play the voice signal at the fifth volume, the loudness at the first position is the second loudness; the distance between the first position and the electronic device is greater than or equal to the preset distance, the second loudness is less than the first loudness, and the fourth volume is the same as the fifth volume.
2. The method according to claim 1, It is characterized in that The first loudness and the second loudness satisfy the following relationship: a difference between the first loudness and the second loudness is greater than or equal to a first difference.
3. The method according to claim 2, It is characterized in that When the electronic device uses the standard channel mode to play the voice signal at the fourth volume, the loudness at the second position is the third loudness; when the electronic device uses the privacy channel mode to play the voice signal at the fifth volume, the loudness at the second position is the fourth loudness; the distance between the second position and the electronic device is less than the preset distance; The third loudness and the fourth loudness satisfy the following relationship: a difference between the third loudness and the fourth loudness is less than or equal to a second difference, and the second difference is less than the first difference.
4. The method according to claim 1, It is characterized in that The method comprises: receiving a fourth operation of the user; In response to the fourth operation, displaying an interface of a first application, where the first application is a non-call application installed on the electronic device; receiving a fifth operation of the user; In response to the fifth operation, the audio and video signals are played in the standard channel mode or the external speaker mode; If a sixth operation of adjusting the volume by the user is received when the audio and video signal is played in the standard channel mode, the audio and video signal continues to be played in the standard channel mode at the adjusted volume in response to the sixth operation; or, if a seventh operation of adjusting the volume by the user is received when the audio and video signal is played in the external speaker mode, the audio and video signal continues to be played in the external speaker mode at the adjusted volume in response to the seventh operation.
5. The method according to claim 4, It is characterized in that The first application is any one of the following: a music player, a video player, a game application, and a map application with a voice navigation function.
6. The method according to any one of claims 1 to 5, It is characterized in that The call application is any one of the following: a telephone application, a voice chat application, a video chat application, and a social application with a voice messaging function.
7. The method according to any one of claims 1 to 6, It is characterized in that The step of playing the voice signal of the call application at a first volume in response to the second operation includes: In response to the second operation, generating a first event of playing the voice signal; In the case where it is determined that the channel type of the first event is a call channel type, obtaining a historical volume, determining the first volume according to the historical volume, and setting the channel mode to the standard channel mode or the privacy channel mode; wherein the historical volume is the volume when the call application plays a voice signal in response to a previous event of the first event, and the first volume is less than or equal to the historical volume; In the standard channel mode or the privacy channel mode, the voice signal is played at the first volume.
8. The method according to claim 7, It is characterized in that The determining the first volume according to the historical volume includes: If the historical volume is less than or equal to the preset volume, the historical volume is used as the first volume; or, If the historical volume is greater than a preset volume, the preset volume is used as the first volume; The preset volume is greater than a minimum volume of the call application, and the preset volume is less than a maximum volume of the call application.
9. The method according to claim 7, It is characterized in that The step of setting the channel mode to the standard channel mode or the privacy channel mode includes: According to the preset priority of the channel mode, the historical channel mode or the external environmental noise, a qualified channel mode is selected from the standard channel mode or the privacy channel mode, and the qualified channel mode is adopted; wherein the historical channel mode is the channel mode adopted by the call application when playing a voice signal in response to the previous event of the first event.
10. The method according to claim 9, It is characterized in that The selecting a channel mode that meets the condition from the standard channel mode or the privacy channel mode according to the preset priority of the channel mode, the historical channel mode or the external environmental noise includes: When selecting a channel mode that meets the conditions according to the preset priority of the channel mode: if the preset priority of the privacy channel mode is higher than the preset priority of the standard channel mode, then determining the privacy channel mode as the channel mode that meets the conditions; or if the preset priority of the standard channel mode is higher than the preset priority of the privacy channel mode, then determining the standard channel mode as the channel mode that meets the conditions; or, When selecting a channel mode that meets the conditions according to the historical channel mode: if the historical channel mode is the privacy channel mode, determining the privacy channel mode as the channel mode that meets the conditions; or if the historical channel mode is the standard channel mode, determining the standard channel mode as the channel mode that meets the conditions; or, When selecting a qualified channel mode according to the external environmental noise: if the loudness of the external environmental noise is greater than or equal to the preset loudness, the privacy channel mode is determined to be the qualified channel mode; or, if the loudness of the external environmental noise is less than the preset loudness, the standard channel mode is determined to be the qualified channel mode.
11. The method according to any one of claims 1 to 10, It is characterized in that In response to the third operation, using a standard channel mode to play the voice signal at the second volume includes: In response to the third operation, if it is determined that the second volume satisfies a standard channel mode switching condition, then in the standard channel mode, playing the voice signal at the second volume; The standard channel mode switching condition includes any one of the following: The second volume is greater than the first volume; The difference between the second volume and the first volume is greater than or equal to a preset difference; The ratio of the second volume to the first volume is greater than or equal to a preset ratio; The second volume is greater than a preset volume.
12. The method according to claim 11, It is characterized in that If the channel mode used before receiving the third operation is the standard channel mode, after determining that the standard channel mode switching condition is met, the method further includes: maintaining the standard channel mode; or, If the channel mode used before receiving the third operation is the privacy channel mode, then after determining that the standard channel mode switching condition is met, the method further includes: switching from the privacy channel mode to the standard channel mode.
13. The method according to any one of claims 1 to 10, It is characterized in that In response to the third operation, adopting the privacy channel mode and playing the voice signal at the third volume includes: In response to the third operation, if it is determined that the third volume satisfies the privacy channel mode switching condition, then in the privacy channel mode, playing the voice signal at the third volume; The privacy channel mode switching condition includes any one of the following: The third volume is lower than the first volume; The difference between the first volume and the third volume is greater than or equal to a preset difference; The ratio of the first volume to the third volume is greater than or equal to a preset ratio; The third volume is less than or equal to the preset volume.
14. The method according to claim 13, It is characterized in that If the channel mode used before receiving the third operation is the privacy channel mode, then after determining that the privacy channel mode switching condition is met, the method further includes: maintaining the privacy channel mode; or, If the channel mode used before receiving the third operation is the standard channel mode, then after determining that the privacy channel mode switching condition is met, the method further includes: switching from the standard channel mode to the privacy channel mode.
15. The method according to any one of claims 1 to 14, It is characterized in that The voice signal is a voice message; The step of playing the voice signal of the call application at a first volume in response to the second operation includes: In response to the second operation, detecting whether there is a user within a preset range centered on the electronic device; When there is a user within the preset range, selecting a channel mode that meets the conditions from the standard channel mode or the privacy channel mode, and playing the voice message in the channel mode that meets the conditions; If there is no user in the preset range, the voice is played in the external speaker mode at the sixth volume. message, the sixth volume is greater than the first volume, the second volume and the third volume.
16. The method according to claim 15, It is characterized in that The channel mode that meets the condition is the privacy channel mode; The method further comprises: After the voice message is played in the privacy channel mode, if no volume increase operation is received and there is a user within the preset range, the privacy channel mode is continued to be used to play the voice message received after the voice message; or, After the voice message is played in the privacy channel mode, if an operation to increase the volume is received, the standard channel mode switching condition is met, and there is a user within the preset range, the standard channel mode is used to play the voice message received after the voice message; or, After the voice message is played in the privacy channel mode, if an operation to increase the volume is received, the standard channel mode switching condition is not met, and there is a user within the preset range, the privacy channel mode is continued to be used to play the voice message received after the voice message; After the voice message is played in the privacy channel mode, if there is no user within the preset range, the external speaker mode is adopted to play a voice message received after the voice message at the sixth volume.
17. An electronic device, It is characterized in that It includes a processor, a communication interface, and a memory coupled to the processor and the communication interface; wherein the memory stores instructions, and when the processor executes the instructions, the electronic device executes the channel mode switching method as described in any one of claims 1 to 16.
18. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed on an electronic device, the electronic device executes the channel mode switching method according to any one of claims 1 to 16.
