Dynamic two-dimensional code audio transmission method and system

By blocking and converting audio data into QR codes, the problem of narrow application of traditional QR codes in audio transmission is solved, and effective transmission of audio data and application expansion of QR codes is realized.

CN119673180APending Publication Date: 2025-03-21GUANGZHOU BAOLUN ELECTRONICS CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411652305.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

Traditional QR codes have a narrow application problem in audio transmission, and it is difficult to effectively expand the data transmission method of QR codes.

Method used

By chunking the audio data and converting the blocked audio data stream into QR codes one by one, dynamic QR code transmission of audio data is realized. The specific steps include preprocessing the audio data, dividing it into data blocks of the same size, converting it into binary format, generating error correction codes, and generating audio QR codes one by one.

Benefits of technology

Through the above method, the use scenario of QR code is expanded, providing convenience for audio data transmission, and realizing the effective transmission of audio data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119673180A_ABST
    Figure CN119673180A_ABST
Patent Text Reader

Abstract

The invention discloses a dynamic two-dimensional code audio transmission method and system, and the system comprises a transmitting end and a receiving end, and the method comprises the following steps: the transmitting end obtains audio data, and carries out the preprocessing of the audio data; the preprocessed audio data is equally divided into a plurality of audio data blocks, audio two-dimensional codes are generated according to the audio data blocks one by one, and each audio data block corresponds to one audio two-dimensional code; the sending end displays the audio two-dimensional codes according to the audio two-dimensional code generation sequence, the receiving end continuously identifies the audio two-dimensional codes displayed by the sending end, each audio two-dimensional code is converted into an audio data block, all the audio data blocks are spliced into complete audio data, and the audio data are obtained. According to the method, the segmented audio data are converted into the two-dimensional codes one by one, all the two-dimensional codes are displayed and are recognized and converted by the receiving end, so that the audio data are obtained, the use scene of the two-dimensional codes can be expanded through the method, and convenience is provided for data transmission.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network transmission data, and in particular to a dynamic two-dimensional code audio transmission method and system. Background Art

[0002] QR code, also known as two-dimensional barcode, uses black and white graphics on a two-dimensional plane to record data information according to certain specific geometric figures and rules. It can store more information and represent more data types than traditional barcodes. With the rapid development of mobile Internet, QR code has become an indispensable part of daily life. Traditional QR codes are mainly used for the storage and transmission of static information, such as URLs, texts, etc. However, in terms of audio transmission, traditional QR codes have certain limitations. Therefore, there is a need for a data transmission method that can effectively expand the application of QR codes. Summary of the invention

[0003] To solve the above problems, the present invention provides a dynamic QR code audio transmission method and system, which solves the problem of narrow application of existing QR code transmission data by dividing the audio into blocks and converting the divided audio data streams into QR codes one by one.

[0004] To achieve the above object, the present invention provides the following technical solutions:

[0005] A dynamic two-dimensional code audio transmission method includes a sending end and a receiving end, and the method includes the following steps:

[0006] S1. The sender obtains audio data and preprocesses the audio data;

[0007] S2. The transmitter divides the preprocessed audio data into several audio data blocks of the same size, generates an audio QR code according to the audio data blocks one by one, and each audio data block corresponds to an audio QR code;

[0008] S3. The sending end displays the audio QR codes in the order in which the audio QR codes are generated, and the receiving end continuously recognizes the audio QR codes displayed by the sending end, converts each audio QR code into an audio data block, and splices all the audio data blocks into complete audio data to obtain audio data.

[0009] Furthermore, in step S1, the specific implementation of the preprocessing includes: converting the sampling rate of the audio data into the same sampling rate, and compressing the audio data converted into the same sampling rate into the same format.

[0010] Furthermore, in step S2, after the transmitting end divides the pre-processed audio data into a plurality of audio data blocks of the same size, the method further includes: converting each audio data block into a binary format.

[0011] Furthermore, in step S2, after converting each audio data block into a binary format, it also includes generating an error correction code for each audio data block and inserting the error correction code into the audio data block.

[0012] Furthermore, in step S2, the audio QR code is generated one by one according to the audio data blocks, and its specific implementation method includes: for each audio data block, starting from the starting position of the audio data block, each two binary digits are a group, and each group of digits corresponds to a point position of the QR code to generate an audio QR code.

[0013] Further, in step S2, each group of numbers corresponds to a point, and its specific implementation method includes: each group of numbers includes multiple number combinations, each number combination corresponds to a color, and the color of the point corresponding to each group of numbers is the same as the color corresponding to the number combination of the group of numbers.

[0014] Furthermore, in step S2, the generating of the audio QR code according to the audio data blocks one by one further includes: inserting a preset pattern at a preset position of the corresponding generated audio QR code according to the position of the audio data block in the audio data.

[0015] Furthermore, in step S2, the generating of the audio two-dimensional code according to the audio data blocks one by one further includes: adding a timestamp of the generation time to the audio two-dimensional code each time the audio two-dimensional code is generated.

[0016] Further, in step S3, the transmitting end displays the audio QR code in the order in which the audio QR code is generated, and the specific implementation method thereof includes: displaying one or more audio QR codes simultaneously in the audio order, and each audio QR code is not displayed repeatedly.

[0017] Through the above technical scheme, the present invention has the following beneficial effects: after processing the audio data into a unified format, the audio data is divided into blocks, and the divided audio data is converted into QR codes one by one, and all QR codes are displayed for the receiving end to identify and convert, thereby obtaining audio data. The above method can expand the use scenarios of QR codes and provide convenience for data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 The present invention is a schematic diagram of the overall process of a dynamic two-dimensional code audio transmission method.

[0019] Figure 2 It is a structural schematic diagram of a dynamic two-dimensional code audio transmission system in an embodiment of the present invention. DETAILED DESCRIPTION

[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0021] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0022] Example 1

[0023] See also Figure 1 A dynamic two-dimensional code audio transmission method includes a transmitting end and a receiving end, and the method includes the following steps:

[0024] S1. The sender obtains audio data and preprocesses the audio data;

[0025] S2. The transmitter divides the preprocessed audio data into several audio data blocks of the same size, generates an audio QR code according to the audio data blocks one by one, and each audio data block corresponds to an audio QR code;

[0026] S3. The sending end displays the audio QR codes in the order in which the audio QR codes are generated, and the receiving end continuously recognizes the audio QR codes displayed by the sending end, converts each audio QR code into an audio data block, and splices all the audio data blocks into complete audio data to obtain audio data.

[0027] In an optional embodiment, in step S1, the specific implementation of the preprocessing includes: converting the sampling rate of the audio data into the same sampling rate, and compressing the audio data converted into the same sampling rate into the same format.

[0028] Convert the audio to a uniform sampling rate to facilitate the subsequent conversion of the audio data into a QR code.

[0029] In an optional embodiment, in step S2, after the transmitting end divides the pre-processed audio data into a plurality of audio data blocks of the same size, the method further includes: converting each audio data block into a binary format.

[0030] Specifically, the audio data is divided into a number of audio data blocks of 1 Kb in size, and the audio data is converted into a binary bit stream that is convenient for generating a two-dimensional code through binary conversion.

[0031] In an optional embodiment, in step S2, after converting each audio data block into a binary format, the method further includes generating an error correction code for each audio data block and inserting the error correction code into the audio data block.

[0032] Specifically, for each audio data block, a corresponding Reed-Solomon error correction code is calculated according to each audio data block, and the error correction code is converted into binary data, and the binary error correction code is inserted into the end of the audio data block to obtain a binary audio data block with the error correction code.

[0033] In an optional embodiment, in step S2, the audio QR code is generated one by one according to the audio data blocks, and its specific implementation method includes: for each audio data block, starting from the starting position of the audio data block, each two binary digits are a group, and each group of digits corresponds to a point position of the QR code to generate an audio QR code.

[0034] The two-dimensional code is a square image, which includes a number of points. The audio data block is converted into a binary bit stream, which is rendered using the corresponding point positions of the binary bit stream, and the binary bit stream is converted into a two-dimensional code according to the generation method of the two-dimensional code.

[0035] In an optional embodiment, in step S2, each group of numbers corresponds to a point, and its specific implementation method includes: each group of numbers includes multiple number combinations, each number combination corresponds to a color, and the color of the point corresponding to each group of numbers is the same as the color corresponding to the number combination of the group of numbers.

[0036] In a specific embodiment, for each point, there is: the number 00 combination corresponds to black, the number 01 combination corresponds to red, the number 10 combination corresponds to green, and the number 11 combination corresponds to blue. Different number combinations correspond to different colors, so the QR code is rendered according to different combinations. Moreover, the QR code is rendered in different colors rather than black and white, so that the subsequent receiving end can detect and identify the QR code, thereby better reading the audio information in the QR code and improving the recognition accuracy.

[0037] In an optional embodiment, in step S2, generating the audio QR code one by one according to the audio data blocks further includes: inserting a preset pattern at a preset position of the corresponding generated audio QR code according to the position of the audio data block in the audio data.

[0038] The preset pattern includes: a polygon or a special symbol; specifically, a preset pattern is inserted into the four corners of the non-data point of the two-dimensional code for positioning; when the audio data block corresponding to the audio two-dimensional code is the first audio data block of the audio data, an '@' symbol is inserted into one of the four corners of the audio two-dimensional code; when the audio data block corresponding to the audio two-dimensional code is the last audio data block of the audio data, a '#' symbol is inserted into one of the four corners of the audio two-dimensional code; by inserting special symbols or patterns, the receiving end can locate the starting or ending position of the data, thereby improving data transmission efficiency.

[0039] In an optional embodiment, in step S2, generating the audio QR code one by one according to the audio data blocks further includes: adding a timestamp of the generation time to the audio QR code each time the audio QR code is generated.

[0040] By adding a timestamp, the receiving end can confirm the order of the audio QR codes and sort the corresponding audio data blocks according to the timestamp to obtain correct and complete audio data.

[0041] In an optional embodiment, in step S3, the transmitting end displays the audio QR code in the order in which the audio QR code is generated, and the specific implementation method includes: displaying one or more audio QR codes simultaneously in the audio order, and each audio QR code is not displayed repeatedly.

[0042] Improve audio transmission efficiency by displaying multiple QR codes at the same time.

[0043] In an optional embodiment, the receiving end continuously scans the displayed QR code through a camera, and when the displayed QR code changes, identifies the displayed QR code and converts it into a binary bit stream according to the color mapping relationship of each point.

[0044] In an optional embodiment, after the receiving end recognizes and parses an audio QR code, the audio data block is verified according to the Reed-Solomon error correction code to confirm whether there are problems such as data loss or omission. If the verification fails, the audio data block is requested again from the sending end to ensure that the audio data can be transmitted intact, so as to avoid audio damage caused by data loss during transmission.

[0045] Example 2

[0046] See also Figure 2 , a dynamic two-dimensional code audio transmission system, comprising:

[0047] The audio processing module is used for the sending end to obtain audio data and pre-process the audio data;

[0048] A QR code generation module is used for the sending end to divide the pre-processed audio data into a number of audio data blocks of the same size, and generate audio QR codes according to the audio data blocks one by one, each audio data block corresponding to an audio QR code;

[0049] The audio transmission module is used to enable the sending end to display the audio QR code in the order in which the audio QR code is generated. The receiving end continuously recognizes the audio QR code displayed by the sending end, converts each audio QR code into an audio data block, and splices all audio data blocks into complete audio data to obtain audio data.

[0050] The embodiment disclosed in this specification is only an example of a unilateral feature of the present invention, and the protection scope of the present invention is not limited to this embodiment, and any other functionally equivalent embodiments fall within the protection scope of the present invention. For those skilled in the art, various other corresponding changes and deformations can be made according to the technical solutions and concepts described above, and all of these changes and deformations should fall within the protection scope of the claims of the present invention.

Claims

1. A dynamic two-dimensional code audio transmission method, characterized in that: Comprising a sending end and a receiving end, the method comprises the following steps: S1. The sender obtains audio data and preprocesses the audio data; S2. The transmitter divides the preprocessed audio data into several audio data blocks of the same size, generates an audio QR code according to the audio data blocks one by one, and each audio data block corresponds to an audio QR code; S3. The sending end displays the audio QR codes in the order in which the audio QR codes are generated, and the receiving end continuously recognizes the audio QR codes displayed by the sending end, converts each audio QR code into an audio data block, and splices all the audio data blocks into complete audio data to obtain audio data.

2. A dynamic two-dimensional code audio transmission method according to claim 1, characterized in that: In step S1, the specific implementation of the preprocessing includes: converting the sampling rate of the audio data into the same sampling rate, and compressing the audio data converted into the same sampling rate into the same format.

3. A dynamic two-dimensional code audio transmission method according to claim 1, characterized in that: In step S2, after the transmitting end divides the pre-processed audio data into a plurality of audio data blocks of the same size, the method further includes: converting each audio data block into a binary format.

4. A dynamic two-dimensional code audio transmission method according to claim 3, characterized in that: In step S2, after converting each audio data block into a binary format, an error correction code is generated for each audio data block, and the error correction code is inserted into the audio data block.

5. A dynamic two-dimensional code audio transmission method according to claim 4, characterized in that: In step S2, the audio QR code is generated one by one according to the audio data blocks, and its specific implementation method includes: for each audio data block, starting from the starting position of the audio data block, each two binary digits are a group, and each group of digits corresponds to a point position of the QR code to generate an audio QR code.

6. A dynamic two-dimensional code audio transmission method according to claim 5, characterized in that: In step S2, each group of numbers corresponds to a point, and its specific implementation method includes: each group of numbers includes multiple number combinations, each number combination corresponds to a color, and the color of the point corresponding to each group of numbers is the same as the color corresponding to the number combination of the group of numbers.

7. A dynamic two-dimensional code audio transmission method according to claim 1, characterized in that: In step S2, the step of generating the audio two-dimensional code according to the audio data blocks one by one further includes: inserting a preset pattern at a preset position of the corresponding generated audio two-dimensional code according to the position of the audio data block in the audio data.

8. A dynamic two-dimensional code audio transmission method according to claim 1, characterized in that: In step S2, the step of generating audio two-dimensional codes according to the audio data blocks one by one further includes: adding a timestamp of the generation time to the audio two-dimensional code each time the audio two-dimensional code is generated.

9. A dynamic two-dimensional code audio transmission method according to claim 1, characterized in that: In step S3, the transmitting end displays the audio QR codes in the order in which the audio QR codes are generated, and the specific implementation method thereof includes: displaying one or more audio QR codes simultaneously in the audio order, and each audio QR code is not displayed repeatedly.

10. A dynamic two-dimensional code audio transmission system, characterized in that: include: The audio processing module is used for the sending end to obtain audio data and pre-process the audio data; A QR code generation module is used for the sending end to divide the pre-processed audio data into a number of audio data blocks of the same size, and generate audio QR codes according to the audio data blocks one by one, each audio data block corresponding to an audio QR code; The audio transmission module is used to enable the sending end to display the audio QR code in the order in which the audio QR code is generated. The receiving end continuously recognizes the audio QR code displayed by the sending end, converts each audio QR code into an audio data block, and splices all audio data blocks into complete audio data to obtain audio data.

Citation Information

Patent Citations

  • Two-dimensional code generating and displaying method and apparatus

    CN105335771A

  • A method and device for generating a two-dimensional code

    CN109948762A

  • Digital asset transmission method and system, terminal and storage medium

    CN110650111A

  • Two-dimensional code processing method and device, electronic equipment and storage medium

    CN115248924A

  • High-capacity data transmission method and system based on two-dimensional code

    CN115378931A