Data transmission method, device and equipment
By adjusting the distance between audio feature points and fusing data into audio features, the problem of low data security in the prior art is solved, and higher data transmission security and human-ear-friendly audio clips are achieved.
Patent Information
- Application Number
- CN202211202179.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-29
- Publication Date
- 2025-04-01
- Estimated Expiration
- 2042-09-29
AI Technical Summary
When the prior art uses sound waves to transmit data, the encoded audio signal is easily intercepted and cracked during transmission, and has low security.
By obtaining the data to be transmitted and the audio feature points, adjusting the distance between the audio feature points, generating a second audio clip, and fusing the data into the audio feature, making it less likely to be cracked.
It improves the security of the data transmission process, making it less likely to be recognized and cracked during the transmission process, while maintaining the audio clips of the original tone are friendly to the human ear.
Smart Images

Figure CN117792665B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data transmission, and in particular to a data transmission method, device and equipment. Background Art
[0002] When using sound waves to transmit data, the prior art usually encodes the data to be transmitted into audio signals of different frequencies, uses a first device to play the audio signal, uses a second device to receive the audio signal and obtains the data to be transmitted by analyzing the frequency of the audio signal to ensure the security of the transmitted data.
[0003] However, in the above data transmission method, the audio signal obtained based on the encoding of the data to be transmitted can be easily intercepted and cracked during the transmission process, and the security is low. Summary of the invention
[0004] The embodiments of the present application provide a data transmission method, device and apparatus, which can effectively improve the security of data based on sound waves. The technical solution is as follows:
[0005] 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:
[0006] Acquire a first audio segment and first data to be transmitted, wherein the first data includes at least one data value to be transmitted, and the first audio segment includes at least two audio feature points, and every two audio feature points correspond to one data value;
[0007] Determining second distance information of an audio feature point in the first audio segment based on the at least one data value;
[0008] 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;
[0009] The second audio segment is sent to the second device, so that the second device obtains the first data by parsing the second audio segment.
[0010] In a second aspect, an embodiment of the present application provides a data transmission method, which is applied to a second device and includes the following steps:
[0011] Receive a second audio segment sent by a first device; wherein the second audio segment is an audio segment obtained by adjusting the distance between the audio feature points of the first audio segment according to the second distance information 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 the first data;
[0012] The second audio segment is parsed to obtain first data.
[0013] In a third aspect, an embodiment of the present application provides a data transmission device, including:
[0014] A first data acquisition module, configured to acquire a first audio segment and first data to be transmitted, wherein the first data includes at least one data value to be transmitted, and the first audio segment includes 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 the audio feature points in the first audio segment based on the at least one data value;
[0015] A second audio segment acquisition module, configured to adjust the distance between the audio feature points in the first audio segment according to the second distance information to obtain a second audio segment;
[0016] The sending module is used to send the second audio segment to the second device, so that the second device obtains the first data by parsing the second audio segment.
[0017] In a fourth aspect, an embodiment of the present application provides a data transmission device, including:
[0018] a receiving module, configured to receive a second audio segment sent by a first device; wherein the second audio segment is an audio segment obtained by adjusting the distance between the audio feature points of the first audio segment according to the second distance information by 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 the first data;
[0019] The parsing module is used to parse the second audio segment to obtain first data.
[0020] In a fifth aspect, an embodiment of the present application provides a data transmission device, including: a first device and a second device;
[0021] The first device comprises a sending device, a first memory, a first processor, and a computer program stored in the first memory and executable by the first processor;
[0022] The sending means is used to send the second audio clip to the second device;
[0023] When the first processor executes the computer program, the steps of any one of the above-mentioned data transmission methods are implemented;
[0024] The second device comprises a receiving device, a second memory, a second processor, and a computer program stored in the second memory and executable by the second processor;
[0025] The receiving device is used to receive the second audio segment;
[0026] When the second processor executes the computer program, the steps of any one of the above data transmission methods are implemented.
[0027] In an embodiment of the present application, second distance information of two audio feature points corresponding to the first audio clip is determined based on the data value of the first data to be transmitted, and the first data is integrated into the audio features of the second audio clip by adjusting the distances between the audio feature points of the first audio clip. Without changing the original tone, a second audio clip that is less likely to be cracked is obtained, and the second audio clip is sent to the second device. The second device can obtain the first data through the second audio clip, thereby improving the security of the data transmission process.
[0028] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 This is a flow chart of a data transmission method in the first embodiment of the present invention;
[0030] Figure 2 A schematic diagram of another data transmission method in the first embodiment of the present invention;
[0031] Figure 3 This is a flowchart of step S103 in the first embodiment of the present invention;
[0032] Figure 4 This is a flowchart of step S103 in the first embodiment of the present invention;
[0033] Figure 5 is a flow chart of a data transmission method in a second embodiment of the present invention;
[0034] Figure 6 It is a structural schematic diagram of a data transmission device in the third embodiment of the present invention;
[0035] Figure 7 It is a structural schematic diagram of a data transmission device in a fourth embodiment of the present invention;
[0036] Figure 8 It is a structural schematic diagram of a data transmission device in the fifth embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.
[0038] It should be clear that the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.
[0039] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the embodiments of the present application. The singular forms of "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0040] When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. In the description of the present application, it should be understood that the terms "first", "second", "third", etc. are only used to distinguish similar objects, and do not have to be used to describe a specific order or sequence, nor can they be understood as indicating or implying relative importance. For those of ordinary skill in the art, the specific meanings of the above terms in the present application can be understood according to the specific circumstances.
[0041] In addition, in the description of this application, unless otherwise specified, "several" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects are in an "or" relationship.
[0042] The first embodiment of the present application provides a data transmission method. The data transmission method of the embodiment of the present application can be applied to a first device. The first device can be provided with a sending device for sending a second audio clip to a second device, and the second device can be provided with a receiving device corresponding to the sending device.
[0043] The second audio segment may be transmitted between the sending device and the receiving device based on common data transmission methods such as sound waves or networks.
[0044] In an embodiment of the present application, the sending device may be a speaker for playing the second audio clip, the first device may be a device with an audio playback function, such as a mobile phone, a tablet computer, a laptop computer, etc., the receiving device may be a microphone for receiving the second audio clip, and the second device may be a device with an audio acquisition function, such as a mobile phone, a tablet computer, a laptop computer, etc.
[0045] Specifically, see Figure 1 , the method comprises the following steps:
[0046] S101: Acquire a first audio clip and first data to be transmitted;
[0047] The first data includes at least one data value to be transmitted, and the data value may be a string, a number, or the like.
[0048] The first audio segment may be an audio segment selected by a user, such as a music segment.
[0049] The first audio clip includes at least two audio feature points, and every two audio feature points correspond to a data value. Specifically, the audio feature may be spectral centroid, Mel-scale Frequency Cepstral Coefficients (MFCC), Bark-frequency cepstral coefficients (BFCC), spectral entropy, spectral flux, and other audio features. In an embodiment of the present application, the audio feature is spectral flux, which is used to characterize the amplitude of change of an audio frame relative to the amplitude of a previous audio frame.
[0050] Preferably, in the present application, audio frames whose spectral flux is greater than a preset threshold are selected to obtain audio feature points, and audio feature points are obtained by selecting audio frames whose adjacent frame spectra vary greatly, so that the subsequent second device can more easily parse and identify the information of each audio feature point when receiving the second audio clip.
[0051] S102: Determine second distance information of an audio feature point in the first audio segment based on the at least one data value;
[0052] The second distance information is used to determine the distance between two audio feature points corresponding to the data value. In the embodiment of the present application, the distance between the two audio feature points may be the time interval between the two audio feature points.
[0053] The corresponding relationship between the data value and the second distance information can be set according to the actual needs of the user.
[0054] S103: 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;
[0055] Adjusting the distance between the audio feature points may include increasing or decreasing the distance between the two audio feature points.
[0056] When the data value is a string, the string can be mapped to a corresponding numerical value based on a preset string and numerical value mapping rule, thereby facilitating comparison of the size relationship of the data values and adjusting the distance between the audio feature points according to the size relationship of the data values.
[0057] By adjusting the distance between the audio feature points of the first audio clip, the first data is merged into the audio features of the second audio clip. Compared with the traditional method of directly encoding audio of different frequencies according to the numerical value of the data to be transmitted, the present application makes it more difficult to crack and restore by fusing data into the audio. At the same time, the audio signal encoded by the traditional method is relatively harsh, while the present application does not change the original properties of each audio feature by adjusting the distance between the audio features, the tone of the audio clip does not change, the data is perfectly merged into the audio clip, and the generated second audio clip can maintain the original tone of the first audio clip, which is more friendly to the human ear.
[0058] S104: Send the second audio segment to the second device, so that the second device obtains the first data by parsing the second audio segment.
[0059] Specifically, the second device parses the distance information between each audio feature point of the second audio segment, compares it with the distance information between each audio feature point of the first audio segment, and obtains the first data from the second audio segment according to the distance information change value between each audio feature point and the preset mapping relationship between the distance information change value and the data value.
[0060] In step S104, after obtaining the first data, the second device may execute a corresponding operation or perform corresponding data processing in the second device according to the content of the first data.
[0061] Specifically, Figure 2 As shown, in one embodiment, the first data may include address information of the first device; after the second device obtains the first data by parsing the second audio segment, the following steps are also included:
[0062] The second device obtains the address information of the first device according to the first data, and in response to the connection establishment instruction, establishes a communication connection with the first device according to the first device address information.
[0063] The address information of the first device may include an IP address of the first device;
[0064] The connection establishment instruction may be a control instruction input by a user into the second device or a terminal connected to the second device.
[0065] After receiving the instruction to establish a connection, the second device automatically establishes a communication connection with the first device according to the address information of the first device. The user does not need to manually enter the address information in the first device or the second device to achieve mutual communication between the first device and the second device, thereby improving the communication connection efficiency between the devices.
[0066] The communication connection may include but is not limited to network connection, Bluetooth connection and other commonly used communication connection methods.
[0067] It should be noted that there may be multiple first devices and / or second devices in the present application, and multiple devices can establish communication connections and communicate with each other through the above-mentioned method of the present application, thereby improving the communication connection efficiency between multiple devices.
[0068] In an embodiment of the present application, the second distance information of two audio feature points corresponding to the first audio clip is determined according to the data value of the first data to be transmitted, and the first data is integrated into the audio features of the second audio clip by adjusting the distance between the audio feature points of the first audio clip. Without changing the original tone, a second audio clip that is less likely to be cracked is obtained, and the second audio clip is sent to the second device. The second device can obtain the first data through the second audio clip, thereby improving the security of data transmission.
[0069] Specifically, Figure 3 As shown, in one embodiment, when the data value is larger, the distance between the two corresponding audio feature points may be longer;
[0070] The step of adjusting the distance between the audio feature points of the first audio segment according to the second distance information specifically includes:
[0071] S1031: When the second distance information is greater than the first distance information, increase the distance between the two audio feature points corresponding to the data value. Alternatively, in another embodiment, when the data value is larger, the distance between the two audio feature points corresponding to the data value may be shorter;
[0072] like Figure 4 As shown, the step of adjusting the distance between the audio feature points of the first audio segment according to the second distance information specifically includes:
[0073] S1032: When the second distance information is greater than the first distance information, reduce the distance between the two audio feature points corresponding to the data value. In the embodiment of the present application, the increased distance value or the reduced distance value can be set according to the actual needs of the user.
[0074] When the audio feature points are time-domain audio features of the first audio segment, adjusting the distances between the audio feature points may be adjusting the time intervals between the audio feature points.
[0075] Specifically, the step of increasing the distance between the two audio feature points corresponding to the data value in step S1031 specifically includes:
[0076] determining a first playback coefficient of the first audio segment according to the second distance information;
[0077] According to the first play coefficient, adjusting the play speed of the first audio segment to obtain a second audio segment; wherein the total play time of the second audio segment is greater than the total play time of the first audio segment;
[0078] The first playback coefficient is used for the playback speed of the first audio clip. The mapping relationship between the first playback coefficient and the second distance information can be set according to the actual needs of the user. For example, it can be set to 1:n. For example, when the playback speed of the first audio clip is 1 times, when the data value is 1, the distance between the two audio feature points increases by 1, and the first playback coefficient is set to n times the speed, where n can be any value greater than 0 and less than 1.
[0079] In an embodiment of the present application, the first playback coefficient can be used to slow down the playback speed of the first audio clip. After slowing down the playback speed of the first audio clip, the total playback time of the second audio clip is greater than the total playback time of the first audio clip. The distance between the two audio feature points is increased by slowing down the playback speed of the first audio clip.
[0080] Specifically, the step of reducing the distance between the two audio feature points corresponding to the data value in step S1032 specifically includes:
[0081] determining a second playback coefficient of the first audio segment according to the second distance information;
[0082] The playing speed of the first audio segment is adjusted according to the second playing coefficient to obtain a second audio segment; wherein the total playing time of the second audio segment is less than the total playing time of the first audio segment.
[0083] The second playback coefficient is used to speed up the playback speed of the first audio clip. The mapping relationship between the second playback coefficient and the second distance information can be set according to the actual needs of the user. For example, it can be set to 1:n. For example, when the playback speed of the first audio clip is 1 times, the data value is 1, the distance between the two audio feature points increases by 1, and the first playback coefficient is set to n times the speed, where n can be any value greater than 1.
[0084] In an embodiment of the present application, the second playback coefficient can be used to speed up the playback speed of the first audio clip. After speeding up the playback speed of the first audio clip, the total playback time of the second audio clip is less than the total playback time of the first audio clip. The distance between the two audio feature points is reduced by speeding up the playback speed of the first audio clip.
[0085] In the embodiment of the present application, by adjusting the playback speed of the first audio clip, the properties of the audio features of the adjusted second audio clip do not change. The second audio clip is similar to the original first audio clip, is more friendly to the human ear, and is less likely to be recognized and cracked.
[0086] In the process of transmitting the second audio segment, anomalies such as bit errors or jitters are likely to occur, which may easily cause errors in the received data. Therefore, in a preferred embodiment, the first data also includes an error correction code;
[0087] After obtaining at least one data value to be transmitted, the method further includes the following steps: generating an error correction code according to the at least one data value to be transmitted based on a forward error correction algorithm;
[0088] Forward Error Correction (FEC) is a method used to increase the credibility of data communication. Before the signal is sent into the transmission channel, the forward error correction algorithm encodes it according to a certain algorithm, adds redundant codes with the characteristics of the signal itself, and decodes the received signal at the receiving end according to the corresponding algorithm, so as to find out the error codes generated during the transmission process and correct them.
[0089] The step of the second device acquiring the first data by parsing the second audio segment specifically includes:
[0090] The second device obtains at least one data value and an error correction code by parsing the second audio segment;
[0091] determining, based on the error correction code, whether there is an abnormal data value in the at least one data value;
[0092] If there is an abnormal data value, the abnormal data value is corrected based on the forward error correction algorithm and the error correction code. The error correction code of the present application can be an error correction code such as a Reed-Solomon code (RS code) and a convolutional code. The error correction code is obtained by encoding the data value to be transmitted. By parsing the error correction code, all the data values to be transmitted can be obtained, thereby correcting the abnormal data value.
[0093] In an embodiment of the present application, before sending the second audio segment, an error correction code is first generated for at least one data value to be transmitted. After receiving the second audio segment, the second device first determines whether there is an abnormality in the first data based on the error correction code, and when there is an abnormality in the first data, the error correction code is used to correct the abnormal data value, thereby ensuring the accuracy of the received first data and improving the anti-interference capability of data transmission.
[0094] like Figure 5 As shown, the second embodiment of the present application further provides a data transmission method, which can be applied to a second device and includes the following steps:
[0095] S201: Receive a second audio segment sent by a first device; wherein 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 the first data, and adjusting the distance between the audio feature points of the first audio segment according to the second distance information;
[0096] S202: Parse the second audio clip to obtain first data;
[0097] The process of generating the second audio segment received in step S201 may refer to the description of the first embodiment of the present application, which will not be described in detail here.
[0098] In step S202, the first data may be acquired according to the distances between the audio feature points in the second audio segment.
[0099] Specifically, the step of parsing the second audio segment to obtain the first data specifically includes:
[0100] Acquire 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;
[0101] The second audio segment is parsed based on the first distance information and the second distance information to obtain first data.
[0102] The second device obtains the second distance information of each audio feature point in the second audio segment and the first distance information of each audio feature point in the first audio segment, respectively, and compares them to determine the changed audio feature point and the distance information change value, and obtains the first data according to the distance information change value and the preset mapping relationship between the distance information change value and the data value. The distance information change value may be the difference between the first distance and the second distance determined according to the first distance information and the second distance information.
[0103] In one embodiment, when the first data is multiple binary data values, when the distance between two audio feature points parsed into the second audio segment by the second device is greater than the distance between the corresponding two audio feature points of the first audio segment, the data value is determined to be 1; when the distance between two audio feature points parsed into the second audio segment by the second device is less than the distance between the corresponding two audio feature points of the first audio segment, the data value is determined to be 0; when the distance between the two audio feature points parsed into the second audio segment is the same as the distance between the corresponding two audio feature points of the first audio segment, it is determined that the audio feature point does not carry the first data, thereby obtaining multiple binary data values in the first data.
[0104] In an embodiment of the present application, the second device obtains the first data by parsing the second audio clip. The second audio clip is an audio clip obtained by determining the second distance information of two audio feature points corresponding to the data value to be transmitted based on the data value of the first data. The distance between the audio feature points of the first audio clip is adjusted according to the second distance information. The second audio clip integrates the first data into the audio features of the second audio clip. The first data is less likely to be identified and cracked during the transmission process, thereby improving the security of the data transmission process.
[0105] like Figure 6 As shown, the third embodiment of the present application further provides a data transmission device, including:
[0106] A first data acquisition module 101 is used to acquire a first audio segment and first data to be transmitted; wherein the first data includes at least one data value to be transmitted, and the first audio segment includes at least two audio feature points, and every two audio feature points correspond to one data value;
[0107] A second distance information acquisition module 102, configured to determine second distance information of the audio feature point in the first audio segment based on the at least one data value;
[0108] A second audio segment acquisition module 103, configured to adjust the distance between the audio feature points in the first audio segment according to the second distance information to obtain a second audio segment;
[0109] 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.
[0110] It should be noted that the data transmission device provided in the above embodiment only uses the division of the above functional modules as an example when executing the data transmission method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the data transmission device provided in the above embodiment and the data transmission method of the first embodiment belong to the same concept, and the implementation process thereof is detailed in the first embodiment, which will not be repeated here.
[0111] like Figure 7 As shown, the fourth embodiment of the present application further provides a data transmission device, including:
[0112] The receiving module 201 is configured to receive a second audio segment sent by a first device; wherein the second audio segment is an audio segment obtained by adjusting the distance between the audio feature points of the first audio segment according to the second distance information by 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 the first data;
[0113] The parsing module 202 is configured to parse the second audio segment to obtain first data.
[0114] It should be noted that the data transmission device provided in the above embodiment only uses the division of the above functional modules as an example when executing the data transmission method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the data transmission device provided in the above embodiment and the data transmission method of the second embodiment belong to the same concept, and the implementation process thereof is detailed in the second embodiment, which will not be repeated here.
[0115] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the data transmission method as described in any one of the above are implemented.
[0116] The present application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-readable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media 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, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0117] like Figure 8 As shown, the fifth embodiment of the present application further provides a data transmission device 300, including: a first device 310 and a second device 320;
[0118] The first device 310 includes a sending device 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;
[0119] When the first processor 313 executes the computer program, the steps of the data transmission method as described in any one of the first embodiments are implemented;
[0120] The second device 320 includes a receiving device 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;
[0121] The receiving device 321 is used to receive the second audio segment;
[0122] When the second processor 323 executes the computer program, the steps of the data transmission method as described in any one of the second embodiments are implemented.
[0123] The sending device 311 may send the second audio clip to the second device 320 based on a common data transmission method such as sound waves or a network;
[0124] In an 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 playback function, such as a mobile phone, a tablet computer, a laptop computer and other devices, 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 acquisition function, such as a mobile phone, a tablet computer, a laptop computer and other devices.
[0125] The present invention is not limited to the above-mentioned embodiments. If various changes or modifications to the present invention do not depart from the spirit and scope of the present invention, and if these changes and modifications fall within the scope of the claims and equivalent technologies of the present invention, the present invention is also intended to include these changes and modifications.
Claims
1. A data transmission method, characterized in that: Applied to a first device, comprising the following steps: Acquire a first audio segment and first data to be transmitted; wherein the first data includes at least one data value to be transmitted, and the first audio segment includes at least two audio feature points, and every two audio feature points correspond to one data value; the audio feature points are acquired according to an audio frame whose spectrum flux is greater than a preset threshold; Determining second distance information of an audio feature point in the first audio segment based on the at least one data value; adjusting the distance between the audio feature points in the first audio segment according to the second distance information, so as to obtain a second audio segment without changing the tone; The second audio segment is sent to the second device, so that the second device obtains the first data by parsing the second audio segment.
2. The data transmission method according to claim 1, characterized in that: The step of adjusting the distance between the audio feature points of the first audio segment according to the second distance information specifically includes: When the second distance information is greater than the first distance information, increasing the distance between the two audio feature points corresponding to the data value; or, When the second distance information is greater than the first distance information, the distance between the two audio feature points corresponding to the data value is reduced.
3. The data transmission method according to claim 2, characterized in that: The step of increasing the distance between two audio feature points corresponding to the data value specifically includes: determining a first playback coefficient of the first audio segment according to the second distance information; According to the first play coefficient, adjusting the play speed of the first audio segment to obtain a second audio segment; wherein the total play time of the second audio segment is greater than the total play time of the first audio segment; The step of reducing the distance between the two audio feature points corresponding to the data value specifically includes: determining a second playback coefficient of the first audio segment according to the second distance information; The playing speed of the first audio segment is adjusted according to the second playing coefficient to obtain a second audio segment; wherein the total playing time of the second audio segment is less than the total playing time of the first audio segment.
4. The data transmission method according to claim 1, characterized in that: The first data also includes an error correction code; The step of the second device acquiring 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, based on the error correction code, whether there is an abnormal data value in the at least one data value; If an abnormal data value exists, the abnormal data value is corrected based on a forward error correction algorithm and the error correction code.
5. The data transmission method according to any one of claims 1 to 4, characterized in that: The first data includes address information of the first device; after the second device obtains the first data by parsing the second audio segment, the following steps are further included: The second device obtains the address information of the first device according to the first data, and in response to the connection establishment instruction, establishes a communication connection with the first device according to the first device address information.
6. A data transmission method, characterized in that: Applied to the second device, comprising the following steps: Receive a second audio segment sent by a first device; wherein 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 the first data, and adjusting the distance between the audio feature points of the first audio segment according to the second distance information without changing the tone; the audio feature points are obtained according to audio frames whose spectral flux is greater than a preset threshold; The second audio segment is parsed to obtain first data.
7. The data transmission method according to claim 6, characterized in that: The step of parsing the second audio segment to obtain the first data specifically includes: Acquire 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; The second audio segment is parsed based on the first distance information and the second distance information to obtain first data.
8. A data transmission device, characterized in that: include: A first data acquisition module, configured to acquire a first audio segment and first data to be transmitted; wherein the first data includes at least one data value to be transmitted, and the first audio segment includes at least two audio feature points, and each two audio feature points correspond to one data value; and the audio feature points are acquired according to an audio frame whose spectrum flux is greater than a preset threshold; A second distance information acquisition module, configured to determine second distance information of the audio feature point in the first audio segment based on the at least one data value; a second audio segment acquisition module, configured to adjust the distance between the audio feature points in the first audio segment according to the second distance information, so as to obtain the second audio segment without changing the tone; The sending module is used to send the second audio segment to the second device, so that the second device obtains the first data by parsing the second audio segment.
9. A data transmission device, characterized in that: include: a receiving module, configured to receive a second audio segment sent by a first device; wherein the second audio segment is an audio segment obtained by adjusting the distance between the audio feature points of the first audio segment according to the second distance information without changing the tone, by 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 the first data by the first device; and the audio feature points are obtained according to audio frames whose spectral flux is greater than a preset threshold; The parsing module is used to parse the second audio segment to obtain first data.
10. A data transmission device, characterized in that: include: a first device and a second device; The first device comprises a first memory, a first processor, and a computer program stored in the first memory and executable by the first processor; When the first processor executes the computer program, the steps of the data transmission method according to any one of claims 1 to 5 are implemented; The second device comprises a second memory, a second processor, and a computer program stored in the second memory and executable by the second processor; When the second processor executes the computer program, the steps of the data transmission method according to any one of claims 6 to 7 are implemented.
Citation Information
Patent Citations
Information steganography method, apparatus and device, and storage medium
WO2021035978A1