TWS earphone mode switching method, earphone system, equipment and product
By introducing mode switching commands and Bluetooth broadcast mode in TWS headsets, the TWS headsets are allowed to establish independent connections with terminal devices, and the simultaneous translation function is realized, which solves the problem of restricting the existing TWS headset mode and expands the application scenarios.
Patent Information
- Application Number
- CN202411970971.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-30
- Publication Date
- 2025-04-15
AI Technical Summary
Existing TWS headphones only support TWS headphone mode in call and audio processing, limiting the possibility of headphones in more complex application scenarios.
The terminal device sends a mode switching command to the first headset, and the first headset forwards the command to the second headset, and switches to the Bluetooth broadcast mode according to the command, and sends the respective Bluetooth addresses to the terminal device. The terminal device then establishes a Bluetooth connection with each headset based on these addresses, so that the first headset and the second headset can communicate independently with the terminal device, realizing the simultaneous translation function.
This enables TWS headphones to be compatible with TWS headphone mode and simultaneous translation mode, expands the application scenarios of headphones and solves the problem of mode limitations in existing TWS headphones in complex application scenarios.
Smart Images

Figure CN119835565A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and specifically to a mode switching method, headphone system, device and product of a true wireless stereo (True Wireless Stereo, referred to as TWS) headphone. Background Art
[0002] With the advancement of science and technology and the improvement of communication technology, headphones have become an indispensable part of people's lives. Bluetooth headphones use Bluetooth technology to communicate with terminal devices, getting rid of the cable restrictions of traditional headphones, allowing users to use headphones more easily and comfortably.
[0003] Existing TWS earphones usually consist of two earphones, one of which is designated as the main earphone and the other is the slave earphone. The main earphone establishes Bluetooth connections with the terminal device and the slave earphone respectively. The main earphone is responsible for receiving data from the terminal device and then forwarding the received data to the slave earphone to ensure that the main and slave earphones can play the same audio content synchronously.
[0004] However, in the current technical implementation, the microphone of the main headset is configured for recording, which means that all sound information captured from the environment is collected by the microphone of the main headset equipped with a recording function and transmitted to the terminal device via Bluetooth. Although such a setting can meet basic communication needs, it limits the possibilities of the headset in more complex application scenarios. Summary of the invention
[0005] In view of this, an embodiment of the present invention is committed to providing a mode switching method for a TWS headset, so that the TWS headset can be compatible with the TWS headset mode and the simultaneous interpretation mode, expands the application scenarios of the TWS headset, and solves the problem that the existing TWS headset only supports the TWS headset mode in calls and audio processing.
[0006] According to a first aspect of an embodiment of the present application, a mode switching method of a TWS headset is provided, the TWS headset comprising a first headset and a second headset, the method comprising:
[0007] Sending a mode switching command to the first headset; the mode switching command is used to instruct the first headset and the second headset to switch from a first working mode to a second working mode; the second working mode is a simultaneous interpretation mode;
[0008] receiving the Bluetooth address of the first headset and the Bluetooth address of the second headset sent by the first headset; the Bluetooth address of the second headset is sent to the first headset after the second headset receives the first mode switching command forwarded by the first headset;
[0009] A Bluetooth connection is established with the first headset according to the Bluetooth address of the first headset, and the Bluetooth connection is established with the second headset according to the Bluetooth address of the second headset.
[0010] In a possible design of the first aspect, the method further includes:
[0011] receiving first language audio data sent by the first headset;
[0012] translating the first language audio data into second language audio data;
[0013] The second language audio data is sent to the second earphone, so that the second earphone plays the second language audio data.
[0014] In a possible design of the first aspect, the method further includes:
[0015] receiving second language audio data sent by the second headset;
[0016] translating the second language audio data into first language audio data;
[0017] The first language audio data is sent to the first earphone, so that the first earphone plays the first language audio data.
[0018] In a possible design of the first aspect, before sending the mode switching command to the first headset, the method further includes:
[0019] Establishing a Bluetooth connection with the first headset;
[0020] A Bluetooth serial communication connection is established with the first headset based on a standalone serial port profile SPP.
[0021] In a possible design of the first aspect, sending the mode switching command to the first headset includes:
[0022] Based on the Bluetooth serial communication connection, the mode switching command is sent to the first headset.
[0023] In a possible design of the first aspect, establishing a Bluetooth connection with the first headset according to the Bluetooth address of the first headset, and establishing the Bluetooth connection with the second headset according to the Bluetooth address of the second headset includes:
[0024] Monitoring the Bluetooth broadcast message of the first headset and the Bluetooth broadcast message of the second headset;
[0025] Establishing the Bluetooth connection with the first headset according to the Bluetooth broadcast message of the first headset and the Bluetooth address of the first headset; and,
[0026] The Bluetooth connection is established with the second headset according to the Bluetooth broadcast message of the second headset and the Bluetooth address of the second headset.
[0027] According to a second aspect of an embodiment of the present application, a mode switching method of a TWS headset is provided, the TWS headset comprising a first headset and a second headset, the method comprising:
[0028] receiving a mode switching command sent by a terminal device; the mode switching command is used to instruct the first headset and the second headset to switch from a first working mode to a second working mode; the second working mode is a simultaneous interpretation mode;
[0029] According to the mode switching command, switch to the Bluetooth broadcast mode, and send the Bluetooth address of the first headset and the Bluetooth address of the second headset to the terminal device; the Bluetooth address of the second headset is sent to the first headset by the second headset after receiving the first mode switching command forwarded by the first headset;
[0030] Establish a Bluetooth connection with the terminal device based on the Bluetooth address of the first headset.
[0031] In a possible design of the second aspect, the method further includes:
[0032] sending the first language audio data recorded by the microphone of the first headset to the terminal device, so that the terminal device translates the first language audio data into second language audio data and sends the second language audio data to the second headset for playback;
[0033] and / or,
[0034] The first language audio data sent by the terminal device is played, where the first language audio data is sent to the first earphone after the terminal device translates the second language audio data collected by the microphone of the second earphone into the first language audio data.
[0035] According to a third aspect of an embodiment of the present application, a mode switching method of a TWS headset is provided, the TWS headset comprising a first headset and a second headset, the method comprising:
[0036] receiving a mode switching command sent by the first headset, wherein the mode switching command is sent by a terminal device to the first headset, and the switching command is used to instruct the second headset to switch from a first working mode to a second working mode; the second working mode is a simultaneous interpretation mode;
[0037] According to the mode switching command, switch to the Bluetooth broadcast mode, and send the Bluetooth address of the second headset to the first headset, so that the first headset sends the Bluetooth address of the second headset to the terminal device;
[0038] Establish a Bluetooth connection with the terminal device based on the Bluetooth address of the second headset.
[0039] In a possible design of the third aspect, the method further includes:
[0040] sending the second language audio data recorded by the microphone of the second headset to the terminal device, so that the terminal device translates the second language audio data into the first language audio data and then sends it to the first headset for playback;
[0041] and / or,
[0042] The second language audio data sent by the terminal device is played, where the second language audio data is obtained by the terminal device translating the first language audio data collected by the microphone of the first headset into the second language audio data and then sending the translated data to the second headset.
[0043] According to a fourth aspect of an embodiment of the present application, there is provided an earphone system, the system comprising: a terminal device, a first earphone and a second earphone;
[0044] The terminal device is used to send a mode switching command to the first headset; the mode switching command is used to instruct the first headset and the second headset to switch from a first working mode to a second working mode; the second working mode is a simultaneous interpretation mode;
[0045] The first earphone is used to forward the mode switching command to the second earphone;
[0046] The second earphone is configured to receive the mode switching command forwarded by the first earphone, switch to the Bluetooth broadcast mode according to the mode switching command, and send the Bluetooth address of the second earphone to the first earphone;
[0047] The first earphone is used to switch to the Bluetooth broadcast mode according to the mode switching command, and receive the Bluetooth address of the second earphone sent by the second earphone; and send the Bluetooth address of the first earphone and the Bluetooth address of the second earphone to the terminal device;
[0048] The terminal device is used to establish a Bluetooth connection with the first headset according to the Bluetooth address of the first headset, and to establish the Bluetooth connection with the second headset according to the Bluetooth address of the second headset.
[0049] In a possible design of the fourth aspect, the first headset is further used to collect the first language audio data through the microphone of the first headset and send it to the terminal device;
[0050] The second headset is further used to collect the second language audio data through the microphone of the second headset and send it to the terminal device;
[0051] The terminal device is also used to receive the first language audio data sent by the first earphone; translate the first language audio data into the second language audio data; send the second language audio data to the second earphone for playback; and / or receive the second language audio data sent by the second earphone, translate the second language audio data into the first language audio data, and send it to the first earphone for playback.
[0052] According to a fifth aspect of an embodiment of the present application, there is provided an electronic device, including a memory and a processor;
[0053] The memory is connected to the processor and is used for storing programs;
[0054] The processor is used to implement a mode switching method for a TWS headset as described in any one of the first to fourth aspects of the embodiments of the present application by running a program in a memory.
[0055] According to a sixth aspect of an embodiment of the present application, a computer program product is provided, including computer program instructions. When the computer program instructions are executed by a processor, the processor executes a mode switching method for a TWS headset as described in any one of the first to fourth aspects of the embodiment of the present application.
[0056] According to the seventh aspect of the embodiments of the present application, a chip is provided, including a processor and a data interface, and the processor reads and runs a program stored in a memory through the data interface to execute a mode switching method for a TWS headset as described in any one of the first to fourth aspects of the embodiments of the present application.
[0057] According to an eighth aspect of the embodiments of the present application, a storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, a mode switching method of a TWS headset as described in any one of the first to fourth aspects of the embodiments of the present application is implemented.
[0058] According to the technical solution of the embodiment of the present application, a mode switching command for instructing the first headset and the second headset to switch from the first working mode to the second working mode is sent to the first headset through the terminal device, and the Bluetooth address of the first headset and the Bluetooth address of the second headset sent by the first headset are received, and a Bluetooth connection is established with the first headset according to the Bluetooth address of the first headset, and a Bluetooth connection is established with the second headset according to the Bluetooth address of the second headset. By enabling the first headset and the second headset to establish Bluetooth connections with the terminal device respectively, the first headset and the second headset can perform simultaneous interpretation functions, thereby realizing the switching of working modes. Therefore, according to the method of the embodiment of the present application, the TWS headset is compatible with the TWS headset mode and the simultaneous interpretation mode, which expands the application scenarios of the TWS headset and solves the problem that the existing TWS headset only supports the TWS headset mode in calls and audio processing. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0060] Figure 1 This is a schematic diagram of the TWS headset connection solution;
[0061] Figure 2 This is a schematic diagram of the scenario of using TWS headphones for calls;
[0062] Figure 3 A schematic diagram of a flow chart of a mode switching method of a TWS headset provided in an embodiment of the present application;
[0063] Figure 4 A schematic diagram of a headphone connection method in a mode switching method of a TWS headphone provided in an embodiment of the present application;
[0064] Figure 5 A schematic diagram of a flow chart of a mode switching method of a TWS headset provided in an embodiment of the present application;
[0065] Figure 6 A schematic diagram of a flow chart of another mode switching method of a TWS headset provided in an embodiment of the present application;
[0066] Figure 7 A flowchart of another mode switching method of a TWS headset provided in an embodiment of the present application;
[0067] Figure 8 A schematic diagram of a simultaneous interpretation scenario using a mode switching method of a TWS headset provided in an embodiment of the present application;
[0068] Fig. 9 A schematic diagram of the structure of an earphone system provided in an embodiment of the present application;
[0069] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0070] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0071] The technical terms involved in the embodiments of the present application are explained below:
[0072] Classic Bluetooth: refers to the Bluetooth standard first introduced by the Bluetooth Technology Alliance. It is mainly used for short-range wireless communication and supports high-speed data transmission. It is suitable for application scenarios such as audio streaming, file transfer and voice calls.
[0073] Bluetooth Low Energy (BLE) is a new Bluetooth protocol introduced by the Bluetooth SIG in Bluetooth 4.0, designed for low-power applications. Its main goal is to provide extremely low power consumption, extend battery life, and is suitable for devices that do not require continuous high-bandwidth transmission. BLE supports broadcast mode, where devices can send small amounts of data without establishing a connection, and in the Bluetooth Low Energy architecture, terminal devices can maintain connections with multiple Bluetooth devices at the same time.
[0074] Serial Port Profile (SPP): It is an application layer profile in the Bluetooth protocol stack that simulates the traditional serial port (such as RS-232) communication method and allows two Bluetooth devices to transmit data through a virtual serial port. SPP is mainly used to replace traditional wired serial communication, allowing Bluetooth devices to communicate with each other like traditional serial devices.
[0075] Exemplary application scenario description
[0076] With the advancement of science and technology and the improvement of communication technology, headphones have become an indispensable part of people's lives. As a wireless audio solution, Bluetooth headphones use Bluetooth technology to communicate with terminal devices, getting rid of the cable limitations of traditional headphones, allowing users to use headphones more easily and comfortably to enjoy music, answer calls or participate in voice conferences whether in sports, commuting or daily work.
[0077] Existing TWS earphones usually consist of two earphones, one of which is designated as the main earphone and the other as the slave earphone. The main earphone is responsible for establishing a direct Bluetooth connection with the terminal device and receiving audio streams and other control instructions from the terminal device. The main earphone is not only responsible for processing the reception of audio data, but also undertakes the task of forwarding the received data to the slave earphone to ensure that the main earphone and the slave earphone can play the same audio content synchronously. In other words, a Bluetooth connection is also established between the slave earphone and the main earphone, so that the data transmission between the slave earphone and the main earphone is stable and low-latency, thus achieving a seamless binaural experience.
[0078] Figure 1 This is a schematic diagram of the TWS headset connection solution. Figure 1 As shown in the figure, in the current mainstream TWS headset connection solution, a classic Bluetooth (BT) connection is established between the main headset and the terminal device, and a classic Bluetooth connection is also established between the main headset and the secondary headset. The terminal device and the main headset transmit data through the classic Bluetooth connection, and the main headset then forwards the data to the secondary headset.
[0079] Figure 2 The following is a schematic diagram of a call using a TWS headset. Figure 2 As shown, in a call scenario, the microphone of the main earphone records and transmits the recorded audio data 1 to the terminal device, the terminal device transmits the audio data 2 to the main earphone, and the main earphone forwards the audio data 2 to the secondary earphone, thereby achieving sound synchronization between the two earphones.
[0080] It can be seen that although the design of TWS headphones can meet the daily needs of users in most cases, the existing master-slave headphone architecture still has limitations when it comes to more complex application scenarios. For example, in current technical implementations, usually only the master headphone is equipped with a recording function, which means that all sound information captured from the environment is collected by the microphone of the master headphone equipped with a recording function and transmitted to the terminal device via Bluetooth. Although such a setting can meet basic communication needs, it limits the possibility of headphones in more complex application scenarios.
[0081] In order to solve this problem, the present application proposes a mode switching method for TWS headphones, in which a mode switching command is sent to a first headphone through a terminal device, and the first headphone forwards the mode switching command to the second headphone, and switches to Bluetooth broadcast mode according to the mode switching command, and sends the Bluetooth address of the first headphone to the terminal device. At the same time, the second headphone will also switch to Bluetooth broadcast mode according to the mode switching command, and send the Bluetooth address of the second headphone to the terminal device through the first headphone. After that, the terminal device establishes a Bluetooth connection with the first headphone according to the Bluetooth address of the first headphone, and establishes a Bluetooth connection with the second headphone according to the Bluetooth address of the second headphone. In this way, the first headphone and the second headphone can communicate with the terminal device independently, that is, the first headphone and the second headphone can record different sounds and play different sounds respectively, so that when two users wear two headphones respectively, the two users speak different languages respectively, and after being transmitted to the terminal device via Bluetooth for recognition, translation and synthesis, they are transmitted to the other party's headphones via Bluetooth for playback, so as to meet the needs of simultaneous interpretation scenarios.
[0082] It can be seen that in the mode switching method of the TWS headset in the embodiment of the present application, the first headset and the second headset can be compatible with both the TWS headset mode and the simultaneous interpretation mode, and can switch the working mode to the simultaneous interpretation mode according to the mode switching command, which expands the application scenarios of the TWS headset and solves the problem that the existing TWS headset only supports the TWS headset mode in calls and audio processing.
[0083] Exemplary Methods
[0084] The mode switching method of the TWS headset provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings.
[0085] Figure 3 This is a flow chart of a method for switching modes of a TWS headset provided in an embodiment of the present application. Figure 3 In an exemplary embodiment, a mode switching method of a TWS headset is provided, which may include the following steps:
[0086] 3100. The terminal device sends a mode switching command to the first headset.
[0087] Correspondingly, the first earphone receives the mode switching command.
[0088] 3200. The first earphone forwards the mode switching command to the second earphone.
[0089] Correspondingly, the second earphone receives the mode switching command sent by the first earphone.
[0090] 3300. The second headset sends a Bluetooth address of the second headset to the first headset according to the mode switching command.
[0091] Correspondingly, the first earphone receives the Bluetooth address of the second earphone sent by the second earphone.
[0092] 3400. The first headset sends the Bluetooth address of the first headset and the Bluetooth address of the second headset to the terminal device.
[0093] Correspondingly, the terminal device receives the Bluetooth address of the first headset and the Bluetooth address of the second headset sent by the first headset.
[0094] 3500. The first headset switches to the Bluetooth broadcast mode according to the mode switching command.
[0095] 3600. The terminal device establishes a Bluetooth connection with the first headset according to the Bluetooth address of the first headset.
[0096] 3700. The second headset switches to the Bluetooth broadcast mode according to the mode switching command.
[0097] 3800. The terminal device establishes a Bluetooth connection with the second headset according to the Bluetooth address of the second headset.
[0098] The mode switching command is used to instruct the first headset and the second headset to switch from a first working mode to a second working mode. The first working mode is a TWS headset mode, and the second working mode is a simultaneous interpretation mode.
[0099] The mode switching command is issued based on a trigger command input by the user on the terminal device. For example, the trigger command may be a click operation input by the user on the terminal device for a corresponding functional component, or the trigger command may be input by the user to the terminal device through voice. This embodiment does not limit the specific form of the user input trigger command.
[0100] Specifically, in the TWS earphone mode, the first earphone establishes connections with the terminal device and the second earphone respectively, the terminal device sends the audio data to the first earphone, and then the first earphone forwards the received audio data to the second earphone, so that the first earphone and the second earphone can play the audio data synchronously.
[0101] In the simultaneous interpretation mode, the first earphone and the second earphone can communicate with the terminal device independently. For example, the first earphone sends the received audio data a to the terminal device, and the terminal device recognizes, translates and synthesizes the audio data a and sends it to the second earphone for playback. At the same time, the second earphone sends the received audio data b to the terminal device, and the terminal device recognizes, translates and synthesizes the audio data b and sends it to the first earphone for playback.
[0102] That is to say, the first earphone and the second earphone can record different sounds and play different sounds respectively, so that when two users wear two earphones respectively, the two users can speak different languages, which are transmitted to the terminal device via Bluetooth for recognition, translation and synthesis, and then transmitted to the other party's earphone via Bluetooth for playback, solving the needs of simultaneous interpretation scenarios.
[0103] After receiving the mode switching command, the first earphone and the second earphone will trigger the switching process of the working mode. In this process, the first earphone will switch to the Bluetooth broadcast mode according to the received mode switching command, and the second earphone will also switch to the Bluetooth broadcast mode according to the received mode switching command forwarded by the first earphone, and send the Bluetooth address of the second earphone to the first earphone.
[0104] The first earphone receives the Bluetooth address of the second earphone sent by the second earphone, and sends the Bluetooth address of the first earphone and the Bluetooth address of the second earphone to the terminal device. The Bluetooth address of the first earphone is a unique identifier of the first earphone in the low-power Bluetooth system, and similarly, the Bluetooth address of the second earphone is also a unique identifier of the second earphone in the low-power Bluetooth system.
[0105] After the Bluetooth address of the first headset and the Bluetooth address of the second headset are sent to the terminal device, the first headset and the second headset are both in Bluetooth broadcast mode, waiting for the connection of the terminal device. After receiving the Bluetooth address of the first headset and the Bluetooth address of the second headset, the terminal device establishes a Bluetooth connection with the first headset according to the Bluetooth address of the first headset, and establishes a Bluetooth connection with the second headset based on the Bluetooth address of the second headset.
[0106] It should be noted that the Bluetooth connection at this time is established based on the low-power Bluetooth protocol. Specifically, the first earphone and the second earphone periodically send broadcast packets, and the terminal device listens for the broadcast packets in scanning mode. When a broadcast packet containing the Bluetooth address of the first earphone is heard, a connection request is initiated to the first earphone. After receiving the connection request, the first earphone replies with a connection response, thereby establishing a Bluetooth connection between the first earphone and the terminal device. Similarly, the terminal device listens for the broadcast packets in scanning mode. When a broadcast packet containing the Bluetooth address of the second earphone is heard, a connection request is initiated to the second earphone. After receiving the connection request, the second earphone replies with a connection response, thereby establishing a Bluetooth connection between the second earphone and the terminal device. Figure 4 As shown, the first earphone and the second earphone respectively establish BLE connections with the terminal device.
[0107] In this way, by making the first earphone and the second earphone establish Bluetooth connections with the terminal device respectively, the first earphone and the second earphone can perform simultaneous interpretation functions, thereby realizing the switching of working modes.
[0108] Based on the mode switching method of TWS headset provided in the above embodiment of the present application, a mode switching command for instructing the first headset and the second headset to switch from the first working mode to the second working mode is sent to the first headset through the terminal device, and the Bluetooth address of the first headset and the Bluetooth address of the second headset sent by the first headset are received, and a Bluetooth connection is established with the first headset according to the Bluetooth address of the first headset, and a Bluetooth connection is established with the second headset according to the Bluetooth address of the second headset. By enabling the first headset and the second headset to establish Bluetooth connections with the terminal device respectively, the first headset and the second headset can perform simultaneous interpretation functions, thereby realizing the switching of working modes. Therefore, according to the method of the embodiment of the present application, the TWS headset is compatible with the TWS headset mode and the simultaneous interpretation mode, which expands the application scenarios of the TWS headset and solves the problem that the existing TWS headset only supports the TWS headset mode in calls and audio processing.
[0109] Figure 5 A schematic diagram of a method for switching modes of a TWS headset provided in an embodiment of the present application. Figure 5 As shown, in an exemplary embodiment, a mode switching method of a TWS headset provided may include:
[0110] 5100. The terminal device establishes a Bluetooth connection with the first headset.
[0111] 5200. The terminal device establishes a Bluetooth serial communication connection with the first headset based on SPP.
[0112] 5300. The terminal device sends a mode switching command to the first headset based on the Bluetooth serial communication connection.
[0113] Correspondingly, the first headset receives the mode switching command based on the Bluetooth serial communication connection.
[0114] 5400. The first earphone forwards the mode switching command to the second earphone.
[0115] Correspondingly, the second earphone receives the mode switching command sent by the first earphone.
[0116] 5500. The second headset sends the Bluetooth address of the second headset to the first headset according to the mode switching command.
[0117] Correspondingly, the first earphone receives the Bluetooth address of the second earphone sent by the second earphone.
[0118] 5600. The first earphone sends the Bluetooth address of the first earphone and the Bluetooth address of the second earphone to the terminal device.
[0119] Correspondingly, the terminal device receives the Bluetooth address of the first headset and the Bluetooth address of the second headset sent by the first headset.
[0120] 5700. The first headset switches to the Bluetooth broadcast mode according to the mode switching command.
[0121] 5800. The terminal device establishes a Bluetooth connection with the first headset according to the Bluetooth address of the first headset.
[0122] 5900. The second headset switches to the Bluetooth broadcast mode according to the mode switching command.
[0123] 5110. The terminal device establishes a Bluetooth connection with the second headset according to the Bluetooth address of the second headset.
[0124] Among them, in step 5100, the terminal device establishes a classic Bluetooth connection with the first headset. Then, the terminal device establishes a Bluetooth serial communication connection with the first headset based on SPP. It should be noted that SPP is a standard profile in Bluetooth technology, which is used to simulate a traditional serial communication interface between two devices, namely, the terminal device and the first headset. Through SPP, data can be transmitted between the terminal device and the first headset as if a physical serial cable is connected, so that devices that originally rely on wired serial communication can be seamlessly migrated to a wireless environment.
[0125] Afterwards, the terminal device can realize communication with the first headset based on the Bluetooth serial communication connection. At this time, the terminal device can send a mode switching command to the first headset based on the Bluetooth serial communication connection to trigger the next mode switching process.
[0126] For the relevant descriptions of step 5400 to step 5110, specific reference may be made to the relevant descriptions of step 3200 to step 3800 in the above embodiment, which will not be repeated here.
[0127] Based on the mode switching method of the TWS headset provided in the above embodiment of the present application, a Bluetooth connection is established with the first headset through the terminal device, and a Bluetooth serial communication connection is established with the first headset based on SPP, so that, based on the Bluetooth serial communication connection, after sending a mode switching command to the first headset, the Bluetooth address of the first headset and the Bluetooth address of the second headset sent by the first headset are received, and a Bluetooth connection is established with the first headset according to the Bluetooth address of the first headset, and a Bluetooth connection is established with the second headset according to the Bluetooth address of the second headset. By respectively establishing Bluetooth connections with the terminal device for the first headset and the second headset, the first headset and the second headset can perform simultaneous interpretation functions, thereby realizing the switching of working modes. Therefore, according to the method of the embodiment of the present application, the TWS headset is compatible with the TWS headset mode and the simultaneous interpretation mode, which expands the application scenarios of the TWS headset and solves the problem that the existing TWS headset only supports the TWS headset mode in calls and audio processing.
[0128] Figure 6A flow chart of another mode switching method of a TWS headset provided in an embodiment of the present application. Figure 6 As shown, in an exemplary embodiment, after the above step 3800, the mode switching method of the provided TWS headset may further include:
[0129] 6100. The first earphone sends the first language audio data collected by the microphone to the terminal device.
[0130] Correspondingly, the terminal device receives the first language audio data sent by the first headset.
[0131] 6200. The terminal device translates the first language audio data into the second language audio data.
[0132] 6300. The terminal device sends the second language audio data to the second headset.
[0133] Correspondingly, the second earphone receives the second language audio data sent by the terminal device.
[0134] 6400. The second earphone plays the second language audio data.
[0135] The language used in the first language audio data is the language used by the user wearing the first headset, and the language used in the second language audio data is the language used by the user wearing the second headset. The first language is different from the second language.
[0136] When the first earphone receives the first language audio data input by the user, the first language audio data is transmitted to the terminal device via Bluetooth. After receiving the first language audio data, the terminal device recognizes, translates and synthesizes the first language audio data to obtain second language audio data, and then sends the second language audio data to the second earphone via Bluetooth for playback.
[0137] Figure 7 A flowchart of another mode switching method of a TWS headset provided in an embodiment of the present application. Figure 7 As shown, in an exemplary embodiment, after the above step 3800, the mode switching method of the provided TWS headset may further include:
[0138] 7100. The second earphone sends the second language audio data collected by the microphone to the terminal device.
[0139] Correspondingly, the terminal device receives the second language audio data sent by the second headset.
[0140] 7200. The terminal device translates the second language audio data into the first language audio data.
[0141] 7300. The terminal device sends the first language audio data to the first earphone.
[0142] Correspondingly, the first earphone receives the first language audio data sent by the terminal device.
[0143] 7400. The first earphone plays the first language audio data.
[0144] The language used in the first language audio data is the language used by the user wearing the first headset, and the language used in the second language audio data is the language used by the user wearing the second headset. The first language is different from the second language.
[0145] When the second earphone receives the second language audio data input by the user, the second language audio data is transmitted to the terminal device via Bluetooth. After receiving the second language audio data, the terminal device recognizes, translates and synthesizes the second language audio data to obtain the first language audio data, and then sends the first language audio data to the first earphone via Bluetooth for playback.
[0146] Figure 8 A schematic diagram of a simultaneous interpretation scenario using a mode switching method of a TWS headset provided in an embodiment of the present application. Figure 8 As shown, it is assumed that in this embodiment, the first earphone is the main earphone and the second earphone is the auxiliary earphone. After the terminal device establishes Bluetooth connections with the main earphone and the auxiliary earphone respectively based on the TWS earphone mode switching method described in the above embodiment, the TWS earphone is successfully switched to the simultaneous interpretation mode.
[0147] The data channel between the main headset and the terminal device is recorded as data channel 1, and the data channel between the auxiliary headset and the terminal device is recorded as data channel 2. In this example, the user can pre-set language 1 corresponding to the language of the main headset and language 2 corresponding to the language of the auxiliary headset on the terminal device.
[0148] After the corresponding languages of the main earphone and the auxiliary earphone are set, the main earphone can receive the first language audio data of language 1 through the microphone in data channel 1, and send the first language audio data to the receiving module 1 of the terminal device through data channel 1. The receiving module 1 in the terminal device transmits the first language audio data to the translation module 1 of the terminal device, so that after recognizing the first language audio data, the first language audio data of language 1 is translated into language 2, and synthesized into the second language audio data of language 2, and then sent through the sending module 1 of the terminal device. The sending module 1 of the terminal device sends the second language audio data to the auxiliary earphone through data channel 2, and the auxiliary earphone plays the second language audio data after receiving the second language audio data.
[0149] Similarly, in data channel 2, the secondary earphone can receive the second language audio data of language 2 through the microphone, and send the second language audio data to the receiving module 2 of the terminal device through data channel 2. The receiving module 2 in the terminal device transmits the second language audio data to the translation module 2 of the terminal device, so that after recognizing the second language audio data, the second language audio data of language 2 is translated into language 1, and synthesized into the first language audio data of language 1, and then sent through the sending module 2 of the terminal device. The sending module 2 of the terminal device sends the first language audio data to the main earphone through data channel 1, and the main earphone plays the first language audio data after receiving the first language audio data.
[0150] Based on the above process, the simultaneous interpretation function can be realized. It should be noted that in this embodiment, the TWS headset includes two headphones, the main headset and the auxiliary headset, as an example to illustrate the process of realizing the simultaneous interpretation function. In actual applications, the terminal device can also establish BLE data transmission channels with multiple headphones to realize simultaneous interpretation in multiple languages.
[0151] Based on the mode switching method of the TWS headset of the above embodiment of the present application, the first language audio data collected by the microphone is sent to the terminal device through the first headset, the terminal device translates the first language audio data into second language audio data and sends it to the second headset, and the second headset plays the second language audio data. Alternatively, the second language audio data collected by the microphone is sent to the terminal device through the second headset, the terminal device translates the second language audio data into first language audio data and sends it to the first headset, and the first headset plays the first language audio data. According to this embodiment, users wearing headphones can respectively communicate in different languages, and the terminal device is responsible for real-time translation and transmission of the translated audio data, so that the TWS headset can be compatible with the TWS headset mode and the simultaneous interpretation mode, which expands the application scenarios of the TWS headset and solves the problem that the existing TWS headset only supports the TWS headset mode in calls and audio processing.
[0152] The above is a description of the mode switching method of the TWS headset provided in the embodiment of the present application. The following is a detailed description of the mode switching system of the TWS headset in the embodiment of the present application in conjunction with the accompanying drawings.
[0153] Exemplary Systems
[0154] Accordingly, the embodiment of the present application also provides a system, such as Fig. 9 As shown, the earphone system 900 provided in this embodiment may include: a terminal device 910 , a first earphone 920 , and a second earphone 930 .
[0155] Among them, the terminal device 910 is used to send a mode switching command to the first headset 920; the mode switching command is used to instruct the first headset 920 and the first headset 930 to switch from the first working mode to the second working mode; the second working mode is the simultaneous interpretation mode.
[0156] The first earphone 920 is used to forward the mode switching command to the first earphone 930.
[0157] The first earphone 930 is used to receive the mode switching command forwarded by the first earphone 920, switch to the Bluetooth broadcast mode according to the mode switching command, and send the Bluetooth address of the first earphone 930 to the first earphone 920.
[0158] The first earphone 920 is used to switch to the Bluetooth broadcast mode according to the mode switching command, and receive the Bluetooth address of the first earphone 930 sent by the first earphone 930; and send the Bluetooth address of the first earphone 920 and the Bluetooth address of the first earphone 930 to the terminal device 910.
[0159] The terminal device 910 is used to establish a Bluetooth connection with the first headset 920 according to the Bluetooth address of the first headset 920, and to establish the Bluetooth connection with the first headset 930 according to the Bluetooth address of the first headset 930 (in Fig. 9 Indicated by dotted line).
[0160] In a feasible implementation, the first earphone 920 is further configured to collect first language audio data through the microphone of the first earphone 920 and send it to the terminal device 910. The first earphone 930 is further configured to collect second language audio data through the microphone of the first earphone 930 and send it to the terminal device 910.
[0161] Correspondingly, the terminal device 910 is also used to receive the first language audio data sent by the first earphone 920; translate the first language audio data into the second language audio data; send the second language audio data to the first earphone 930 for playback; and / or receive the second language audio data sent by the first earphone 930, translate the second language audio data into the first language audio data and send it to the first earphone 920 for playback.
[0162] In a feasible implementation, the terminal device 910 is further configured to establish a Bluetooth connection with the first headset 920; and to establish a Bluetooth serial communication connection with the first headset 920 based on a serial port profile SPP. Accordingly, when the terminal device 910 sends a mode switching command to the first headset 920, the mode switching command may be specifically sent to the first headset 920 based on the Bluetooth serial communication connection.
[0163] In a feasible implementation, the terminal device 910 is specifically used to monitor the Bluetooth broadcast message of the first earphone 920 and the Bluetooth broadcast message of the first earphone 930; establish the Bluetooth connection with the first earphone 920 according to the Bluetooth broadcast message of the first earphone 920 and the Bluetooth address of the first earphone 920; and establish the Bluetooth connection with the first earphone 930 according to the Bluetooth broadcast message of the first earphone 930 and the Bluetooth address of the first earphone 930.
[0164] The earphone system provided in this embodiment belongs to the same application concept as the mode switching method of the TWS earphone provided in the above embodiment of this application, and can execute the mode switching method of the TWS earphone provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of executing the mode switching method of the TWS earphone. For the technical details not described in detail in this embodiment, please refer to the specific processing content of the mode switching method of the TWS earphone provided in the above embodiment of this application, which will not be repeated here.
[0165] It should be understood that the devices in the above earphone system can be implemented in the form of a processor calling software. For example, the device includes a processor, the processor is connected to a memory, and instructions are stored in the memory. The processor calls the instructions stored in the memory to implement any of the above methods or realize the functions of each unit of the earphone system, wherein the processor can be a general-purpose processor, such as a CPU or a microprocessor, etc., and the memory can be a memory in the device or a memory outside the device. Alternatively, the unit in the device can be implemented in the form of a hardware circuit, and the functions of some or all units can be realized by designing the hardware circuit. The hardware circuit can be understood as one or more processors; for example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all units above are realized by designing the logical relationship of the components in the circuit; for another example, in another implementation, the hardware circuit can be implemented by PLD, taking FPGA as an example, which can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by a configuration file, so as to realize the functions of some or all units above. All units of the above earphone system can be implemented in the form of a processor calling software, or in the form of a hardware circuit, or in the form of a processor calling software, and the rest can be implemented in the form of a hardware circuit.
[0166] In an embodiment of the present application, a processor is a circuit with the ability to process signals. In one implementation, the processor may be a circuit with the ability to read and run instructions, such as a CPU, a microprocessor, a GPU, or a DSP; in another implementation, the processor may implement certain functions through the logical relationship of a hardware circuit, and the logical relationship of the hardware circuit is fixed or reconfigurable, such as a hardware circuit implemented by an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document to implement the hardware circuit configuration can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as an NPU, TPU, DPU, etc.
[0167] It can be seen that each unit in the above headphone system can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.
[0168] In addition, all or part of the units in the above headset system can be integrated together, or can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a SOC. The SOC may include at least one processor for implementing any of the above methods or implementing the functions of the units of the headset system. The at least one processor may be of different types, such as a CPU and an FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.
[0169] Exemplary Electronic Devices
[0170] The present application embodiment provides an electronic device, see Fig.10 As shown, the electronic device includes a memory 10 and a processor 11 connected to the memory 10 .
[0171] The memory 10 is used to store programs.
[0172] The processor 11 is used to execute any one of the TWS headset mode switching methods of any of the above embodiments.
[0173] When the electronic device is a terminal device, the processor 11 is used to send a mode switching command to the first earphone; the mode switching command is used to instruct the first earphone and the second earphone to switch from the first working mode to the second working mode; the second working mode is a simultaneous interpretation mode; receive the Bluetooth address of the first earphone and the Bluetooth address of the second earphone sent by the first earphone; the Bluetooth address of the second earphone is sent to the first earphone by the second earphone after receiving the first mode switching command forwarded by the first earphone; establish a Bluetooth connection with the first earphone according to the Bluetooth address of the first earphone, and establish the Bluetooth connection with the second earphone according to the Bluetooth address of the second earphone. Thus, the first earphone and the second earphone establish Bluetooth connections with the terminal device respectively, so that the first earphone and the second earphone can perform the simultaneous interpretation function, and the switching of working modes is realized.
[0174] When the electronic device is a first headset, the processor 11 is used to receive a mode switching command sent by a terminal device; the mode switching command is used to instruct the first headset and the second headset to switch from a first working mode to a second working mode; the second working mode is a simultaneous interpretation mode; according to the mode switching command, switch to a Bluetooth broadcast mode, and send the Bluetooth address of the first headset and the Bluetooth address of the second headset to the terminal device; the Bluetooth address of the second headset is sent to the first headset by the second headset after receiving the first mode switching command forwarded by the first headset; and establish a Bluetooth connection with the terminal device based on the Bluetooth address of the first headset.
[0175] When the electronic device is a second headset, the processor 11 is used to receive a mode switching command sent by the first headset, wherein the mode switching command is sent by the terminal device to the first headset, and the switching command is used to instruct the second headset to switch from the first working mode to the second working mode; the second working mode is a simultaneous interpretation mode; according to the mode switching command, switching to the Bluetooth broadcast mode, and sending the Bluetooth address of the second headset to the first headset, so that the first headset sends the Bluetooth address of the second headset to the terminal device; and establishing a Bluetooth connection with the terminal device based on the Bluetooth address of the second headset.
[0176] The specific processing process of the above-mentioned processor 11 can refer to the introduction of the above-mentioned method embodiment, and the specific implementation method of the processor 11 can also refer to the introduction of the above-mentioned embodiment.
[0177] Specifically, the electronic device may further include: a bus, a communication interface 12 , an input device 13 and an output device 14 .
[0178] The processor 11, the memory 10, the communication interface 12, the input device 13 and the output device 14 are connected to each other via a bus.
[0179] A bus may include a pathway that transfers information between components of a computer system.
[0180] The processor 11 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the scheme of the present invention. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0181] The processor 11 may include a main processor, and may also include a baseband chip, a modem, and the like.
[0182] The memory 10 stores a program for executing the technical solution of the present invention, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes computer operation instructions. More specifically, the memory 10 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.
[0183] The input device 13 may include a device for receiving data and information input by a user, such as an error microphone, a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.
[0184] Output device 14 may include means for allowing information to be output to a user, such as a speaker, a display screen, a printer, speakers, and the like.
[0185] The communication interface 12 may include any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc.
[0186] The processor 11 executes the program stored in the memory 10 and calls other devices, which can be used to implement the various steps of the mode switching method of any TWS headset provided in the above embodiments of the present application.
[0187] An embodiment of the present application also proposes a chip, which includes a processor and a data interface. The processor reads and runs a program stored in a memory through the data interface to execute the mode switching method of the TWS headset introduced in any of the above embodiments. The specific processing process and its beneficial effects can be found in the embodiment introduction of the mode switching method of the TWS headset mentioned above.
[0188] Exemplary computer program products and storage media
[0189] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps in the mode switching method of the TWS headset according to various embodiments of the present application described in any of the above embodiments of this specification.
[0190] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0191] In addition, an embodiment of the present application may also be a storage medium on which a computer program is stored, and the computer program is executed by a processor to execute the steps of the mode switching method of the TWS headset according to various embodiments of the present application described in any of the above embodiments of this specification.
[0192] When the computer program is configured in a terminal device, the following steps can be implemented:
[0193] Send a mode switching command to the first earphone; the mode switching command is used to instruct the first earphone and the second earphone to switch from the first working mode to the second working mode; the second working mode is the simultaneous interpretation mode; receive the Bluetooth address of the first earphone and the Bluetooth address of the second earphone sent by the first earphone; the Bluetooth address of the second earphone is sent to the first earphone by the second earphone after receiving the first mode switching command forwarded by the first earphone; establish a Bluetooth connection with the first earphone according to the Bluetooth address of the first earphone, and establish the Bluetooth connection with the second earphone according to the Bluetooth address of the second earphone. Thus, the first earphone and the second earphone respectively establish Bluetooth connections with the terminal device, so that the first earphone and the second earphone can perform the simultaneous interpretation function, and the switching of working modes is realized.
[0194] When the computer program is configured in the first headset, the following steps can be implemented:
[0195] Receive a mode switching command sent by a terminal device; the mode switching command is used to instruct the first earphone and the second earphone to switch from a first working mode to a second working mode; the second working mode is a simultaneous interpretation mode; according to the mode switching command, switch to Bluetooth broadcast mode, and send the Bluetooth address of the first earphone and the Bluetooth address of the second earphone to the terminal device; the Bluetooth address of the second earphone is sent to the first earphone by the second earphone after receiving the first mode switching command forwarded by the first earphone; establish a Bluetooth connection with the terminal device based on the Bluetooth address of the first earphone.
[0196] When the computer program is configured in the second headset, the following steps can be implemented:
[0197] Receive a mode switching command sent by the first earphone, wherein the mode switching command is sent by the terminal device to the first earphone, and the switching command is used to instruct the second earphone to switch from the first working mode to the second working mode; the second working mode is a simultaneous interpretation mode; according to the mode switching command, switch to the Bluetooth broadcast mode, and send the Bluetooth address of the second earphone to the first earphone, so that the first earphone sends the Bluetooth address of the second earphone to the terminal device; and establish a Bluetooth connection with the terminal device based on the Bluetooth address of the second earphone.
[0198] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0199] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0200] The steps in the methods of each embodiment of the present application can be adjusted in order, combined and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.
[0201] The modules and sub-modules in the devices and terminals of the various embodiments of the present application can be combined, divided and deleted according to actual needs.
[0202] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0203] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0204] In addition, each functional module or submodule in each embodiment of the present application may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.
[0205] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0206] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0207] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0208] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A mode switching method for a true wireless stereo TWS headset, the TWS headset comprising a first headset and a second headset, characterized in that: The method comprises: Sending a mode switching command to the first headset; the mode switching command is used to instruct the first headset and the second headset to switch from a first working mode to a second working mode; the second working mode is a simultaneous interpretation mode; receiving the Bluetooth address of the first headset and the Bluetooth address of the second headset sent by the first headset; the Bluetooth address of the second headset is sent to the first headset after the second headset receives the first mode switching command forwarded by the first headset; A Bluetooth connection is established with the first headset according to the Bluetooth address of the first headset, and the Bluetooth connection is established with the second headset according to the Bluetooth address of the second headset.
2. The method according to claim 1, characterized in that: The method further comprises: receiving first language audio data sent by the first headset; translating the first language audio data into second language audio data; The second language audio data is sent to the second earphone, so that the second earphone plays the second language audio data.
3. The method according to claim 1 or 2, characterized in that: The method further comprises: receiving second language audio data sent by the second headset; translating the second language audio data into first language audio data; The first language audio data is sent to the first earphone, so that the first earphone plays the first language audio data.
4. The method according to claim 1, characterized in that Before sending the mode switching command to the first headset, the method further includes: Establishing a Bluetooth connection with the first headset; A Bluetooth serial communication connection is established with the first headset based on a serial port profile SPP.
5. The method according to claim 4, characterized in that The sending a mode switching command to the first headset includes: Based on the Bluetooth serial communication connection, the mode switching command is sent to the first headset.
6. The method according to claim 1, characterized in that Establishing a Bluetooth connection with the first headset according to the Bluetooth address of the first headset, and establishing the Bluetooth connection with the second headset according to the Bluetooth address of the second headset, comprising: Monitoring the Bluetooth broadcast message of the first headset and the Bluetooth broadcast message of the second headset; Establishing the Bluetooth connection with the first headset according to the Bluetooth broadcast message of the first headset and the Bluetooth address of the first headset; and, The Bluetooth connection is established with the second headset according to the Bluetooth broadcast message of the second headset and the Bluetooth address of the second headset.
7. A mode switching method for a true wireless stereo TWS headset, the TWS headset comprising a first headset and a second headset, characterized in that: The method comprises: receiving a mode switching command sent by a terminal device; the mode switching command is used to instruct the first headset and the second headset to switch from a first working mode to a second working mode; the second working mode is a simultaneous interpretation mode; According to the mode switching command, switch to the Bluetooth broadcast mode, and send the Bluetooth address of the first headset and the Bluetooth address of the second headset to the terminal device; the Bluetooth address of the second headset is sent to the first headset by the second headset after receiving the first mode switching command forwarded by the first headset; Establish a Bluetooth connection with the terminal device based on the Bluetooth address of the first headset.
8. The method according to claim 7, characterized in that The method further comprises: sending the first language audio data recorded by the microphone of the first headset to the terminal device, so that the terminal device translates the first language audio data into second language audio data and then sends it to the second headset for playback; and / or, The first language audio data sent by the terminal device is played, where the first language audio data is sent to the first earphone after the terminal device translates the second language audio data collected by the microphone of the second earphone into the first language audio data.
9. A mode switching method for a true wireless stereo TWS headset, the TWS headset comprising a first headset and a second headset, characterized in that: The method comprises: receiving a mode switching command sent by the first headset, wherein the mode switching command is sent by a terminal device to the first headset, and the switching command is used to instruct the second headset to switch from a first working mode to a second working mode; the second working mode is a simultaneous interpretation mode; According to the mode switching command, switch to the Bluetooth broadcast mode, and send the Bluetooth address of the second headset to the first headset, so that the first headset sends the Bluetooth address of the second headset to the terminal device; Establish a Bluetooth connection with the terminal device based on the Bluetooth address of the second headset.
10. The method according to claim 9, characterized in that The method further comprises: sending the second language audio data recorded by the microphone of the second headset to the terminal device, so that the terminal device translates the second language audio data into the first language audio data and then sends it to the first headset for playback; and / or, The second language audio data sent by the terminal device is played, where the second language audio data is obtained by the terminal device translating the first language audio data collected by the microphone of the first headset into the second language audio data and then sending the translated data to the second headset.
11. An earphone system, characterized in that: The system comprises: a terminal device, a first headset and a second headset; The terminal device is used to send a mode switching command to the first headset; the mode switching command is used to instruct the first headset and the second headset to switch from a first working mode to a second working mode; the second working mode is a simultaneous interpretation mode; The first earphone is used to forward the mode switching command to the second earphone; The second earphone is configured to receive the mode switching command forwarded by the first earphone, switch to the Bluetooth broadcast mode according to the mode switching command, and send the Bluetooth address of the second earphone to the first earphone; The first earphone is used to switch to the Bluetooth broadcast mode according to the mode switching command, and receive the Bluetooth address of the second earphone sent by the second earphone; and send the Bluetooth address of the first earphone and the Bluetooth address of the second earphone to the terminal device; The terminal device is used to establish a Bluetooth connection with the first headset according to the Bluetooth address of the first headset, and to establish the Bluetooth connection with the second headset according to the Bluetooth address of the second headset.
12. The system according to claim 11, characterized in that The first headset is further used to collect first language audio data through the microphone of the first headset and send it to the terminal device; The second headset is further used to collect the second language audio data through the microphone of the second headset and send it to the terminal device; The terminal device is further configured to receive the first language audio data sent by the first earphone; translate the first language audio data into the second language audio data; and send the second language audio data to the second earphone for playback; And / or, receiving the second language audio data sent by the second earphone, translating the second language audio data into the first language audio data, and sending the first earphone to play.
13. An electronic device, characterized in that: including memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the mode switching method of the true wireless stereo TWS headset as described in any one of claims 1 to 10 by running the program in the memory.
14. A computer program product, characterized in that It includes computer program instructions, which, when executed by a processor, enable the processor to execute the mode switching method of the true wireless stereo TWS headset as described in any one of claims 1 to 10.