WO2019232901A1 - 一种语音数据的传输方法、无线耳机及tws耳机 - Google Patents
一种语音数据的传输方法、无线耳机及tws耳机 Download PDFInfo
- Publication number
- WO2019232901A1 WO2019232901A1 PCT/CN2018/097209 CN2018097209W WO2019232901A1 WO 2019232901 A1 WO2019232901 A1 WO 2019232901A1 CN 2018097209 W CN2018097209 W CN 2018097209W WO 2019232901 A1 WO2019232901 A1 WO 2019232901A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- wireless headset
- voice data
- headset
- terminal
- mic
- Prior art date
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 48
- 238000000034 method Methods 0.000 title claims abstract description 48
- 230000006854 communication Effects 0.000 claims abstract description 30
- 238000004891 communication Methods 0.000 claims abstract description 27
- 238000004590 computer program Methods 0.000 claims description 15
- 238000001514 detection method Methods 0.000 claims description 6
- 238000012546 transfer Methods 0.000 claims description 2
- 230000009286 beneficial effect Effects 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 4
- 230000008713 feedback mechanism Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013461 design Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/08—Mouthpieces; Microphones; Attachments therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/22—Procedures used during a speech recognition process, e.g. man-machine dialogue
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
- H04L69/322—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
- H04L69/324—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/60—Substation equipment, e.g. for use by subscribers including speech amplifiers
- H04M1/6033—Substation equipment, e.g. for use by subscribers including speech amplifiers for providing handsfree use or a loudspeaker mode in telephone sets
- H04M1/6041—Portable telephones adapted for handsfree use
- H04M1/6058—Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone
- H04M1/6066—Portable telephones adapted for handsfree use involving the use of a headset accessory device connected to the portable telephone including a wireless connection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1091—Details not provided for in groups H04R1/1008 - H04R1/1083
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
- H04R3/005—Circuits for transducers, loudspeakers or microphones for combining the signals of two or more microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R5/00—Stereophonic arrangements
- H04R5/033—Headphones for stereophonic communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2420/00—Details of connection covered by H04R, not provided for in its groups
- H04R2420/07—Applications of wireless loudspeakers or wireless microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
- H04W84/20—Master-slave selection or change arrangements
Definitions
- the present invention relates to the technical field of portable listening devices, and in particular, to a method for transmitting voice data, a wireless headset, a TWS headset, and a computer-readable storage medium.
- a TWS (True Wireless Stereo) headset is composed of a first wireless headset and a second wireless headset.
- the TWS headset mainly has the following two technical solutions when transmitting voice data to the corresponding terminal:
- Both the first wireless headset and the second wireless headset have a MIC.
- the first wireless headset or the second wireless headset is first selected as the main wireless headset, and the second wireless headset is used to transmit voice data. .
- the first scheme will cause the voice data transmission to be interrupted Or directly switch to the terminal to collect voice data (that is, the wireless headset is not used to transmit voice data).
- the second solution will cause the interruption of voice data transmission or the need to switch another wireless headset to the master wireless headset first, and then use the master wireless headset to transmit voice data after the switch (that is, the master-slave switchover is required.
- the two wireless headphones will be disconnected from the terminal). That is, whether the first or the second scheme will cause the interruption of voice data transmission, and then affect the user experience.
- An object of the present invention is to provide a method for transmitting voice data, a wireless headset, a TWS headset, and a computer-readable storage medium, which can realize uninterrupted transmission of voice data and improve user experience.
- the present invention provides a method for transmitting voice data, wherein the first wireless headset establishes a communication connection with the terminal through the first connection parameter information, and the second wireless headset does not establish a communication connection with the terminal, including:
- the second wireless headset MIC When the second wireless headset receives the instruction to continue transmitting voice data, the second wireless headset MIC is used to collect voice data; wherein the instruction to continue transmitting voice data is a pre-detection for detecting that the first wireless headset is about to interrupt voice data transmission. Set the instructions generated after the event;
- the second wireless headset transmits the voice data collected by the second wireless headset MIC to the terminal by using the first connection parameter information sent by the first wireless headset.
- the method further includes:
- using the second wireless headset MIC to receive voice data includes:
- the second wireless headset When the second wireless headset receives an instruction to continue transmitting voice data, the second wireless headset turns on the second wireless headset MIC, and uses the second wireless headset MIC to collect voice data.
- the preset event is specifically taking off the first wireless headset.
- the transmitting, by the second wireless headset, the voice data collected by the second wireless headset MIC to the terminal by using the first connection parameter information sent by the first wireless headset includes:
- the second wireless headset uses the first connection parameter information to packetize voice data collected by the second wireless headset MIC, and transmits the packet to the terminal after the packetization; wherein the first connection parameter information Including terminal MAC address, communication time slot and packet header information.
- the present invention also provides a wireless headset, including: a communication interface, a MIC, a memory, and a processor; wherein the memory is used to store a computer program, and the processor is used to implement the computer program as described above when the computer program is executed. Steps of a method for transmitting voice data.
- the present invention also provides a TWS headset, which includes a first wireless headset and a second wireless headset each having a MIC, wherein the first wireless headset establishes a communication connection with the terminal through the first connection parameter information, and the second wireless headset No communication connection with the terminal;
- the second wireless headset MIC When the second wireless headset receives a voice data transmission instruction, the second wireless headset MIC is used to collect voice data; and the second wireless headset MIC is used to use the first connection parameter information sent by the first wireless headset.
- the collected voice data is transmitted to the terminal; wherein the instruction for continuing to transmit voice data is an instruction generated after detecting that the first wireless headset is about to interrupt a preset event of voice data transmission.
- the first wireless headset after the first wireless headset establishes a communication connection with the terminal through the first connection parameter information, the first wireless headset sends the first connection parameter information to the second wireless headset.
- the first wireless headset when the first wireless headset detects the preset event, the first wireless headset sends the voice data transmission instruction to the second wireless headset.
- the second wireless headset MIC is turned on, and the second wireless headset MIC is used to collect voice data.
- the present invention also provides a computer-readable storage medium on which a computer program is stored.
- a computer program is stored on which a computer program is stored.
- the steps of the method for transmitting voice data as described above are implemented.
- a method for transmitting voice data provided by the present invention wherein the first wireless headset establishes a communication connection with the terminal through the first connection parameter information, and the second wireless headset does not establish a communication connection with the terminal.
- the method includes: a second wireless headset When receiving the instruction to continue transmitting voice data, the second wireless headset MIC is used to collect voice data; wherein the instruction to continue transmitting voice data is an instruction generated after detecting a preset event that the first wireless headset is to interrupt the transmission of voice data; the second wireless The headset uses the first connection parameter information sent by the first wireless headset to transmit the voice data collected by the second wireless headset MIC to the terminal.
- the method sends the first connection parameter information with the terminal to the second wireless headset, so that the second wireless headset can continue to send information to the second wireless headset according to the first connection parameter information.
- the terminal transmits voice data; that is, the second wireless headset directly implements data interaction with the terminal according to the existing first connection parameter information, thereby achieving uninterrupted transmission of voice data and improving the user experience; avoiding the need to interrupt voice data encountered in the prior art
- the master-slave switchover needs to be performed first, and then the master wireless headset after the switchover establishes a connection with the terminal, and continues the tedious process of transmitting voice data through the connection, and avoids the wireless headset and terminal caused by the master-slave switchover.
- Existing disconnection conditions; the present invention also provides a wireless earphone, a TWS earphone, and a computer-readable storage medium, which have the above-mentioned beneficial effects, and are not repeated here.
- FIG. 1 is a flowchart of a voice data transmission method according to an embodiment of the present invention
- FIG. 2 is a structural block diagram of a TWS headset provided by an embodiment of the present invention.
- FIG. 3 is a schematic diagram of a connection between two headsets of a TWS headset provided in an embodiment of the present invention in a working state;
- FIG. 4 is a connection diagram of a TWS headset provided in an embodiment of the present invention, which is taken off from a headset working master headset.
- FIG. 1 is a flowchart of a voice data transmission method according to an embodiment of the present invention.
- the method may include:
- the second wireless headset MIC When the second wireless headset receives a voice data transmission instruction, the second wireless headset MIC is used to collect voice data.
- the voice data transmission instruction is generated after detecting a preset event that the first wireless headset is to interrupt voice data transmission. Instructions.
- the first wireless headset in this embodiment refers to a wireless headset that is currently wirelessly connected to the terminal, and can also be understood as a wireless headset that wirelessly connects to the terminal before a preset event occurs and uploads voice data to the terminal.
- the second wireless headset refers to a wireless headset that is not currently wirelessly connected to the terminal. Specifically, the first wireless headset establishes a communication connection with the terminal through the first connection parameter information, and the second wireless headset does not establish a communication connection with the terminal.
- the main purpose of this step is to use the second wireless headset MIC to collect the voice data that needs to be transmitted when the first wireless headset is about to interrupt the transmission of voice data, so that the subsequent second wireless headset uses the first connection parameter information to The voice data collected by the wireless headset MIC is transmitted to the terminal, so as to realize continuous and uninterrupted transmission of the collected voice data.
- This embodiment does not limit the specific content of the preset event, and the user can set it according to the actual situation.
- the first wireless headset may be taken off, or the first wireless headset may have a low battery.
- This implementation does not limit the number of preset events. For example, only one preset event is set, such as the first wireless headset is taken off. Of course, two preset events may also be set, such as the first preset event is taken off on the first wireless headset. The second preset event is that the power of the first wireless headset is lower than the first threshold. At this time, when any one of the preset events is detected, an instruction to continue transmitting voice data is generated.
- this embodiment is not limited to a detection method for detecting a preset event, and a user may determine a corresponding detection method according to the specific content of the preset event that is set. For example, when the preset event is taken off of the first wireless headset, it may be determined that the preset event occurs by detecting that the first wireless headset changes from a worn state to an unworn state.
- This embodiment is not limited to an execution subject that detects a preset event, and may be, for example, a first wireless headset or a second wireless headset.
- the first connection parameter information can be used to detect the communication process between the first wireless headset and the terminal, and then it can be determined whether a preset event is generated by determining whether the communication process is normal.
- the first wireless headset is used to detect whether it generates a preset event.
- an instruction to continue transmitting voice data is generated, and The instruction to continue transmitting voice data is sent to the second wireless headset.
- the embodiment does not limit the specific form of the instruction for continuing to transmit voice data.
- the instruction for continuing to transmit voice data may be a specific high level or low level; or a short section of data code; or an identifier, etc. , The user can determine the required form according to the actual situation.
- the second wireless headset when the second wireless headset receives an instruction to continue transmitting voice data, it uses the second wireless headset MIC to collect voice data. That is, the MIC on the second wireless headset is used to collect voice data.
- the timing of turning on the second wireless headset MIC is not limited in this embodiment. For example, the second wireless headset MIC is always turned on when the second wireless headset is in the working state; or when the second wireless headset receives an instruction to continue transmitting voice data, the second wireless headset MIC is turned on immediately. That is, as long as it is ensured that the second wireless headset MIC needs to collect voice data when receiving the instruction to continue transmitting voice data, the second wireless headset MIC is turned on.
- the second wireless headset MIC is turned off.
- the second wireless headset MIC is turned on, and the second wireless headset MIC is used to collect voice data.
- the second wireless headset transmits the voice data collected by the second wireless headset MIC to the terminal by using the first connection parameter information sent by the first wireless headset.
- the first connection parameter information refers to current connection information between the first wireless headset and the terminal. This embodiment does not limit the content of the first connection parameter information, as long as the first wireless headset and the terminal can establish a connection and implement data interaction through the first connection parameter information.
- the first connection parameter information includes terminal MAC address, communication time slot, and header information
- the second wireless headset uses the first connection parameter information sent by the first wireless headset to transmit the voice data collected by the second wireless headset MIC.
- the terminal may include: the second wireless headset uses the first connection parameter information to group the voice data collected by the second wireless headset MIC, and transmits the packet to the terminal after the grouping.
- the second wireless headset can establish a pseudo connection with the terminal by means of the first connection parameter information, that is, the voice data collected by the second wireless headset MIC is sent to the terminal through the connection channel between the first wireless headset and the terminal. Establish a new connection channel with the terminal. Based on this, this embodiment does not need to first switch the first wireless headset to the second wireless headset, disconnect the connection channel between the first wireless headset and the terminal, and re-establish the connection channel between the second wireless headset and the terminal ( During the switching process, the wireless headset is disconnected from the terminal, resulting in interruption of voice data transmission), and finally the second wireless headset sends voice data. Instead, the second wireless headset directly uses the connection channel between the first wireless headset and the terminal to continue to send voice data to the terminal, thereby achieving uninterrupted transmission. From the perspective of user experience, there is no disconnection between the wireless headset and the terminal, and the user can continuously receive voice data through the connection channel corresponding to the first connection parameter information.
- This embodiment does not limit the timing when the first wireless headset sends the first connection parameter information to the second wireless headset. For example, after the first wireless headset establishes a connection with the second wireless headset, the first wireless headset immediately sends the first connection parameter information to the second wireless headset. It is also possible to send the first connection parameter information at the same time when the first wireless headset sends an instruction to continue transmitting voice data to the second wireless headset. That is, as long as the second wireless headset needs to use the first connection parameter information to send the voice data collected by the second wireless headset MIC to the terminal, the first connection parameter information can be obtained. Further, in order to ensure that the voice data collected by the second wireless headset MIC can be transmitted to the terminal in time, the sooner the first wireless headset sends the first connection parameter information to the second wireless headset, the better.
- the second wireless headset receives the first connection parameter information sent by the first wireless headset. That is, before receiving the instruction to continue transmitting voice data (for example, when the first wireless headset and the second wireless headset successfully establish a connection), the second wireless headset has obtained the first connection parameter information. For example, during the use of the TWS headset, after the first wireless headset establishes a connection with a terminal (such as a mobile phone), data can be transmitted to realize data sharing between the two.
- a terminal such as a mobile phone
- the first wireless headset can send its first connection information with the terminal to the second wireless headset (provided that the first wireless headset and the second wireless headset have established a wireless connection), and the second wireless headset can know the
- the data transmission process between a wireless headset and the terminal can also be used to establish a pseudo-connection with the terminal by using the first connection information, and send data to the terminal through the pseudo-connection to achieve data interaction with the terminal.
- this embodiment may also establish a feedback mechanism to ensure that the second wireless headset successfully receives the first connection parameter information through the feedback mechanism.
- This embodiment does not limit the execution method of the specific feedback mechanism. For example, when the second wireless headset successfully receives the first connection parameter information, it may send successful reception feedback information to the first wireless headset, and when the first wireless headset receives the information, it is determined that the second wireless headset successfully receives the first connection parameter information. A connection parameter information. Or if the second wireless headset does not receive the first connection parameter information within a specified time, a request for re-acquiring the first connection parameter information is sent to the first wireless headset until the second wireless headset successfully receives the first connection parameter information .
- the second wireless headset obtains the first connection parameter information (such as the mobile phone MAC address, communication time slot, header information, etc.) for the first wireless headset to communicate with the mobile phone.
- First connection parameter information The second wireless headset may form a pseudo connection with the mobile phone, and the second wireless headset uploads audio data to the mobile phone.
- the voice data transmission method provided by the embodiment of the present invention has two advantages compared with the prior art.
- Second, when the second wireless headset receives the instruction to continue transmitting voice data it can immediately use the first connection parameter information to transmit voice data to the terminal without interrupting the transmission of the voice data, and there is no need to newly establish a second wireless headset as in the prior art.
- this embodiment can achieve uninterrupted voice data transmission. For example, when any wireless headset is removed during a call using a TWS headset, the call is not disconnected.
- the wireless earphones, TWS earphones, and computer-readable storage media provided in the embodiments of the present invention are described below.
- the wireless earphones, TWS earphones, and computer-readable storage media described below and the voice data transmission method described above may correspond to each other.
- An embodiment of the present invention further provides a wireless headset, including: a communication interface, a MIC, a memory, and a processor; wherein the memory is used to store a computer program, and the processor is configured to implement the voice data described in the foregoing embodiment when the computer program is executed. Steps of the transfer method. For example, when the processor is used to execute a computer program, when the second wireless headset receives a voice data transmission instruction, the second wireless headset MIC is used to collect voice data. The voice data transmission instruction is to detect that the first wireless headset is about to interrupt the voice data. A command generated after the transmitted preset event; the second wireless headset uses the first connection parameter information sent by the first wireless headset to transmit the voice data collected by the second wireless headset MIC to the terminal.
- FIG. 2 is a structural block diagram of a TWS earphone provided by an embodiment of the present invention
- TWS Truste Wireless Stereo
- TWS earphone refers to a earphone applying TWS technology.
- the TWS headset includes a first wireless headset 100 and a second wireless headset 200 each having a MIC.
- the first wireless headset 100 establishes a communication connection with the terminal through the first connection parameter information, and the second wireless headset 200 is not established with the terminal. Communication connection.
- the second wireless headset 200 uses the second wireless headset MIC to collect voice data; and uses the first connection parameter information sent by the first wireless headset 100 to transmit the voice data collected by the second wireless headset MIC to The terminal; wherein the instruction for continuing to transmit voice data is an instruction generated after detecting that the first wireless headset 100 is to interrupt a preset event of voice data transmission.
- the first wireless headset 100 needs to be connected to both the terminal and the second wireless headset 200.
- the terminal only needs to be connected to the first wireless headset 100, and the second wireless headset 200 only needs to be connected to the first wireless headset 100. Stay connected.
- the timing may be when it is detected that voice data needs to be transmitted, such as when a call event is received. It can also be when both wireless headphones are worn.
- the detection process may be that when the first wireless headset wants to send the first connection parameter information to the second wireless headset, the first wireless headset checks its connection status with the terminal (such as the BT connection status), The second wireless headset sends the first connection parameter information.
- the first wireless headset checks its connection status (such as the BT connection status) with the terminal and the second wireless headset, and determines that the connection status is normal. Then send the first connection parameter information to the second wireless headset.
- This embodiment does not limit the specific connection state checking method.
- the first wireless headset 100 sends the first connection parameter information to the second wireless headset 200.
- the off time of the first wireless headset MIC is not limited.
- the first wireless headset MIC may be turned off when an instruction to continue transmitting voice data is sent to the second wireless headset 200. It is also possible to turn off the first wireless headset MIC after the second wireless headset MIC is turned on.
- the first wireless headset 100 when it detects a preset event, it sends an instruction to continue transmitting voice data to the second wireless headset 200.
- the second wireless headset 200 when the second wireless headset 200 receives the instruction to continue transmitting voice data, it turns on the second wireless headset MIC, and uses the second wireless headset MIC to collect voice data.
- the following uses the TWS headset with a master wireless headset (referred to as the master headset) and a slave wireless headset (referred to as the slave headset) as an example to describe the above process in conjunction with FIG. 3 and FIG. 4:
- the master headset After the master and slave headsets establish a Bluetooth connection, the master headset checks its Bluetooth connection status with the mobile phone (ie, the BT connection status). If there is a Bluetooth connection between the master headset and the mobile phone at this time, the master headset compares the first connection parameter information with the mobile phone. Send to the slave headset (or the master headset checks the Bluetooth connection status between itself and the slave headset after the master headset establishes a Bluetooth connection with the phone. If there is a Bluetooth connection between the master headset and the slave headset at this time, the master headset sets it to the mobile phone's first connection parameter Information is sent to the headset);
- the master headset MIC works and the master headset uploads the voice data to the mobile phone.
- the slave headset is connected to the phone according to the master headset shared by the master headset. The parameters of the whole process monitor the communication process between the main headset and the mobile phone;
- the master headset MIC is turned off and the slave headset MIC is turned on.
- the slave headset packages the voice data according to the parameters of the master headset and the mobile phone communication (that is, the first connection parameter information) and uploads the voice data to the mobile phone.
- the call is seamless and there is no Bluetooth disconnection during the entire process.
- the present invention also provides a computer-readable storage medium.
- a computer program is stored on the computer-readable storage medium.
- the steps of the method for transmitting voice data according to the foregoing embodiment are implemented.
- the computer program when executed by the processor, when the second wireless headset receives the instruction to continue transmitting voice data, the second wireless headset MIC is used to collect voice data.
- the instruction to continue transmitting voice data is to detect that the first wireless headset is about to interrupt the voice data.
- a command generated after the transmitted preset event; the second wireless headset uses the first connection parameter information sent by the first wireless headset to transmit the voice data collected by the second wireless headset MIC to the terminal.
- the computer-readable storage medium may include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
- the medium may include: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
- connections mentioned in the above embodiments are all wireless connections, such as BT connections or BLE connections.
- Various embodiments in this application do not limit the connection process. For details, refer to the prior art.
- RAM random access memory
- ROM read-only memory
- electrically programmable ROM electrically erasable programmable ROM
- registers hard disks, removable disks, CD-ROMs, or in technical fields Any other form of storage medium is known.
Landscapes
- Engineering & Computer Science (AREA)
- Signal Processing (AREA)
- Acoustics & Sound (AREA)
- Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Health & Medical Sciences (AREA)
- Computer Security & Cryptography (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Telephone Function (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种语音数据的传输方法,涉及便携式收听设备技术领域,其中,第一无线耳机通过第一连接参数信息与终端建立通讯连接,第二无线耳机未与终端建立通讯连接,该方法包括:第二无线耳机接收到继续传输语音数据指令时,利用第二无线耳机MIC收集语音数据;其中,继续传输语音数据指令为检测到第一无线耳机将要中断语音数据传输的预设事件后产生的指令;第二无线耳机利用第一无线耳机发送的第一连接参数信息将第二无线耳机MIC收集的语音数据传输给终端;该方法能够实现语音数据不中断传输,提高用户体验。本发明还公开了一种无线耳机、TWS耳机以及计算机可读存储介质,具有上述有益效果。
Description
本申请要求于2018年6月6日提交中国专利局、申请号201810573674.9、申请名称为“一种语音数据的传输方法、无线耳机及TWS耳机”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及便携式收听设备技术领域,特别涉及一种语音数据的传输方法、无线耳机、TWS耳机以及计算机可读存储介质。
TWS(True Wireless Stereo)耳机由第一无线耳机以及第二无线耳机构成。目前,TWS耳机向相应终端传输语音数据时主要存在以下两种技术方案:
第一:TWS耳机中仅有一个无线耳机具有MIC,在需要向相应终端传输语音数据时,具有MIC的无线耳机传输语音数据。
第二:第一无线耳机以及第二无线耳机均具有MIC,在需要向相应终端传输语音数据时,首先选取第一无线耳机或第二无线耳机作为主无线耳机,其次通过主无线耳机传输语音数据。
上述两种方案在进行语音数据传输的过程中若传输语音数据的无线耳机不能继续传输该语音数据(例如传输语音数据的无线耳机被摘下)时,第一种方案则会造成语音数据传输中断或者直接切换到终端采集语音数据(即不使用MIC的无线耳机传输语音数据)。第二种方案则会造成语音数据传输中断或者需要先将另外一只无线耳机切换为主无线耳机后,在使用切换后主无线耳机传输语音数据(即需要经过主从切换,在主从切换过程中两个无线耳机会与终端断开连接)。即无论是第一种方案还是第二种方案都会造成语音数据传输的中断,进而影响用户体验。
发明内容
本发明的目的是提供一种语音数据的传输方法、无线耳机、TWS耳机以及计算机可读存储介质,能够实现语音数据不中断传输,提高用户体验。
为解决上述技术问题,本发明提供一种语音数据的传输方法,其中,第一无线耳机通过第一连接参数信息与终端建立通讯连接,第二无线耳机未与终端建立通讯连接,包括:
所述第二无线耳机接收到继续传输语音数据指令时,利用第二无线耳机MIC收集语音数据;其中,所述继续传输语音数据指令为检测到所述第一无线耳机将要中断语音数据传输的预设事件后产生的指令;
所述第二无线耳机利用所述第一无线耳机发送的所述第一连接参数信息将所述第二无线耳机MIC收集的语音数据传输给所述终端。
可选的,在所述第二无线耳机接收到继续传输语音数据指令之前,还包括:
接收所述第一无线耳机发送的所述第一连接参数信息。
可选的,所述第二无线耳机接收到继续传输语音数据指令时,利用第二无线耳机MIC接收语音数据,包括:
所述第二无线耳机接收到继续传输语音数据指令时,打开第二无线耳机MIC,并利用所述第二无线耳机MIC收集语音数据。
可选的,所述预设事件具体为所述第一无线耳机摘下。
可选的,所述第二无线耳机利用所述第一无线耳机发送的所述第一连接参数信息将所述第二无线耳机MIC收集的语音数据传输给所述终端,包括:
所述第二无线耳机利用所述第一连接参数信息对所述第二无线耳机MIC收集的语音数据进行组包,并在组包后传输给所述终端;其中,所述第一连接参数信息包括终端MAC地址、通讯时隙、包头信息。
本发明还提供一种无线耳机,包括:通讯接口、MIC、存储器、处理器;其中,所述存储器,用于存储计算机程序,所述处理器用于执行所述计算机程序时实现如上述所述的语音数据的传输方法的步骤。
本发明还提供一种TWS耳机,包括均具有MIC的第一无线耳机和第二无线耳机,其中,所述第一无线耳机通过第一连接参数信息与终端建立通讯连接,所述第二无线耳机未与终端建立通讯连接;
所述第二无线耳机接收到继续传输语音数据指令时,利用第二无线耳机MIC收集语音数据;并利用所述第一无线耳机发送的所述第一连接参数信息将所述第二无线耳机MIC收集的语音数据传输给所述终端;其中,所述继续传输语音数据指令为检测到所述第一无线耳机将要中断语音数据传输的预设事件后产生的指令。
可选的,所述第一无线耳机通过所述第一连接参数信息与所述终端建立通讯连接后,将所述第一连接参数信息发送至所述第二无线耳机。
可选的,所述第一无线耳机检测到所述预设事件时,向所述第二无线耳机发送所述继续传输语音数据指令。
可选的,所述第二无线耳机接收到所述继续传输语音数据指令时,打开所述第二无线耳机MIC,并利用所述第二无线耳机MIC收集语音数据。
本发明还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述所述的语音数据的传输方法的步骤。
本发明所提供的一种语音数据的传输方法,其中,第一无线耳机通过第一连接参数信息与终端建立通讯连接,第二无线耳机未与终端建立通讯连接,该方法包括:第二无线耳机接收到继续传输语音数据指令时,利用第二无线耳机MIC收集语音数据;其中,继续传输语音数据指令为检测到第一无线耳机将要中断语音数据传输的预设事件后产生的指令;第二无线耳机利用第一无线耳机发送的第一连接参数信息将第二无线耳机MIC收集的语音数据传输给终端。
可见,该方法在第一无线耳机将要中断向终端传输语音数据时,会将与终端的第一连接参数信息发送给第二无线耳机,使得第二无线耳机能够根据该第一连接参数信息继续向终端传输语音数据;即第二无线耳机直接根据已有的第一连接参数信息实现与终端的数据交互,从而实现语音数据不中断传输,提高用户体验;避免现有技术中遇到需要中断语音数据传输的情形时,需要首先进行主从切换,再由切换后的主无线耳机与终端建立连接,并通过该连接继续传输语音数据的繁琐过程,且避免了由于主从切换导致的无线耳机与终端存在的断连情况;本发明还提供了一种无线耳机、TWS耳机以及计算机可读存储介质,具有上述有益效果,在此不再赘述。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本发明实施例所提供的语音数据的传输方法的流程图;
图2为本发明实施例所提供的TWS耳机结构框图;
图3为本发明实施例所提供的TWS耳机两个耳机都处于工作状态下连接示意图;
图4为本发明实施例所提供的TWS耳机中从耳机工作主耳机摘下的连接示意图。
为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
现有技术中当主无线耳机需要中断向终端传输语音数据时(如通话过程中摘下第一无线耳机),首先需要进行主从切换,再由切换后的主无线耳机与终端建立连接,并通过该连接继续传输语音数据。该过程中存在主从切换操作,因此必然会存在一段时间内终端与主 无线耳机断开连接,并中断了语音数据的传输,进而降低用户体验。本实施例中在第一无线耳机不能继续传输语音数据时,第二无线耳机通过当前第一无线耳机与终端的连接信息,向终端传输语音数据。从而避免了主从切换过程,能够实现语音数据不中断传输,提高用户体验。具体请参考图1为本发明实施例所提供的语音数据的传输方法的流程图;其中,该方法可以包括:
S100、第二无线耳机接收到继续传输语音数据指令时,利用第二无线耳机MIC收集语音数据;其中,继续传输语音数据指令为检测到第一无线耳机将要中断语音数据传输的预设事件后产生的指令。
本实施例中的第一无线耳机是指当前与终端无线连接的无线耳机,也可以理解为未发生预设事件之前与终端无线连接,并向终端上传语音数据的无线耳机。第二无线耳机是指当前未与终端无线连接的无线耳机。具体的,第一无线耳机通过第一连接参数信息与终端建立通讯连接,第二无线耳机未与终端建立通讯连接。
具体的,该步骤的主要目的是在第一无线耳机将要中断语音数据传输时,利用第二无线耳机MIC收集需要继续传输的语音数据,以便后续第二无线耳机利用第一连接参数信息将第二无线耳机MIC收集的语音数据传输给终端,以实现对收集的语音数据持续不中断的传输。
本实施例并不对预设事件的具体内容进行限定,用户可以根据实际情况进行设定。例如,可以是第一无线耳机摘下,也可以是第一无线耳机电量过低。本实施也不限定预设事件的数量,例如仅设置一个预设事件,如第一无线耳机摘下;当然也可以设置两个预设事件,如第一预设事件为第一无线耳机摘下,第二预设事件为第一无线耳机电量低于第一阈值,此时检测到任意一个预设事件时都会生成继续传输语音数据指令。进一步,本实施例并不限定检测预设事件的检测方式,用户可以根据设置的预设事件的具体内容确定对应的检测方式。例如当预设事件为第一无线耳机摘下,则可以是通过检测第一无线耳机从佩戴状态变换到未佩戴状态,则确定出现预设事件。本实施例并不限定检测预设事件的执行主体,例如可以是第一无线耳机,也可以是第二无线耳机。具体的,当第二无线耳机获取到第一连接参数信息,可以利用第一连接参数信息检测第一无线耳机与终端的通信过程,进而可以通过确定通信过程是否正常来确定是否产生预设事件。通常情况下,为了预设事件检测的准确性和可靠性,利用第一无线耳机检测其是否产生预设事件,当检测到第一无线耳机产生预设事件时生成继续传输语音数据指令,并将该继续传输语音数据指令发送给第二无线耳机。
其中,本实施例中并不对继续传输语音数据指令的具体形式进行限定,例如继续传输语音数据指令可以是一个特定的高电平或低电平;或者是一小段数据代码;或者是一个标识等,用户可以根据实际情况确定所需形式。
本实施例中第二无线耳机在接收到继续传输语音数据指令时,利用第二无线耳机MIC收集语音数据。即利用第二无线耳机上的MIC收集语音数据。本实施例中并不限定第二无 线耳机MIC打开的时机。例如第二无线耳机MIC在第二无线耳机处于工作状态时就一直处于打开状态;或者当第二无线耳机接收到继续传输语音数据指令时,立即打开第二无线耳机MIC。即只要保证在第二无线耳机接收到继续传输语音数据指令时需要利用第二无线耳机MIC收集语音数据时,第二无线耳机MIC处于打开状态即可。
进一步,为了降低第二无线耳机的功耗,在不需要第二无线耳机采集语音数据时使第二无线耳机MIC处于关闭状态。优选的,第二无线耳机接收到继续传输语音数据指令时,打开第二无线耳机MIC,并利用第二无线耳机MIC收集语音数据。
S110、第二无线耳机利用第一无线耳机发送的第一连接参数信息将第二无线耳机MIC收集的语音数据传输给终端。
其中,第一连接参数信息指的是当前第一无线耳机与终端的连接信息。本实施例并不对第一连接参数信息的内容进行限定,只要第一无线耳机与终端通过该第一连接参数信息可以建立连接实现数据交互即可。可选的,当第一连接参数信息包括终端MAC地址、通讯时隙、包头信息时,第二无线耳机利用第一无线耳机发送的第一连接参数信息将第二无线耳机MIC收集的语音数据传输给终端可以包括:第二无线耳机利用第一连接参数信息对第二无线耳机MIC收集的语音数据进行组包,并在组包后传输给终端。
第二无线耳机可以借助于第一连接参数信息与终端建立一个伪连接,即通过第一无线耳机与终端的连接通道向终端发送第二无线耳机MIC收集的语音数据,不需要第二无线耳机实际与终端建立一个新的连接通道。正是基于此,本实施例不需要首先将第一无线耳机与第二无线耳机进行主从切换,断开第一无线耳机与终端的连接通道,重新建立第二无线耳机与终端的连接通道(在该切换过程中无线耳机与终端断开连接,导致语音数据传输的中断),最终由第二无线耳机发送语音数据。而是第二无线耳机直接利用第一无线耳机与终端的连接通道,向终端继续发送语音数据,从而实现不中断的传输。从用户体验角度,并不存在无线耳机与终端的断连现象,用户可以持续通过第一连接参数信息对应的连接通道接收到语音数据。
本实施例并不限定第一无线耳机向第二无线耳机发送第一连接参数信息的时机。例如可以是在第一无线耳机与第二无线耳机建立连接之后,第一无线耳机就立即向第二无线耳机发送第一连接参数信息。也可以是在第一无线耳机向第二无线耳机发送继续传输语音数据指令的同时发送第一连接参数信息。即只要在第二无线耳机需要利用该第一连接参数信息向终端发送第二无线耳机MIC收集的语音数据时,获取到第一连接参数信息即可。进一步,为了保证第二无线耳机MIC收集的语音数据能够及时传输到终端,第一无线耳机越早向第二无线耳机发送该第一连接参数信息越好。优选的,在第二无线耳机接收到继续传输语音数据指令之前,接收第一无线耳机发送的第一连接参数信息。即在接收到继续传输语音数据指令之前(例如在第一无线耳机和第二无线耳机成功建立连接时),第二无线耳机已经获取到第一连接参数信息。例如,在TWS耳机的使用过程中,第一无线耳机与终端(如手机)建立连接后就可以进行数据的传输从而实现两者的数据的分享。此时第一无线耳机 就可以将其与终端的第一连接信息发送给第二无线耳机(前提是第一无线耳机与第二无线耳机已经建立无线连接),第二无线耳机就可以实时了解第一无线耳机与终端之间的数据传输过程了,也可以利用第一连接信息与终端建立伪连接,并通过该伪连接向终端发送数据,实现与终端的数据交互。
进一步,为了保证第二无线耳机成功接收到该第一连接参数信息,本实施例还可以建立反馈机制,通过反馈机制确保第二无线耳机成功接收到该第一连接参数信息。本实施例并不对具体反馈机制的执行方法进行限定。例如可以是在第二无线耳机成功接收到该第一连接参数信息时,向第一无线耳机发送成功接收回馈信息,当第一无线耳机接收到该信息时确定第二无线耳机成功接收到该第一连接参数信息。或者是第二无线耳机在指定时间内未接收到第一连接参数信息,则向第一无线耳机发送再次获取第一连接参数信息的请求,直到第二无线耳机成功接收到该第一连接参数信息。
下面结合无线耳机在通话场景下的应用实例说明上述过程:若用户同时佩戴第一无线耳机和第二无线耳机且第一无线耳机与手机建立蓝牙连接,此时语音通话上传(由无线耳机端上传到手机端)的音频数据(即语音数据)是由第一无线耳机MIC产生;若此时摘下第一无线耳机只佩戴第二无线耳机,则关掉第一无线耳机MIC并打开第二无线耳机MIC,此时语音通话上传的音频数据是由第二无线耳机MIC产生。第二无线耳机与手机之间没有蓝牙的连接,但是第二无线耳机获取了第一无线耳机与手机通信的第一连接参数信息(如手机MAC地址、通讯时隙、包头信息等信息),通过第一连接参数信息第二无线耳机可以与手机之间形成一个伪连接,第二无线耳机将音频数据上传到手机。
基于上述技术方案,本发明实施例提供的语音数据的传输方法与现有技术相比具有两个优点:首先,在需要中断语音数据传输时,第二无线耳机直接利用第一连接参数信息向终端继续发送采集的语音数据,而不需要第一无线耳机与第二无线耳机进行主从切换操作,仅仅是将工作的MIC由第一无线耳机MIC切换到第二无线耳机MIC,从而避免了主从切换导致的无线耳机与终端连接断开的情况。其次,第二无线耳机在接收到继续传输语音数据指令时,能够立即使用第一连接参数信息向终端传输语音数据,不中断语音数据的传输,不需要像现有技术那样从新建立第二无线耳机与终端的连接,获取第二连接参数信息,再利用第二连接参数信息发送语音数据,从而避免了由于新建信道带来的语音数据传输中断的问题。综上,本实施例能够实现语音数据传输的不中断,例如在使用TWS耳机进行通话的过程中摘下任何一个无线耳机,通话均不断开。
下面对本发明实施例提供的无线耳机、TWS耳机以及计算机可读存储介质进行介绍,下文描述的无线耳机、TWS耳机以及计算机可读存储介质与上文描述的语音数据的传输方法可相互对应参照。
本发明实施例还提供一种无线耳机,包括:通讯接口、MIC、存储器、处理器;其中,存储器,用于存储计算机程序,处理器用于执行计算机程序时实现上述实施例所述的语音 数据的传输方法的步骤。如处理器用于执行计算机程序时实现第二无线耳机接收到继续传输语音数据指令时,利用第二无线耳机MIC收集语音数据;其中,继续传输语音数据指令为检测到第一无线耳机将要中断语音数据传输的预设事件后产生的指令;第二无线耳机利用第一无线耳机发送的第一连接参数信息将第二无线耳机MIC收集的语音数据传输给终端。
请参考图2,图2为本发明实施例所提供的TWS耳机结构框图;其中,TWS(True Wireless Stereo)是真无线立体声意思,TWS耳机是指应用了TWS技术的耳机。具体的,TWS耳机包括均具有MIC的第一无线耳机100和第二无线耳机200,其中,第一无线耳机100通过第一连接参数信息与终端建立通讯连接,第二无线耳机200未与终端建立通讯连接。
第二无线耳机200接收到继续传输语音数据指令时,利用第二无线耳机MIC收集语音数据;并利用第一无线耳机100发送的第一连接参数信息将第二无线耳机MIC收集的语音数据传输给终端;其中,继续传输语音数据指令为检测到第一无线耳机100将要中断语音数据传输的预设事件后产生的指令。
其中,第一无线耳机100既要与终端连接也要与第二无线耳机200保持连接,而终端只需要与第一无线耳机100保持连接,第二无线耳机200也只需要与第一无线耳机100保持连接。
进一步,为了保证第一连接参数信息的准确性,需要在发送该第一连接参数信息时对建立的第一无线耳机与终端之间的连接进行检查以确保连接状态的可靠性。本实施例并不对连接状态检查的时机和方式进行限定,用户可以根据实际情况进行设定。例如时机可以是检测到需要传输语音数据时,例如接收到通话事件。也可以是两个无线耳机都处于佩戴状态时。例如检测过程可以是当第一无线耳机要向第二无线耳机发送第一连接参数信息时,第一无线耳机检查自身与终端的连接状态(如BT连接状态),在确定连接状态正常后再向第二无线耳机发送第一连接参数信息。或者是第一无线耳机要向第二无线耳机发送第一连接参数信息时,第一无线耳机分别检查自身与终端以及第二无线耳机的连接状态(如BT连接状态),在确定连接状态均正常后再向第二无线耳机发送第一连接参数信息。本实施例并不对具体的连接状态的检查方法进行限定。
基于上述实施例,优选的,第一无线耳机100通过第一连接参数信息与终端建立通讯连接后,将第一连接参数信息发送至第二无线耳机200。
具体的,本实施例中并不对第一无线耳机MIC的关闭时间进行限定,例如可以是在向第二无线耳机200发送继续传输语音数据指令时关闭第一无线耳机MIC。也可以是在第二无线耳机MIC开启后关闭第一无线耳机MIC。
基于上述任意实施例,第一无线耳机100检测到预设事件时,向第二无线耳机200发送继续传输语音数据指令。
基于上述任意实施例,第二无线耳机200接收到继续传输语音数据指令时,打开第二无线耳机MIC,并利用第二无线耳机MIC收集语音数据。
下面请结合图3以及图4,以具有主无线耳机(简称主耳机)和从无线耳机(简称从耳机)的TWS耳机为例说明上述过程:
1、主从耳机建立蓝牙连接后主耳机检查自身与手机的蓝牙连接状态(即BT连接状态),如果此时主耳机与手机存在蓝牙连接,则主耳机将其与手机的第一连接参数信息发送给从耳机(或者主耳机与手机建立蓝牙连接后主耳检查自身与从耳机的蓝牙连接状态,如果此时主耳机与从耳机存在蓝牙连接,则主耳机将其与手机的第一连接参数信息发送给从耳机);
2、TWS主从耳机同时使用过程中,如果发生语音通话事件,则主耳机MIC工作并由主耳机将语音数据上传到手机端,在此过程中从耳机根据主耳机分享的主耳机与手机连接的参数全程监听主耳机与手机的通信过程;
3、若此时摘下主耳机,则关闭主耳机MIC同时打开从耳机MIC,从耳机根据主耳机与手机通信的参数(即第一连接参数信息)对语音数据组包后上传到手机端,通话无缝隙进行且在整个过程中不存在蓝牙断开的过程。
本发明还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述实施例所述的语音数据的传输方法的步骤。如计算机程序被处理器执行时实现第二无线耳机接收到继续传输语音数据指令时,利用第二无线耳机MIC收集语音数据;其中,继续传输语音数据指令为检测到第一无线耳机将要中断语音数据传输的预设事件后产生的指令;第二无线耳机利用第一无线耳机发送的第一连接参数信息将第二无线耳机MIC收集的语音数据传输给终端。
该计算机可读存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
上述各个实施例中所说的连接均为无线连接,例如BT连接,或者是BLE连接。本申请中各个实施例并不对连接过程进行限定,具体可以参考现有技术。
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。
以上对本发明所提供的一种语音数据的传输方法、无线耳机、TWS耳机以及计算机可读存储介质进行了详细介绍。本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进和修饰,这些改进和修饰也落入本发明权利要求的保护范围内。
Claims (11)
- 一种语音数据的传输方法,其中,第一无线耳机通过第一连接参数信息与终端建立通讯连接,第二无线耳机未与终端建立通讯连接,其特征在于,包括:所述第二无线耳机接收到继续传输语音数据指令时,利用第二无线耳机MIC收集语音数据;其中,所述继续传输语音数据指令为检测到所述第一无线耳机将要中断语音数据传输的预设事件后产生的指令;所述第二无线耳机利用所述第一无线耳机发送的所述第一连接参数信息将所述第二无线耳机MIC收集的语音数据传输给所述终端。
- 根据权利要求1所述的语音数据的传输方法,其特征在于,在所述第二无线耳机接收到继续传输语音数据指令之前,还包括:接收所述第一无线耳机发送的所述第一连接参数信息。
- 根据权利要求1所述的语音数据的传输方法,其特征在于,所述第二无线耳机接收到继续传输语音数据指令时,利用第二无线耳机MIC接收语音数据,包括:所述第二无线耳机接收到继续传输语音数据指令时,打开第二无线耳机MIC,并利用所述第二无线耳机MIC收集语音数据。
- 根据权利要求1所述的语音数据的传输方法,其特征在于,所述预设事件具体为所述第一无线耳机摘下。
- 根据权利要求1-4任一项所述的语音数据的传输方法,其特征在于,所述第二无线耳机利用所述第一无线耳机发送的所述第一连接参数信息将所述第二无线耳机MIC收集的语音数据传输给所述终端,包括:所述第二无线耳机利用所述第一连接参数信息对所述第二无线耳机MIC收集的语音数据进行组包,并在组包后传输给所述终端;其中,所述第一连接参数信息包括终端MAC地址、通讯时隙、包头信息。
- 一种无线耳机,其特征在于,包括:通讯接口、MIC、存储器、处理器;其中,所述存储器,用于存储计算机程序,所述处理器用于执行所述计算机程序时实现如权利要求1至5任一项所述的语音数据的传输方法的步骤。
- 一种TWS耳机,包括均具有MIC的第一无线耳机和第二无线耳机,其中,所述第一无线耳机通过第一连接参数信息与终端建立通讯连接,所述第二无线耳机未与终端建立通讯连接,其特征在于,所述第二无线耳机接收到继续传输语音数据指令时,利用第二无线耳机MIC收集语音数据;并利用所述第一无线耳机发送的所述第一连接参数信息将所述第二无线耳机MIC收 集的语音数据传输给所述终端;其中,所述继续传输语音数据指令为检测到所述第一无线耳机将要中断语音数据传输的预设事件后产生的指令。
- 根据权利要求7所述的TWS耳机,其特征在于,所述第一无线耳机通过所述第一连接参数信息与所述终端建立通讯连接后,将所述第一连接参数信息发送至所述第二无线耳机。
- 根据权利要求7或8所述的TWS耳机,其特征在于,所述第一无线耳机检测到所述预设事件时,向所述第二无线耳机发送所述继续传输语音数据指令。
- 根据权利要求7所述的TWS耳机,其特征在于,所述第二无线耳机接收到所述继续传输语音数据指令时,打开所述第二无线耳机MIC,并利用所述第二无线耳机MIC收集语音数据。
- 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述的语音数据的传输方法的步骤。
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US17/055,008 US20210219041A1 (en) | 2018-06-06 | 2018-07-26 | Voice data transmission method, wireless earphone and tws earphone |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810573674.9A CN108718467B (zh) | 2018-06-06 | 2018-06-06 | 一种语音数据的传输方法、无线耳机及tws耳机 |
CN201810573674.9 | 2018-06-06 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2019232901A1 true WO2019232901A1 (zh) | 2019-12-12 |
Family
ID=63912691
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2018/097209 WO2019232901A1 (zh) | 2018-06-06 | 2018-07-26 | 一种语音数据的传输方法、无线耳机及tws耳机 |
Country Status (3)
Country | Link |
---|---|
US (1) | US20210219041A1 (zh) |
CN (1) | CN108718467B (zh) |
WO (1) | WO2019232901A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023005412A1 (zh) * | 2021-07-26 | 2023-02-02 | Oppo广东移动通信有限公司 | 录音方法、装置、无线耳机及存储介质 |
Families Citing this family (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108696784B (zh) * | 2018-06-06 | 2019-12-31 | 歌尔科技有限公司 | 一种无线耳机角色切换的方法、无线耳机及tws耳机 |
CN111050306A (zh) * | 2018-10-15 | 2020-04-21 | 北京轩辕联科技有限公司 | 用于蓝牙设备的扩展连接方法和扩展连接系统 |
CN109688513A (zh) * | 2018-11-19 | 2019-04-26 | 恒玄科技(上海)有限公司 | 无线主动降噪耳机及双主动降噪耳机通话数据处理方法 |
CN112913321B (zh) * | 2018-12-07 | 2022-12-27 | 华为技术有限公司 | 一种使用蓝牙耳机进行通话的方法、设备及系统 |
CN112806092B (zh) * | 2018-12-13 | 2023-07-28 | 华为技术有限公司 | 一种麦克风mic切换方法及设备 |
CN115175043A (zh) | 2018-12-24 | 2022-10-11 | 华为技术有限公司 | 应用于tws耳机单双耳切换的音频数据传输方法及设备 |
CN109831766B (zh) * | 2019-03-18 | 2022-03-11 | 恒玄科技(上海)股份有限公司 | 一种传输数据的方法、蓝牙设备组件及蓝牙通信系统 |
CN110381490B (zh) * | 2019-07-24 | 2022-04-22 | 恒玄科技(上海)股份有限公司 | 一种用于无线耳机的通信方法、无线耳机和无线设备 |
CN110944311B (zh) * | 2019-11-06 | 2023-07-28 | 泰凌微电子(上海)股份有限公司 | 一种分配无线耳机的时隙的方法及采用该方法的无线耳机 |
CN110839190B (zh) * | 2019-11-15 | 2022-01-07 | 歌尔股份有限公司 | 一种耳机佩戴检测方法、装置、耳机及可读存储介质 |
CN111063170B (zh) * | 2019-11-29 | 2021-12-07 | 歌尔股份有限公司 | Tws耳机防丢方法、tws耳机及计算机可读存储介质 |
CN110910886B (zh) * | 2019-12-17 | 2022-09-20 | 广州三星通信技术研究有限公司 | 人机交互方法及装置 |
CN112911566B (zh) | 2019-12-25 | 2022-06-07 | 华为终端有限公司 | 蓝牙通信方法和装置 |
CN111385349B (zh) * | 2020-02-07 | 2021-07-16 | 北京达佳互联信息技术有限公司 | 通信处理方法、装置、终端、服务器及存储介质 |
CN111526440B (zh) * | 2020-04-27 | 2022-03-01 | 歌尔科技有限公司 | 一种通话场景下tws耳机的主从耳切换方法、装置及介质 |
CN115150372B (zh) * | 2021-03-31 | 2024-03-15 | 海能达通信股份有限公司 | 一种防止呼叫中语音丢失的方法、通信系统及终端 |
CN115968054A (zh) * | 2021-10-12 | 2023-04-14 | Oppo广东移动通信有限公司 | 通信方法、装置、耳机组及计算机可读介质 |
CN114466283A (zh) * | 2022-02-08 | 2022-05-10 | 维沃移动通信有限公司 | 音频采集方法、装置、电子设备及外设组件方法 |
CN114666777B (zh) * | 2022-05-26 | 2022-07-29 | 成都市安比科技有限公司 | 一种蓝牙音频系统的带宽提升方法 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106878921A (zh) * | 2017-01-04 | 2017-06-20 | 佳禾智能科技股份有限公司 | 耳机,耳机与声音信号发出设备之间连接的方法以及装置 |
US20170195769A1 (en) * | 2016-01-05 | 2017-07-06 | Johnson Safety, Inc. | Wireless Speaker System |
CN107145330A (zh) * | 2017-04-26 | 2017-09-08 | 歌尔科技有限公司 | 一种连接双耳蓝牙耳机的方法和装置 |
CN107894881A (zh) * | 2017-10-18 | 2018-04-10 | 恒玄科技(上海)有限公司 | 蓝牙耳机的主从连接切换、通话监听和麦克切换的方法 |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080226112A1 (en) * | 2007-03-14 | 2008-09-18 | Chung-Hung Lin | Structure of cordless earphones |
CN107885478A (zh) * | 2017-09-21 | 2018-04-06 | 广东思派康电子科技有限公司 | 计算机可读存储介质、通信系统 |
-
2018
- 2018-06-06 CN CN201810573674.9A patent/CN108718467B/zh active Active
- 2018-07-26 US US17/055,008 patent/US20210219041A1/en not_active Abandoned
- 2018-07-26 WO PCT/CN2018/097209 patent/WO2019232901A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170195769A1 (en) * | 2016-01-05 | 2017-07-06 | Johnson Safety, Inc. | Wireless Speaker System |
CN106878921A (zh) * | 2017-01-04 | 2017-06-20 | 佳禾智能科技股份有限公司 | 耳机,耳机与声音信号发出设备之间连接的方法以及装置 |
CN107145330A (zh) * | 2017-04-26 | 2017-09-08 | 歌尔科技有限公司 | 一种连接双耳蓝牙耳机的方法和装置 |
CN107894881A (zh) * | 2017-10-18 | 2018-04-10 | 恒玄科技(上海)有限公司 | 蓝牙耳机的主从连接切换、通话监听和麦克切换的方法 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023005412A1 (zh) * | 2021-07-26 | 2023-02-02 | Oppo广东移动通信有限公司 | 录音方法、装置、无线耳机及存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN108718467A (zh) | 2018-10-30 |
CN108718467B (zh) | 2020-03-13 |
US20210219041A1 (en) | 2021-07-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019232901A1 (zh) | 一种语音数据的传输方法、无线耳机及tws耳机 | |
WO2021082875A1 (zh) | 主从蓝牙耳机切换的方法及装置、蓝牙耳机、系统 | |
US11751283B2 (en) | System and method for switching master and slave roles of devices for use in wireless communications | |
WO2019232912A1 (zh) | 一种无线耳机角色切换的方法、无线耳机及tws耳机 | |
WO2019237464A1 (zh) | 一种建立单线连接的方法、装置、无线耳机及充电盒 | |
CN108600892B (zh) | 一种升级方法、装置、无线耳机、tws耳机及充电盒 | |
CN109391926B (zh) | 无线音频设备的数据处理方法及无线音频设备 | |
CN111200769B (zh) | 一种用于蓝牙耳机设备的通信方法以及蓝牙耳机设备 | |
WO2021121289A1 (zh) | 蓝牙耳机的数据接收方法、装置、设备及存储介质 | |
CN111435844B (zh) | 双无线蓝牙通信音频数据更正方法、装置、设备及系统 | |
US20160219358A1 (en) | Wireless earbuds with reciprocating leader and follower configuration | |
CN101631156B (zh) | 一种终端控制蓝牙耳机有序连接的方法及系统 | |
CN109391724B (zh) | 实现双耳通话的方法、移动终端及双耳无线耳机 | |
WO2012142794A1 (zh) | 蓝牙配件配对蓝牙设备的方法及蓝牙配件 | |
CN112055349B (zh) | 一种无线通信方法及蓝牙设备 | |
CN111436043B (zh) | 双无线蓝牙通信网络的通信方法、装置、设备及系统 | |
US11374623B2 (en) | Connected isochronous stream swapping | |
WO2022161004A1 (zh) | 一种uart通信的波特率切换方法、装置及发起方终端 | |
US20200413456A1 (en) | Method for pairing and connecting secondary earphone with sound source device | |
EP3923608B1 (en) | Data transmission method between tws bluetooth devices and tws bluetooth device therefor | |
WO2019237463A1 (zh) | 一种建立bt连接的方法、无线耳机及tws耳机 | |
CN112437371B (zh) | Ble链路的切换方法、设备、耳机对、芯片及介质 | |
CN111436042A (zh) | 蓝牙耳机及其动态主从切换方法及装置和系统 | |
CN111669679A (zh) | 一种真无线蓝牙耳机电池均衡消耗的方法 | |
CN114866998B (zh) | 一种蓝牙连接方法及蓝牙设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18922040 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 18922040 Country of ref document: EP Kind code of ref document: A1 |