Sound outlet channel switching method, terminal equipment and storage medium

By judging the command type of link establishment request in the terminal device, ensuring that the sound channel switching is in line with the user's wishes, it solves the problem of channel switching caused by the Bluetooth device to actively trigger the link establishment, improves the accuracy and stability of sound channel switching, and improves the user experience.

CN120343752APending Publication Date: 2025-07-18HONOR DEVICE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410044056.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-10
Publication Date
2025-07-18

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 the sound channel switching method in the terminal device, it is determined whether it is a switching request of the user's wishes based on the received link establishment request command, and the SCO link is maintained or disconnected, ensuring that the audio output device meets the user's wishes and avoid unnecessary channel switching.

Benefits of technology

It effectively avoids sound channel switching caused by Bluetooth devices actively triggering 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 CN120343752A_ABST
    Figure CN120343752A_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

Technical Field

[0001] This application belongs to the field of communication technologies, and particularly relates to a method for switching an audio output channel, a terminal device, and a storage medium. Background Art

[0002] Through a wireless communication protocol, a terminal device can establish a connection with other external devices and exchange data. For example, through the Bluetooth protocol, a terminal device can simultaneously establish Bluetooth connections with multiple Bluetooth devices, such as Bluetooth headsets, in-vehicle Bluetooth devices, Bluetooth bracelets, Bluetooth speakers, etc. The terminal device can establish a Synchronous Connection Oriented (SCO) link with any one of the Bluetooth devices with which a Bluetooth connection has been established. After establishing the SCO link, during the execution of a call task, the terminal device can send call audio data corresponding to the call task to the Bluetooth device with which the SCO link has been established, and use it as the audio output channel for the call audio data, such as playing the call audio data through a Bluetooth headset or in-vehicle Bluetooth.

[0003] During the process of playing call audio data by the Bluetooth device that has established an SCO link with the terminal device, other Bluetooth devices that have established a Bluetooth connection with the terminal device may also send a connection request for establishing an SCO to the terminal device. If the terminal device directly responds to the connection request for establishing an SCO and establishes an SCO link with the Bluetooth device that sent the connection request, an event may occur in which the audio device successfully preempts the audio output channel against the user's will, that is, the audio output channel is switched against the user's will, resulting in a poor user experience. Summary of the Invention

[0004] Embodiments of this application disclose a method for switching an audio output channel, a terminal device, and a storage medium, which can avoid the situation of switching the audio output channel against the user's will during the execution of a call task by the terminal device.

[0005] The first aspect of the present application discloses a method for switching an audible channel, which is applied to a terminal device. 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, 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 directed link with the first Bluetooth device; if the request instruction is a second instruction, disconnecting the synchronous directed link with the first Bluetooth device and establishing a synchronous directed link with the second Bluetooth device; based on the synchronous directed 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.

[0006] In the above method, after the second Bluetooth device sends a link establishment request of the first instruction type, the first Bluetooth device can continue to be used as the audio output device without switching the audible channel, avoiding the situation of audible channel switching caused by the second Bluetooth device actively triggering the link establishment request, thereby avoiding the situation of switching the audible channel against the user's will during the execution of the call task by the device. At the same time, after the second Bluetooth device sends a link establishment request of the second instruction, the first Bluetooth device is stopped from being used as the audio output device, and the second Bluetooth device is used as the audio output device, so that the call audio data corresponding to the first call task is switched from being played by the first Bluetooth device to being played by the second Bluetooth device, realizing the switching of the audible channel.

[0007] In some alternative embodiments, the method further includes: if the request instruction is a second instruction, disconnecting the synchronous directed link with the first Bluetooth device and establishing a synchronous directed link with the second Bluetooth device, including: if the request instruction is a second instruction and the link establishment request is received after a preset time period after the terminal device activates the first call task, disconnecting the synchronous directed link with the first Bluetooth device and establishing a synchronous directed link with the second Bluetooth device. The above method can further determine the link establishment request of the second instruction received based on the preset time period after the terminal device activates the first call task, so as 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 directed link with the first Bluetooth device and re - establish a synchronous directed link with the second Bluetooth device based on the judgment result, avoiding the situation of switching the sound output channel against the user's will during the device's call task execution, and further improving the accuracy of the sound output channel switching.

[0008] In some alternative 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 activates the first call task, maintaining the synchronous directed link with the first Bluetooth device. The above method can avoid the situation of switching the sound output channel based on the link establishment request of the second instruction automatically generated by the Bluetooth device, and further improve the accuracy of the sound output channel switching.

[0009] In some alternative 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 that of the first Bluetooth device and the preset priority of the first Bluetooth device is greater than that of the second Bluetooth device, establishing a synchronous directed 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.

[0010] In some alternative 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 that of the first Bluetooth device, establishing a synchronous directed link with the first Bluetooth device, where 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. 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 alternative embodiments, the method further includes: if the terminal device establishes a Bluetooth connection and synchronizes a directed link with a single third Bluetooth device, in response to a second call task, based on the synchronized directed link with the third Bluetooth device, sending 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; receiving a Bluetooth connection instruction, and establishing 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 and the fourth Bluetooth device is not the target Bluetooth device, maintaining the synchronized directed 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, in the case where the fourth Bluetooth device sends a link establishment request and the fourth Bluetooth device is not the target Bluetooth device, the third Bluetooth device can continue to be used as the audio output device without switching the sound output channel, avoiding the situation of sound output channel switching caused by the link establishment request triggered by the fourth Bluetooth device when the fourth Bluetooth device is not the target Bluetooth device, improving the stability of the third Bluetooth device as an audio output device to output call audio data, and ensuring the user experience of using the third Bluetooth device for calls.

[0012] In some alternative embodiments, the method further includes: during the execution of the first call task, in response to a second Bluetooth connection instruction, establishing 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, not responding to the link establishment request. When the first Bluetooth device is used as an audio output device to output the call audio data corresponding to the first call task, 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 the audio output device without switching the sound output channel, avoiding the situation of sound output channel switching caused by the link establishment request triggered by the fifth Bluetooth device, improving the stability of the first Bluetooth device as an audio output device to output call audio data, and ensuring the user experience of using the first Bluetooth device for calls.

[0013] In some alternative embodiments, the first instruction is "connection request"; the second instruction is "AT+BCC".

[0014] The second aspect of the present application discloses a method for switching the sound output channel, which is applied to a Bluetooth chip. 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, 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 the request instruction corresponding to the link establishment request; if the request instruction is a first instruction, maintaining the synchronous directed link with the first Bluetooth device; if the request instruction is a second instruction, disconnecting the synchronous directed link with the first Bluetooth device and establishing a synchronous directed link with the second Bluetooth device; based on the synchronous directed 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.

[0015] The third aspect of the present application discloses a terminal device, which includes a processor and a memory. 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 output channel switching method as described in the first aspect.

[0016] The fourth aspect of the present application discloses a computer-readable storage medium, which includes computer instructions. When the computer instructions run on a terminal device, the terminal device is caused to execute the sound output channel switching method as described in the first aspect.

[0017] 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 provided above all correspond to the method in the first aspect. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of the system architecture applicable to the sound output channel switching method provided by the embodiment of the present application.

[0019] Figure 2 It is a schematic diagram of a Bluetooth configuration interface provided by the present application.

[0020] Figure 3 It is a schematic diagram of the structure of a Bluetooth device provided by the embodiment of the present application.

[0021] Figure 4Schematic diagram of an audio output device confirmation method provided by an embodiment of the present application.

[0022] Figure 5 Schematic diagram of a voice output channel switching method provided by an embodiment of the present application.

[0023] Figure 6 Schematic diagram of a second Bluetooth device sending a link establishment request provided by an embodiment of the present application.

[0024] Figure 7 Schematic diagram of a second Bluetooth device sending a link establishment request provided by an embodiment of the present application.

[0025] Figure 8 Schematic diagram of a channel switching method based on a second instruction provided by an embodiment of the present application.

[0026] Figure 9 Schematic diagram of a voice output channel switching method provided by an embodiment of the present application.

[0027] Figure 10 Schematic diagram of a voice output channel switching method provided by an embodiment of the present application.

[0028] Figure 11 Schematic diagram of the structure of a terminal device provided by an embodiment of the present application. Detailed implementation manners

[0029] Hereinafter, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "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", "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Rather, the use of words such as "exemplary", "or", "for example" is intended to present relevant concepts in a specific manner.

[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the technical field 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 may mean A or B. The "and / or" in this application is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may mean: A exists alone, A and B exist simultaneously, and B exists alone, these three situations. "At least one" means one or more. "Multiple" means two or more than two. For example, at least one of a, b, or c may mean: a, b, c, a and b, a and c, b and c, a, b, and c, these seven situations. It should be understood that the order of the steps shown in the flowcharts herein may be changed and some may be omitted.

[0031] In order to better understand the embodiments of this application, the voice channel switching method provided by the embodiments of this application will be described by way of example in conjunction with 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 again in some embodiments.

[0032] Figure 1 It is a schematic diagram of the system architecture applicable to the voice channel switching method provided by the embodiments of this 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 through wireless communication methods such as Bluetooth (BT), near field communication (NFC), wireless fidelity (Wi-Fi), and Wi-Fi direct connection. In the embodiments of this application, Bluetooth communication is used as an example for illustration. In one embodiment of this application, the terminal device 100 and the Bluetooth device 200 can communicate through 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, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, as well as a cellular phone, a personal digital assistant (PDA), an artificial intelligence (AI) device, a wearable device, a vehicle-mounted device, a smart home device, and / or a smart city device, etc.

[0033] As Figure 1 shown, the Bluetooth device 200 may include Bluetooth headsets 201, smartwatches 202, Bluetooth speakers 203, smart TVs 204, in-vehicle devices 205, and other devices that support Bluetooth functions and can play audio. The Bluetooth device can be used to play the audio data sent by the terminal device 100. In the embodiments of the present application, the Bluetooth headset 201 can have multiple types. For example, it can be a hearing aid, a true wireless stereo (TWS) headset, an earplug headset, an in-ear headset, an over-ear headset, an earcup headset, a neckband headset, or a hook-on headset, etc. The Bluetooth headset may include a first part and a second part that are respectively worn on the user's left ear and right ear. The first part and the second part can be connected by a connecting line, such as a neckband headset; the first part and the second part can also be two independent parts, such as a true wireless stereo (TWS) headset.

[0034] In the embodiments of the present application, the terminal device 100 can determine the audio output device among at least one Bluetooth device 200 that has established a Bluetooth connection. After determining the audio output device, an SCO link is established with the determined audio output device. The SCO link is a synchronous directed link and is used for data communication 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 the call audio data sent by the terminal device and perform call output. Also, for example, the audio output device can perform media output based on the received media audio data sent by the terminal device, such as playing music, etc. In the embodiments of the present application, when a Bluetooth device is determined as the audio output device of the terminal device, the terminal device establishes an SCO link with the Bluetooth device. For example, when Headset One is the audio output device of the terminal device, the terminal device establishes an SCO link with Headset One. During the execution of a call task, the terminal device can send the call audio data corresponding to the call task to Headset One based on the SCO link with Headset One, so that Headset One plays the call audio data. The audio output device can send the audio data collected during the call task to the terminal device based on the SCO link with the terminal device, so that the terminal device transfers the audio data to other terminal devices corresponding to the call task.

[0035] The following will illustrate by way of example the situation after the terminal device establishes Bluetooth connections with multiple Bluetooth devices in combination with the user interface of the terminal device. Figure 2 It is a schematic diagram of a Bluetooth configuration interface provided by the present application. As Figure 2As shown in the figure, the Bluetooth configuration interface includes the on / off state of the Bluetooth of the terminal device, the device name, the paired devices, and the audio output configuration options. Among them, the on / off state of the Bluetooth can be controlled by the switch control 21. For example, when the circle in the switch control 21 is on the left, it means 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 means that the Bluetooth of the terminal device is in the on state. The user can switch the state of the Bluetooth of the terminal device by operating the switch control 21.

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

[0037] The paired devices include the devices that have established a Bluetooth connection with the terminal device and the devices that have established a Bluetooth connection in the past. The devices that have established a Bluetooth connection are the devices that are currently establishing a Bluetooth connection with the terminal device. The devices that have established a Bluetooth connection in the past are the devices that have established a Bluetooth connection with the terminal device in the past and are not currently establishing a Bluetooth connection. The devices that are currently establishing a Bluetooth connection with the terminal device may include the determined audio output devices. As Figure 2 shown, after the terminal device establishes an SCO link with Headphone 1, a link established prompt can be displayed in the display area corresponding to Headphone 1, such as "Connected for call and media audio". In an embodiment of the present application, the terminal device can directly serve as an audio output device and play the call audio data corresponding to the call task using the speaker on the terminal device, or play the media audio data on the terminal device.

[0038] In an embodiment of the present application, the user can select the audio output configuration option to manually select the audio output device. As Figure 2 shown, 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 the audio output device, or the setting of the device as the audio output device can be cancelled. For example, as Figure 2 shown, Vehicle Device 1 can be set as the audio output device based on the audio output configuration option 22 of Vehicle Device 1.

[0039] In an embodiment of the present application, corresponding priorities can be set for Bluetooth devices belonging to different device types in advance on a terminal device. After the terminal device establishes communication connections with multiple Bluetooth devices, the audio connection device can be determined among the multiple Bluetooth devices with established communication connections based on a preset priority. For example, assume that the priority preset for a vehicle-mounted device is lower than that of a Bluetooth headset. When the terminal device simultaneously establishes communication connections with vehicle-mounted device 1 and Bluetooth headset 1, based on the priority, the terminal device determines Bluetooth headset 1 as the audio output device. In an 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.

[0040] The above content in the Bluetooth configuration interface of the terminal device exemplarily describes the corresponding relationship among the terminal device, the Bluetooth device, and the Bluetooth configuration interface.

[0041] Exemplarily, Figure 3 FIG. shows a schematic structural diagram 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, etc. The processor may include one or more interfaces for connecting to other components of the Bluetooth device 200. Taking the Bluetooth device 200 as a Bluetooth headset as an example below, in combination with Figure 3 each component of the Bluetooth device 200 will be specifically introduced.

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

[0043] The processor 301 can be used to execute the above application code and call relevant modules to implement the functions of the Bluetooth device 200 in the embodiments of the present application. For example, it can implement functions such as physical connection, virtual connection, audio playback, answering / making calls, and switching service specification connections with different terminal devices according to device priorities 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 (LEACL) connection. For example, it can implement the Bluetooth device 200 sending a link establishment request to the terminal device, so as to establish an SCO link between the Bluetooth device 200 and the terminal device. The 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, and it does not require a physical link for data transmission. Compared with the physical connection, the virtual connection can save more power of the Bluetooth device 200 and the terminal device 100 and extend the usage duration of the Bluetooth device 200 and the terminal device 100.

[0044] The processor 301 may include one or more processing units. Different processing units may be independent devices or integrated in one or more processors 301. Specifically, the processor 301 may 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 execute the functions belonging to the processor 301 described in the embodiments of the present application.

[0045] The wireless communication module 303 can be used to support data exchange between the Bluetooth device 200 and other terminal devices or the earphone case through wireless communication technologies. In some embodiments, the wireless communication module 303 can be a Bluetooth chip. The Bluetooth device 200 can pair with the Bluetooth chips of other terminal devices through this Bluetooth chip and establish a wireless connection, so as to achieve 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 page information, 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 information, receive / send BLE broadcast messages, etc. Exemplarily, the Bluetooth chip can transmit a signal, such as a BLE signal, 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 listen to the signals transmitted by the terminal device 100, such as detection requests, scan signals, etc., and can send response signals, scan 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 embodiments of the present application, the Bluetooth chip can listen to 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.

[0046] The audio module 304 can be used to manage audio data and implement the input and output of audio streams of the Bluetooth device 200. For example, the audio module 304 can obtain an audio stream from the wireless communication module 303 or transfer an audio stream to the wireless communication module 303 to implement functions such as making and receiving calls, playing music, starting / stopping the voice assistant of the terminal device connected to the earphone, receiving / sending the voice data of the user, etc. through the Bluetooth device 20. The audio module 304 can include a speaker (or called earpiece, receiver) component for outputting an audio stream, a microphone (or called microphone, transmitter), a microphone receiving circuit cooperating 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.

[0047] The power module 305 can be used to provide the system power for the Bluetooth device 20, supply power to each module of the Bluetooth device 20; support the Bluetooth device 20 to receive charging input, etc. The power module 305 can include a power management unit (PMU) and a battery. Among them, the power management unit can receive external charging input; convert the electrical signal input by the charging circuit and provide it to the battery for charging, and can also convert 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 overcharging, over-discharging, short-circuiting or overcurrent of the battery, etc. In some embodiments, the power module 305 can further 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, and battery health status (leakage, impedance).

[0048] Multiple input / output interfaces 306 can be used to provide an interface for the Bluetooth device 20 to charge or a wired connection interface for communication. 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 Bluetooth device 20 can establish an electrical connection with the electrical connector in the earphone case, so as to charge the battery in the Bluetooth device 20. In other embodiments, after the electrical connection is established, the Bluetooth device 20 can also communicate with the earphone case, for example, it can receive a pairing instruction from the earphone case.

[0049] In addition, the Bluetooth device 20 can further include a sensor 307. For example, the sensor 307 can be a distance sensor or a proximity light sensor, which can be used to determine whether the Bluetooth device 20 is worn by the user. Exemplarily, the Bluetooth device 20 can use the distance sensor to detect whether there is an object near the Bluetooth device 20, so as to determine whether the Bluetooth device 20 is worn by the user. When it is determined that the Bluetooth device 20 is worn, the Bluetooth device 20 can turn on the speaker.

[0050] It can be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the Bluetooth device 20. It can have more or fewer components than Figure 3 shown, can combine two or more components, or can have different component configurations. For example, on the outer surface of the Bluetooth device 20, there can also be components such as a button 308, an indicator light (which can indicate states such as battery power, incoming / outgoing calls, and pairing mode), a display screen (which can prompt the user with relevant information), and a dust-proof net (which can be used in cooperation with the earpiece). Among them, the button 308 can be a physical button or a touch button (used in cooperation with a touch sensor), etc., for triggering operations such as power on, power off, pause, play, record, start pairing, and reset.

[0051] The following is an example of a method for confirming an audio output device provided by an embodiment of the present application in conjunction with a flowchart. Figure 4 It is a schematic diagram of a method for confirming an audio output device provided by an embodiment of the present application. The method for confirming the audio output device is applied to a terminal device. According to different requirements, the order of steps in this flowchart can be changed, and some steps can be omitted.

[0052] As Figure 4 shown, the method includes:

[0053] Step S401, establish a Bluetooth connection with a target device.

[0054] The target device is a device to which the terminal device is to establish a Bluetooth connection. In an 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 the user's click on the icon of the target device on the Bluetooth configuration interface of the terminal device, the terminal device triggers the Bluetooth connection instruction of the target device. In an embodiment of the present application, if the Bluetooth of the terminal device is in an on state, a Bluetooth connection is established with the target device.

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

[0056] After the terminal device connects to the target device, it determines the Bluetooth devices that have currently established a Bluetooth connection 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 an 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 can 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 an 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 Figure 2 shown, the device type icons of Headphone 1 and In-vehicle Device 1 can be displayed on the Bluetooth configuration interface. By displaying the device type icons of Bluetooth devices, it is convenient for users to confirm the device types of Bluetooth devices.

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

[0060] In an embodiment of the present application, the device that triggers the call task may be a terminal device or a target device, such as a speaker device. Specifically, when the terminal device receives an incoming call, an incoming call operation control 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). The incoming call operation control includes an answer control; in response to the user's operation on the answer control 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 answer control on the display screen of the terminal device to trigger the call task, the terminal device determines itself as the audio output device and directly plays the call audio data corresponding to the call task. Another example is that when the user operates the answer control on the display screen of the speaker device to trigger the call task, the terminal device determines the speaker device as the 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. Through the determination of the device that triggers the call task in the above embodiment, 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 device that the user triggers the call task corresponding to the incoming call, avoiding the situation that the terminal device directly plays the call audio data of the call task through the speaker device after connecting the Bluetooth device (such as the speaker device), thus 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 the 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. Predicting the user's intention based on the user's behavior and determining the target device as the audio output device can make the determined audio output device more in line with the user's needs. In an embodiment of the present application, if the multiple Bluetooth devices are all of the type of 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 of the type of Bluetooth headsets and one of the multiple devices includes a hearing aid, the hearing aid is determined as the audio output device; if the multiple Bluetooth devices are all of the type of 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 an embodiment of the present application, the priorities corresponding to different device types can be set in advance. For example, based on the device type of the Bluetooth device, the priority corresponding to the Bluetooth device can be determined. The priorities corresponding to different device types can be set according to the user's needs. In an embodiment of the present application, the Bluetooth headset can be determined as the first priority, the in-vehicle device as the second priority, and the speaker as the third priority. Among them, the first priority is greater than the second priority, and the second priority is greater than the third priority.

[0067] In an embodiment of the present application, the Bluetooth device with a specific function in each device type can be set with its corresponding priority, and its corresponding priority can be different from that of other Bluetooth devices of the same device type as the Bluetooth device. Among the device types of Bluetooth headsets, the hearing aid is used to provide hearing support for hearing-impaired people and has a specific function. For example, the hearing aid can be determined as the first priority, other Bluetooth headsets except the hearing aid as the second priority, the in-vehicle device as the third priority, and the speaker 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 the 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, an in-vehicle device, and a speaker, the hearing aid is determined as the audio output device.

[0068] In an embodiment of the present application, if at least two devices of the same type are included in multiple Bluetooth devices, it can be determined that the priority of the device that is subsequently connected to the terminal device among the at least two devices of the same type is higher than the priority of the device that is previously connected to the terminal device. For example, three Bluetooth headsets are included in multiple Bluetooth devices, such as Bluetooth headset one, Bluetooth headset two, and Bluetooth headset three. Among them, Bluetooth headset one is the device that establishes a connection with the terminal device earliest among the three Bluetooth headsets, and Bluetooth headset three is the device that establishes a connection with the terminal device 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 at least two devices of the same type are included in multiple Bluetooth devices and one of the at least two devices of the same type is a hearing aid, the hearing aid can be determined as the audio output device; if at least two devices of the same type are included in multiple Bluetooth devices and multiple hearing aids are included in the at least two devices of the same type, the last-connected hearing aid among the multiple hearing aids can be determined as the audio output device.

[0069] In an embodiment of the present application, after the terminal device determines the audio output device, the terminal device can immediately establish an SCO link with the determined audio output device. After triggering a call task, based on the established SCO link, the call audio data corresponding to the call task can be sent to the determined audio output device, so that the determined audio output device plays the call audio data corresponding to the call task. In an implementation manner of the present application, after the terminal device determines the audio output device, in response to the triggered call task, an SCO link with the determined audio output device can be established. 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 implementation manner can be triggered by the user on the terminal device, or can be triggered by the user on a Bluetooth device that establishes a Bluetooth communication with the terminal device, such as being triggered on the determined audio output device, and no limitation is made here.

[0070] In an 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 performing steps S404, S405, S407, and S408, the audio output device can be re-confirmed based on the user's operation on the audio output configuration option.

[0071] In the above embodiments, after the terminal device establishes a Bluetooth connection with the target device, a suitable audio output device can be automatically determined among the Bluetooth devices that establish a Bluetooth connection with the terminal device, improving the judgment efficiency of the audio output device.

[0072] To avoid the situation of switching the sound output channel against the user's will during the execution of a call task by a terminal device, an embodiment of the present application provides a method for switching the sound output channel. Figure 5 It is a schematic diagram of a method for switching the sound output channel provided by an embodiment of the present application. The method for switching the sound output channel can be applied to a terminal device or a 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 run on the Bluetooth chip, the Bluetooth chip executes the above relevant method steps to implement the method for switching the sound output channel. Figure 5 Taking the application of the method for switching the sound output channel to a terminal device as an example for illustration. The specific implementation manner of applying the method for switching the sound output channel to a Bluetooth chip located on the terminal device is the same as the implementation manner when the method for switching the sound output channel is applied to the terminal device, only the execution subject is different. Some specific implementation manners of applying the method for switching the sound output channel to a Bluetooth chip located on the terminal device can be referred to the relevant description of Figure 5 According to different requirements, the order of steps in the flowchart can be changed, and some steps can be omitted. As Figure 5 shown, the method includes:

[0073] Step S501, determine whether multiple Bluetooth devices are connected.

[0074] In an embodiment of the present application, after the terminal device establishes a Bluetooth connection with any one Bluetooth device, that is, after the terminal device establishes a Bluetooth connection with a Bluetooth device that has not established a Bluetooth connection, it executes step S501. In another embodiment of the present application, the terminal device can execute the Figure 5 shown process when receiving each incoming call, and determine whether multiple Bluetooth devices are connected in step S501. In an implementation manner of the present application, the terminal device can execute step S501 after or before executing any step shown in Figure 4 For example, it can execute step S501 after step S401 shown in Figure 4 or can execute step S501 after step S408 shown in Figure 4 In the embodiment of the present application, there is no restriction on the time for executing step S501.

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

[0076] In one embodiment of the present application, Figure 4 In the case where step S501 is executed after step S401 as shown, if it is determined that multiple Bluetooth devices are not connected, the following steps may be continued: Figure 4 Steps S403 to S405 are shown.

[0077] If multiple Bluetooth devices are connected, step S502 is executed to determine whether there is a first Bluetooth device 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 ear-hook headset. 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 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 a SCO link with the first Bluetooth device and determines that the first Bluetooth device is the current audio output device of the terminal device, execute step S504, and in response to the first call task, send the call audio data corresponding to the first call task to the first Bluetooth device based on the synchronous directional link with 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 sent by the second Bluetooth device is received, a request instruction corresponding to the link establishment request is determined.

[0083] The second Bluetooth device is the device that establishes a Bluetooth connection before the terminal device performs the first call task, that is, it can be any one 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 with the ability to seize the call channel, that is, a device with the ability to send a link establishment request.

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

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

[0086] If the request instruction of the link establishment request is the first instruction, do not respond to the link establishment request. If the request instruction of the link establishment request is the first instruction, do not disconnect the synchronous directed link with the first Bluetooth device and maintain the synchronous directed link with the first Bluetooth device. In an embodiment of the present application, if the request instruction of the link establishment request is the first instruction, send a rejection message to the second Bluetooth device. Figure 6 This 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-mounted device. As Figure 6 shown, before the first call task, the terminal device establishes Bluetooth connections with the headset and the vehicle-mounted device. When the terminal device performs the first call task, it uses the headset as the audio output device and establishes an SCO link with the headset. Based on the SCO link with the headset, it sends the call audio data corresponding to the first call task to the headset, so that the incoming call audio and call audio corresponding to the first call task are output from the headset. During the process of the terminal device performing the first call task, the vehicle-mounted device 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-mounted device.

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

[0088] If the request method of the link establishment request is not the second instruction, the process ends. In an 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 may be displayed on the terminal device, and a channel switching control is included in the prompt message. The channel switching control is used to disconnect the synchronous directed link with the first Bluetooth device and establish a synchronous directed link with the second Bluetooth device. In response to the user's operation on the channel switching control, the terminal device may disconnect the synchronous directed link with the first Bluetooth device and establish a synchronous directed link with the second Bluetooth device.

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

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

[0091] After disconnecting the synchronous directed link with the first Bluetooth device, 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 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.

[0093] In the above implementation method, after the second Bluetooth device sends a link establishment request of the first instruction type, the first Bluetooth device is still used as the audio output device and the sound output channel is not switched, avoiding the situation of sound output channel switching caused by the second Bluetooth device actively triggering the link establishment request, thus avoiding the situation of switching the sound output channel against the user's will during the call task execution of the device. At the same time, after the second Bluetooth device sends a link establishment request of 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, so that the call audio data corresponding to the first call task is switched from being played by the first Bluetooth device to being played by the second Bluetooth device, realizing the switching of the sound output channel.

[0094] In an embodiment of the present application, after executing Figure 5After step S504, during the execution of the first call task, in response to an operation by the user on the terminal device, the terminal device can re-determine the audio output device, disconnect the SCO link with the first Bluetooth device, and establish an 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 Figure 7 shown, before the first call task, the terminal device establishes Bluetooth connections with the headset and the vehicle. When the terminal device executes the first call task, it uses the headset as the audio output device and establishes an SCO link with the headset. Based on the SCO link with the headset, it sends the call audio data corresponding to the first call task to the headset, so that the call audio data corresponding to the first call task is output from the headset. For example, as Figure 7 shown, in response to a first operation by the user on the terminal device, the vehicle is determined as the audio output device, the SCO link with the headset is disconnected, and an SCO link with the vehicle is established, so that the call audio data corresponding to the first call task is output from the vehicle. Another example, as Figure 7 shown, in response to a second operation by the user on the terminal device, the headset is determined as the audio output device, the SCO link with the vehicle is disconnected, and an 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 embodiments, during the execution of the first call task, the audio output device can be reconfirmed based on the operation by the user on the terminal device, realizing the switching of the sound output channel. In an 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 Figure 7 shown, in response to a second operation by the user on the terminal device, after the terminal device establishes an 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 directed link with the headset, and maintains the synchronous directed link with the headset; and sends a rejection message to the vehicle.

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

[0096] To avoid the link establishment request of the second instruction being automatically generated by the Bluetooth device, an embodiment of the present application provides a method for channel switching based on the second instruction. Figure 8 It is a schematic diagram of a method for channel switching based on the second instruction provided by an embodiment of the present application. Figure 8 The method shown can be a specific implementation manner of Figure 5 step S508 in. As Figure 8 shown, 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 reception time is within a preset time period after the terminal device starts the first call task.

[0099] The preset time period is a time period when the probability of the user switching the voice channel is relatively small. 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 reaction time of the user operation. For example, the preset time period can be set to 2S, 3.5S. In this embodiment, the link establishment request received within the preset time period after the terminal device starts the first call task is determined as a link establishment request automatically triggered by the Bluetooth device.

[0100] When the reception time is within the preset time period after the terminal device starts the first call task, determine that the link establishment request is a link establishment request automatically triggered by the second Bluetooth device, and execute step S603, and do not respond to the link establishment request.

[0101] If the reception time is within the preset time period after the terminal device starts the first call task, do not respond to the link establishment request sent by the second Bluetooth device, do not disconnect the synchronous directed link with the first Bluetooth device, and maintain the synchronous directed link with the first Bluetooth device.

[0102] When the reception time is after a preset time period after the terminal device activates the first call task, determine that the link establishment request is a link establishment request triggered by the user, and execute step S604 to disconnect the synchronous directed link with the first Bluetooth device and establish a synchronous directed link with the second Bluetooth device.

[0103] Regarding some specific implementation manners of step S604, reference can be made to the relevant descriptions above.

[0104] The above embodiments can further determine the link establishment request of the second instruction received based on the preset time period after the terminal device activates the first call task, so as 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 directed link with the first Bluetooth device and re - establish the synchronous directed link with the second Bluetooth device based on the judgment result, avoiding the situation of switching the sound output channel against the user's will during the device's call task execution, and further improving the accuracy of the sound output channel switching.

[0105] Figure 9 It is a schematic diagram of a sound output channel switching method provided by an embodiment of the present application. As Figure 9 shown, the method is applied to a terminal device and can be executed after step S402 in Figure 4 or after step S501 in Figure 5 As Figure 9 shown, the method includes:

[0106] If it is determined that multiple Bluetooth devices are not connected, execute step S701 to determine whether to establish a synchronous directed link 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 whose device type is a Bluetooth headset. If it is determined that the terminal device has established a synchronous directed link with the third Bluetooth device, it is determined that the terminal device currently only has a Bluetooth connection with a single third Bluetooth device and has not established Bluetooth communication with other devices outside the third Bluetooth device. In an embodiment of the present application, S701 is executed after step S402 in Figure 4 and when the device type of the target device in the method shown in Figure 4 is a Bluetooth headset, the third Bluetooth device can be the target device in the method shown in Figure 4 shown.

[0108] In an embodiment of the present application, if it is determined that a synchronous directed link has not been established with the third Bluetooth device, a synchronous directed link can be established with the third Bluetooth device. In an implementation manner of the present application, if it is determined that a synchronous directed 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 among 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. Another example is that 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 between the terminal device and the any Bluetooth device can be established.

[0109] If a synchronous directed link is established with the third Bluetooth device, determine the third Bluetooth device as the current audio output device of the terminal device, and execute step S702. In response to the 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.

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

[0111] Step S703, receive a first Bluetooth connection instruction, and establish a Bluetooth connection with the 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 a Bluetooth device to be connected by the terminal device. In an embodiment 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 execution of the second call task by the terminal device, the first Bluetooth connection instruction can be triggered based on the user's operation on the Bluetooth configuration interface. After the terminal device receives the first Bluetooth connection instruction, it 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 sent by the fourth Bluetooth device is received, do not respond to the link establishment request.

[0114] If a link establishment request sent by the fourth Bluetooth device is received, do not disconnect the synchronous directed link with the third Bluetooth device for sound output, and maintain the synchronous directed link with the third Bluetooth device.

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

[0116] In an embodiment of the present application, during the execution of the second call task, based on the operation of the user determining the fourth Bluetooth device as the audio output device on the terminal device, the synchronous directed link with the third Bluetooth device may be disconnected, and a synchronous directed link with the fourth Bluetooth device may be established. After establishing the synchronous directed link with the fourth Bluetooth device, the terminal device sends the call audio data corresponding to the second call task to the fourth Bluetooth device based on the synchronous directed 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 operation of the user reconfirming the audio output device on the terminal device, so that the playback of the call audio data corresponding to the second call task is switched from the third Bluetooth device to the fourth Bluetooth device, improving the user experience.

[0117] In the above implementation method, when the third Bluetooth device outputs call audio data as the audio output device, in the case where the fourth Bluetooth device sends a link establishment request, the third Bluetooth device can continue to be used as the audio output device without switching the sound output channel, avoiding the situation of sound output channel switching caused by triggering a link establishment request when the fourth Bluetooth device is not the target Bluetooth device, improving the stability of the third Bluetooth device outputting call audio data as the audio output device, and ensuring the user experience of using the third Bluetooth device for calls.

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

[0119] Figure 10 It is a schematic diagram of a sound output channel switching method provided by an embodiment of the present application. The present application takes Figure 10 the method shown as an example for description after step S504 in Figure 5 . As Figure 10 shown, the method includes:

[0120] During the execution of the first call task, in step S801, in response to a second Bluetooth connection instruction, establish a Bluetooth connection 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 a Bluetooth device to be connected by the terminal device, and can be a device to be Bluetooth-connected to the terminal device during the execution of the first call task by the terminal device. In the embodiments 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 a Bluetooth headset, a vehicle-mounted device, and a speaker. During the execution of the first call task by the terminal device, 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 sent by the fifth Bluetooth device is received, do not respond to the link establishment request.

[0123] If a link establishment request sent by the fifth Bluetooth device is received, do not disconnect the synchronous directed link with the first Bluetooth audio output, and maintain the synchronous directed link with the first Bluetooth device.

[0124] In an embodiment of the present application, the request methods 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 an embodiment of the present application, during the execution of the first call task, based on the user's operation of determining the fifth Bluetooth device as the audio output device on the terminal device, disconnect the synchronous directed link with the first Bluetooth device and establish a synchronous directed link with the fifth Bluetooth device. Based on the synchronous directed link with the fifth Bluetooth device, the terminal device sends the call audio data corresponding to the first call task to the fifth Bluetooth device based on the synchronous directed 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 playback of the call audio data corresponding to the first call task is switched from the first Bluetooth device to the fifth Bluetooth device, improving the user experience.

[0126] In the above 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 the audio output device without switching the sound output channel, avoiding the situation of sound output channel switching caused by the link establishment request triggered by the fifth Bluetooth device, improving the stability of the first Bluetooth device as the audio output device to output call audio data, and ensuring the user experience of using the first Bluetooth device for calls.

[0127] In an embodiment of the present application, after the execution of the first call task is completed, if a link establishment request sent by the fifth Bluetooth device is received, the synchronous directed link with the first Bluetooth device is disconnected, and a synchronous directed 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 connectionrequest instruction and / or an AT+BCC instruction. The above method can re-determine the audio output device in response to the request of the Bluetooth device and establish a new synchronous directed link when the terminal device is not executing a call task.

[0128] Figure 11 It is a schematic structural diagram of a terminal device provided by an embodiment of the present application. Refer to Figure 11 , 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, a headphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 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, a barometric 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 can 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 some other embodiments of the present application, the terminal device 100 may include more or fewer components than those illustrated, or combine certain components, or split certain components, or have different component arrangements. 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), etc.

[0131] A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store the instructions or data that the processor 110 has just used or recycled. If the processor 110 needs to use the instruction or data again, it can directly call it from the memory. This avoids repeated access and reduces the waiting time of the processor 110, thus improving the efficiency of the system.

[0132] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) 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, etc.

[0133] The I²C interface is a two-way synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). The I²S interface can be used for audio communication. The PCM interface can also be used for audio communication, sampling, quantifying, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled through the PCM bus interface. The UART interface is a general-purpose serial data bus for asynchronous communication. This bus can be a two-way communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is generally 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 through the UART interface to implement the Bluetooth function.

[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. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate through the CSI interface to implement the shooting function of the terminal device 100. The processor 110 and the display screen 194 communicate through 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 screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, etc. The GPIO interface can also be configured as the I²C interface, the I²S interface, the UART interface, the MIPI interface, etc.

[0136] The USB interface 130 is an interface that conforms to the USB standard specification, and can specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal device 100, and can also be used to transfer data between the terminal device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. This interface can also be used to connect other terminal devices 100, such as AR devices, etc.

[0137] It can be understood that the interface connection relationships among the modules illustrated in the embodiments of the present invention are only illustrative descriptions and do not constitute a structural limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may also adopt different interface connection manners in the above embodiments, or a combination of multiple interface connection manners.

[0138] The charging management module 140 is configured to receive a charging input from a charger. Among them, the charger may 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 inputs from the battery 142 and / or the charging management module 140 to supply power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, etc. The power management module 141 can also be used to monitor parameters such as the battery capacity, the number of battery cycles, and the battery health status (leakage, impedance).

[0139] The wireless communication function of the terminal device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, and the baseband processor, etc.

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

[0141] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc. applied to the terminal device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves by the antenna 1, perform filtering, amplification, etc. on the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor and convert it into electromagnetic waves through the antenna 1 for radiation.

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

[0143] The terminal device 100 realizes the display function through the GPU, the display screen 194, the application processor, etc. The GPU is a microprocessor for service exception reminder, connected to the display screen 194 and the application processor. The GPU is used to execute mathematical and geometric calculations and for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.

[0144] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can adopt a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a Miniled, a MicroLed, a Micro-oLed, a quantum dot light-emitting diode (QLED), etc.

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

[0146] The camera 193 is used to capture static images or videos. An object generates an optical image through the lens and projects it onto the photosensitive element.

[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 through the external memory interface 120 to realize the data storage function. For example, files such as music and videos are saved in the external non-volatile memory.

[0149] The terminal device 100 can realize the audio function through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor, etc. For example, music playback, recording, etc.

[0150] The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal. The audio module 170 can also be used for encoding and decoding audio signals.

[0151] The speaker 170A, also known as the "loudspeaker", is used to convert an audio electrical signal into a sound signal. The terminal device 100 can listen to music or a hands-free call through the speaker 170A. The receiver 170B, also known as the "earpiece", is used to convert an audio electrical signal into a sound signal. When the terminal device 100 answers a call or a voice message, the user can listen to the voice by bringing the receiver 170B close to the ear. The microphone 170C, also known as the "microphone" or "transmitter", is used to convert a sound signal into an electrical signal. When making a call or sending a voice message, the user can speak by bringing the 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 some other embodiments, the terminal device 100 can be provided with two microphones 170C, which can not only collect sound signals but also implement a noise reduction function. In some other embodiments, the terminal device 100 can also be provided with three, four or more microphones 170C to implement functions such as collecting sound signals, noise reduction, identifying the sound source, and implementing a directional recording function.

[0152] The headphone jack 170D is used to connect a wired headphone. The headphone jack 170D can be a USB interface 130, or a 3.5 mm 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 can convert the pressure signals into electrical signals. The gyroscope sensor 180B can be used to determine the motion posture of the terminal device 100. The barometric pressure sensor 180C is used to measure barometric 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 leather case. 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 ambient light brightness. The fingerprint sensor 180H is used to collect fingerprints. The temperature sensor 180J is used to detect temperature. The touch sensor 180K, also called a "touch control device". The touch sensor 180K can be disposed on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch control screen". The bone conduction sensor 180M can obtain vibration signals.

[0154] The keys 190 include a power-on key, volume keys, etc. The keys 190 can be mechanical keys. They can also be touch keys. The motor 191 can generate a vibration prompt. The indicator 192 can be an indicator light, which can be used to indicate the charging state, power change, and can also be used to indicate messages, missed calls, notifications, etc.

[0155] The SIM card interface 195 is used to connect to a SIM card. The SIM card can be in contact with and separated from the terminal device 100 by being inserted into or pulled out of the SIM card interface 195. The terminal device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple frames of cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple frames of cards can be the same or different. 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 communication. In some embodiments, the terminal device 100 uses an eSIM, that is, 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] The embodiments of the present application further provide a computer storage medium, in which computer instructions are stored. When the computer instructions run on the terminal device 100, the terminal device 100 is caused to execute the above-related method steps to implement the methods provided in the above embodiments, such as the voice channel switching method.

[0157] The embodiments of the present application also provide a computer program product. When the computer program product runs on a computer, the computer is enabled to execute the above-related steps to implement the method provided in the above embodiments, such as the sound output channel switching method.

[0158] In addition, the embodiments of the present application also provide a device, which may specifically be a chip, a component or a module. The device may include a processor and a memory connected to each other. The memory is used to store computer-executable instructions. When the device runs, the processor may execute the computer-executable instructions stored in the memory to enable the chip to execute the method provided in the above embodiments, such as the sound output 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 by them can refer to the beneficial effects in the corresponding methods provided above, and will not be elaborated here. Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and simplicity of description, only the above division of each functional module is used as an example. In actual applications, the above functions can be allocated to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.

[0160] In several embodiments provided by the present application, it should be understood that the disclosed device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the module or unit is only a logical function division. In actual implementation, there may be other division methods. For example, 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 displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of the device or unit can be in an electrical, mechanical or other form. The unit described as a separated component may or may not be physically separated. The component displayed as a unit may be a physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0161] In addition, in each embodiment of the present application, each functional unit may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated unit may 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 may be stored in a readable storage medium. Based on such an understanding, the technical solution of the embodiments of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, may be embodied in the form of a software product. The software product is stored in a storage medium and includes several instructions for causing a device (which may be a single-chip microcomputer, a chip, etc.) or a processor to execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs that can store program codes.

[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 intended to limit them. Although the present application has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present application can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. A voice 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 channel switching method according to claim 1, wherein 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 audible 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 voice output 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 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, establish a synchronous directed link with the first Bluetooth device.

5. The voice 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 the same as the device type of the first Bluetooth device, establish a synchronous directed link with the first Bluetooth device, where 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, wherein 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, characterized in that 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 audible 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 the sound output channel, 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 audible 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 audible channel switching method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Voice output channel switching method, terminal device, and storage medium

    WO2025148705A1