Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A kind of voice transmission method and equipment and system based on opus

A technology for voice transmission and audio data, applied in the field of data transmission, which can solve the problems of complex compression codec algorithms, large CPU resources, and prone to problems in data transmission.

Active Publication Date: 2022-06-03
SHENZHEN TIMEKETTLE TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] At present, the existing compression codec algorithms are relatively complex, and buffer overflows are prone to occur during data transmission. On the one hand, they need to consume a lot of CPU resources and require high processing power, so they cannot be used on embedded devices at present. and lead to data transmission prone to problems

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A kind of voice transmission method and equipment and system based on opus
  • A kind of voice transmission method and equipment and system based on opus
  • A kind of voice transmission method and equipment and system based on opus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0079] Embodiment 1 of the present invention discloses an OPUS-based voice transmission method, which is applied to a system including a sending end and a receiving end, such as figure 1 As shown, the method includes the following steps:

[0080] Step 101, the transmitting end receives the audio data through the DMA mechanism of the I2S interface, stores the received audio data in the DMA buffer, and marks the DMA reception mark as received after the triggering of the DMA mechanism is interrupted;

[0081] Specifically, using the DMA mechanism of the I2S interface can effectively reduce the CPU load and improve work efficiency, and there is an interrupt mechanism in the DMA mechanism to ensure that data can be received by the CPU (Central Processing Unit, central processing unit) in time; and by setting appropriate DMA (Direct Memory Access, direct memory access) The amount of data received, which can be processed at certain periodic intervals.

[0082] Receiving markers thro...

Embodiment 2

[0142] Embodiment 2 of the present invention also discloses a transmitter, which is applied to a system including a transmitter and a receiver, such as Figure 4 As shown, the sender includes:

[0143] The acquisition module 201 is used to receive audio data through the DMA mechanism of the I2S interface, store the received audio data in the DMA buffer, and mark the DMA reception mark as received after the triggering of the DMA mechanism is interrupted;

[0144] an encoding module 202, configured to perform a cyclic query task to query whether the DMA reception mark is marked as received;

[0145] If the query result is yes, then extract audio data from the DMA buffer, and change the DMA reception mark to not received;

[0146] Determine whether the preset transmission data buffer has space to write the audio data;

[0147] If the judgment result is yes, then judge whether the audio data needs to be encoded;

[0148] If the judgment result is yes, then call the compression ...

Embodiment 3

[0152] In order to further illustrate this application, Embodiment 3 of the present invention also discloses an OPUS-based voice transmission system, such as Figure 5 As shown, it is applied to the system composed of the receiving end 2 and the transmitting end 1 described in Embodiment 1, wherein,

[0153] Described sending end 1 is used for receiving audio data through the DMA mechanism of I2S interface, storing the received audio data in the DMA buffer zone, and marking the DMA reception mark as received after triggering the DMA mechanism interruption;

[0154] Execute a cyclic query task to query whether the DMA reception mark is marked as received;

[0155] If the query result is yes, then extract audio data from the DMA buffer, and change the DMA reception mark to not received;

[0156] Determine whether the preset transmission data buffer has space to write the audio data;

[0157] If the judgment result is yes, then judge whether the audio data needs to be encoded; ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The embodiment of the present invention proposes an OPUS-based voice transmission method, device, and system. The scheme proposed by the present invention uses DMA to receive the mark and change the switch mark after data extraction, so as to realize the precise positioning and extraction of audio data, avoid omission, and follow-up Further, by pre-judging whether there is space in the sending data buffer and whether encoding is required, buffer overflow is avoided, and whether encoding is required is judged to avoid encoding all audio data, reduce the amount of data to be encoded, and reduce the CPU The utilization rate, and the OPUS algorithm is used to compress and encode, which reduces the amount of data transmission, so it can also be applied to embedded devices with weak processing capabilities, and also solves the technical problem of buffer overflow, which can be better. Voice data transmission, avoid problems in voice data transmission as much as possible.

Description

technical field [0001] The invention relates to the field of data transmission, in particular to an OPUS-based voice transmission method, device and system. Background technique [0002] At present, the Bluetooth speakers or headphones on the market are made of classic Bluetooth technology, and the solution is mature and widely used. It realizes two important core technologies of wireless transmission docking and audio codec from the hardware level, and the transmission is stable. Reliable; so classic Bluetooth is preferred for listening to music. However, in the field of human voice recognition and translation, BLE communication technology can also be used for audio transmission when the sound quality is not high. The advantage of using BLE is that it is more flexible and expandable, because each mobile phone can be connected to multiple BLEs. The devices work at the same time, and it does not affect the connection of the classic bluetooth speaker. If only the classic blue...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G10L19/00G06F13/28
CPCG06F13/28G10L19/00Y02D30/70
Inventor 柯佳俊田力
Owner SHENZHEN TIMEKETTLE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products