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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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; ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com