The content of the invention
In view of this, it is an object of the invention to propose that a kind of system takes the voice data transmission side of low, stability and high efficiency
Method and corresponding main frame, terminal.
Based on above-mentioned purpose the invention provides a kind of audio data transmission method, it is applied to include a main frame and multiple
The DAB conference system of terminal, comprises the following steps:
The voice data that one or more terminals send is received, and generates former sound voice data all the way;
Translation process is carried out to the voice data, translational ambiguity voice data is generated;
Default multigroup mutually different transmission address is respectively configured and is turned over to the sound voice data former all the way and multichannel
Translate voice data and send to all terminals;
The selection instruction of terminal receive user, obtains one group of default transmission address and receives audio frequency using the transmission address
Data.
Preferably, when the voice data that multiple terminals send is received, also including step:
Stereo process is carried out to the voice data from multiple terminals.
Preferably, when the voice data for receiving is discontinuous, also including step:
Mute audio data are sent to terminal, until the voice data for receiving recovers continuous.
Preferably, the step of terminal receives voice data also includes:
The voice data for receiving gradually is stored in into multiple order arrangement relief areas, a relief area is stored in when there is voice data
When, the voice data stored in its previous relief area is recalled and subsequent treatment is carried out.
Preferably, the terminal is received and internal transmission voice data adopts dma mode.
Present invention also offers a kind of main frame, including:
Former sound transport module, for receiving the voice data of one or more terminals transmissions and generating former sound audio frequency number all the way
According to sending to all terminals, while the voice data for receiving is transmitted to multiple translation modules;
Multiple translation modules, each described translation module are used to the voice data to receiving and carry out translation process,
And generation is translated voice data all the way and is sent to all terminals;
Configuration module, for default multigroup mutually different transmission address is respectively configured to the sound audio frequency former all the way
Data and translational ambiguity voice data.
Preferably, also include:
Mix module, for when the voice data that multiple terminals send is received, to the audio frequency number from multiple terminals
According to carrying out stereo process.
Preferably, also include:
Quiet control module, for when the voice data for receiving is discontinuous, sending mute audio data to all terminals.
Present invention also offers a kind of terminal, including:
Collection sending module, sends to main frame for gathering user voice and generating voice data;
Playing module is received, and former sound voice data or translation voice data is sent for Receiving Host and is played;
Audio conversion module, for carrying out analog, D/A switch to voice data.
Address selection module, for the selection instruction of receive user, obtains one group of default transmission address and uses the biography
Defeated address receives voice data.
Preferably, the terminal is received and internal transmission voice data adopts dma mode, the audio frequency between modules
Data transfer uses I2S buses.
From the above it can be seen that the audio data transmission method and corresponding main frame, terminal of present invention offer, pass through
By multigroup different transmission address configuration to multi-path audio-frequency data between main frame and terminal, terminal is made when receiving, to select one group of biography
Defeated address receives voice data all the way and carries out follow-up Audio Processing, it is to avoid by all not simultaneous interpretations in system in prior art
The voice data of defeated address all receives the software layer into processor and carries out address filtering, but when terminal receives voice data
Hardware layer is filtered, and significantly reduces the load of processor, makes the low operating frequency operation of processor, by selecting using transmission
Address realize multichannel switching function, reduce power consumption and cost while, also achieve the high-quality audio transmission of multichannel.
Specific embodiment
To make the object, technical solutions and advantages of the present invention become more apparent, below in conjunction with specific embodiment, and reference
Accompanying drawing, the present invention is described in more detail.
A kind of audio data transmission method provided in an embodiment of the present invention, is applied to include a main frame and multiple terminals
Audio conference system, comprises the following steps:
The voice data that one or more terminals send is received, and generates former sound voice data all the way;
Translation process is carried out to the voice data, translational ambiguity voice data is generated;
Default multigroup mutually different transmission address is respectively configured and is turned over to the sound voice data former all the way and multichannel
Translate voice data and send to all terminals;
The selection instruction of terminal receive user, obtains one group of default transmission address and receives audio frequency using the transmission address
Data.
The audio data transmission method of the present embodiment, is preferably applied to DAB conference system, described audio frequency meeting
Conference system includes a main frame and multiple terminals, and communication connection between main frame and terminal, described communication connected mode can be selected
Mode wirelessly or non-wirelessly is selected, WIFI, RFID, NFC, bluetooth etc., wired connection side can be included from radio connection
Formula is generally universal serial port and coordinates data wire.
Described main frame is used to turn reason, the voice data in place from each terminal, including voice data is carried out analog,
D/A switch, and receive the voice data that sends of terminal of speech, and by the voice data for receiving after treatment to
All terminals send.
Described terminal is held by the participant of each audio conferencing, for when participant makes a speech, gathering its sound simultaneously
Generate voice data to send to main frame;It is additionally operable to, when other participants' speeches are listened to, receive Jing host process, transmission and send
Voice data, and playing makes participant directly listen to or listen to by external equipment.In the process for sending, receiving voice data
In, it is necessary also to carry out analog, D/A switch to voice data.
With reference to Fig. 1, it is the audio data transmission method flow chart of the embodiment of the present invention.
Step 101:The voice data that one or more terminals send is received, and generates former sound voice data all the way;
Make a speech when one in the period, when only one participant is made a speech by terminal, the terminal will gather sending out for spokesman
Speech generates analog audio data, through analog/digital conversion, generates corresponding digital audio-frequency data and sends to main frame, and main frame is received should
Digital audio-frequency data, will the voice data send to all terminals as former sound voice data all the way.
When having multiple participants to make a speech by terminal in a speech period, multiple speech terminals can send many to main frame
Road voice data.Main frame receives the voice data that described multiple terminals send, and the voice data from multiple terminals is carried out
Multi-path audio-frequency data is synthesized former sound voice data all the way by stereo process.
Step 102:Translation process is carried out to the voice data, translational ambiguity voice data is generated;
When carrying out audio conferencing, it is the language needs for adapting to different participants, needs to turn over the voice data for transmitting
Translate process.Main frame is provided with translation module, and translation can be generated after the voice data for receiving is translated with language-specific
Voice data.When the voice data that multiple terminals send is received, to carrying out translation process per voice data all the way, then pass through
Audio mixing is generated and translates voice data all the way.
Step 103:Default multigroup mutually different transmission address is respectively configured to the sound voice data former all the way
Send with translational ambiguity voice data and to all terminals;
According to the needs of actual audio meeting, main frame can pre-set multigroup mutually different transmission address, described biography
Defeated address is used for the data transfer of main frame and terminal room, and in common network data connection, described transmission address is typically wrapped
Include IP address and port numbers.
After step 101 and step 102, original sound voice data and the translational ambiguity voice data all the way for generating is main
Machine is respectively configured default multigroup transmission address to former sound voice data and translational ambiguity voice data all the way, i.e., through configuration
Afterwards, when carrying out voice data transmission between main frame and terminal, former sound voice data and translational ambiguity voice data are distinguished all the way
Voice data transmission is carried out using different multigroup transmission address.For example in an audio conference system, main frame is provided with
The speech of spokesman is translated into above-mentioned three kinds of language, then including Chinese original sound, needs altogether to pass by English, method, three translation modules of day
Defeated four road voice data.In this step, main frame will distribute four groups of default transmission ground for China and British, method, four road voice data of day
Location;After being configured, the voice data of above-mentioned arbitrary road voice data and the follow-up language will all pass through a group for configuring
Transmit between main frame and terminal transmission address.
Step 104:The selection instruction of terminal receive user, obtains one group of default transmission address and uses the transmission address
Receive voice data;
In step 103, the default each group transmission address of main frame is equally configured in each terminal, and host side is for each road sound
The configuration result of frequency evidence and each group transmission address synchronous can be arranged on each terminal.Hold the participant of terminal according to listening to language
The needing of speech is operated to terminal, and terminal will receive selection instruction, obtain one group of default transmission address, according to above-mentioned steps
In each language voice data and each group transmit the configuration result of address, corresponding language is transmitted in group transmission address of acquisition
Voice data, meanwhile, the terminal by not Receiving Host by other transmission addresses send voice data.
As one embodiment, when the voice data for receiving is discontinuous, also including step:
Mute audio data are sent to terminal, until the voice data for receiving recovers continuous.
Due to network transmission problems, occur main frame reception voice data it is discontinuous when, occur at the broadcasting end of terminal
The situation of sonic boom, to avoid above-mentioned situation, when appearance reception voice data is discontinuous, main frame can send quiet to each terminal
Voice data, makes the audio frequency of each terminal play quiet, until the voice data that main frame is received recovers continuous.
The step of as another embodiment, the terminal reception voice data, also includes:
The voice data for receiving gradually is stored in into multiple order arrangement relief areas, a relief area is stored in when there is voice data
When, the voice data stored in its previous relief area is recalled and subsequent treatment is carried out.
With reference to Fig. 2, it is that the terminal of the embodiment of the present invention receives voice data buffering schematic diagram.
In the data transmission procedure of main frame and terminal, during the voice data that terminal Receiving Host sends, network can be also subject to
Problem and the discontinuous problem of audio signal that causes to restore, therefore in the present embodiment, arrange multiple for keeping in sound in terminal
The relief area of frequency evidence, multiple buffering area order arrange, when voice data is received from main frame, by voice data gradually, it is suitable
Sequence is stored in multiple buffering area.After having new voice data to be stored in a relief area, by a buffering before the relief area
The voice data of area's memory storage is recalled, and carries out follow-up, the process such as D/A switch, broadcasting.For example, terminal is provided with three and delays
Area is rushed, the voice data for receiving first is stored in first buffering area;Next the voice data for receiving is stored in second buffering area, now
The voice data stored in first buffering area is recalled carries out subsequent treatment;The voice data for receiving again is stored in the 3rd buffering
Area, now recalling the voice data stored in second buffering area carries out subsequent treatment, when voice data is continued to, will deposit
Enter the first buffering area for having emptied, circulate buffered when carrying out reception voice data in this way.
Further, the terminal is received and internal transmission voice data adopts dma mode, can be reduced to terminal
The occupancy of processor resource, improves sound-reducing quality.
The embodiment of the present invention additionally provides a kind of main frame, with reference to Fig. 3, is the main machine structure schematic diagram of the embodiment of the present invention.
The main frame of the present embodiment includes:
Former sound transport module 301, for receiving the voice data of one or more terminals transmissions and generating former sound sound all the way
Frequency according to all terminals send, while the voice data for receiving is transmitted to multiple translation modules;
Multiple translation modules 302, each described translation module is used to the voice data to receiving to be carried out at translation
Manage, and generate translation voice data all the way and send to all terminals;
Configuration module 303, for default multigroup mutually different transmission address is respectively configured to the sound former all the way
Voice data and translational ambiguity voice data.
Further, the main frame of the present embodiment also includes:Mix module 304, receives what multiple terminals sent for working as
During voice data, stereo process is carried out to the voice data from multiple terminals.
Wherein, former sound transport module 301 transmission voice data during, it is necessary voice data is carried out analog,
D/A switch, carries out D/A switch including will receive digital audio-frequency data, is reduced into analog voice signal into audio mixing mould
Block 304, synthesizes voice data all the way by internal audio mixing, then the voice data after audio mixing is carried out analog/digital conversion, to each terminal
Send.
Translation module 302, for the voice data that former sound transport module 301 sends is carried out translation process.Translation mould
Block 302 is operated by translator, and the process such as analog, D/A switch, collection, broadcasting, transmission can be carried out to voice data.Turn over
The former sound of the voice data that personnel are sent according to former sound transport module 301, i.e. spokesman is translated, former sound is translated, will be turned over
Phonetic entry translation module 302 is translated, voice data is translated in generation all the way, for the translated translation voice data for processing and generating,
The each group configured according to configuration module 303 transmission address is directly sent by translation module 302 to each terminal, is passed without former sound
Defeated module 301 sends.
Used as another embodiment, the translation module 302 can also obtain other arbitrary translation moulds according to user instruction
The translation voice data that block 302 is generated, and the translation voice data is done into translation process, generate corresponding to this translation module 302
The translation voice data of language, then send to all terminals.
Configuration module 303 is respectively configured default multigroup mutually different transmission address to the sound audio frequency number former all the way
According to translational ambiguity voice data after, configuration result can be synchronously arranged on each terminal, each terminal is selected using not
The different types of voice data that same transmission address Receiving Host sends(Former sound voice data or translation voice data).
Further, the main frame of the present embodiment also includes a quiet control module 305, for the voice data when reception not
Consecutive hours, sends mute audio data to all terminals.Sonic boom is produced in terminal plays to prevent voice data discontinuous
Phenomenon, when the voice data for occurring receiving is discontinuous, quiet control module 305 will send quiet sound to each terminal to main frame
Frequency evidence so that each terminal plays is quiet, until the voice data that main frame is received recovers continuous.
The embodiment of the present invention additionally provides a kind of terminal, with reference to Fig. 4, is the terminal structure schematic diagram of the embodiment of the present invention.
The terminal of the present embodiment includes:
Collection sending module 401, sends to main frame for gathering user voice and generating voice data;
Playing module 402 is received, and former sound voice data or translation voice data is sent for Receiving Host and is played;
Audio conversion module 403, for carrying out analog, D/A switch to voice data.
Address selection module 404, for the selection instruction of receive user, obtains one group of default transmission address and uses and be somebody's turn to do
Transmission address receives voice data.
During described terminal has for audio conference system, therefore also include being operated for user and shown relevant information
Necessary input module and display module, preferred input module are touch controlled key group.The configuration module 303 of main frame is completed not
With the transmission address and each road voice data of group with postponing, terminal meeting is synchronous to arrange described configuration result, and configuration is tied
Fruit is associated with the touch controlled key group of input module, makes different buttons for selecting each group transmission of different reception voice datas
Address.As in above-mentioned audio data transmission method embodiment, China and British, method, four road voice data of day are had, is then matched somebody with somebody through main frame
Module 303 is put with postponing, have in the button group of terminal four buttons with not Dui Ying four kinds of language voice data.
User as needed, operates the arbitrary button generation selection instruction in button group, address selection module 404 to receive
Described selection instruction, obtains corresponding one group of Preset Transfer address and receives voice data using the transmission address.
In the terminal of the present embodiment, collection sending module 401 collection user voice simultaneously generates analog audio data, Jing audio frequency
Modular converter 403 is sent to main frame after carrying out analog/digital conversion.Receive 402 Receiving Host of playing module and send former sound voice data
Or translation voice data, play Jing after audio conversion module 403 carries out D/A switch.
The terminal of the present embodiment, modules are connected by I2S buses, and are adopted with internal transmission voice data receiving
With dma mode, that is, the effect by hardware filtering address is reached, while more multipath audio signal is supported, to terminal
The occupancy of processor is minimized.
The terminal of the present embodiment can also the external electronic equipment with processing function such as panel computer, mobile phone step on carry out it is right
The control of terminal.
Those of ordinary skill in the art should be understood:The specific embodiment of the present invention is the foregoing is only, and
The restriction present invention, all any modification, equivalent substitution and improvements within the spirit and principles in the present invention, done etc. are not used in,
Should be included within protection scope of the present invention.