Call method and device, electronic equipment and storage medium

By muting the audio before switching Bluetooth audio transmission links and unmuteing it after a successful switch, the audio leakage problem in Bluetooth headset VoIP calls was solved, thus improving the user experience.

CN121664922APending Publication Date: 2026-03-13BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

In Bluetooth headset VoIP call scenarios, electronic devices experience audio leakage when switching between Bluetooth SCO and A2DP audio transmission links, affecting the user experience.

Method used

Before the Bluetooth audio transmission link is successfully switched, the audio output is muted by using the preset non-Bluetooth audio transmission link. After the switch is successful, the mute is removed to avoid audio leakage.

Benefits of technology

This effectively avoids sound leakage during Bluetooth audio transmission link switching, thus improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121664922A_ABST
    Figure CN121664922A_ABST
Patent Text Reader

Abstract

The invention relates to a call method and device, electronic equipment and a storage medium. The call method comprises the following steps: when the electronic equipment is connected with Bluetooth audio equipment, responding to a call triggering operation, entering a call mode or exiting the call mode, and switching a Bluetooth audio transmission link which is used for outputting audio of the electronic equipment; before the Bluetooth audio transmission link is successfully switched, if it is determined that the audio of the electronic equipment is output through a preset audio transmission link, the audio is muted, and the preset audio transmission link is a non-Bluetooth audio transmission link; and when the Bluetooth audio transmission link is switched successfully, silencing of the audio is relieved. According to the method, before the Bluetooth audio transmission link is successfully switched, the detected audio output by the preset audio transmission link is muted, so that the problem of privacy leakage caused by sound leakage in the switching process of the Bluetooth audio transmission link can be avoided, and the use experience of a user is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a communication method, apparatus, electronic device, and storage medium. Background Technology

[0002] In VoIP (Voice over Internet Protocol) calls using Bluetooth headsets, after successfully entering call mode, the electronic device transmits audio data to the Bluetooth headset via Bluetooth Synchronous Connection Oriented (SCO). After successfully exiting call mode, the electronic device transmits audio data to the Bluetooth headset via Advanced Audio Distribution Profile (A2DP). However, due to the influence of call application code logic and operating system underlying code logic, entering or exiting call mode requires a certain amount of time. During this time, audio is played through the earpiece or speaker. If the device fails to successfully switch to Bluetooth SCO or A2DP within this time, audio leakage may occur, leading to privacy issues and impacting user experience. Summary of the Invention

[0003] To overcome the problems existing in related technologies, this disclosure provides a communication method, apparatus, electronic device, and storage medium.

[0004] According to a first aspect of the present disclosure, a call method is provided, the method comprising:

[0005] When an electronic device is connected to a Bluetooth audio device, in response to a call trigger operation, it enters or exits call mode and switches the Bluetooth audio transmission link, which outputs the audio of the electronic device via Bluetooth.

[0006] Before the Bluetooth audio transmission link is successfully switched, if it is determined that the audio is output through a preset audio transmission link, the audio is muted. The preset audio transmission link is a non-Bluetooth audio transmission link.

[0007] When the Bluetooth audio transmission link is successfully switched, the audio is unmuted.

[0008] In one exemplary embodiment, entering call mode includes:

[0009] Enter call mode by calling the first program interface through the target application;

[0010] When entering call mode, switching the Bluetooth audio transmission link includes:

[0011] The first audio transmission link is established through the first program interface.

[0012] In one exemplary embodiment, exiting the call mode includes:

[0013] Exit call mode by calling the second program interface through the target application;

[0014] When exiting call mode, switching the Bluetooth audio transmission link includes:

[0015] The first audio transmission link is shut down through the second program interface.

[0016] In one exemplary embodiment, the method further includes:

[0017] The operating system determines that the electronic device is connected to the Bluetooth audio device.

[0018] The step of muting the audio if it is determined that the audio is output through a preset audio transmission link includes:

[0019] If the operating system determines that the audio is output through a preset audio transmission link, the operating system will mute the audio.

[0020] In an exemplary embodiment, the step of unmuting the audio when the Bluetooth audio transmission link switch is successful includes:

[0021] In response to a message indicating that the Bluetooth audio transmission link has been successfully switched, the audio is unmuted via the operating system.

[0022] In one exemplary embodiment, the method further includes:

[0023] The target application calls a third program interface to set the audio output method based on the target parameters in the third program interface.

[0024] In one exemplary embodiment, the method further includes:

[0025] In response to receiving a switching request to switch the output mode from the first target output mode to the second target output mode, the target parameter in the third program interface is updated from the first target parameter to the second target parameter, where the first target parameter corresponds to the first target output mode and the second target parameter corresponds to the second target output mode.

[0026] According to a second aspect of the present disclosure, a communication device is provided, the device comprising:

[0027] The first processing module is configured to, when an electronic device is connected to a Bluetooth audio device, respond to a call trigger operation, enter or exit call mode, and switch the Bluetooth audio transmission link, wherein the Bluetooth audio transmission link outputs the audio of the electronic device via Bluetooth;

[0028] The second processing module is configured to mute the audio if it is determined that the audio is output through a preset audio transmission link before the Bluetooth audio transmission link is successfully switched, wherein the preset audio transmission link is a non-Bluetooth audio transmission link; and to unmute the audio when the Bluetooth audio transmission link is successfully switched.

[0029] According to a third aspect of the present disclosure, an electronic device is provided, comprising:

[0030] processor;

[0031] Memory used to store processor-executable instructions;

[0032] The processor is configured to perform the method described in the first aspect of the embodiments of this disclosure.

[0033] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method described in the first aspect of the present disclosure.

[0034] The method described above has the following advantages: by muting the audio output from the preset audio transmission link before the Bluetooth audio transmission link is successfully switched, privacy issues caused by audio leakage during the Bluetooth audio transmission link switching process can be avoided, thereby improving the user experience.

[0035] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0036] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0037] Figure 1 This is a schematic diagram illustrating the implementation of Bluetooth SCO calling according to an exemplary embodiment;

[0038] Figure 2 This is a flowchart illustrating a call method according to an exemplary embodiment;

[0039] Figure 3This is a flowchart illustrating a call method according to an exemplary embodiment;

[0040] Figure 4 This is a schematic diagram illustrating the start of a call according to an exemplary embodiment;

[0041] Figure 5 This is a flowchart illustrating a call method according to an exemplary embodiment;

[0042] Figure 6 This is a schematic diagram illustrating the end of a call according to an exemplary embodiment;

[0043] Figure 7 This is a schematic diagram illustrating the switching of audio output modes according to an exemplary embodiment;

[0044] Figure 8 This is a schematic diagram illustrating the switching of audio output modes according to an exemplary embodiment;

[0045] Figure 9 This is a block diagram illustrating a communication device according to an exemplary embodiment;

[0046] Figure 10 This is a block diagram illustrating an electronic device according to an exemplary embodiment. Detailed Implementation

[0047] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0048] In related technologies, if an electronic device is connected to a Bluetooth headset, when making a VoIP call in a calling application, the following application programming interfaces (APIs) are called to start and end the Bluetooth SCO call: setMode interface, startBluetoothSco interface, and stopBluetoothSco interface. Figure 1 This is a schematic diagram illustrating the implementation of Bluetooth SCO calling according to an exemplary embodiment, such as... Figure 1As shown, at the beginning of a Bluetooth SCO call, the call application calls the `setMode` interface and sets the parameter in this interface to `communication` to enter call mode. Entering call mode takes a certain amount of time. During this time, audio transmission switches from A2DP to the earpiece or speaker. Then, the `startBluetoothSco` interface is called to establish Bluetooth SCO. When Bluetooth SCO is successfully established, audio is transmitted through Bluetooth SCO. If Bluetooth SCO is not successfully established when successfully entering call mode, i.e., the switch to Bluetooth SCO is not successful, audio leakage will occur. At the end of a Bluetooth SCO call, the call application calls the `stopBluetoothSco` interface to shut down Bluetooth SCO, thus closing the audio transmission path of the Bluetooth SCO call. Then, the `setMode` interface is called and the parameter in this interface is set to `normal` to exit call mode. Exiting call mode takes a certain amount of time. After Bluetooth SCO is successfully shut down during this time, audio transmission will switch to the earpiece or speaker. When successfully exiting call mode, A2DP is selected for audio output by default. If SCO is successfully shut down when successfully exiting call mode but A2DP is not successfully selected, i.e., the switch to A2DP is not successful, audio leakage will occur. Therefore, if the user fails to successfully switch to Bluetooth SCO or A2DP within the time required to enter or exit call mode, audio leakage may occur, leading to privacy issues and impacting the user experience.

[0049] In an exemplary embodiment of this disclosure, to overcome the audio leakage problem in related technologies, a call method is provided, comprising: when an electronic device is connected to a Bluetooth audio device, responding to a call trigger operation, entering or exiting a call mode, and switching a Bluetooth audio transmission link, wherein the Bluetooth audio transmission link is used to output the audio of the electronic device; before the Bluetooth audio transmission link switch is successful, if it is determined that the audio of the electronic device is output through a preset audio transmission link, the audio is muted, wherein the preset audio transmission link is a non-Bluetooth audio transmission link; and when the Bluetooth audio transmission link switch is successful, the audio is unmuted. This method, by muting the detected audio output by the preset audio transmission link before the Bluetooth audio transmission link switch is successful, can avoid privacy leaks caused by audio leakage during the Bluetooth audio transmission link switch process, thereby improving the user experience.

[0050] In an exemplary embodiment of this disclosure, a call method is provided. Figure 2 This is a flowchart illustrating a call method according to an exemplary embodiment, such as... Figure 2 As shown, the call method includes the following steps:

[0051] Step S201: When the electronic device is connected to the Bluetooth audio device, in response to the call trigger operation, it enters or exits the call mode and switches the Bluetooth audio transmission link, which is used to output the audio of the electronic device.

[0052] Step S202: Before the Bluetooth audio transmission link is successfully switched, if it is determined that the audio of the electronic device is output through the preset audio transmission link, the audio is muted. The preset audio transmission link is a non-Bluetooth audio transmission link.

[0053] Step S203: When the Bluetooth audio transmission link is successfully switched, the audio is unmuted.

[0054] The call method in this disclosure is applied to electronic devices, including smartphones, tablets, smart IoT devices, smart wearable devices, smart vehicle systems, and other devices with call functions. The application scenario is VoIP call scenario, but it can also be applied to other call scenarios that may cause sound leakage problems.

[0055] In step S201, the Bluetooth audio device refers to another electronic device that establishes a connection with the electronic device via the Bluetooth communication protocol for playing audio, such as a Bluetooth headset, Bluetooth speaker, or other Bluetooth device. The call trigger operation can be any preset operation capable of triggering entry into or exit from call mode. For example, entering call mode is triggered when answering or making a call; exiting call mode is triggered when hanging up or being hung up. In response to the call trigger operation, entering or exiting call mode, in some embodiments, is achieved through a first preset program code, which sets the electronic device to call mode, for example, by setting parameters related to the electronic device's operating mode to "communication"; and exiting call mode is achieved through a second preset program code, which sets the electronic device to non-call mode, for example, by setting parameters related to the electronic device's operating mode to "normal".

[0056] The Bluetooth audio transmission link is used to output audio from the electronic device, including a first audio transmission link and a second audio transmission link, namely Bluetooth SCO and A2DP, respectively. Bluetooth SCO is used to transmit call audio to ensure audio-video synchronization, while A2DP is used to transmit other audio. Therefore, the Bluetooth audio transmission link needs to be switched when entering or exiting call mode. When entering call mode, A2DP is no longer used for audio output; instead, Bluetooth SCO is established, and audio output switches to Bluetooth SCO upon successful establishment. When exiting call mode, since the electronic device defaults to A2DP audio output when connected to a Bluetooth audio device, simply disabling Bluetooth SCO will switch back to A2DP audio output after successfully exiting call mode. In some implementations, Bluetooth SCO is established using a third preset program code and disabling it using a fourth preset program code.

[0057] In some implementations, after entering or exiting call mode, it is determined whether the electronic device supports Bluetooth SCO. If the electronic device does not support Bluetooth SCO, there is no need to switch the Bluetooth audio transmission link or perform subsequent steps; if the electronic device supports Bluetooth SCO, the Bluetooth audio transmission link is switched and subsequent steps are performed.

[0058] In step S202, the preset audio transmission link is a non-Bluetooth audio transmission link, including the earpiece, speaker, and other non-Bluetooth audio output devices of the electronic device. During the process of entering or exiting call mode, before the audio transmission link is successfully switched, the audio will be output via the preset audio transmission link. Therefore, to avoid audio leakage during this period, the audio output method is detected when entering or exiting call mode. If audio is detected being output via the preset audio transmission link, the audio is muted, i.e., the audio output of the electronic device is muted. This audio could be call audio or other media audio from the electronic device. When entering call mode, the time interval from the start of entering call mode to the successful establishment of Bluetooth SCO is considered the period before the Bluetooth audio transmission link is successfully switched; when exiting call mode, the time interval from the successful shutdown of Bluetooth SCO to the output of audio via A2DP is considered the period before the Bluetooth audio transmission link is successfully switched.

[0059] In step S203, upon entering call mode, a Bluetooth SCO is established. Once the Bluetooth SCO is successfully established, audio output switches to the Bluetooth SCO, indicating a successful Bluetooth audio transmission link switch. Upon exiting call mode, the Bluetooth SCO is disabled. Upon successful exit from call mode, audio output switches to A2DP. Therefore, detecting audio output via A2DP confirms a successful Bluetooth audio transmission link switch. Unmute the audio upon successful audio transmission link switch, allowing normal audio output via the switched Bluetooth audio transmission link.

[0060] In an exemplary embodiment of this disclosure, when an electronic device connects to a Bluetooth audio device, it enters or exits call mode in response to a call trigger operation and switches the Bluetooth audio transmission link. Before the Bluetooth audio transmission link switch is successful, if it is determined that the audio of the electronic device is output through a preset audio transmission link, the audio is muted. Upon successful Bluetooth audio transmission link switch, the audio is unmuted. This method, by muting the detected audio output through the preset audio transmission link before successful Bluetooth audio transmission link switch, avoids privacy leaks caused by audio leakage during the Bluetooth audio transmission link switch process, thereby improving the user experience.

[0061] In an exemplary embodiment of this disclosure, a call method is provided. Figure 3 This is a flowchart illustrating a call method according to an exemplary embodiment, such as... Figure 3 As shown, the call method includes the following steps:

[0062] Step S301: The operating system determines that the electronic device is connected to the Bluetooth audio device. In response to the call trigger operation, the target application calls the first program interface to enter the call mode and establishes the first audio transmission link through the first program interface.

[0063] Step S302: Before the Bluetooth audio transmission link is successfully switched, if the operating system determines that the audio of the electronic device is output through the preset audio transmission link, the operating system will mute the audio and set the preset audio transmission link to a non-Bluetooth audio transmission link.

[0064] In step S303, in response to the response message indicating that the Bluetooth audio transmission link has been successfully switched, the audio is unmuted through the operating system.

[0065] In step S301, the operating system determines that the electronic device is connected to the Bluetooth audio device. Compared to related technologies where the connection is determined through a call application, this reduces application-layer workload and thus application maintenance costs. The target application is a call application, such as an application for making or receiving mobile phone calls. The first audio transmission link is Bluetooth SCO, and the first program interface includes program code for entering call mode and program code for establishing Bluetooth SCO. In response to a call trigger operation, the target application calls the first program interface, which in turn calls the program code for entering call mode and the program code for establishing Bluetooth SCO.

[0066] In step S302, before the Bluetooth audio transmission link is successfully switched, the audio output through the preset audio transmission link is detected by the audio policy component in the operating system, and when the audio output through the preset audio transmission link is detected, the audio is muted by the audio policy component.

[0067] In step S303, when entering call mode, if the target application successfully establishes the first audio transmission link by calling the first program interface, that is, when the Bluetooth SCO is successfully established, it means that the Bluetooth audio transmission link has been successfully switched to Bluetooth SCO. At this time, the target application sends a response message to the audio policy component of the operating system. When the audio policy component of the operating system detects the response message that the Bluetooth audio transmission link has been successfully switched, it unmutes the audio.

[0068] In one example, Figure 4 This is a schematic diagram illustrating the start of a call according to an exemplary embodiment, such as... Figure 4 As shown, the target application calls the first program interface API, namely startVoip, to enter call mode and establish Bluetooth SCO through the startSco program code. At the same time as entering call mode, the audio output mode is detected by the audio policy component in the operating system. If the audio output mode is earpiece or speaker, the output audio is muted. When the Bluetooth SCO is successfully established, the target application sends a response message to the audio policy component of the operating system to indicate that the Bluetooth audio transmission link has been switched successfully. The audio policy component of the operating system then unmutes the audio.

[0069] In the exemplary embodiments disclosed herein, the program interface in the related technology is reconstructed so that the call method in this embodiment can be implemented by calling only one program interface, making the execution process simpler, more efficient and convenient, and reducing the maintenance cost of the program interface and application.

[0070] In an exemplary embodiment of this disclosure, a call method is provided. Figure 5 This is a flowchart illustrating a call method according to an exemplary embodiment, such as... Figure 5 As shown, the call method includes the following steps:

[0071] Step S501: The operating system determines that the electronic device is connected to the Bluetooth audio device. In response to the call trigger operation, the target application calls the second program interface to exit the call mode and closes the first audio transmission link through the second program interface.

[0072] Step S502: Before the Bluetooth audio transmission link is successfully switched, if the operating system determines that the audio of the electronic device is output through the preset audio transmission link, the operating system will mute the audio and set the preset audio transmission link to a non-Bluetooth audio transmission link.

[0073] In step S503, in response to the response message indicating that the Bluetooth audio transmission link has been successfully switched, the audio is unmuted through the operating system.

[0074] The specific implementation of step S502 is described in step S302, and will not be repeated here.

[0075] In step S501, the first audio transmission link is Bluetooth SCO, and the second program interface includes program code for exiting call mode and program code for disabling Bluetooth SCO. In response to a call trigger operation, the target application calls the second program interface, which in turn calls the program code for exiting call mode and the program code for disabling the establishment of Bluetooth SCO. Other specific implementation methods are described in step S301 and will not be repeated here.

[0076] In step S503, when exiting the call mode, after the target application successfully shuts down the first audio transmission link by calling the second program interface, that is, after the Bluetooth SCO is successfully shut down, it detects that the audio is output through A2DP, which indicates that the Bluetooth audio transmission link has been successfully switched. At this time, the target application sends a response message to the audio policy component of the operating system. When the audio policy component of the operating system detects the response message that the Bluetooth audio transmission link has been successfully switched, it unmutes the audio.

[0077] In one example, Figure 6 This is a schematic diagram illustrating the end of a call according to an exemplary embodiment, such as... Figure 6 As shown, the target application calls the second program interface API, namely stopVoip, to exit the call mode and shuts down Bluetooth SCO through the stopSco program code. At the same time as Bluetooth SCO is successfully shut down, the audio output mode is detected by the audio policy component in the operating system. If the audio output mode is earpiece or speaker, the output audio is muted. When audio is output through A2DP, the target application sends a response message to the audio policy component of the operating system to indicate that the Bluetooth audio transmission link has been switched successfully. The audio policy component of the operating system then unmutes the audio.

[0078] In the exemplary embodiments disclosed herein, the program interface in the related technology is reconstructed so that the call method in this embodiment can be implemented by calling only one program interface, making the execution process simpler, more efficient and convenient, and reducing the maintenance cost of the program interface and application.

[0079] In related technologies, Figure 7 This is a schematic diagram illustrating the switching of audio output modes according to an exemplary embodiment, such as... Figure 7As shown, when the audio output mode switches from Bluetooth SCO to the earpiece, the call application needs to call the stopBluetoothSco interface; when switching from the earpiece to Bluetooth SCO, the call application needs to call the startBluetoothSco interface; when switching from Bluetooth SCO to the speaker, the call application needs to call both the stopBluetoothSco and setSpeakerphoneOn interfaces, setting the parameter in the setSpeakerphoneOn interface to true; when switching from the speaker to Bluetooth SCO, the call application needs to call both the setSpeakerphoneOn and startBluetoothSco interfaces, setting the parameter in the setSpeakerphoneOn interface to false; when switching from the earpiece to the speaker, the call application needs to call the setSpeakerphoneOn interface, setting the parameter in the setSpeakerphoneOn interface to true; and when switching from the speaker to the earpiece, the call application needs to call the setSpeakerphoneOn interface, setting the parameter in the setSpeakerphoneOn interface to false. The switching between multiple program interfaces makes the audio output mode switching logic very complex, resulting in high maintenance costs for the call application.

[0080] In an exemplary embodiment of this disclosure, the call method further includes the following steps:

[0081] The target application calls a third program interface to set the audio output method based on the target parameters in the third program interface.

[0082] The target application is a calling application, and the audio output methods include earpiece, speaker, and Bluetooth SCO. The third program interface includes program code for setting the Bluetooth SCO output method, program code for setting the speaker output method, and program code for setting the earpiece output method. Different target parameters in the third program interface correspond to different audio output methods. The mapping relationship between target parameters and audio data methods is pre-stored. When it is necessary to switch the audio output method, the target application calls the third program interface and sets the target parameters in the third program interface to the target parameters corresponding to the audio output method to be switched.

[0083] In some implementations, in response to receiving a switching request to switch the output mode from the first target output mode to the second target output mode, the target parameter in the third program interface is updated from the first target parameter to the second target parameter, where the first target parameter corresponds to the first target output mode and the second target parameter corresponds to the second target output mode.

[0084] In one example, Figure 8 This is a schematic diagram illustrating the switching of audio output modes according to an exemplary embodiment, such as... Figure 8 As shown, when the audio output mode is switched to Bluetooth SCO, the target application calls the `setVoipDevice` interface and sets the target parameter in the `setVoipDevice` interface to `sco`, which then calls the `startSco` program code to implement Bluetooth SCO audio output mode. When the audio output mode is switched to speaker, the target application calls the `setVoipDevice` interface and sets the target parameter in the `setVoipDevice` interface to `speaker`, which then calls the `speakerphoneOn` program code to implement speaker audio output mode. If switching from Bluetooth SCO to speaker, the `stopSco` program code is also called to turn off Bluetooth SCO. When the audio output mode is switched to earpiece, the target application calls the `setVoipDevice` interface and sets the target parameter in the `setVoipDevice` interface to `earpiece`. If switching from Bluetooth SCO to earpiece, the `stopSco` program code is called to turn off Bluetooth SCO; if switching from speaker to earpiece, the `speakerphoneOff` program code is called to turn off the speaker.

[0085] In this embodiment, the audio output mode switching is implemented through a program interface. Compared with the audio output mode switching methods in related technologies, the implementation logic is simpler, more efficient and convenient, avoiding the application from executing more complex logic, and reducing the maintenance costs of the application and operating system.

[0086] In an exemplary embodiment of this disclosure, a communication device is provided. Figure 9 This is a block diagram illustrating a communication device according to an exemplary embodiment, such as... Figure 9 As shown, the communication device includes:

[0087] The first processing module 901 is configured to, when an electronic device is connected to a Bluetooth audio device, respond to a call trigger operation, enter or exit call mode, and switch the Bluetooth audio transmission link, wherein the Bluetooth audio transmission link outputs the audio of the electronic device through Bluetooth.

[0088] The second processing module 902 is configured to mute the audio if it is determined that the audio is output through a preset audio transmission link before the Bluetooth audio transmission link is successfully switched. The preset audio transmission link is a non-Bluetooth audio transmission link. When the Bluetooth audio transmission link is successfully switched, the audio is unmuted.

[0089] In one exemplary embodiment, the first processing module 901 is further configured to:

[0090] Enter call mode by calling the first program interface through the target application;

[0091] When entering call mode, the first processing module 901 is also configured as follows:

[0092] The first audio transmission link is established through the first program interface.

[0093] In one exemplary embodiment, the first processing module 901 is further configured to:

[0094] Exit call mode by calling the second program interface through the target application;

[0095] When exiting call mode, the first processing module 901 is also configured as follows:

[0096] The first audio transmission link is shut down via the second program interface.

[0097] In one exemplary embodiment, the second processing module 902 is further configured to:

[0098] The operating system determines whether the electronic device is connected to a Bluetooth audio device.

[0099] The second processing module 902 is also configured to:

[0100] If the operating system determines that the audio is output through a preset audio transmission link, the operating system can mute the audio.

[0101] In one exemplary embodiment, the second processing module 902 is further configured to:

[0102] In response to a message indicating a successful Bluetooth audio transmission link switchover, the audio is unmuted via the operating system.

[0103] In one exemplary embodiment, the communication device further includes a third processing module 903, configured to:

[0104] The target application calls a third program interface to set the audio output method based on the target parameters in the third program interface.

[0105] In one exemplary embodiment, the third processing module 903 is further configured to:

[0106] In response to receiving a switching request from the first target output mode to the second target output mode, the target parameter in the third program interface is updated from the first target parameter to the second target parameter. The first target parameter corresponds to the first target output mode, and the second target parameter corresponds to the second target output mode.

[0107] Regarding the apparatus in the above embodiments, the specific manner in which each module performs its operation has been described in detail in the embodiments related to the method, and will not be elaborated upon here.

[0108] Figure 10 This is a block diagram illustrating an electronic device 1000 according to an exemplary embodiment.

[0109] Reference Figure 10 The electronic device 1000 may include one or more of the following components: a processing component 1002, a memory 1004, a power supply component 1006, a multimedia component 1008, an audio component 1010, an input / output (I / O) interface 1012, a sensor component 1014, and a communication component 1016.

[0110] Processing component 1002 typically controls the overall operation of electronic device 1000, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 1002 may include one or more processors 1020 to execute instructions to perform all or part of the steps of the methods described above. Furthermore, processing component 1002 may include one or more modules to facilitate interaction between processing component 1002 and other components. For example, processing component 1002 may include a multimedia module to facilitate interaction between multimedia component 1008 and processing component 1002.

[0111] Memory 1004 is configured to store various types of data to support the operation of electronic device 1000. Examples of this data include instructions for any application or method operating on electronic device 1000, contact data, phonebook data, messages, pictures, videos, etc. Memory 1004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0112] Power supply component 1006 provides power to various components of electronic device 1000. Power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to electronic device 1000.

[0113] Multimedia component 1008 includes a screen that provides an output interface between the electronic device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1008 includes a front-facing camera and / or a rear-facing camera. When the electronic device 1000 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0114] Audio component 1010 is configured to output and / or input audio signals. For example, audio component 1010 includes a microphone (MIC) configured to receive external audio signals when electronic device 1000 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1004 or transmitted via communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.

[0115] I / O interface 1012 provides an interface between processing component 1002 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.

[0116] Sensor assembly 1014 includes one or more sensors for providing state assessments of various aspects of electronic device 1000. For example, sensor assembly 1014 may detect the on / off state of electronic device 1000, the relative positioning of components such as the display and keypad of electronic device 1000, changes in position of electronic device 1000 or a component of electronic device 1000, the presence or absence of user contact with electronic device 1000, the orientation or acceleration / deceleration of electronic device 1000, and temperature changes of electronic device 1000. Sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 1014 may also include an accelerometer, gyroscope, magnetometer, pressure sensor, or temperature sensor.

[0117] Communication component 1016 is configured to facilitate wired or wireless communication between electronic device 1000 and other devices. Electronic device 1000 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 1016 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1016 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0118] In an exemplary embodiment, the electronic device 1000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.

[0119] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, which can be executed by a processor 1020 of an electronic device 1000 to perform the above-described method. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0120] A non-transitory computer-readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform a communication method, the communication method including any of the methods described above.

[0121] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0122] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for making a call, characterized in that, The method includes: When an electronic device is connected to a Bluetooth audio device, in response to a call trigger operation, it enters or exits call mode and switches the Bluetooth audio transmission link, which outputs the audio of the electronic device via Bluetooth. Before the Bluetooth audio transmission link is successfully switched, if it is determined that the audio is output through a preset audio transmission link, the audio is muted. The preset audio transmission link is a non-Bluetooth audio transmission link. When the Bluetooth audio transmission link is successfully switched, the audio is unmuted.

2. The call method according to claim 1, characterized in that, Entering call mode includes: Enter call mode by calling the first program interface through the target application; When entering call mode, switching the Bluetooth audio transmission link includes: The first audio transmission link is established through the first program interface.

3. The call method according to claim 1, characterized in that, The exit from call mode includes: Exit call mode by calling the second program interface through the target application; When exiting call mode, switching the Bluetooth audio transmission link includes: The first audio transmission link is shut down through the second program interface.

4. The call method according to claim 1, characterized in that, The method further includes: The operating system determines that the electronic device is connected to the Bluetooth audio device. The step of muting the audio if it is determined that the audio is output through a preset audio transmission link includes: If the operating system determines that the audio is output through a preset audio transmission link, the operating system will mute the audio.

5. The call method according to claim 4, characterized in that, The step of unmuting the audio when the Bluetooth audio transmission link is successfully switched includes: In response to a message indicating that the Bluetooth audio transmission link has been successfully switched, the audio is unmuted via the operating system.

6. The call method according to claim 1, characterized in that, The method further includes: The target application calls a third program interface to set the audio output method based on the target parameters in the third program interface.

7. The call method according to claim 6, characterized in that, The method further includes: In response to receiving a switching request to switch the output mode from the first target output mode to the second target output mode, the target parameter in the third program interface is updated from the first target parameter to the second target parameter, where the first target parameter corresponds to the first target output mode and the second target parameter corresponds to the second target output mode.

8. A communication device, characterized in that, The device includes: The first processing module is configured to, when an electronic device is connected to a Bluetooth audio device, respond to a call trigger operation, enter or exit call mode, and switch the Bluetooth audio transmission link, wherein the Bluetooth audio transmission link outputs the audio of the electronic device via Bluetooth; The second processing module is configured to mute the audio if it is determined that the audio is output through a preset audio transmission link before the Bluetooth audio transmission link is successfully switched, wherein the preset audio transmission link is a non-Bluetooth audio transmission link; and to unmute the audio when the Bluetooth audio transmission link is successfully switched.

9. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the method as described in any one of claims 1-7.

10. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the electronic device, the electronic device is able to perform the method as described in any one of claims 1-7.