CN116600275A - Voice transmission method, terminal equipment and computer storage medium - Google Patents

Voice transmission method, terminal equipment and computer storage medium Download PDF

Info

Publication number
CN116600275A
CN116600275A CN202310369177.8A CN202310369177A CN116600275A CN 116600275 A CN116600275 A CN 116600275A CN 202310369177 A CN202310369177 A CN 202310369177A CN 116600275 A CN116600275 A CN 116600275A
Authority
CN
China
Prior art keywords
voice data
user terminal
data packet
earphone
single earphone
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310369177.8A
Other languages
Chinese (zh)
Inventor
何桂晓
吴海全
姜德军
迟欣
曹磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Grandsun Electronics Co Ltd
Shenzhen Feikedi System Development Co Ltd
Original Assignee
Shenzhen Grandsun Electronics Co Ltd
Shenzhen Feikedi System Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Grandsun Electronics Co Ltd, Shenzhen Feikedi System Development Co Ltd filed Critical Shenzhen Grandsun Electronics Co Ltd
Priority to CN202310369177.8A priority Critical patent/CN116600275A/en
Publication of CN116600275A publication Critical patent/CN116600275A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1829Arrangements specially adapted for the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/18Automatic repetition systems, e.g. Van Duuren systems
    • H04L1/1867Arrangements specially adapted for the transmitter end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R5/00Stereophonic arrangements
    • H04R5/033Headphones for stereophonic communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • H04W12/043Key management, e.g. using generic bootstrapping architecture [GBA] using a trusted network node as an anchor
    • H04W12/0431Key distribution or pre-distribution; Key agreement
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/068Authentication using credential vaults, e.g. password manager applications or one time password [OTP] applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Telephone Function (AREA)

Abstract

The application belongs to the technical field of communication, and provides a voice transmission method, terminal equipment and a computer storage medium, wherein the method is applied to a first single earphone of earphone equipment, the earphone equipment also comprises a second single earphone matched with the first single earphone, and the method comprises the following steps: when receiving a voice signal sent by a user, converting the voice signal into a voice data packet and establishing a target channel between the voice data packet and a user terminal; transmitting the voice data packet to the user terminal through the target channel; the user terminal is used for generating compensation data and transmitting the compensation data to the second single earphone when the voice data packet is incomplete; the second earphone is used for monitoring the target channel to obtain a voice data packet, and when receiving the compensation data, the second earphone integrates the compensation data and the voice data packet to obtain complete voice data. The application realizes high-efficiency intercom between two single earphone devices, and can ensure the safety and stability of data transmission of the earphone devices.

Description

Voice transmission method, terminal equipment and computer storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a voice transmission method, a terminal device, and a computer storage medium.
Background
With rapid development of mobile terminal technology and chip technology, the earphone market is rapidly developed, and particularly, the wireless blue-ear earphone market is developed. Part of Bluetooth earphone products can even realize stereophonic play of left and right channels, provide high-quality play tone quality for wireless earphone users while being convenient to wear, and therefore are heated by the wireless earphone users.
However, most of the bluetooth headsets still have the traditional purposes of listening to music or making a call, so that the bluetooth headsets have single functions; and there are some disadvantages in terms of security and stability of data transmission of the bluetooth headset.
Disclosure of Invention
The embodiment of the application provides a voice transmission method, terminal equipment and a computer storage medium, which enrich the functional purpose of a Bluetooth headset and improve the experience of a user in using the Bluetooth headset.
In a first aspect, an embodiment of the present application provides a voice transmission method, which is applied to a first single earphone of an earphone device, where the earphone device further includes a second single earphone paired with the first single earphone, and the method includes:
when receiving a voice signal sent by a user, converting the voice signal into a voice data packet and establishing a target channel with a user terminal;
transmitting the voice data packet to a user terminal through the target channel;
the user terminal is used for generating compensation data and transmitting the compensation data to the second single earphone when the voice data packet is incomplete;
the second single earphone is used for:
monitoring the target channel, and acquiring the voice data packet to acquire voice data from the voice data packet;
and integrating the compensation data with the voice data packet when the compensation data is received so as to obtain complete voice data.
In a possible implementation manner of the first aspect, the establishing a target channel with the user terminal when receiving a voice signal sent by the user includes:
when a voice signal sent by a user is received, acquiring the amplitude of the voice signal;
and comparing the amplitude with a preset amplitude intensity, and if the amplitude is larger than the preset amplitude intensity in a continuous preset period, sending a matching request to a user terminal so as to establish a target channel between the first single earphone and the user terminal.
In a possible implementation manner of the first aspect, the sending a matching request to a user terminal to establish a target channel between the first single earphone and the user terminal includes:
and sending a first key to be verified to the user terminal, so that the user terminal matches the first key to be verified with a target key, and if the matching is successful, a target channel between the first single earphone and the user terminal is established.
In a possible implementation manner of the first aspect, the method further includes:
and receiving a second key to be verified sent by the second single earphone, matching the second key to be verified with the target key, and if the matching is successful, enabling the second single earphone to monitor the target channel.
In a second aspect, an embodiment of the present application provides another voice transmission method, applied to a second single earphone of an earphone device, where the earphone device further includes a first single earphone paired with the second single earphone, and the method includes:
monitoring a target channel, acquiring a voice data packet, and acquiring voice data from the voice data packet; the target channel is a channel established with a user terminal when the first single earphone receives a voice signal sent by a user; the voice data packet is obtained by converting the voice signal through the first single earphone;
and when the voice data packet is detected to be incomplete, the compensation data sent by the user terminal is received, and the compensation data and the voice data packet are integrated to obtain complete voice data.
The first single earphone is used for sending the voice data packet to a user terminal through the target channel;
and the user terminal is used for generating compensation data and transmitting the compensation data to the second single earphone when the voice data packet is incomplete.
In a possible implementation manner of the second aspect, the acquiring voice data from the voice data packet specifically includes:
analyzing the voice data packet to obtain original voice data and a time stamp corresponding to the original voice data;
when detecting that the voice data packet is incomplete, when receiving the compensation data sent by the user terminal, integrating the compensation data with the voice data packet to obtain complete voice data, including:
judging whether the voice data packet has lost data or not based on the time stamp, if so, sending a target time stamp corresponding to the lost data to the first single earphone, so that the first single earphone sends the target time stamp to the user terminal through the target channel, and the user terminal generates and transmits compensation data according to the target time stamp;
and when receiving the compensation data sent by the user terminal, integrating the compensation data with the voice data packet to obtain complete voice data.
In a third aspect, the present application provides a further voice transmission method, applied to a user terminal, the method comprising:
when a first single earphone receives a voice signal sent by a user, responding to a first key to be verified sent by the first single earphone, matching the first key to be verified with a target key, if matching is successful,
establishing a target channel with the first single earpiece;
receiving a voice data packet transmitted by the first single earphone through the target channel, wherein the voice data packet is obtained based on the voice signal;
the first single earphone and the second single earphone share the target secret key, and the second single earphone is used for monitoring the target channel based on the target secret key so as to acquire voice data from the voice data packet.
In a possible implementation manner of the third aspect, the voice data packet includes original voice data and a timestamp corresponding to the original voice data, and the method further includes:
receiving a target time stamp transmitted by the first single earphone through the target transmission channel, wherein the target time stamp represents a time stamp corresponding to the lost data of the voice data packet;
and obtaining compensation data according to the target time stamp, and transmitting the compensation data to the second single earphone so that the second single earphone integrates the compensation data with the original voice data to obtain complete voice data.
In a fourth aspect, an embodiment of the present application provides a headset device comprising a single headset provided with a speaker, a microphone, a processor, a memory, and a computer program stored in the memory and executable on the processor; the processor, when executing the computer program, implements the steps of the method as provided in the first or second aspect above.
In a fifth aspect, an embodiment of the present application provides a user terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the method as provided in the third aspect above when executing the computer program.
In a sixth aspect, embodiments of the present application provide a computer storage medium, which is a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the methods as provided by the first, second and third aspects.
Compared with the prior art, the application has the beneficial effects that: the high-efficiency intercom between the two single earphone devices is realized, and the safety and stability of data transmission of the earphone devices can be ensured.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a structure of a single earphone of an earphone device according to an embodiment of the present application;
fig. 2 is a schematic flow chart of a first embodiment of a voice transmission method according to the present application;
fig. 3 is a schematic flow chart of a second embodiment of a voice transmission method provided by the present application;
fig. 4 is a schematic flow chart of a third embodiment of a voice transmission method according to the present application;
fig. 5 is a schematic structural diagram of a user terminal to which the voice transmission method according to an embodiment of the present application is applicable.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
An embodiment of the present application provides an earphone device, as shown in fig. 1, which includes a pair of single earphones, the single earphones being provided with a speaker 10, a microphone 11, a processor 12, a memory 13, a bluetooth module 14, and a computer program 15 stored in the memory and operable on the processor, the microphone 11 (microphone/microphone) being for receiving a voice signal emitted by a user, converting the voice signal into an electrical signal; the loudspeaker 10 is used for playing the complete voice data; the processor 12 includes a digital signal processor (Embedded Digital Signal Processor, EDSP) that processes various information by a user.
In this embodiment, the single-ear device establishes a target channel with a user terminal, where the user terminal includes a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant (personal Digital assistant, PDA), a smart watch, a smart speaker, and other terminal devices supporting wireless communication. In a specific application, the earphone device preferably uses a bluetooth earphone, and the user terminal preferably uses an electronic device capable of performing short-range wireless communication through bluetooth technology, and the specific type of the bluetooth device is not limited in this embodiment.
In a specific application, the earphone device of the present embodiment preferably uses a real wireless stereo (True Wireless Stereo, TWS) earphone, where the TWS earphone device can realize stereo playing of left and right channels, and provides high-quality playing tone quality for wireless earphone users while being convenient to wear.
In this embodiment, the first single earphone is a master device connected to the user terminal, the second single earphone is a slave device in a listening state (the second single earphone is not connected to the user terminal), when the user a starts speaking, the single earphone worn by the user a is cut into the master device (the first single earphone), and the single earphone worn by the user B is used as a slave device (the second single earphone) to listen to the communication information sent by the single earphone of the user a to the user terminal, and then the communication information is played by the speaker of the slave device, the user B can listen to the speaking information of the user a, when the user B speaks, the single earphone worn by the user B is cut into the master device by the slave device, the single earphone worn by the user a is cut into the slave device by the master device, and then the single earphone worn by the user a listens to the channel of the user B, and plays the decoded single earphone by the slave device.
Referring to fig. 2, fig. 2 shows a schematic flow chart of a first embodiment of a voice transmission method according to the present application, which may be applied to a first single earphone of an earphone device of the foregoing embodiment, by way of example and not limitation, and the method includes the following steps:
step S10, when receiving the voice signal sent by the user, converting the voice signal into a voice data packet and establishing a target channel with the user terminal.
It should be noted that, the execution body of the embodiment is the first single earphone; the headphone device is described taking a TWS headphone device as an example;
the voice transmission method of the embodiment can realize that two users wear a single earphone to carry out short-distance real-time intercom respectively, is suitable for outdoor application scenes such as outdoor mountain climbing, which are inconvenient for face-to-face speaking, or is suitable for application scenes in noisy environments such as supermarkets and high-speed rails, which are difficult to communicate even if two users speak aloud. For example, when the A user starts speaking, the single earphone worn by the A user acquires the amplitude of a voice signal sent by the user when receiving the voice signal; and comparing the amplitude with a preset amplitude intensity, and if the amplitude is larger than the preset amplitude intensity in a continuous preset period, sending a matching request to a user terminal so as to establish a target channel between the first single earphone and the user terminal.
In a specific implementation, a set of voice recognition algorithms are arranged in the single earphone, and the voice recognition algorithms are stored in a memory of the single earphone; the microphone (microphone) of the single earphone a worn by the user A receives a voice signal sent by the user A, the voice signal is input to the EDSP processor of the single earphone a, the EDSP processor carries out noise reduction processing on the voice signal, after the noise reduction processing is finished, the single earphone a calls a voice recognition algorithm in a memory to detect the amplitude intensity of the signal, when the amplitude of continuous 0.5s (continuous preset time period) exceeds the preset amplitude intensity, the single earphone judges that the user A starts to input voice (initiates an intercom mode request) and requests to establish target channel connection with the user terminal, and the single earphone a worn by the user A is the main equipment of earphone equipment, namely a first single earphone;
it should be noted that, the preset amplitude intensity may be set according to an actual situation, and the duration of the continuous preset period may also be set according to an actual situation; in addition, if the amplitude of the voice signal of the user A is smaller than the preset amplitude intensity within the continuous preset duration (such as 2 seconds continuously), the user A is judged to finish voice input, and the first single earphone can be in a dormant state, so that electric quantity is saved.
Meanwhile, the EDSP processor converts the voice signal into a voice data packet, and then proceeds to step S20:
step S20, the voice data packet is sent to a user terminal through the target channel; the second single earphone is used for monitoring the target channel, acquiring the voice data packet and acquiring voice data from the voice data packet;
it should be noted that, in this embodiment, after the first single earphone (master device) and the target terminal establish the target channel to complete pairing, the first single earphone will transmit the voice data packet to the user terminal, and since the first single earphone and the second single earphone (slave device) pair successfully through bluetooth, the first single earphone synchronizes the target key paired with the user terminal to the second single earphone (slave device), the second single earphone starts to monitor the communication between the first single earphone (master device) and the target terminal by using the target key, and the TWS earphone device only connects the first single earphone (master device) and the target terminal, and the second single earphone (slave device) does not establish a communication connection with the target terminal.
In a specific implementation, a single earphone a worn by an A user is cut into a master device (a first single earphone), a single earphone B worn by a B user is used as a slave device (a second single earphone) to monitor communication information sent by the A user to a target terminal, the slave device B decodes the communication information and then plays the communication information by a loudspeaker of the slave device, and an intercom mode between the two single earphones is realized, so that the B user can clearly hear speaking information of the A user under the condition of not being interfered by external environment, and communication information transmitted by the earphone device in the intercom mode is safer. In addition, the technical scheme of the embodiment is more intelligent compared with the conventional scheme of the Bluetooth headset.
Further, in this embodiment, the user terminal is further configured to generate, when the voice data packet is incomplete, compensation data and transmit the compensation data to the second headset;
the second single earphone is further configured to:
and integrating the compensation data with the voice data packet when the compensation data is received so as to obtain complete voice data.
It can be understood that, the voice data packet has a time stamp, the user terminal stores the time stamp and the voice data corresponding to the time stamp, when the second single earphone monitors that the voice data is lost (for example, when the time stamp is lost, the voice data corresponding to the target time stamp with the time stamp is used as the voice data to be supplemented), the second single earphone communicates with the first single earphone to inform the other party that the data packet is lost, the first single earphone requires the target terminal to re-issue the compensation data (time stamp) to the second single earphone, the second single earphone obtains the data packet after and before the issued compensation data to integrate, decodes and outputs the integrated data packet, and thus the data packet is more complete.
In one embodiment, to ensure the security of voice data transmission between bluetooth headsets,
the first single earphone sends a matching request to a user terminal to establish a target channel between the first single earphone and the user terminal, and the method comprises the following steps:
and the first single earphone sends a first key to be verified to the user terminal, so that the user terminal matches the first key to be verified with a target key, and if the matching is successful, a target channel between the first single earphone and the user terminal is established.
Correspondingly, the method further comprises the steps of:
and the first single earphone receives a second key to be verified sent by the second single earphone, matches the second key to be verified with the target key, and enables the second single earphone to monitor the target channel if the matching is successful.
It can be understood that, in order to ensure the security of voice transmission, the hostile force is prevented from intercepting and cracking own voice transmission information, so that the embodiment of the application forms the TWS Bluetooth headset device and the user terminal (such as a mobile phone) into an intercom system, the headset device and the user terminal share the target secret key, other communication devices are prevented from acquiring signals in the target channel, and the data transmission security is ensured.
Referring to fig. 3, fig. 3 is a schematic flow chart of a second embodiment of a voice transmission method according to the present application, which is by way of example and not limitation. The first embodiment of the above-described voice transmission method describes that the a user speaks, the B user listens to the speech of the a user, the single earphone worn by the a user is cut into the master device (first single earphone), and the single earphone worn by the B user serves as the slave device (second single earphone); in practical application, the single earphone worn by a single user can be switched between the master device and the slave device at any time, and the second embodiment of the voice transmission method is applied to the second single earphone of the earphone device in the above embodiment, and the method is described by taking the single earphone of the user B being switched from the slave device to the master device and the single earphone of the user a being switched from the master device to the slave device as an example, and includes the following steps:
step S01, monitoring a target channel, acquiring the voice data packet, and acquiring voice data from the voice data packet; the target channel is a channel established with a user terminal when the first single earphone receives a voice signal sent by a user; the voice data packet is obtained by converting the voice signal through the first single earphone;
in this embodiment, the single earphone of the B user is switched from the slave device to the master device, and the single earphone of the a user is switched from the master device to the slave device, that is, the B user speaks, and the a user listens to the speech of the B user. The execution main body of the embodiment is a second single earphone worn by the user A;
in a specific application, the second single earphone analyzes the voice data packet to obtain original voice data and a time stamp corresponding to the original voice data;
in this embodiment, when the B user starts speaking, when the single earphone B worn by the B user receives a voice signal sent by the user, the single earphone B is used as a first single earphone (master device) to establish a target channel with a target terminal to complete pairing; then, the first single earphone transmits the voice data packet to the user terminal, and as the first single earphone and the single earphone a worn by the user a are successfully paired through bluetooth (the single earphone a is used as a second single earphone, namely, a slave device), the first single earphone synchronizes a target secret key paired with the user terminal to the second single earphone (slave device), the second single earphone starts to monitor communication between the first single earphone (master device) and the target terminal by using the target secret key, the TWS earphone device only has the first single earphone (master device) connected with the target terminal, and the second single earphone (slave device) does not establish communication connection with the target terminal.
In a specific application, when the user B speaks, the single earphone B worn by the user B is switched to the master device (the first single earphone) by the slave device, and the single earphone a worn by the user a is switched to the slave device (the second single earphone) by the master device, the single earphone a monitors communication information sent by the user B to the target terminal, and the single earphone a decodes the communication information and plays the communication information by the loudspeaker of the communication information, so that an intercom mode between the two single earphones is realized, and thus, the user a can not only clearly hear the speaking information of the user B under the condition of not being interfered by external environment, but also enable the communication information transmitted by the earphone device in the intercom mode to be safer.
Step S02, when detecting that the voice data packet is incomplete, when receiving the compensation data sent by the user terminal, integrating the compensation data with the voice data packet to obtain complete voice data; the first single earphone is used for sending the voice data packet to a user terminal through the target channel; and the user terminal is used for generating compensation data and transmitting the compensation data to the second single earphone when the voice data packet is incomplete.
Specifically, the second Shan Erji judges whether the voice data packet has lost data based on the timestamp, if so, a target timestamp corresponding to the lost data is sent to the first single earphone, so that the first single earphone sends the target timestamp to the user terminal through the target channel, and the user terminal generates and transmits compensation data according to the target timestamp;
and finally, when receiving the compensation data sent by the user terminal, integrating the compensation data with the voice data packet to obtain complete voice data, wherein the second single earphone can play the complete voice data through a loudspeaker of the second single earphone.
It can be understood that, the voice data packet has a time stamp, the user terminal stores the time stamp and the voice data corresponding to the time stamp, when the second single earphone monitors that the voice data is lost (for example, when the time stamp is lost, the voice data corresponding to the target time stamp with the time stamp is used as the voice data to be supplemented), the second single earphone communicates with the first single earphone to inform the other party that the data packet is lost, the first single earphone requires the target terminal to re-issue the compensation data (time stamp) to the second single earphone, the second single earphone acquires the data packet after and before the issued compensation data to integrate, decodes and outputs the integrated data packet, so that the data packet is more complete, and the acquired voice signal is more stable.
Referring to fig. 4, fig. 4 shows a flowchart of a third embodiment of a voice transmission method provided by the present application, by way of example and not limitation, where the present embodiment is applied to a user terminal, and the method includes:
step S010, when a first single earphone receives a voice signal sent by a user, responding to a first key to be verified sent by the first single earphone, matching the first key to be verified with a target key, and if matching is successful, establishing a target channel with the first single earphone;
it should be noted that, the execution body of the embodiment is the user terminal; the user terminal takes a smart phone as an example for explanation; the smart phone can be loaded with an APP (Application program) corresponding to the Bluetooth headset equipment; the APP stores the target secret key and the corresponding encryption and decryption algorithm.
In a specific application, two single headphones of the headphone device need to be paired with the user terminal in advance for bluetooth communication, so that the headphone device and the user terminal can share the target secret key.
Specifically, taking a scene that two users shop in a supermarket as an example, a user A uses TWS earphone equipment to be connected with a mobile phone (user terminal) of the user A through Bluetooth, the user A uses two single earphones of the TWS earphone to listen to songs (playing sources are mobile phones) at the moment, and the connection established between the mobile phone and the TWS earphone is also always used for listening to songs; the user A and the user B want to shop separately in the supermarket, and the user A can give a single earphone to the user B, so that the user A and the user B wear the single earphone respectively; at this time, the single earphone of each of the user a and the user B can establish a transmission relationship through the bluetooth signal, the distance between the two single earphones can be determined through the bluetooth signal, if the distance between the two single earphones is greater than the preset human ear distance threshold range (namely, the range of the distance between the two ears of the human brain bag), one single earphone of the two single earphones sends a talkback mode entering request to the user terminal, and the target terminal receives the talkback mode entering request signal sent by the single earphone, so that the current earphone function of the target terminal is switched from the earphone mode to the talkback mode, the automatic switching function of the bluetooth earphone can be realized, and compared with the conventional mode that the bluetooth earphone needs a human to manually trigger keys on the earphone, the scheme is more intelligent.
Further, when the user A starts speaking, the single earphone a worn by the user A acquires the amplitude of the voice signal when receiving the voice signal sent by the user A; comparing the amplitude with preset amplitude intensity, if the amplitude is larger than the preset amplitude intensity within a continuous preset period, using a single earphone a as a main device (a first single earphone) to send a matching request to a user terminal, responding a first key to be verified sent by the first single earphone by the user terminal, matching the first key to be verified with a target key, and if matching is successful, establishing a target channel between the user terminal and the first single earphone;
step S020, receiving, by the target channel, a voice data packet transmitted by the first single earphone, where the voice data packet is obtained based on the voice signal; the first single earphone and the second single earphone share the target secret key, and the second single earphone is used for monitoring the target channel based on the target secret key so as to acquire voice data from the voice data packet.
In this embodiment, when it is determined that the single earphone a of the user a is determined to be the first single earphone (master device), the single earphone B of the user B is determined to be the second single earphone (slave device), and since the first single earphone and the second single earphone (slave device) are successfully paired through bluetooth, the first single earphone synchronizes the target key paired with the user terminal to the second single earphone (slave device), and the second single earphone starts to monitor communication between the first single earphone (master device) and the target terminal by using the target key, and only the first single earphone (master device) and the user terminal are connected to the earphone device, and the second single earphone (slave device) does not establish communication connection with the target terminal.
In a specific implementation, the single earphone B worn by the B user is used as a slave device (a second single earphone) to monitor communication information sent by the a user to the target terminal, and the single earphone B decodes the communication information and then plays the communication information by a loudspeaker of the slave device, so that voice transmission conversation between the two single earphones through an intercom mode is realized, the B user can clearly hear speaking information of the a user under the condition of not being interfered by external environment, and communication information transmitted by the earphone device in the intercom mode is safer. And after entering the intercom mode, the user terminal only obtains the data which is required to be issued and issues the data, and for the conventional data, the user terminal does not issue the downlink data any more, releases the bandwidth to the uplink, and the communication signal is more stable in the intercom mode.
In an embodiment, the voice data packet includes original voice data and a timestamp corresponding to the original voice data, the method further comprising:
step S030, receiving a target timestamp transmitted by the first single earphone through the target transmission channel, where the target timestamp represents a timestamp corresponding to the lost data of the voice data packet;
step S040, obtaining compensation data according to the target timestamp, and transmitting the compensation data to the second single earphone, so that the second single earphone integrates the compensation data with the original voice data to obtain complete voice data.
It can be understood that, when the second single earphone monitors that the voice data is lost (for example, when the time stamp is lost, the voice data corresponding to the target time stamp with the time stamp is used as the voice data to be supplemented), the second single earphone communicates with the first single earphone to inform the other party that the data packet is lost, the first single earphone requires the user terminal to send the compensation data (time stamp) to the second single earphone again, the user terminal receives the target time stamp transmitted by the first single earphone through the target transmission channel, obtains the compensation data according to the target time stamp, and transmits the compensation data to the second single earphone, so that the second single earphone integrates the compensation data with the original voice data to obtain the complete voice data.
Fig. 5 is a schematic structural diagram of a user terminal to which the voice transmission method provided by the present application is applicable. As shown in fig. 5, the user terminal 5 of this embodiment includes: at least one processor 50 (only one shown in fig. 5), a memory 51 and a computer program 52 stored in the memory 51 and executable on the at least one processor 50, the processor 50 implementing the steps in any of the speech transmission method embodiments described above when executing the computer program 52.
The user terminal 5 includes a mobile phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant (personal Digital assistant, PDA), a smart watch, a smart speaker, and other terminal devices supporting wireless communication. In a specific application, the user terminal 5 has a bluetooth module, and the user terminal preferably uses an electronic device capable of short-range wireless communication by bluetooth technology, and the specific type of bluetooth device is not limited in this embodiment.
The user terminal may include, but is not limited to, a processor 50, a memory 51. It will be appreciated by those skilled in the art that fig. 5 is merely an example of the user terminal 5 and is not meant to be limiting as to the user terminal 5, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 50 may be a central processing unit (Central Processing Unit, CPU), the processor 50 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 50 may in some embodiments be a storage unit internal to the terminal device 5, such as a hard disk or a memory of the user terminal 5. The memory 50 may in other embodiments also be an external storage device of the user terminal 5, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which the user terminal 5 is equipped with. Further, the memory 50 may also include both an internal storage unit and an external storage device of the user terminal 5. The memory 50 is used for storing an operating system, application programs, boot loader (BootLoader), data, and other programs, etc., such as program code of the computer program, etc. The memory 50 may also be used to temporarily store data that has been output or is to be output.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform steps that enable the implementation of the method embodiments described above.
Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to a photographing device/terminal apparatus, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc. In some jurisdictions, computer readable media may not be electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. A method of voice transmission, characterized by a first single earpiece applied to an earpiece device, the earpiece device further comprising a second single earpiece paired with the first single earpiece, the method comprising:
when receiving a voice signal sent by a user, converting the voice signal into a voice data packet and establishing a target channel with a user terminal;
transmitting the voice data packet to a user terminal through the target channel;
the user terminal is used for generating compensation data and transmitting the compensation data to the second single earphone when the voice data packet is incomplete;
the second single earphone is used for:
monitoring the target channel, and acquiring the voice data packet to acquire voice data from the voice data packet;
and integrating the compensation data with the voice data packet when the compensation data is received so as to obtain complete voice data.
2. The method of claim 1, wherein the establishing a target channel with the user terminal upon receiving the voice signal from the user comprises:
when a voice signal sent by a user is received, acquiring the amplitude of the voice signal;
and comparing the amplitude with a preset amplitude intensity, and if the amplitude is larger than the preset amplitude intensity in a continuous preset period, sending a matching request to a user terminal so as to establish a target channel between the first single earphone and the user terminal.
3. The method of claim 1, wherein the sending a matching request to a user terminal to establish a target channel between the first single earpiece and the user terminal comprises:
and sending a first key to be verified to the user terminal, so that the user terminal matches the first key to be verified with a target key, and if the matching is successful, a target channel between the first single earphone and the user terminal is established.
4. A method as claimed in claim 3, wherein the method further comprises:
and receiving a second key to be verified sent by the second single earphone, matching the second key to be verified with the target key, and if the matching is successful, enabling the second single earphone to monitor the target channel.
5. A method of voice transmission, characterized by a second single earpiece applied to an earpiece device, the earpiece device further comprising a first single earpiece paired with the second single earpiece, the method comprising:
monitoring a target channel to acquire a voice data packet;
acquiring voice data from the voice data packet; user terminal
When the voice data packet is detected to be incomplete, the compensation data sent by the user terminal is received, and the compensation data and the voice data packet are integrated to obtain complete voice data;
wherein, the first single earphone is used for:
when receiving a voice signal sent by a user, converting the voice signal into a voice data packet, establishing a target channel between the voice data packet and a user terminal, and sending the voice data packet to the user terminal through the target channel;
and the user terminal is used for generating compensation data and transmitting the compensation data to the second single earphone when the voice data packet is incomplete.
6. The method of claim 5, wherein said obtaining voice data from said voice data packet comprises:
analyzing the voice data packet to obtain original voice data and a time stamp corresponding to the original voice data;
when detecting that the voice data packet is incomplete, when receiving the compensation data sent by the user terminal, integrating the compensation data with the voice data packet to obtain complete voice data, including:
judging whether the voice data packet has lost data or not based on the time stamp, if so, sending a target time stamp corresponding to the lost data to the first single earphone, so that the first single earphone sends the target time stamp to the user terminal through the target channel, and the user terminal generates and transmits compensation data according to the target time stamp;
and when receiving the compensation data sent by the user terminal, integrating the compensation data with the voice data packet to obtain complete voice data.
7. A voice transmission method, applied to a user terminal, the method comprising:
when a first single earphone receives a voice signal sent by a user, responding to a first key to be verified sent by the first single earphone, and matching the first key to be verified with a target key;
if the matching is successful, a target channel between the first single earphone and the second single earphone is established;
receiving a voice data packet transmitted by the first single earphone through the target channel, wherein the voice data packet is obtained based on the voice signal;
the first single earphone and the second single earphone share the target secret key, and the second single earphone is used for monitoring the target channel based on the target secret key so as to acquire voice data from the voice data packet.
8. The method of claim 7, wherein the voice data packet includes original voice data and a timestamp corresponding to the original voice data, the method further comprising:
receiving a target time stamp transmitted by the first single earphone through the target transmission channel, wherein the target time stamp represents a time stamp corresponding to the lost data of the voice data packet;
and obtaining compensation data according to the target time stamp, and transmitting the compensation data to the second single earphone so that the second single earphone integrates the compensation data with the original voice data to obtain complete voice data.
9. A terminal device, wherein when the terminal device is a single earphone, the single earphone is provided with a speaker, a microphone, a processor, a memory, and a computer program stored in the memory and executable on the processor; the processor, when executing the computer program, implementing the steps of the method according to any one of claims 1 to 6;
the terminal device being a user terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to claim 7 or 8 when executing the computer program.
10. A computer storage medium, which is a computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the method according to any one of claims 1 to 8.
CN202310369177.8A 2023-04-03 2023-04-03 Voice transmission method, terminal equipment and computer storage medium Pending CN116600275A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310369177.8A CN116600275A (en) 2023-04-03 2023-04-03 Voice transmission method, terminal equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310369177.8A CN116600275A (en) 2023-04-03 2023-04-03 Voice transmission method, terminal equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN116600275A true CN116600275A (en) 2023-08-15

Family

ID=87588807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310369177.8A Pending CN116600275A (en) 2023-04-03 2023-04-03 Voice transmission method, terminal equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN116600275A (en)

Similar Documents

Publication Publication Date Title
CN112868244B (en) Point-to-multipoint data transmission method and device
CN115426064B (en) Audio data synchronization method and equipment
US7747338B2 (en) Audio system employing multiple mobile devices in concert
WO2021008614A1 (en) Method for establishing communication connection and wearable device
US9577710B2 (en) Engaging terminal devices
CN108886647B (en) Earphone noise reduction method and device, master earphone, slave earphone and earphone noise reduction system
CN111447600B (en) Audio sharing method of wireless earphone, terminal equipment and storage medium
US10827455B1 (en) Method and apparatus for sending a notification to a short-range wireless communication audio output device
WO2021185077A1 (en) Audio processing method, apparatus and system
CN111629366B (en) Interaction method and device between Bluetooth devices, storage medium and electronic device
WO2020113587A1 (en) Method, device and system for calling using bluetooth earpiece
CN110460931A (en) Method, bluetooth headset and the storage medium of call are realized based on bluetooth headset
CN112771828B (en) Audio data communication method and electronic equipment
KR101910545B1 (en) Wearable wireless sound transducer
CN113784001B (en) Audio data playing method and device, electronic equipment and storage medium
CN111294777A (en) Control method and communication method of Bluetooth audio transmitter
CN113709906B (en) Wireless audio system, wireless communication method and equipment
CN115022766B (en) Audio data playing method and equipment
CN112866855A (en) Hearing aid method and system, earphone charging box and storage medium
CN116600275A (en) Voice transmission method, terminal equipment and computer storage medium
CN115175159B (en) Bluetooth headset playing method and equipment
EP4246982A1 (en) Sound effect adjustment method and electronic device
CN116671114A (en) Multimedia playback synchronization
CN114696961B (en) Multimedia data transmission method and equipment
KR20210055715A (en) Methods and systems for enhancing environmental audio signals of hearing devices and such hearing devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination