Sound outlet channel switching method, terminal equipment and storage medium

CN121844699APending Publication Date: 2026-04-10HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HONOR DEVICE CO LTD
Filing Date
2024-12-26
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

When the terminal device establishes an SCO link with multiple Bluetooth devices, the prior art is prone to switch the sound channel against the user's wishes due to the Bluetooth device's active triggering of the link establishment request, which affects the user experience.

Method used

By implementing a sound-out channel switching method in the terminal device, the synchronous directional link is maintained or disconnected according to the instruction type of the received link establishment request, ensuring that the switching of the sound-out channel meets the user's wishes and avoid unnecessary handover.

Benefits of technology

It effectively avoids switching of sound channel that violates the user's wishes caused by Bluetooth devices to actively trigger link establishment requests, improves the accuracy and stability of sound channel switching, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121844699A_ABST
    Figure CN121844699A_ABST
Patent Text Reader

Abstract

The invention provides a sound outlet channel switching method, terminal equipment and a storage medium, and relates to the technical field of communication. The method comprises the following steps: if a terminal device establishes Bluetooth connection with a plurality of Bluetooth devices and establishes a synchronous directional link with a first Bluetooth device, sending call audio data to the first Bluetooth device in response to a first call task; if a link establishment request sent by a second Bluetooth device is received and a request instruction corresponding to the link establishment request is a first instruction, maintaining a synchronous directional link with the first Bluetooth device; and if the request instruction is a second instruction, disconnecting a synchronous directional link with the first Bluetooth device, establishing a synchronous directional link with the second Bluetooth device, and sending the call audio data to the second Bluetooth device. According to the method, after the Bluetooth device sends the link establishment request of the first instruction, the sound outlet channel is not switched, and the situation that the sound outlet channel is switched due to the fact that the Bluetooth device actively triggers the link establishment request is avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Sound channel switching method, terminal device and storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on January 10, 2024, with application number 202410044056.0, and invention name “Sound channel switching method, terminal device and storage medium”. The entire contents of the claimed priority are incorporated into this application by reference. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a method for switching an outgoing sound channel, a terminal device, and a storage medium. Background Art

[0003] Through wireless communication protocols, terminal devices can establish connections with other external devices and exchange data. For example, through the Bluetooth protocol, the terminal device can establish Bluetooth connections with multiple Bluetooth devices at the same time, such as Bluetooth headsets, car Bluetooth, Bluetooth bracelets, Bluetooth speakers, etc. The terminal device can establish a Synchronous Connection Oriented (SCO) link with any Bluetooth device that establishes a Bluetooth connection. After the SCO link is established, the terminal device can send the call audio data corresponding to the call task to the Bluetooth device with which the SCO link is established during the execution of the call task, so that it can serve as the sound output channel of the call audio data, such as playing the call audio data through a Bluetooth headset or car Bluetooth.

[0004] While a Bluetooth device that has established an SCO link with a terminal device is playing call audio data, other Bluetooth devices that have established a Bluetooth connection with the terminal device may also send a SCO connection request to the terminal device. If the terminal device directly responds to the SCO connection request and establishes a SCO link with the Bluetooth device that sent the connection request, the audio device may successfully seize the audio channel against the user's wishes, resulting in the audio channel being switched against the user's wishes, resulting in a poor user experience. Summary of the Invention

[0005] The embodiments of the present application disclose a method for switching an audio channel, a terminal device, and a storage medium, which can avoid the situation where the audio channel is switched against the user's wishes during the execution of a call task by the terminal device.

[0006] The first aspect of the present application discloses a method for switching an outgoing sound channel, which is applied to a terminal device. The method includes: if the terminal device establishes a Bluetooth connection with multiple Bluetooth devices and establishes a synchronous directional link with a first Bluetooth device among the multiple Bluetooth devices, in response to a first call task, based on the synchronous directional link with the first Bluetooth device, sending the call audio data corresponding to the first call task to the first Bluetooth device, so that the first Bluetooth device plays the call audio data corresponding to the first call task; during the execution of the first call task, if a link establishment request sent by a second Bluetooth device among the multiple Bluetooth devices is received, determining a request instruction corresponding to the link establishment request; if the request instruction is a first instruction, maintaining the synchronous directional link with the first Bluetooth device; if the request instruction is a second instruction, disconnecting the synchronous directional link with the first Bluetooth device, and establishing a synchronous directional link with the second Bluetooth device; based on the synchronous directional link with the second Bluetooth device, sending the call audio data corresponding to the first call task to the second Bluetooth device, so that the second Bluetooth device plays the call audio data corresponding to the first call task.

[0007] The above method can continue to use the first Bluetooth device as the audio output device after the second Bluetooth device sends a link establishment request with the request type of the first instruction, without switching the sound output channel. This avoids the situation where the sound output channel switches due to the second Bluetooth device actively triggering the link establishment request, thereby avoiding the situation where the sound output channel switches against the user's wishes while the device is performing a call task. At the same time, after the second Bluetooth device sends a link establishment request with the second instruction, it stops using the first Bluetooth device as the audio output device and uses the second Bluetooth device as the audio output device, so that the call audio data corresponding to the first call task is switched from the first Bluetooth device to the second Bluetooth device, achieving the switching of the sound output channel.

[0008] In some optional embodiments, the method further includes: if the request instruction is a second instruction, disconnecting the synchronous directional link with the first Bluetooth device, and establishing a synchronous directional link with the second Bluetooth device, including: if the request instruction is a second instruction and the link establishment request is a request received after a preset time period after the terminal device starts the first call task, disconnecting the synchronous directional link with the first Bluetooth device, and establishing a synchronous directional link with the second Bluetooth device. The above method can further judge the link establishment request of the received second instruction based on the preset time period after the terminal device starts the first call task to determine whether the link establishment request is a link establishment request actively triggered by the second Bluetooth device, and determine whether to disconnect the synchronous directional link with the first Bluetooth device and re-establish the synchronous directional link with the second Bluetooth device based on the result of the judgment, thereby avoiding the situation where the outgoing sound channel is switched against the user's wishes during the device's call task, and further improving the accuracy of the outgoing sound channel switching.

[0009] In some optional embodiments, the method further includes: if the request instruction is a second instruction and the link establishment request is received within a preset time period after the terminal device starts the first call task, maintaining a synchronous directional link with the first Bluetooth device. The above method can avoid switching the outgoing audio channel based on the link establishment request of the second instruction automatically generated by the Bluetooth device, further improving the accuracy of the outgoing audio channel switching.

[0010] In some optional embodiments, after the terminal device establishes Bluetooth connections with multiple Bluetooth devices, the method further includes: if the device type of the second Bluetooth device is different from the device type of the first Bluetooth device and the preset priority of the first Bluetooth device is greater than the preset priority of the second Bluetooth device, establishing a synchronous directional link with the first Bluetooth device. The above method can accurately determine the output audio device that the user may need among the multiple Bluetooth devices connected to the terminal device.

[0011] In some optional embodiments, after the terminal device establishes Bluetooth connections with multiple Bluetooth devices, the method further includes: if the device type of the second Bluetooth device is the same as the device type of the first Bluetooth device, establishing a synchronous directional link with the first Bluetooth device, and the time when the first Bluetooth device establishes the Bluetooth connection with the terminal device is later than the time when the second Bluetooth device establishes the Bluetooth connection with the terminal device. The above method can accurately determine the output audio device that the user may need among the multiple Bluetooth devices connected to the terminal device.

[0012] In some optional embodiments, the method further includes: if the terminal device establishes a Bluetooth connection and a synchronous directional link with a single third Bluetooth device, in response to a second call task, sending call audio data corresponding to the second call task to the third Bluetooth device based on the synchronous directional link with the third Bluetooth device, so that the third Bluetooth device plays the call audio data corresponding to the second call task; receiving a Bluetooth connection instruction and establishing a Bluetooth connection with a fourth Bluetooth device; and during the execution of the second call task, if a link establishment request is received from the fourth Bluetooth device and the fourth Bluetooth device is not a target Bluetooth device, maintaining the synchronous directional link with the third Bluetooth device. In the above method, when the third Bluetooth device is used as an audio output device to output call audio data, if the fourth Bluetooth device sends a link establishment request and the fourth Bluetooth device is not a target Bluetooth device, the third Bluetooth device can continue to be used as the audio output device without switching the output channel, thereby avoiding the situation where the output channel switching occurs due to triggering the link establishment request when the fourth Bluetooth device is not a target Bluetooth device, thereby improving the stability of the third Bluetooth device outputting call audio data as an audio output device and ensuring the user experience of using the third Bluetooth device for calls.

[0013] In some optional embodiments, the method further includes: during the execution of the first call task, in response to the second Bluetooth connection instruction, establishing a Bluetooth connection with the fifth Bluetooth device; during the execution of the first call task, if a link establishment request sent by the fifth Bluetooth device is received, not responding to the link establishment request. When the first Bluetooth device outputs the call audio data corresponding to the first call task as an audio output device, if the terminal device establishes a Bluetooth connection with the fifth Bluetooth device during the execution of the first call task, during the execution of the first call task, even if the fifth Bluetooth device sends a link establishment request, the terminal device can continue to use the first Bluetooth device as an audio output device without switching the sound output channel, thereby avoiding the situation where the sound output channel is switched due to the link establishment request triggered by the fifth Bluetooth device, improving the stability of the first Bluetooth device outputting call audio data as an audio output device, and ensuring the user experience of using the first Bluetooth device for calls.

[0014] In some optional implementations, the first instruction is a connection request; and the second instruction is AT+BCC.

[0015] The second aspect of the present application discloses a method for switching an outgoing sound channel, which is applied to a Bluetooth chip. The method includes: if the terminal device establishes a Bluetooth connection with multiple Bluetooth devices and establishes a synchronous directional link with a first Bluetooth device among the multiple Bluetooth devices, in response to a first call task, based on the synchronous directional link with the first Bluetooth device, the call audio data corresponding to the first call task is sent to the first Bluetooth device, so that the first Bluetooth device plays the call audio data corresponding to the first call task; during the execution of the first call task, if a link establishment request is received from a second Bluetooth device among the multiple Bluetooth devices, a request instruction corresponding to the link establishment request is determined; if the request instruction is a first instruction, the synchronous directional link with the first Bluetooth device is maintained; if the request instruction is a second instruction, the synchronous directional link with the first Bluetooth device is disconnected, and a synchronous directional link with the second Bluetooth device is established; based on the synchronous directional link with the second Bluetooth device, the call audio data corresponding to the first call task is sent to the second Bluetooth device, so that the second Bluetooth device plays the call audio data corresponding to the first call task.

[0016] The third aspect of the present application discloses a terminal device, which includes a processor and a memory, wherein the memory is used to store instructions, and the processor is used to call the instructions in the memory so that the terminal device executes the sound channel switching method described in the first aspect.

[0017] In a fourth aspect, the present application discloses a computer-readable storage medium comprising computer instructions. When the computer instructions are executed on a terminal device, the terminal device executes the sound output channel switching method as described in the first aspect.

[0018] It should be understood that the method described in the second aspect, the terminal device described in the third aspect, and the computer-readable storage medium described in the fourth aspect all correspond to the method of the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects of the corresponding methods provided above and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] FIG1 is a schematic diagram of a system architecture applicable to the sound output channel switching method provided in an embodiment of the present application.

[0020] FIG2 is a schematic diagram of a Bluetooth configuration interface provided in this application.

[0021] FIG3 is a schematic diagram of the structure of a Bluetooth device provided in an embodiment of the present application.

[0022] FIG4 is a schematic diagram of an audio output device confirmation method provided in an embodiment of the present application.

[0023] FIG5 is a schematic diagram of a method for switching sound output channels provided in an embodiment of the present application.

[0024] FIG6 is a schematic diagram of a second Bluetooth device sending a link establishment request according to an embodiment of the present application.

[0025] FIG7 is a schematic diagram of a second Bluetooth device sending a link establishment request according to an embodiment of the present application.

[0026] FIG8 is a schematic diagram of a channel switching method based on a second instruction provided in an embodiment of the present application.

[0027] FIG9 is a schematic diagram of a method for switching sound output channels provided in an embodiment of the present application.

[0028] FIG10 is a schematic diagram of a method for switching sound output channels provided in an embodiment of the present application.

[0029] FIG11 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the embodiments of the present application, words such as "exemplary", "or", and "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or design schemes. Specifically, the use of words such as "exemplary", "or", and "for example" is intended to present related concepts in a concrete way.

[0031] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application belongs. The terms used in the specification of this application are for the purpose of describing specific embodiments only and are not intended to limit this application. It should be understood that, unless otherwise specified in this application, " / " means or. For example, A / B can mean A or B. "And / or" in this application is merely a way to describe the association relationship of associated 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. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b or c can mean: a, b, c, a and b, a and c, b and c, a, b and c. It should be understood that the order of the steps shown in the flowcharts herein can be changed, and some can be omitted.

[0032] To better understand the embodiments of the present application, the following describes the method for switching the output channels provided by the embodiments of the present application with reference to the accompanying drawings. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0033] FIG1 is a schematic diagram of a system architecture applicable to the sound channel switching method provided in an embodiment of the present application. The system architecture includes a terminal device 100 and at least one Bluetooth device 200. The terminal device 100 and the Bluetooth device 200 can communicate via wireless communication methods such as Bluetooth (BT), near field communication (NFC), wireless fidelity (Wi-Fi), and Wi-Fi direct. In the embodiment of the present application, Bluetooth communication is used as an example for illustration. In one embodiment of the present application, the terminal device 100 and the Bluetooth device 200 can communicate via Bluetooth technology. Bluetooth technology may include classic Bluetooth, Bluetooth low energy (BLE), and Bluetooth 5.0. The terminal device 100 may be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as terminal devices such as cellular phone, personal digital assistant (PDA), artificial intelligence (AI) device, wearable device, vehicle-mounted device, smart home device and / or smart city device.

[0034] As shown in Figure 1, the Bluetooth device 200 may include a Bluetooth headset 201, a smart watch 202, a Bluetooth speaker 203, a smart TV 204, a car device 205, and other devices that support Bluetooth function and can play audio. The Bluetooth device can be used to play the audio data sent by the terminal device 100. In an embodiment of the present application, the Bluetooth headset 201 can be of various types, such as a hearing aid, a true wireless stereo (True Wireless Stereo, TWS) headset, an earbud headset, an in-ear headset, a headset, an earmuff headset, a neckband headset or an earphone. The Bluetooth headset may include a first part and a second part worn on the left ear and right ear of the user, respectively. The first part and the second part may be connected by a connecting line, such as a neckband headset; the first part and the second part may also be two independent parts, such as a true wireless stereo (TWS) headset.

[0035] In an embodiment of the present application, the terminal device 100 can determine an audio output device in at least one Bluetooth device 200 that establishes a Bluetooth connection. After determining the audio output device, a SCO link is established with the determined audio output device. The SCO link is a synchronous directional link used to transmit data communications with high time requirements. The audio output device can be used for call output and media output. For example, the audio output device can receive call audio data sent by the terminal device and output the call. For another example, the audio output device can perform media output based on the media audio data received from the terminal device, such as playing music. In an embodiment of the present application, when a Bluetooth device is determined to be the audio output device of the terminal device, the terminal device establishes a SCO link with the Bluetooth device. For example, when earphone 1 is the audio output device of the terminal device, the terminal device establishes a SCO link with earphone 1. During the execution of a call task, the terminal device can send the call audio data corresponding to the call task to earphone 1 based on the SCO link with earphone 1, so that earphone 1 plays the call audio data. The audio output device can send the audio data collected in the call task to the terminal device based on the SCO link between the audio output device and the terminal device, so that the terminal device transmits the audio data to other terminal devices corresponding to the call task.

[0036] The following example illustrates the situation after the terminal device establishes a Bluetooth connection with multiple Bluetooth devices in this application, using the user interface of the terminal device. Figure 2 is a schematic diagram of a Bluetooth configuration interface provided by this application. As shown in Figure 2, the Bluetooth configuration interface includes the Bluetooth switch status, device name, paired devices, and audio output configuration options of the terminal device. Among them, the Bluetooth switch status can be controlled by the switch control 21. For example, when the circle in the switch control 21 is on the left, it indicates that the Bluetooth of the terminal device is in the off state; when the circle in the switch control 21 is on the right, it indicates that the Bluetooth of the terminal device is in the on state. The user can switch the status of the Bluetooth of the terminal device by operating the switch control 21.

[0037] The device name is the name of the Bluetooth terminal device. The device name can be a user-defined name or a preset name of the terminal device.

[0038] The paired devices include devices that have established a Bluetooth connection with the terminal device and devices that have established a Bluetooth connection. The device that has established a Bluetooth connection is the device that currently establishes a Bluetooth connection with the terminal device. The device that has established a Bluetooth connection is the device that has established a Bluetooth connection with the terminal device in the past and has not currently established a Bluetooth connection. The devices that currently establish a Bluetooth connection with the terminal device may include a certain audio output device. As shown in Figure 2, after the terminal device establishes a SCO link with headset one, a link establishment prompt such as "Audio connected for calls and media" can be displayed in the display area corresponding to headset one. In one embodiment of the present application, the terminal device can directly serve as an audio output device, using the speaker on the terminal device to play the call audio data corresponding to the call task, and can also play the media audio data on the terminal device.

[0039] In one embodiment of the present application, a user can manually select an audio output device by selecting an audio output configuration option. As shown in FIG2 , each paired device includes a corresponding audio output configuration option 22. Based on the audio output configuration option 22 of the paired device, the device can be set as an audio output device or unset as an audio output device. For example, as shown in FIG2 , vehicle-mounted device 1 can be set as an audio output device based on the audio output configuration option 22 of vehicle-mounted device 1.

[0040] In one embodiment of the present application, corresponding priorities can be set in advance for Bluetooth devices belonging to different device types in the terminal device. After the terminal device establishes a communication connection with multiple Bluetooth devices, the audio connection device can be determined among the multiple Bluetooth devices that have established a communication connection based on the preset priority. For example, assuming that the priority pre-set for the vehicle-mounted device is lower than the priority of the Bluetooth headset, when the terminal device establishes a communication connection with the vehicle-mounted device 1 and the Bluetooth headset 1 at the same time, based on the priority, the terminal device determines the Bluetooth headset 1 as the audio output device. In one embodiment of the present application, after the terminal device determines the audio output device based on the priority, it can also reconfirm the audio output device based on the user's operation on the audio output configuration option.

[0041] The above description uses the contents of the Bluetooth configuration interface of the terminal device to exemplarily describe the correspondence between the terminal device, the Bluetooth device and the Bluetooth configuration interface.

[0042] For example, Figure 3 shows a schematic diagram of the structure of a Bluetooth device. The Bluetooth device 200 may include at least one processor 301, at least one memory 302, a wireless communication module 303, an audio module 304, a power module 305, and an input / output interface 306. The processor may include one or more interfaces for connecting to other components of the Bluetooth device 200. Below, taking the Bluetooth device 200 as a Bluetooth headset as an example, the various components of the Bluetooth device 200 will be described in detail in conjunction with Figure 3.

[0043] The memory 302 can be used to store program codes, such as those for establishing physical connections between the Bluetooth device 200 and multiple terminal devices, service-standard connections between the terminal devices, processing audio services of the terminal devices (such as music playback, receiving / making calls, etc.), charging the Bluetooth device 200, and wirelessly pairing the Bluetooth device 200 with other terminal devices. The memory 302 can also be used to store other information, such as the priority of the terminal device.

[0044] The processor 301 can be used to execute the above-mentioned application code and call relevant modules to implement the functions of the Bluetooth device 200 in the embodiment of the present application. For example, it realizes the physical connection, virtual connection, audio playback, answering / making calls, switching the service specification connection between different terminal devices according to the device priority, and the like between the Bluetooth device 200 and the terminal device 100. Among them, the physical connection is a connection based on a physical link, which may include an SCO link or a low energy asynchronous connection link / logical transport (LEACL) connection. For example, the Bluetooth device 200 sends a link establishment request to the terminal device so as to establish an SCO link between the Bluetooth device 200 and the terminal device. A virtual connection means that the terminal device 100 is near the Bluetooth device 200 and can receive the BLE broadcast sent by the Bluetooth device 200, which does not require a physical link for data transmission. Compared with a physical connection, a virtual connection can save more power of the Bluetooth device 200 and the terminal device 100 and extend the use time of the Bluetooth device 200 and the terminal device 100.

[0045] The processor 301 may include one or more processing units, and different processing units may be independent devices or integrated into one or more processors 301. The processor 301 may specifically be an integrated control chip, or may be composed of a circuit including various active and / or passive components, and the circuit is configured to perform the functions of the processor 301 described in the embodiments of this application.

[0046] The wireless communication module 303 can be used to support data exchange between the Bluetooth device 200 and other terminal devices or earphone boxes through wireless communication technology. In some embodiments, the wireless communication module 303 can be a Bluetooth chip. The Bluetooth device 200 can use this Bluetooth chip to pair with the Bluetooth chip of other terminal devices and establish a wireless connection to enable wireless communication and service processing between the Bluetooth device 200 and other terminal devices through this wireless connection. The Bluetooth chip can support basic rate (BR) / enhanced data rate (EDR) Bluetooth and BLE, for example, it can receive / send paging messages, receive / send BLE broadcast messages, etc. The Bluetooth chip can support basic rate (BR) / enhanced data rate (EDR) Bluetooth and BLE, for example, it can receive / send page messages, receive / send BLE broadcast messages, etc. For example, the Bluetooth chip can transmit signals, such as BLE signals, so that the terminal device 100 can discover the Bluetooth device 200 and establish a Bluetooth connection and communication with the Bluetooth device 200. The Bluetooth chip can also monitor signals transmitted by the terminal device 100, such as detection requests, scanning signals, etc., and can send response signals, scanning responses, etc., so that the terminal device 100 can discover the Bluetooth device 200 and establish a wireless connection and communication with the Bluetooth device 200. In the embodiment of the present application, the Bluetooth chip can monitor the service information of the terminal device 100. If the service information is monitored, it is determined that the terminal device 100 has an audio service.

[0047] The audio module 304 can be used to manage audio data and enable the Bluetooth device 200 to input and output audio streams. For example, the audio module 304 can obtain an audio stream from the wireless communication module 303, or transmit an audio stream to the wireless communication module 303, to implement functions such as making and receiving calls, playing music, starting / turning off the voice assistant of the terminal device connected to the headset, and receiving / sending the user's voice data through the Bluetooth device 20. The audio module 304 may include a speaker (or earpiece, receiver) component for outputting an audio stream, a microphone (or microphone, microphone), a microphone receiving circuit that cooperates with the microphone, etc. The speaker can be used to convert an audio electrical signal into a sound signal and play it. The microphone can be used to convert a sound signal into an audio electrical signal.

[0048] The power module 305 can be used to provide system power to the Bluetooth device 20, power each module of the Bluetooth device 20, and support the Bluetooth device 20 to receive charging input, etc. The power module 305 may include a power management unit (PMU) and a battery. The power management unit can receive external charging input, transform the electrical signal input from the charging circuit and provide it to the battery for charging, and can also transform the electrical signal provided by the battery and provide it to other modules such as the audio module 304 and the wireless communication module 303, and prevent the battery from being overcharged, over-discharged, short-circuited or overcurrent, etc. In some embodiments, the power module 305 may also include a wireless charging coil for wirelessly charging the Bluetooth device 20. In addition, the power management unit can also be used to monitor parameters such as battery capacity, battery cycle count, battery health status (leakage, impedance), etc.

[0049] Multiple input / output interfaces 306 can be used to provide charging interfaces or wired communication interfaces for the Bluetooth device 20. In some embodiments, the input / output interface can be a USB interface. In other embodiments, the input / output interface 306 can be an earphone electrical connector. When the Bluetooth device 20 is placed in the earphone case, the earphone electrical connector can establish an electrical connection with the electrical connector in the earphone case to charge the battery in the Bluetooth device 20. In other embodiments, after this electrical connection is established, the Bluetooth device 20 can also communicate data with the earphone case, for example, to receive pairing instructions from the earphone case.

[0050] In addition, the Bluetooth device 20 may further include a sensor 307. For example, the sensor 307 may be a distance sensor or a proximity light sensor, which may be used to determine whether the Bluetooth device 20 is being worn by the user. For example, the Bluetooth device 20 may utilize the distance sensor to detect whether there is an object near the Bluetooth device 20, thereby determining whether the Bluetooth device 20 is being worn by the user. Upon determining that the Bluetooth device 20 is being worn, the Bluetooth device 20 may turn on a speaker.

[0051] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the Bluetooth device 20. It may have more or fewer components than those shown in FIG3 , may combine two or more components, or may have different component configurations. For example, the outer surface of the Bluetooth device 20 may also include a button 308, an indicator light (which may indicate battery level, incoming / outgoing calls, pairing mode, and other states), a display screen (which may prompt the user with relevant information), a dust screen (which may be used in conjunction with a handset), and other components. Among them, the button 308 may be a physical button or a touch button (used in conjunction with a touch sensor), etc., which is used to trigger operations such as power on, power off, pause, play, recording, start pairing, and reset.

[0052] The following flowchart illustrates an example of an audio output device confirmation method provided by an embodiment of the present application. FIG4 is a schematic diagram of an audio output device confirmation method provided by an embodiment of the present application. The audio output device confirmation method is applied to a terminal device. Depending on different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted. As shown in FIG4, the method includes:

[0053] Step S401: Establish a Bluetooth connection with a target device.

[0054] The target device is the device to which the terminal device is to establish a Bluetooth connection. In one embodiment of the present application, a Bluetooth connection can be established with the target device in response to a Bluetooth connection instruction. In response to a user clicking the target device icon on the terminal device's Bluetooth configuration interface, the terminal device triggers the target device's Bluetooth connection instruction. In one embodiment of the present application, if the terminal device's Bluetooth is turned on, a Bluetooth connection is established with the target device.

[0055] After establishing a Bluetooth connection with the target device, step S402 is executed to determine whether multiple Bluetooth devices are connected.

[0056] After connecting to the target device, the terminal device determines the Bluetooth device to which the Bluetooth connection is currently established and determines whether multiple Bluetooth devices are connected.

[0057] If multiple Bluetooth devices are not connected, it is determined that the terminal device is currently only connected to the target device, and step S403 is executed to determine whether the target device is a speaker device.

[0058] In one embodiment of the present application, the terminal device can determine the device type of the target device based on the device information received from the target device when establishing a Bluetooth connection with the target device, and determine whether the target device is a speaker device based on the device type. For example, the device information may include Minor Device Class information and / or Major Device Class information. The device type of the Bluetooth device can be determined based on the Minor Device Class information and / or Major Device Class information. In one embodiment of the present application, if the terminal device establishes a communication connection with a Bluetooth device and determines the device type of the Bluetooth device, the device type icon corresponding to the Bluetooth device can be displayed on the Bluetooth configuration interface. For example, as shown in Figure 2, the device type icon of headset 1 and the device type icon of vehicle-mounted device 1 can be displayed on the Bluetooth configuration interface. By displaying the device type icon of the Bluetooth device, it is convenient for the user to confirm the device type of the Bluetooth device.

[0059] If the target device is determined to be a speaker device, step S404 is executed to determine the device that triggers the call task as the audio output device.

[0060] In one embodiment of the present application, the device that triggers the call task can be a terminal device or a target device, such as a speaker device. Specifically, when the terminal device receives an incoming call, the incoming call operation controls corresponding to the incoming call will be displayed on the display screen of the terminal device (and / or the display screen of the speaker device), and the incoming call operation controls include answering controls; in response to the user's operation of the answering controls on the display screen of the terminal device (or the display screen of the speaker device), the call task is triggered. For example, when the user operates the answering control on the display screen of the terminal device, the call task is triggered, and the terminal device determines itself as an audio output device and directly plays the call audio data corresponding to the call task. For another example, when the user operates the answering control on the display screen of the speaker device, the call task is triggered, and the terminal device determines itself as an audio output device and directly plays the call audio data corresponding to the call task. For example, when the user operates the answering control on the display screen of the speaker device, the call task is triggered, and the terminal device determines the speaker device as an audio output device and sends the call audio data corresponding to the call task to the speaker device, so that the speaker device plays the call audio data corresponding to the call task. By determining the device that triggers the call task in the above implementation, when the terminal device is connected to the speaker and receives an incoming call, the device that plays the call audio data of the call task is determined by the user triggering the call task corresponding to the incoming call, thereby avoiding the situation where the terminal device plays the call audio data of the call task directly through the speaker device after connecting to a Bluetooth device (such as a speaker device), thereby ensuring the user's call privacy.

[0061] If it is determined that the target device is not a speaker device, step S405 is executed to determine the target device as an audio output device.

[0062] If it is determined that multiple Bluetooth devices are connected, that is, it is determined that other Bluetooth devices except the target device are currently connected, step S406 is executed to determine whether the multiple Bluetooth devices are of the same type.

[0063] If the multiple Bluetooth devices are of the same type, step S407 is executed to determine the target device as the audio output device.

[0064] The target device is the last device among multiple Bluetooth devices to establish Bluetooth communication with the terminal device. The user intention is predicted based on user behavior, and the target device is determined as the audio output device, which can make the determined audio output device more in line with the user's needs. In one embodiment of the present application, if the multiple Bluetooth devices are all Bluetooth headsets and the multiple devices do not include hearing aids, the target device is determined as the audio output device; if the multiple Bluetooth devices are all Bluetooth headsets and the multiple devices include a hearing aid, the hearing aid is determined as the audio output device; if the multiple Bluetooth devices are all Bluetooth headsets and the multiple devices include multiple hearing aids, the last connected hearing aid among the multiple hearing aids can be determined as the audio output device.

[0065] If the multiple Bluetooth devices are not of the same type, step S408 is executed to determine the device with the highest priority among the multiple Bluetooth devices as the audio output device.

[0066] In one embodiment of the present application, priorities corresponding to different device types can be pre-set. For example, the priority corresponding to a Bluetooth device can be determined based on the device type of the Bluetooth device. The priorities corresponding to different device types can be set according to user needs. In one embodiment of the present application, a Bluetooth headset can be determined as the first priority, an in-vehicle device can be determined as the second priority, and a speaker can be determined as the third priority. The first priority is greater than the second priority, and the second priority is greater than the third priority.

[0067] In one embodiment of the present application, a corresponding priority can be set for a Bluetooth device with a specific function in each device type, and the corresponding priority can be different from the priority of other Bluetooth devices of the same device type as the Bluetooth device. Among the device types of Bluetooth headsets, hearing aids are used to provide hearing support for hearing-impaired people and have specific functions. For example, the hearing aid can be determined as the first priority, other Bluetooth headsets except the hearing aid can be determined as the second priority, the vehicle-mounted device can be determined as the third priority, and the speaker can be determined as the fourth priority. Among them, the first priority is greater than the second priority, the second priority is greater than the third priority, and the third priority is greater than the fourth priority. In this embodiment, if multiple devices that establish a Bluetooth connection with the terminal device include four Bluetooth devices such as a hearing aid, other Bluetooth headsets except the hearing aid, a vehicle-mounted device and a speaker, the hearing aid is determined as the audio output device.

[0068] In one embodiment of the present application, if multiple Bluetooth devices include at least two devices of the same type, it can be determined that the priority of the device that connects to the terminal device later among the at least two devices of the same type is higher than the priority of the device that connects to the terminal device earlier. For example, multiple Bluetooth devices include three Bluetooth headsets, such as Bluetooth headset one, Bluetooth headset two, and Bluetooth headset three, wherein Bluetooth headset one is the device that establishes a connection with the terminal device the earliest among the three Bluetooth headsets, and Bluetooth headset three is the device that establishes a connection with the terminal device the latest among the three Bluetooth headsets. It is determined that the priority of Bluetooth headset three is higher than the priority of Bluetooth headset two, and the priority of Bluetooth headset two is higher than the priority of Bluetooth headset one. In another embodiment of the present application, if multiple Bluetooth devices include at least two devices of the same type and the at least two devices of the same type include a hearing aid, the hearing aid can be determined as the audio output device; if multiple Bluetooth devices include at least two devices of the same type and the at least two devices of the same type include multiple hearing aids, the hearing aid that is connected last among the multiple hearing aids can be determined as the audio output device.

[0069] In one embodiment of the present application, after the terminal device determines the audio output device, the terminal device can immediately establish a SCO link with the determined audio output device. After triggering a call task, the call audio data corresponding to the call task can be sent to the determined audio output device based on the established SCO link, so that the determined audio output device plays the call audio data corresponding to the call task. In one embodiment of the present application, after the terminal device determines the audio output device, it can establish a SCO link with the determined audio output device in response to the triggered call task. The terminal device can send the call audio data corresponding to the call task to the determined audio output device based on the established SCO link, so that the determined audio output device plays the call audio data corresponding to the call task. The call task in the above embodiment can be triggered by the user on the terminal device, or it can be triggered by the user on a Bluetooth device that establishes Bluetooth communication with the terminal device, such as being triggered on a determined audio output device, and no limitation is made here.

[0070] In one embodiment of the present application, after the terminal device determines the audio output device, it can also re-determine the audio output device based on the user's operation on the audio output configuration option. For example, after executing steps S404, S405, S407, and S408, the audio output device can be re-determined based on the user's operation on the audio output configuration option.

[0071] In the above embodiment, after the terminal device establishes a Bluetooth connection with the target device, a suitable audio output device can be automatically determined from the Bluetooth devices that have established Bluetooth connections with the terminal device, thereby improving the efficiency of determining the audio output device.

[0072] In order to avoid the situation where the sound output channel is switched against the user's will during the process of the terminal device performing a call task, an embodiment of the present application provides a sound output channel switching method. Figure 5 is a schematic diagram of a sound output channel switching method provided by an embodiment of the present application. The sound output channel switching method can be applied to the terminal device, and can also be applied to the Bluetooth chip located on the terminal device. The Bluetooth chip is used to provide Bluetooth communication connection services for the terminal device. Computer instructions are stored in the Bluetooth chip. When the computer instructions are run on the Bluetooth chip, the Bluetooth chip executes the above-mentioned related method steps to implement the sound output channel switching method. Figure 5 takes the application of the sound output channel switching method to the terminal device as an example for illustration. The specific implementation method of the sound output channel switching method applied to the Bluetooth chip located on the terminal device is consistent with the implementation method when the sound output channel switching method is applied to the terminal device, and only the execution subject is different. For some specific implementation methods of the sound output channel switching method applied to the Bluetooth chip located on the terminal device, please refer to the relevant description of Figure 5. According to different needs, the order of the steps in the flowchart can be changed, and some steps can be omitted. As shown in Figure 5, the method includes:

[0073] Step S501: Determine whether multiple Bluetooth devices are connected.

[0074] In one embodiment of the present application, the terminal device may execute step S501 after establishing a Bluetooth connection with any Bluetooth device, that is, the terminal device may execute step S501 after establishing a Bluetooth connection with a Bluetooth device with which no Bluetooth connection has been established. In another embodiment of the present application, the terminal device may execute the process shown in Figure 5 each time an incoming call is received, and determine in step S501 whether multiple Bluetooth devices are connected. In one embodiment of the present application, the terminal device may execute step S501 before or after executing any step shown in Figure 4, for example, it may execute step S501 after step S401 as shown in Figure 4, or it may execute step S501 after step S408 as shown in Figure 4. In this embodiment of the present application, there is no restriction on the time for executing step S501.

[0075] In one embodiment of the present application, if multiple Bluetooth devices are connected, the terminal device can determine the audio output device among the multiple Bluetooth devices and establish an SCO link with the determined audio output device. For some specific implementations of determining the audio output device among multiple Bluetooth devices, please refer to the relevant description in Figure 4. In one embodiment of the present application, when the terminal device has established an SCO link with a Bluetooth device and the terminal device is not in a call task, the audio output device can be re-determined among the multiple Bluetooth devices.

[0076] In one embodiment of the present application, when step S501 is executed after step S401 as shown in FIG. 4 , if it is determined that multiple Bluetooth devices are not connected, steps S403 to S405 as shown in FIG. 4 may continue to be executed.

[0077] If multiple Bluetooth devices are connected, step S502 is executed to determine whether the first Bluetooth device exists among the multiple Bluetooth devices.

[0078] The first Bluetooth device is any one of the multiple Bluetooth devices connected to the terminal device, whose device type is a Bluetooth headset. In this embodiment, the Bluetooth device whose device type is a Bluetooth headset may include one or more of a hearing aid, a TWS headset, an earbud headset, an in-ear headset, a headset, an earmuff headset, a neckband headset, and an earphone. In one embodiment of the present application, the device type of each Bluetooth device can be determined based on the device information sent by each Bluetooth device when establishing a Bluetooth connection with the multiple Bluetooth devices.

[0079] If the first Bluetooth device exists among the multiple Bluetooth devices, step S503 is executed to determine whether the terminal device establishes a SCO link with the first Bluetooth device.

[0080] If the terminal device establishes an SCO link with the first Bluetooth device and determines that the first Bluetooth device is the current audio output device of the terminal device, step S504 is executed. In response to the first call task, based on the synchronous directional link with the first Bluetooth device, the call audio data corresponding to the first call task is sent to the first Bluetooth device, so that the first Bluetooth device plays the call audio data corresponding to the first call task.

[0081] The first call task may be any call task triggered after the terminal device establishes a SCO link with the first Bluetooth device.

[0082] Step S505 : During the execution of the first call task, if a link establishment request is received from the second Bluetooth device, a request instruction corresponding to the link establishment request is determined.

[0083] The second Bluetooth device is the device that establishes a Bluetooth connection with the terminal device before the first call task is performed. This device can be any of the multiple Bluetooth devices in step S501 except the first Bluetooth device. The link establishment request is used to request the establishment of an SCO link with the terminal device. The second Bluetooth device can be a Bluetooth device capable of preempting the call channel, that is, a device capable of sending a link establishment request.

[0084] Step S506 , determining whether the request instruction is the first instruction.

[0085] The first instruction can be set based on user needs and can be set as a link establishment request method that is frequently automatically triggered by the Bluetooth device. For example, the first instruction can be a connection request instruction. The connection request instruction is a commonly used instruction in Bluetooth devices during Bluetooth communication and is used to request a terminal device to establish an SCO link.

[0086] If the request instruction of the link establishment request is a first instruction, the link establishment request is not responded to. If the request instruction of the link establishment request is a first instruction, the synchronous directional link with the first Bluetooth device is not disconnected, and the synchronous directional link with the first Bluetooth device is maintained. In one embodiment of the present application, if the request instruction of the link establishment request is a first instruction, a rejection message is sent to the second Bluetooth device. Figure 6 is a schematic diagram of a second Bluetooth device sending a link establishment request provided by an embodiment of the present application. For example, assume that the first Bluetooth device is a headset and the second Bluetooth device is a vehicle. As shown in Figure 6, before the first call task, the terminal device establishes a Bluetooth connection with the headset and the vehicle. When executing the first call task, the terminal device uses the headset as the audio output device and establishes a SCO link with the headset. Based on the SCO link with the headset, the call audio data corresponding to the first call task is sent to the headset, so that the incoming call audio and call audio corresponding to the first call task are output from the headset. While the terminal device is executing the first call task, the vehicle sends a connection request instruction to the terminal device. After receiving the connection request instruction, the terminal device sends a rejection message to the vehicle.

[0087] If the request mode of the link establishment request is not the first instruction, step S507 is executed to determine whether the request mode is the second instruction.

[0088] If the request method of the link establishment request is not the second instruction, the process ends. In one embodiment of the present application, if the request method of the link establishment request is not the second instruction, a prompt message corresponding to the link establishment request can be displayed on the terminal device, and the prompt message includes a channel switching control. The channel switching control is used to disconnect the synchronous directional link with the first Bluetooth device and establish a synchronous directional link with the second Bluetooth device. In response to the user's operation of the channel switching control, the terminal device can disconnect the synchronous directional link with the first Bluetooth device and establish a synchronous directional link with the second Bluetooth device.

[0089] If the request instruction of the link establishment request is the second instruction, step S508 is executed to disconnect the synchronous directional link with the first Bluetooth device and establish a synchronous directional link with the second Bluetooth device.

[0090] The second instruction can be configured based on user needs and can be configured as a link establishment request method triggered by a user operating the terminal device. For example, the second instruction can be AT+BCC. AT+BCC is a command commonly used by Bluetooth devices in Bluetooth communication, used to request the terminal device to use the terminal device as an audio output device and to request the terminal device to establish an SCO link with the terminal device.

[0091] After the synchronous directional link with the first Bluetooth device is disconnected, the terminal device stops sending the call audio data corresponding to the first call task to the first Bluetooth device, and the first Bluetooth device stops playing the call audio data corresponding to the first call task.

[0092] Step S509: Based on the synchronous directional link with the second Bluetooth device, the call audio data corresponding to the first call task is sent to the second Bluetooth device, so that the second Bluetooth device plays the call audio data corresponding to the first call task.

[0093] In the above implementation method, after the second Bluetooth device sends a link establishment request with the first instruction as the request type, the first Bluetooth device continues to be used as the audio output device and does not switch the audio output channel. This avoids the situation where the second Bluetooth device actively triggers the link establishment request, causing the audio output channel to switch, thereby preventing the audio output channel from switching against the user's wishes while the device is executing a call task. At the same time, after the second Bluetooth device sends a link establishment request with the second instruction, the first Bluetooth device is no longer used as the audio output device, and the second Bluetooth device is used as the audio output device. This causes the call audio data corresponding to the first call task to be played back from the first Bluetooth device to the second Bluetooth device, thus achieving the switching of the audio output channel.

[0094] In one embodiment of the present application, after executing step S504 in Figure 5, during the execution of the first call task, the terminal device can, in response to a user operation on the terminal device, re-determine the audio output device, disconnect the SCO link with the first Bluetooth device, and establish a SCO link with the re-determined audio output device, so that the call audio data corresponding to the first call task is output from the re-determined audio output device. For example, assume that the first Bluetooth device is a headset and the second Bluetooth device is a vehicle. As shown in Figure 7, before the first call task, the terminal device establishes Bluetooth connections with the headset and the vehicle. When executing the first call task, the terminal device uses the headset as the audio output device and establishes a SCO link with the headset. Based on the SCO link with the headset, the call audio data corresponding to the first call task is sent to the headset, so that the call audio data corresponding to the first call task is output from the headset. For example, as shown in Figure 7, in response to the first user operation on the terminal device, the vehicle is determined as the audio output device, the SCO link with the headset is disconnected, and a SCO link is established with the vehicle, so that the call audio data corresponding to the first call task is output from the vehicle. For another example, as shown in FIG7 , in response to the second operation of the user on the terminal device, the headset is determined as the audio output device, and the SCO link with the vehicle is disconnected, and a SCO link with the headset is established, so that the call audio data corresponding to the first call task is output from the headset. In the above embodiment, during the execution of the first call task, the audio output device can be reconfirmed based on the user's operation on the terminal device to achieve the switching of the sound output channel. In one embodiment of the present application, during the execution of the first call task, the terminal device will reject all connection request instructions sent by the vehicle. For example, as shown in FIG7 , in response to the second operation of the user on the terminal device, after the terminal device establishes the SCO link with the headset, during the execution of the first call task, if the terminal device receives a connection request instruction sent by the vehicle again, it does not respond to the connection request instruction, does not disconnect the synchronous directional link with the headset, maintains the synchronous directional link with the headset, and sends a rejection message to the vehicle.

[0095] In one embodiment of the present application, after the execution of the first call task is completed, if a link establishment request is received from a second Bluetooth device, the synchronous directional link with the first Bluetooth device is disconnected, and a synchronous directional link with the second Bluetooth device is established. The request method corresponding to the link establishment request sent by the second Bluetooth device may include a connection request instruction and / or an AT+BCC instruction. The above method can redetermine the audio output device in response to the request of the Bluetooth device and establish a new synchronous directional link when the terminal device is not executing the call task.

[0096] To prevent the Bluetooth device from automatically generating a link establishment request for the second instruction, an embodiment of the present application provides a method for performing channel switching based on the second instruction. FIG8 is a schematic diagram of a method for performing channel switching based on the second instruction provided by an embodiment of the present application. The method shown in FIG8 can be a specific implementation of step S508 in FIG5 . As shown in FIG8 , the method includes:

[0097] Step S601: If the request instruction of the link establishment request is the second instruction, determine the reception time of the link establishment request.

[0098] Step S602: Determine whether the receiving time is within a preset time period after the terminal device starts the first call task.

[0099] The preset time period is a period of time during which the probability of the user switching to the outgoing voice channel is low. The preset time period can be set according to the user's needs. For example, the preset time period can be set based on the user's response time. For example, the preset time period can be set to 2 seconds or 3.5 seconds. In this embodiment, a link establishment request received within the preset time period after the terminal device starts the first call task is determined to be a link establishment request automatically triggered by the Bluetooth device.

[0100] When the receiving time is within the preset time period after the terminal device starts the first call task, it is determined that the link establishment request is a link establishment request automatically triggered by the second Bluetooth device, and step S603 is executed, and the link establishment request is not responded to.

[0101] If the receiving time is within the preset time period after the terminal device starts the first call task, it does not respond to the link establishment request sent by the second Bluetooth device, does not disconnect the synchronous directional link with the first Bluetooth device, and maintains the synchronous directional link with the first Bluetooth device.

[0102] When the receiving time is after the preset time period after the terminal device starts the first call task, it is determined that the link establishment request is a link establishment request triggered by the user, and step S604 is executed to disconnect the synchronous directional link with the first Bluetooth device and establish a synchronous directional link with the second Bluetooth device.

[0103] For some specific implementations of step S604, please refer to the relevant description above.

[0104] The above-mentioned implementation manner can further judge the link establishment request of the received second instruction based on the preset time period after the terminal device starts the first call task to determine whether the link establishment request is a link establishment request actively triggered by the second Bluetooth device, and determine whether to disconnect the synchronous directional link with the first Bluetooth device based on the judgment result and re-establish the synchronous directional link with the second Bluetooth device, thereby avoiding the situation where the sound channel is switched against the user's wishes during the device's execution of the call task, and further improving the accuracy of the sound channel switching.

[0105] FIG9 is a schematic diagram of a method for switching an outgoing sound channel provided in an embodiment of the present application. The method shown in FIG9 is applied to a terminal device and can be executed after step S402 in FIG4 or step S501 in FIG5. As shown in FIG9, the method includes:

[0106] If it is determined that multiple Bluetooth devices are not connected, step S701 is executed to determine whether a synchronous directional link is established with a third Bluetooth device.

[0107] The third Bluetooth device is a Bluetooth device that has established a Bluetooth connection with the terminal device and is a Bluetooth headset. If it is determined that the terminal device has established a synchronous directional link with the third Bluetooth device, it is determined that the terminal device currently only has a Bluetooth connection with the single third Bluetooth device and has not established Bluetooth communication with any other device other than the third Bluetooth device. In one embodiment of the present application, if S701 is executed after step S402 in FIG. 4 and the device type of the target device in the method shown in FIG. 4 is a Bluetooth headset, the third Bluetooth device may be the target device in the method shown in FIG. 4.

[0108] In one embodiment of the present application, if it is determined that a synchronous directional link has not been established with the third Bluetooth device, a synchronous directional link can be established with the third Bluetooth device. In one embodiment of the present application, if it is determined that a synchronous directional link has not been established with the third Bluetooth device and the terminal device has established a Bluetooth connection with any Bluetooth device, the terminal device can determine an audio output device from the third Bluetooth device and the any Bluetooth device, and establish an SCO link with the determined audio output device. For example, when the device types of the third Bluetooth device and the any Bluetooth device are different, the audio output device can be determined based on the respective priorities of the third Bluetooth device and the any Bluetooth device. For another example, when the device types of the third Bluetooth device and the any Bluetooth device are the same, the any Bluetooth device can be determined as the audio output device, and an SCO link can be established between the terminal device and the any Bluetooth device.

[0109] If a synchronous directional link is established with a third Bluetooth device, and the third Bluetooth device is determined to be the current audio output device of the terminal device, step S702 is executed. In response to the second call task, based on the synchronous directional link with the third Bluetooth device, the call audio data corresponding to the second call task is sent to the third Bluetooth device, so that the third Bluetooth device plays the call audio data corresponding to the second call task.

[0110] The second call task may be any call task triggered after the terminal device establishes a call with the third Bluetooth device.

[0111] Step S703: Receive a first Bluetooth connection instruction and establish a Bluetooth connection with a fourth Bluetooth device.

[0112] The first Bluetooth connection instruction is used to instruct the user to establish a Bluetooth connection with the fourth Bluetooth device. The fourth Bluetooth device is the Bluetooth device to which the terminal device is to be connected. In the embodiments of the present application, there is no restriction on the device type of the fourth Bluetooth device. The fourth Bluetooth device can be any one of a Bluetooth headset, a vehicle-mounted device, and a speaker. During the process of the terminal device executing the second call task, the first Bluetooth connection instruction can be triggered based on the user's operation on the Bluetooth configuration interface. After receiving the first Bluetooth connection instruction, the terminal device establishes a Bluetooth connection with the fourth Bluetooth device.

[0113] Step S704: during the execution of the second call task, if a link establishment request is received from a fourth Bluetooth device, the link establishment request is not responded to.

[0114] If a link establishment request is received from the fourth Bluetooth device, the synchronous directional link with the third Bluetooth device is not disconnected, and the synchronous directional link with the third Bluetooth device is maintained.

[0115] In one embodiment of the present application, the request method corresponding to the link establishment request sent by the fourth Bluetooth device may include a connection request instruction and / or an AT+BCC instruction.

[0116] In one embodiment of the present application, during the execution of the second call task, the synchronous directional link with the third Bluetooth device can be disconnected and a synchronous directional link with the fourth Bluetooth device can be established based on the user's operation of determining the fourth Bluetooth device as the audio output device on the terminal device. After the synchronous directional link with the fourth Bluetooth device is established, the terminal device sends the call audio data corresponding to the second call task to the fourth Bluetooth device based on the synchronous directional link with the fourth Bluetooth device, so that the fourth Bluetooth device plays the call audio data corresponding to the second call task. The above method can use the fourth Bluetooth device as the audio output device based on the user's operation of reconfirming the audio output device on the terminal device, so that the call audio data corresponding to the second call task is switched from the third Bluetooth device to the fourth Bluetooth device, thereby improving the user experience.

[0117] The above-mentioned implementation method, when the third Bluetooth device outputs call audio data as an audio output device, can continue to use the third Bluetooth device as an audio output device when the fourth Bluetooth device sends a link establishment request, and does not switch the sound output channel. This avoids the situation where the sound output channel is switched due to triggering a link establishment request when the fourth Bluetooth device is not the target Bluetooth device, improves the stability of the third Bluetooth device outputting call audio data as an audio output device, and ensures the user experience of using the third Bluetooth device for calls.

[0118] In one embodiment of the present application, after the second call task is completed, if a link establishment request is received from a fourth Bluetooth device, the synchronous directional link with the third Bluetooth device is disconnected, and a synchronous directional link with the fourth Bluetooth device is established. The request method corresponding to the link establishment request sent by the fourth Bluetooth device may include a connection request instruction and / or an AT+BCC instruction. The above method can redetermine the audio output device in response to the request of the Bluetooth device and establish a new synchronous directional link when the terminal device is not executing the call task.

[0119] FIG10 is a schematic diagram of a method for switching an outgoing sound channel provided in an embodiment of the present application. This application takes the method shown in FIG10 as an example of executing after step S504 in FIG5 . As shown in FIG10 , the method includes:

[0120] During the execution of the first call task, in step S801, in response to a second Bluetooth connection instruction, a Bluetooth connection is established with a fifth Bluetooth device.

[0121] The second Bluetooth connection instruction is used to instruct the user to establish a Bluetooth connection with the fifth Bluetooth device. The fifth Bluetooth device is the Bluetooth device to be connected to the terminal device, and can be the device to be connected to the terminal device while the terminal device is performing the first call task. In the embodiment of the present application, there is no restriction on the device type of the fifth Bluetooth device. The fifth Bluetooth device can be any one of the Bluetooth devices such as Bluetooth headsets, car-mounted equipment, and speakers. During the process of the terminal device performing the first call task, the second Bluetooth connection instruction can be triggered based on the user's operation on the Bluetooth configuration interface. After receiving the second Bluetooth connection instruction, the terminal device establishes a Bluetooth connection with the fifth Bluetooth device.

[0122] Step S801: During the execution of the first call task, if a link establishment request is received from a fifth Bluetooth device, the link establishment request is not responded to.

[0123] If a link establishment request is received from the fifth Bluetooth device, the synchronous directional link with the first Bluetooth device is not disconnected, and the synchronous directional link with the first Bluetooth device is maintained.

[0124] In one embodiment of the present application, the request method corresponding to the link establishment request sent by the fifth Bluetooth device may include a connection request instruction and / or an AT+BCC instruction.

[0125] In one embodiment of the present application, during the execution of the first call task, the synchronous directional link with the first Bluetooth device can be disconnected and a synchronous directional link with the fifth Bluetooth device can be established based on the user's operation of determining the fifth Bluetooth device as the audio output device on the terminal device. After the synchronous directional link with the fifth Bluetooth device is established, the terminal device sends the call audio data corresponding to the first call task to the fifth Bluetooth device based on the synchronous directional link with the fifth Bluetooth device, so that the fifth Bluetooth device plays the call audio data corresponding to the first call task. The above method can use the fifth Bluetooth device as the audio output device based on the user's operation of reconfirming the audio output device on the terminal device, so that the call audio data corresponding to the first call task is switched from the first Bluetooth device to the fifth Bluetooth device, thereby improving the user experience.

[0126] In the above-mentioned implementation method, when the first Bluetooth device outputs the call audio data corresponding to the first call task as an audio output device, if the terminal device establishes a Bluetooth connection with the fifth Bluetooth device during the execution of the first call task, during the execution of the first call task, even if the fifth Bluetooth device sends a link establishment request, the terminal device can continue to use the first Bluetooth device as an audio output device without switching the sound channel, thereby avoiding the situation where the sound channel is switched due to the fifth Bluetooth device triggering the link establishment request, improving the stability of the first Bluetooth device outputting call audio data as an audio output device, and ensuring the user experience of using the first Bluetooth device to make calls.

[0127] In one embodiment of the present application, after the execution of the first call task is completed, if a link establishment request is received from a fifth Bluetooth device, the synchronous directional link with the first Bluetooth device is disconnected, and a synchronous directional link with the fifth Bluetooth device is established. The request method corresponding to the link establishment request sent by the fifth Bluetooth device may include a connection request instruction and / or an AT+BCC instruction. The above method can redetermine the audio output device in response to the request of the Bluetooth device and establish a new synchronous directional link when the terminal device is not executing the call task.

[0128] FIG11 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Referring to FIG11 , the terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, 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. 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, a bone conduction sensor 180M, etc.

[0129] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0130] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU).

[0131] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.

[0132] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I1C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.

[0133] The I1C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). The I2S interface can be used for audio communication. The PCM interface can also be used for audio communication to sample, quantize, and encode analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. The UART interface is a universal serial data bus for asynchronous communication. The bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality.

[0134] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the terminal device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the terminal device 100.

[0135] The GPIO interface can be configured through software. The GPIO interface can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, the display 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as an I1C interface, an I2S interface, a UART interface, a MIPI interface, etc.

[0136] The USB interface 130 is an interface that complies with USB standards and specifications, and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the terminal device 100, or to transfer data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect to other terminal devices 100, such as AR devices.

[0137] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt a different interface connection method from the above embodiment, or a combination of multiple interface connection methods.

[0138] The charging management module 140 is used to receive charging input from a charger. The charger can be a wireless charger or a wired charger. The power management module 141 is used to connect the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 to power the processor 110, the internal memory 121, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance).

[0139] The wireless communication function of the terminal device 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.

[0140] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals.

[0141] The mobile communication module 150 can provide wireless communication solutions, including 2G / 3G / 4G / 5G, for the terminal device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low-noise amplifier (LNA), and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signals modulated by the modem processor and convert them into electromagnetic waves for radiation via the antenna 1.

[0142] The wireless communication module 160 can provide wireless communication solutions applied to the terminal device 100, including wireless local area networks (WLAN), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared technology (IR), etc.

[0143] The terminal device 100 implements display functions through a GPU, display screen 194, and an application processor. The GPU is a microprocessor that provides service exception notifications and connects the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.

[0144] Display screen 194 is used to display images, videos, etc. 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 (AMOLED), a flexible light-emitting diode (FLED), a MiniLED, a MicroLED, a Micro-oLed, or a quantum dot light-emitting diode (QLED).

[0145] In some embodiments, the terminal device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1. The terminal device 100 may implement a shooting function through an ISP, a camera 193 , a video codec, a GPU, a display screen 194 , and an application processor.

[0146] The camera 193 is used to capture still images or videos. The object is projected onto the photosensitive element through the lens to generate an optical image.

[0147] The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).

[0148] The external memory interface 120 can be used to connect to an external non-volatile memory to expand the storage capacity of the terminal device 100. The external non-volatile memory communicates with the processor 110 via the external memory interface 120 to implement data storage. For example, files such as music and videos can be stored in the external non-volatile memory.

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

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

[0151] The speaker 170A, also known as a "speaker," is used to convert audio electrical signals into sound signals. The terminal device 100 can listen to music or hands-free calls through the speaker 170A. The receiver 170B, also known as a "handset," is used to convert audio electrical signals into sound signals. When the terminal device 100 receives a call or a voice message, the voice can be heard by placing the receiver 170B close to the human ear. The microphone 170C, also known as a "microphone," is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by placing their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The terminal device 100 can be provided with at least one microphone 170C. In other embodiments, the terminal device 100 can be provided with two microphones 170C, which, in addition to collecting sound signals, can also implement noise reduction. In other embodiments, the terminal device 100 can also be provided with three, four, or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, implement directional recording, and the like.

[0152] The headphone jack 170D is used to connect a wired headphone and can be a 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.

[0153] The pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. The gyroscope sensor 180B can be used to determine the motion posture of the terminal device 100. The air pressure sensor 180C is used to measure air pressure. The magnetic sensor 180D includes a Hall sensor. The terminal device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip cover. The acceleration sensor 180E can detect the magnitude of the acceleration of the terminal device 100 in various directions (generally three axes). The distance sensor 180F is used to measure distance. The proximity light sensor 180G can include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The ambient light sensor 180L is used to sense the brightness of ambient light. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect temperature. The touch sensor 180K, also known as a "touch control device", can be set on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also known as a "touch screen". The bone conduction sensor 180M can acquire vibration signals.

[0154] Buttons 190 include a power button, volume button, and other buttons. They can be mechanical or touch-sensitive. Motor 191 can generate vibrations. Indicator 192 can be an indicator light that can indicate charging status, battery level changes, messages, missed calls, and notifications.

[0155] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and disconnected from the terminal device 100 by inserting or removing it from the SIM card interface 195. The terminal device 100 can support one or N SIM card interfaces, where N is a positive integer greater than one. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The multiple cards can be of the same or different types. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.

[0156] An embodiment of the present application also provides a computer storage medium, which stores computer instructions. When the computer instructions are executed on the terminal device 100, the terminal device 100 executes the above-mentioned related method steps to implement the method provided in the above-mentioned embodiment, such as the sound channel switching method.

[0157] The embodiments of the present application further provide a computer program product. When the computer program product is run on a computer, the computer is caused to execute the above-mentioned related steps to implement the methods provided in the above-mentioned embodiments, such as the sound channel switching method.

[0158] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory to enable the chip to execute the method provided in the above embodiment, such as the sound channel switching method.

[0159] Among them, the terminal device, computer storage medium, computer program product or chip provided in the embodiments of the present application are all used to execute the corresponding methods provided in the above embodiments. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above, and will not be repeated here. Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.

[0160] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms. The unit described as a separate component may or may not be physically separated, and the component shown as a unit may be one physical unit or multiple physical units, that is, it can be located in one place, or it can be distributed in multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0161] In addition, the functional units in the various embodiments of the present application can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a device (which can be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method of each embodiment of the present application. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and are not limiting. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. A voice output channel switching method, applied to a terminal device, characterized in that, The method includes: If the terminal device establishes Bluetooth connections with multiple Bluetooth devices and establishes a synchronous directed link with a first Bluetooth device among the multiple Bluetooth devices, in response to a first call task, based on the synchronous directed link with the first Bluetooth device, send the call audio data corresponding to the first call task to the first Bluetooth device, so that the first Bluetooth device plays the call audio data corresponding to the first call task; During the execution of the first call task, if a link establishment request sent by a second Bluetooth device among the multiple Bluetooth devices is received, determine the request instruction corresponding to the link establishment request; If the request instruction is a first instruction, maintain the synchronous directed link with the first Bluetooth device; If the request instruction is a second instruction, disconnect the synchronous directed link with the first Bluetooth device and establish a synchronous directed link with the second Bluetooth device; based on the synchronous directed link with the second Bluetooth device, send the call audio data corresponding to the first call task to the second Bluetooth device, so that the second Bluetooth device plays the call audio data corresponding to the first call task.

2. The voice output channel switching method according to claim 1, characterized in that The "if the request instruction is a second instruction, disconnect the synchronous directed link with the first Bluetooth device and establish a synchronous directed link with the second Bluetooth device" includes: If the request instruction is a second instruction and the link establishment request is received after a preset time period after the terminal device starts the first call task, disconnect the synchronous directed link with the first Bluetooth device and establish a synchronous directed link with the second Bluetooth device.

3. The voice channel switching method according to claim 2, wherein The method further includes: If the request instruction is a second instruction and the link establishment request is received within a preset time period after the terminal device starts the first call task, maintain the synchronous directed link with the first Bluetooth device.

4. The audible channel switching method according to claim 1, wherein After the terminal device establishes Bluetooth connections with multiple Bluetooth devices, the method further includes: If the device type of the second Bluetooth device is different from that of the first Bluetooth device and the preset priority of the first Bluetooth device is greater than that of the second Bluetooth device, establish a synchronous directed link with the first Bluetooth device.

5. The voice channel switching method according to claim 1, characterized in that, After the terminal device establishes Bluetooth connections with multiple Bluetooth devices, the method further includes: If the device type of the second Bluetooth device is the same as that of the first Bluetooth device, establish a synchronous directed link with the first Bluetooth device, and the time when the first Bluetooth device establishes a Bluetooth connection with the terminal device is later than the time when the second Bluetooth device establishes a Bluetooth connection with the terminal device.

6. The voice channel switching method according to claim 1, characterized in that, The method further includes: If the terminal device establishes a Bluetooth connection and a synchronous directed link with a single third Bluetooth device, in response to a second call task, based on the synchronous directed link with the third Bluetooth device, send the call audio data corresponding to the second call task to the third Bluetooth device, so that the third Bluetooth device plays the call audio data corresponding to the second call task; Receive a first Bluetooth connection instruction and establish a Bluetooth connection with a fourth Bluetooth device; During the execution of the second call task, if a link establishment request sent by the fourth Bluetooth device is received, maintain the synchronous directed link with the third Bluetooth device.

7. The audible channel switching method according to claim 1, wherein The method further includes: During the execution of the first call task, in response to a second Bluetooth connection instruction, establish a Bluetooth connection with a fifth Bluetooth device; During the execution of the first call task, if a link establishment request sent by the fifth Bluetooth device is received, do not respond to the link establishment request.

8. The voice output channel switching method according to any one of claims 1 to 7, characterized in that The first instruction is "connection request"; The second instruction is "AT+BCC".

9. A method for switching sound channels, which is applied to a Bluetooth chip installed on a terminal device, characterized in that The method includes: If the terminal device establishes Bluetooth connections with multiple Bluetooth devices and establishes a synchronous directed link with a first Bluetooth device among the multiple Bluetooth devices, in response to a first call task, based on the synchronous directed link with the first Bluetooth device, send the call audio data corresponding to the first call task to the first Bluetooth device, so that the first Bluetooth device plays the call audio data corresponding to the first call task; During the execution of the first call task, if a link establishment request sent by a second Bluetooth device among the multiple Bluetooth devices is received, determine the request instruction corresponding to the link establishment request; If the request instruction is the first instruction, maintain the synchronous directed link with the first Bluetooth device; If the request instruction is the second instruction, disconnect the synchronous directed link with the first Bluetooth device and establish a synchronous directed link with the second Bluetooth device; based on the synchronous directed link with the second Bluetooth device, send the call audio data corresponding to the first call task to the second Bluetooth device, so that the second Bluetooth device plays the call audio data corresponding to the first call task.

10. A computer-readable storage medium, characterized in that, Comprising computer instructions, when the computer instructions run on a terminal device, enabling the terminal device to execute the voice output channel switching method according to any one of claims 1 to 8.

11. A terminal device, characterized in that, The terminal device includes a processor and a memory, the memory is used for storing instructions, and the processor is used for calling the instructions in the memory, enabling the terminal device to execute the voice output channel switching method according to any one of claims 1 to 8.