CN117792665A - Data transmission method, device and equipment - Google Patents

Data transmission method, device and equipment Download PDF

Info

Publication number
CN117792665A
CN117792665A CN202211202179.XA CN202211202179A CN117792665A CN 117792665 A CN117792665 A CN 117792665A CN 202211202179 A CN202211202179 A CN 202211202179A CN 117792665 A CN117792665 A CN 117792665A
Authority
CN
China
Prior art keywords
audio
data
distance information
feature points
distance
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
CN202211202179.XA
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.)
Guangzhou Kaidelian Software Technology Co ltd
Original Assignee
Guangzhou Kaidelian Software Technology 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 Guangzhou Kaidelian Software Technology Co ltd filed Critical Guangzhou Kaidelian Software Technology Co ltd
Priority to CN202211202179.XA priority Critical patent/CN117792665A/en
Publication of CN117792665A publication Critical patent/CN117792665A/en
Pending legal-status Critical Current

Links

Abstract

The invention relates to a data transmission method, a device and equipment, which are used for determining second distance information of two audio feature points corresponding to a first audio fragment according to a data value of first data to be transmitted, fusing the first data into audio features of a second audio fragment by adjusting the distance between the audio feature points of the first audio fragment, obtaining a second audio fragment which is not easy to crack under the condition of not changing the original audio feature attribute, transmitting the second audio fragment to second equipment, and acquiring the first data by the second equipment through the second audio fragment so as to improve the safety of data transmission.

Description

Data transmission method, device and equipment
Technical Field
The present invention relates to the field of data transmission, and in particular, to a data transmission method, apparatus, and device.
Background
In the prior art, when data is transmitted by utilizing sound waves, the data to be transmitted is generally encoded into audio signals with different frequencies, the audio signals are played by utilizing a first device, the audio signals are received by utilizing a second device, and the data to be transmitted is obtained by analyzing the frequencies of the audio signals, so that the safety of the data transmission is ensured.
However, in the above data transmission manner, the audio signal obtained based on the data encoding to be transmitted is easily intercepted and broken during the transmission process, and the security is low.
Disclosure of Invention
The embodiment of the application provides a data transmission method, device and equipment, which can effectively improve the safety of data based on sound waves. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a data transmission method, which is applied to a first device, and includes the following steps:
acquiring a first audio fragment and first data to be transmitted; the first data comprises at least one data value to be transmitted, the first audio fragment comprises at least two audio feature points, and each two audio feature points correspond to one data value;
determining second distance information of audio feature points in the first audio piece based on the at least one data value;
according to the second distance information, adjusting the distance between each audio feature point in the first audio segment to obtain a second audio segment;
and sending the second audio fragment to second equipment, so that the second equipment acquires first data by analyzing the second audio fragment.
In a second aspect, an embodiment of the present application provides a data transmission method, applied to a second device, including the following steps:
receiving a second audio fragment sent by the first device; the second audio segment is an audio segment obtained by the first device determining second distance information of at least two audio feature points in the first audio segment based on at least one data value to be transmitted of first data and adjusting the distance between the audio feature points of the first audio segment according to the second distance information;
and analyzing the second audio fragment to obtain first data.
In a third aspect, an embodiment of the present application provides a data transmission apparatus, including:
the first data acquisition module is used for acquiring a first audio fragment and first data to be transmitted; the first data comprises at least one data value to be transmitted, the first audio fragment comprises at least two audio feature points, and each two audio feature points correspond to one data value; a second distance information acquisition module, configured to determine second distance information of an audio feature point in the first audio segment based on the at least one data value;
the second audio segment obtaining module is used for adjusting the distance between the audio feature points in the first audio segment according to the second distance information to obtain a second audio segment;
and the sending module is used for sending the second audio fragment to second equipment so that the second equipment can acquire the first data by analyzing the second audio fragment.
In a fourth aspect, an embodiment of the present application provides a data transmission apparatus, including:
the receiving module is used for receiving the second audio fragment sent by the first equipment; the second audio segment is an audio segment obtained by the first device determining second distance information of at least two audio feature points in the first audio segment based on at least one data value to be transmitted of first data and adjusting the distance between the audio feature points of the first audio segment according to the second distance information;
and the analysis module is used for analyzing the second audio fragment to acquire first data.
In a fifth aspect, embodiments of the present application provide a data transmission device, including: a first device and a second device;
the first device includes a transmitting means, a first memory, a first processor, and a computer program stored in the first memory and executable by the first processor;
the transmitting means is configured to transmit the second audio clip to the second device;
the steps of implementing the data transmission method according to any one of the above when the first processor executes the computer program;
the second device comprises receiving means, a second memory, a second processor, and a computer program stored in the second memory and executable by the second processor;
the receiving device is used for receiving the second audio fragment;
the second processor, when executing the computer program, implements the steps of the data transmission method as described in any one of the above.
In the embodiment of the application, the second distance information of the two audio feature points corresponding to the first audio segment is determined according to the data value of the first data to be transmitted, the first data is fused into the audio feature of the second audio segment by adjusting the distance between the audio feature points of the first audio segment, the second audio segment which is not easy to crack is obtained under the condition that the original audio feature attribute is not changed, the second audio segment is transmitted to the second device, the second device can acquire the first data through the second audio segment, and the safety of the data transmission process is improved.
For a better understanding and implementation, the present invention is described in detail below with reference to the drawings.
Drawings
Fig. 1 is a flowchart of a data transmission method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of another data transmission method according to the first embodiment of the present invention;
fig. 3 is a flowchart of step S103 in the first embodiment of the present invention;
fig. 4 is a flowchart of step S103 in the first embodiment of the present invention;
fig. 5 is a flowchart of a data transmission method according to a second embodiment of the present invention;
fig. 6 is a schematic structural diagram of a data transmission device according to a third embodiment of the present invention;
fig. 7 is a schematic structural diagram of a data transmission device according to a fourth embodiment of the present invention;
fig. 8 is a schematic structural diagram of a data transmission device according to a fifth embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the embodiments of the present application, are within the scope of the embodiments of the present application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims. In the description of this application, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish between similar objects and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be.
Furthermore, in the description of the present application, unless otherwise indicated, "a number" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The first embodiment of the present application provides a data transmission method, which may be applied to a first device, where the first device may be provided with a transmitting device for transmitting a second audio segment to a second device, and the second device may be provided with a receiving device corresponding to the transmitting device.
The transmission of the second audio segment can be performed between the transmitting device and the receiving device based on a common data transmission mode such as sound waves or a network.
In this embodiment of the present application, the sending device may be a speaker for playing the second audio segment, the first device may be a device with an audio playing function, for example, a mobile phone, a tablet computer, a notebook computer, etc., the receiving device may be a microphone for receiving the second audio segment, and the second device may be a device with an audio collecting function, for example, a mobile phone, a tablet computer, a notebook computer, etc.
Specifically, referring to fig. 1, the method includes the steps of:
s101: acquiring a first audio fragment and first data to be transmitted;
the first data includes at least one data value to be transmitted, and the data value may be a character string, a number, or the like.
The first audio piece may be a certain audio piece selected by the user, for example a certain music piece.
The first audio segment includes at least two audio feature points, where each two audio feature points corresponds to one data value, where the audio feature points may be audio features of a time domain or a frequency domain in the first audio segment, specifically, the audio features may be audio features such as a spectrum centroid, a Mel-frequency cepstral coefficient (Mel-scaleFrequency Cepstral Coefficients, MFCC), a Bark-frequency cepstral coefficient (BFCC), a spectrum Entropy (Spectral energy), a spectrum Flux (Spectral Flux), and the like, where in the embodiment of the present application, the audio feature points are spectrum fluxes, and the spectrum fluxes are used to characterize a variation range of an audio frame relative to an amplitude of a previous audio frame.
Preferably, in the present application, an audio frame with a spectral flux greater than a preset threshold is selected to obtain an audio feature point, and an audio frame with a large adjacent frame frequency variation is selected to obtain an audio feature point, so that a subsequent second device can more easily parse and identify information of each audio feature point when receiving a second audio segment.
S102: determining second distance information of audio feature points in the first audio piece based on the at least one data value;
the second distance information is used for determining a distance between two audio feature points corresponding to the data value, and in this embodiment of the present application, the audio feature points may be time domain audio features of the first audio segment, and the distance between the two audio feature points may be a time interval between the two audio feature points.
The correspondence between the data value and the second distance information may be set according to the actual requirement of the user.
S103: according to the second distance information, adjusting the distance between each audio feature point in the first audio segment to obtain a second audio segment;
adjusting the distance between the audio feature points may include increasing or decreasing the distance between two audio feature points.
When the data value is a character string, the character string can be mapped into a corresponding numerical value based on a preset mapping rule of the character string and the numerical value, so that the size relation of the data value is conveniently compared, and the distance between the audio feature points is adjusted according to the size relation of the data value.
Through adjusting the distance between each audio feature point of first audio segment with first data fusion to the audio feature of second audio segment, for traditional direct according to the numerical value of waiting to transmit data encoding become the audio of different frequencies, this application is difficult to be broken and restore more through the mode with data fusion to audio in, simultaneously, the audio signal that traditional mode encoded is more harsher, and this application can not change the original attribute of each audio feature through the mode of adjusting the distance between the audio feature, the tone of audio segment does not change, with data perfect fusion to audio segment in to the second audio segment of production can keep original first audio segment's tone, it is more friendly to the people ear.
S104: and sending the second audio fragment to second equipment, so that the second equipment acquires first data by analyzing the second audio fragment.
Specifically, the second device obtains the first data from the second audio segment by analyzing the distance information between the audio feature points of the second audio segment, comparing the distance information with the distance information between the audio feature points of the first audio segment, and according to the distance information change value between the audio feature points and the mapping relation between the preset distance information change value and the data value.
In step S104, after the second device obtains the first data, a corresponding operation may be performed in the second device or a corresponding data process may be performed according to the content of the first data.
Specifically, as shown in fig. 2, in one embodiment, the first data may include address information of the first device; the second device further comprises the following steps after obtaining the first data by parsing the second audio fragment:
the second device obtains the address information of the first device according to the first data, responds to a connection establishment instruction, and establishes communication connection with the first device according to the address information of the first device.
The address information of the first device may include an IP address of the first device;
the connection establishment instruction may be a control instruction input by the user at the second device or a terminal connected to the second device.
After receiving the connection establishment instruction, the second device automatically establishes communication connection with the first device according to the address information of the first device, and a user can realize mutual communication between the first device and the second device without manually inputting the address information into the first device or the second device, so that the communication connection efficiency between the devices is improved.
The communication connection may be established by a common communication connection mode such as, but not limited to, a network connection, a bluetooth connection, etc.
It should be noted that the first device and/or the second device in the present application may be multiple, and the multiple devices may establish communication connection and implement mutual communication through the above manner in the present application, so as to improve the communication connection efficiency between multiple devices.
In the embodiment of the application, the second distance information of the two audio feature points corresponding to the first audio segment is determined according to the data value of the first data to be transmitted, the first data is fused into the audio feature of the second audio segment by adjusting the distance between the audio feature points of the first audio segment, the second audio segment which is not easy to crack is obtained under the condition that the original audio feature attribute is not changed, the second audio segment is transmitted to the second device, the second device can acquire the first data through the second audio segment, and the safety of data transmission is improved.
Specifically, as shown in fig. 3, in one embodiment, as the data value is larger, the distance between its corresponding two audio feature points may be longer;
according to the second distance information, the step of adjusting the distance between the audio feature points of the first audio segment specifically includes:
s1031: and when the second distance information is larger than the first distance information, increasing the distance between the two audio feature points corresponding to the data value. Alternatively, in another embodiment, the greater the data value, the shorter the distance between its corresponding two audio feature points;
as shown in fig. 4, according to the second distance information, the step of adjusting the distance between the audio feature points of the first audio segment specifically includes:
s1032: and when the second distance information is larger than the first distance information, reducing the distance between the two audio feature points corresponding to the data value. The increased distance value or the decreased distance value in the embodiment of the present application may be set according to the actual requirement of the user.
When the audio feature points are time-domain audio features of the first audio piece, adjusting the distance between the respective audio feature points may be adjusting a time interval between the respective audio feature points.
Specifically, the step of increasing the distance between the two audio feature points corresponding to the data value in step S1031 specifically includes;
determining a first playing coefficient of the first audio fragment according to the second distance information;
according to the first playing coefficient, the playing speed of the first audio fragment is adjusted to obtain a second audio fragment; wherein the total playing duration of the second audio segment is greater than the total playing duration of the first audio segment;
the first playing coefficient is used for playing speed of the first audio segment, the mapping relation between the first playing coefficient and the second distance information can be set according to actual requirements of a user, for example, the mapping relation can be set to be 1:n, for example, when the playing speed of the first audio segment is 1 times, the data value is 1, the distance between two audio feature points is increased by 1, the first playing coefficient is set to be n times, and n can be any value greater than 0 and less than 1.
In this embodiment of the present application, the first playing coefficient may be used to slow down the playing speed of the first audio segment, and after the playing speed of the first audio segment is slowed down, the total playing time of the second audio segment is longer than the total playing time of the first audio segment, and the distance between the two audio feature points is increased by means of slowing down the playing speed of the first audio segment.
Specifically, the step of reducing the distance between the two audio feature points corresponding to the data value in step S1032 specifically includes;
determining a second playing coefficient of the first audio fragment according to the second distance information;
according to the second playing coefficient, the playing speed of the first audio fragment is adjusted to obtain a second audio fragment; wherein the total playing duration of the second audio segment is smaller than the total playing duration of the first audio segment.
The second playing coefficient is used for accelerating the playing speed of the first audio segment, the mapping relation between the second playing coefficient and the second distance information can be set according to the actual requirement of the user, for example, the mapping relation can be set to be 1:n, for example, when the playing speed of the first audio segment is 1 times, the data value is 1, the distance between two audio feature points is increased by 1, the first playing coefficient is set to be n times, and n can be any value greater than 1.
In this embodiment of the present application, the second playing coefficient may be used to increase the playing speed of the first audio segment, and after the playing speed of the first audio segment is increased, the total playing duration of the second audio segment is smaller than the total playing duration of the first audio segment, so that the distance between the two audio feature points is reduced by increasing the playing speed of the first audio segment.
According to the method and the device, the playing speed of the first audio fragment is adjusted, the attribute of the audio characteristic of the adjusted second audio fragment is unchanged, the second audio fragment is similar to the original first audio fragment, and the second audio fragment is more friendly to the human ear and is not easy to identify and crack.
Anomalies such as errors or jitter are likely to occur during the transmission of the second audio piece, and errors are likely to occur in the received data, so that in a preferred embodiment the first data further comprises error correction codes;
after the acquisition of the at least one data value to be transmitted, the method further comprises the steps of: generating an error correction code based on the forward error correction algorithm from the at least one data value to be transmitted;
the forward error correction algorithm (Forward Error Correction, abbreviated as FEC) is a method for increasing the reliability of data communication, and performs coding processing according to a certain algorithm in advance before a signal is sent to a transmission channel, adds redundancy codes with the characteristics of the signal itself, and decodes the received signal according to a corresponding algorithm at a receiving end, so as to find out and correct an error code generated in the transmission process.
The step of the second device obtaining the first data by parsing the second audio segment specifically includes:
the second device obtains at least one data value and an error correction code by parsing the second audio segment;
determining whether an abnormal data value exists in the at least one data value according to the error correction code;
and correcting the abnormal data value based on a forward error correction algorithm and the error correction code if the abnormal data value exists. The error correcting code can be an error correcting code such as a Reed-Solomon code (RS code), a convolutional code and the like, the error correcting code is obtained by encoding a data value to be transmitted, and all the data values to be transmitted can be obtained by analyzing the error correcting code, so that the abnormal data value is corrected.
In the embodiment of the application, at least one data value to be transmitted is firstly generated into an error correction code between the transmission of the second audio fragment, after the second audio fragment is received, the second device firstly determines whether the first data is abnormal according to the error correction code, and when the first data is abnormal, the error correction code is used for correcting the abnormal data value, so that the accuracy of the received first data is ensured, and the anti-interference capability of data transmission is improved.
As shown in fig. 5, a second embodiment of the present application further provides a data transmission method, which may be applied to a second device, including the following steps:
s201: receiving a second audio fragment sent by the first device; the second audio segment is an audio segment obtained by the first device determining second distance information of at least two audio feature points in the first audio segment based on at least one data value to be transmitted of first data and adjusting the distance between the audio feature points of the first audio segment according to the second distance information;
s202: analyzing the second audio fragment to obtain first data;
the process of generating the second audio clip received in step S201 may refer to the description of the first embodiment of the present application, and will not be described herein.
In step S202, the first data may be acquired according to the distance between the audio feature points in the second audio segment.
Specifically, the step of analyzing the second audio segment to obtain the first data specifically includes:
acquiring second distance information of each audio feature point in the second audio segment and first distance information of each audio feature point in the first audio segment;
and analyzing the second audio fragment based on the first distance information and the second distance information to acquire first data.
The second device respectively acquires second distance information of each audio feature point in the second audio fragment and first distance information of each audio feature point in the first audio fragment, compares the second distance information with the first distance information, determines changed audio feature points and distance information change values, and acquires first data according to the distance information change values and a preset mapping relation between the distance information change values and data values. Wherein the distance information change value may be a difference between the first distance and the second distance determined according to the first distance information and the second distance information.
In one embodiment, when the first data is a plurality of binary data values, the data value is determined to be 1 when the distance between two audio feature points parsed into the second audio piece is greater than the distance between corresponding two audio feature points of the first audio piece, the data value is determined to be 0 when the distance between two audio feature points parsed into the second audio piece is less than the distance between corresponding two audio feature points of the first audio piece, and the audio feature points are determined not to carry the first data when the distance between two audio feature points parsed into the second audio piece is the same as the distance between corresponding two audio feature points of the first audio piece, thereby obtaining a plurality of binary data values in the first data.
In the embodiment of the application, the second device obtains the first data by analyzing the second audio segment, the second audio segment is the audio segment obtained by determining the second distance information of the two audio feature points corresponding to the data value based on the data value to be transmitted of the first data and adjusting the distance between the audio feature points of the first audio segment according to the second distance information, the second audio segment fuses the first data into the audio feature of the second audio segment, the first data is not easy to identify and crack in the transmission process, and the safety of the data transmission process is improved.
As shown in fig. 6, a third embodiment of the present application further provides a data transmission device, including:
a first data acquisition module 101, configured to acquire a first audio clip and first data to be transmitted; the first data comprises at least one data value to be transmitted, the first audio fragment comprises at least two audio feature points, and each two audio feature points correspond to one data value;
a second distance information obtaining module 102, configured to determine second distance information of an audio feature point in the first audio segment based on the at least one data value;
a second audio segment obtaining module 103, configured to adjust a distance between each audio feature point in the first audio segment according to the second distance information, so as to obtain a second audio segment;
and the sending module 104 is configured to send the second audio segment to a second device, so that the second device obtains the first data by parsing the second audio segment.
It should be noted that, in the data transmission apparatus provided in the foregoing embodiment, when the data transmission method is executed, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the data transmission device provided in the foregoing embodiment belongs to the same concept as the data transmission method in the first embodiment, and the implementation process is detailed in the first embodiment, which is not repeated here.
As shown in fig. 7, a fourth embodiment of the present application further provides a data transmission device, including:
a receiving module 201, configured to receive a second audio clip sent by the first device; the second audio segment is an audio segment obtained by the first device determining second distance information of at least two audio feature points in the first audio segment based on at least one data value to be transmitted of first data and adjusting the distance between the audio feature points of the first audio segment according to the second distance information;
and the parsing module 202 is configured to parse the second audio segment to obtain first data.
It should be noted that, in the data transmission apparatus provided in the foregoing embodiment, when the data transmission method is executed, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the data transmission device provided in the above embodiment belongs to the same concept as the data transmission method in the second embodiment, and the implementation process is detailed in the second embodiment, which is not repeated here.
The present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the data transmission method as described in any of the above.
The present application may take the form of a computer program product embodied on one or more storage media (including, but not limited to, magnetic disk storage, CD-ROM, optical storage, etc.) having program code embodied therein. Computer-readable storage media include both non-transitory and non-transitory, removable and non-removable media, and information storage may be implemented by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to: phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium, may be used to store information that may be accessed by the computing device.
As shown in fig. 8, the fifth embodiment of the present application further provides a data transmission apparatus 300, including: a first device 310 and a second device 320;
the first device 310 comprises a transmitting means 311, a first memory 312, a first processor 313 and a computer program stored in the first memory 312 and executable by the first processor 313;
the first processor 313 implements the steps of the data transmission method according to any one of the first embodiments when executing the computer program;
the second device 320 comprises receiving means 321, a second memory 322, a second processor 323 and a computer program stored in the second memory 322 and executable by the second processor 323;
the receiving device 321 is configured to receive the second audio segment;
the second processor 323 implements the steps of the data transmission method according to any one of the second embodiments when executing the computer program.
The transmitting means 311 may transmit the second audio clip to the second device 320 based on a common data transmission manner such as a sound wave or a network;
in this embodiment of the present application, the sending device 311 may be a speaker for playing the second audio clip, the first device 310 may be a device with an audio playing function, for example, a mobile phone, a tablet computer, a notebook computer, etc., the receiving device 321 may be a microphone for receiving the second audio clip, and the second device 320 may be a device with an audio capturing function, for example, a mobile phone, a tablet computer, a notebook computer, etc.
The present invention is not limited to the above-described embodiments, but, if various modifications or variations of the present invention are not departing from the spirit and scope of the present invention, the present invention is intended to include such modifications and variations as fall within the scope of the claims and the equivalents thereof.

Claims (10)

1. A data transmission method, applied to a first device, comprising the steps of:
acquiring a first audio fragment and first data to be transmitted; the first data comprises at least one data value to be transmitted, the first audio fragment comprises at least two audio feature points, and each two audio feature points correspond to one data value;
determining second distance information of audio feature points in the first audio piece based on the at least one data value;
according to the second distance information, adjusting the distance between each audio feature point in the first audio segment to obtain a second audio segment;
and sending the second audio fragment to second equipment, so that the second equipment acquires first data by analyzing the second audio fragment.
2. The method according to claim 1, wherein the step of adjusting the distance between the audio feature points of the first audio segment according to the second distance information specifically comprises:
when the second distance information is larger than the first distance information, increasing the distance between the two audio feature points corresponding to the data value;
or,
and when the second distance information is larger than the first distance information, reducing the distance between the two audio feature points corresponding to the data value.
3. The data transmission method according to claim 2, wherein the step of increasing the distance between two audio feature points corresponding to the data value specifically includes;
determining a first playing coefficient of the first audio fragment according to the second distance information;
according to the first playing coefficient, the playing speed of the first audio fragment is adjusted to obtain a second audio fragment; wherein the total playing duration of the second audio segment is greater than the total playing duration of the first audio segment;
the step of reducing the distance between two audio feature points corresponding to the data value specifically comprises the following steps;
determining a second playing coefficient of the first audio fragment according to the second distance information;
according to the second playing coefficient, the playing speed of the first audio fragment is adjusted to obtain a second audio fragment; wherein the total playing duration of the second audio segment is smaller than the total playing duration of the first audio segment.
4. The data transmission method according to claim 1, wherein the first data further includes an error correction code;
the step of the second device obtaining the first data by parsing the second audio segment specifically includes:
the second device obtains at least one data value and an error correction code by parsing the second audio segment;
determining whether an abnormal data value exists in the at least one data value according to the error correction code;
and correcting the abnormal data value based on a forward error correction algorithm and the error correction code if the abnormal data value exists.
5. The data transmission method according to any one of claims 1 to 4, wherein the first data includes address information of the first device; the second device further comprises the following steps after obtaining the first data by parsing the second audio fragment:
the second device obtains the address information of the first device according to the first data, responds to a connection establishment instruction, and establishes communication connection with the first device according to the address information of the first device.
6. A data transmission method, characterized by being applied to a second device, comprising the steps of:
receiving a second audio fragment sent by the first device; the second audio segment is an audio segment obtained by the first device determining second distance information of at least two audio feature points in the first audio segment based on at least one data value to be transmitted of first data and adjusting the distance between the audio feature points of the first audio segment according to the second distance information;
and analyzing the second audio fragment to obtain first data.
7. The method of claim 6, wherein the step of parsing the second audio segment to obtain the first data specifically comprises:
acquiring second distance information of each audio feature point in the second audio segment and first distance information of each audio feature point in the first audio segment;
and analyzing the second audio fragment based on the first distance information and the second distance information to acquire first data.
8. A data transmission apparatus, comprising:
the first data acquisition module is used for acquiring a first audio fragment and first data to be transmitted; the first data comprises at least one data value to be transmitted, the first audio fragment comprises at least two audio feature points, and each two audio feature points correspond to one data value;
a second distance information acquisition module, configured to determine second distance information of an audio feature point in the first audio segment based on the at least one data value;
the second audio segment obtaining module is used for adjusting the distance between the audio feature points in the first audio segment according to the second distance information to obtain a second audio segment;
and the sending module is used for sending the second audio fragment to second equipment so that the second equipment can acquire the first data by analyzing the second audio fragment.
9. A data transmission apparatus, comprising:
the receiving module is used for receiving the second audio fragment sent by the first equipment; the second audio segment is an audio segment obtained by the first device determining second distance information of at least two audio feature points in the first audio segment based on at least one data value to be transmitted of first data and adjusting the distance between the audio feature points of the first audio segment according to the second distance information;
and the analysis module is used for analyzing the second audio fragment to acquire first data.
10. A data transmission apparatus, comprising: a first device and a second device;
the first device includes a first memory, a first processor, and a computer program stored in the first memory and executable by the first processor;
the first processor implementing the steps of the data transmission method according to any one of claims 1-5 when executing the computer program;
the second device includes a second memory, a second processor, and a computer program stored in the second memory and executable by the second processor;
the second processor, when executing the computer program, implements the steps of the data transmission method according to any one of claims 6-7.
CN202211202179.XA 2022-09-29 2022-09-29 Data transmission method, device and equipment Pending CN117792665A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211202179.XA CN117792665A (en) 2022-09-29 2022-09-29 Data transmission method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211202179.XA CN117792665A (en) 2022-09-29 2022-09-29 Data transmission method, device and equipment

Publications (1)

Publication Number Publication Date
CN117792665A true CN117792665A (en) 2024-03-29

Family

ID=90384111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211202179.XA Pending CN117792665A (en) 2022-09-29 2022-09-29 Data transmission method, device and equipment

Country Status (1)

Country Link
CN (1) CN117792665A (en)

Similar Documents

Publication Publication Date Title
US11202300B2 (en) Method and system for adjusting sound quality, and host terminal
US20210409861A1 (en) Two-way wireless headphones
CN105814909B (en) System and method for feeding back detection
US8837257B2 (en) Acoustic modulation protocol
US9294834B2 (en) Method and apparatus for reducing noise in voices of mobile terminal
WO2019149047A1 (en) Method and device for associating equipment and account number, electronic device and system
CN112530444B (en) Audio coding method and device
CN105790854A (en) Short distance data transmission method and device based on sound waves
CN105722183A (en) Sharing method and apparatus for Wi-Fi (wireless fidelity) link information
US11122354B2 (en) Hearing sensitivity acquisition methods and devices
CN117792665A (en) Data transmission method, device and equipment
CN115243183A (en) Audio detection method, device and storage medium
CN110189763B (en) Sound wave configuration method and device and terminal equipment
US10997984B2 (en) Sounding device, audio transmission system, and audio analysis method thereof
WO2020019425A1 (en) Variable-length ultrasonic audio encoding method and decoding method
CN107197403A (en) A kind of terminal audio frequency parameter management method, apparatus and system
JP6610195B2 (en) Terminal device and communication method
JP6690200B2 (en) Terminal device, communication method
US11985467B2 (en) Hearing sensitivity acquisition methods and devices
CN113613145B (en) Noise reduction processing method and related device
US9124365B2 (en) Enhanced mobile device audio performance
JP4973376B2 (en) Apparatus for detecting basic period of speech and apparatus for converting speech speed using the basic period
CN109841222B (en) Audio communication method, communication apparatus, and storage medium
WO2022267754A1 (en) Speech coding method and apparatus, speech decoding method and apparatus, computer device, and storage medium
US20150327035A1 (en) Far-end context dependent pre-processing

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