A kind of network audio transmission method and system
Technical field
The present invention relates to network audio transmission technique field, specifically a kind of network audio transmission method and system.
Background technology
In the prior art, audio needs to be transmitted with analog signal with corresponding tone frequency channel wire mostly, like this deposits
Defect be to be attached, it is necessary to connect substantial amounts of tone frequency channel wire, it is high to the operation of operating personnel requirement, especially for remote
Its difficulty of distance data transmission is bigger.
The content of the invention
It is an object of the invention to provide a kind of network audio transmission method and system.
Specific technical scheme of the invention is:A kind of network audio transmission method, is related to interchanger, at least one audio
Transmission equipment and at least one audio reception device, described interchanger, audio send equipment and audio reception device be located at it is same
In one network segment, described method is specially:
Step 1:Audio sends equipment and will be packaged with the data is activation of IP address, audio signal or control signal to exchange
Machine;
Step 2:Interchanger receives described data and transmits this data to the corresponding audio reception device of IP address;
Step 3:Data that described audio reception device desampler sends simultaneously are decapsulated and obtain audio signal or control
Signal processed.
In above-mentioned network audio transmission method, in step 1, described audio sends equipment and audio reception device is logical
Zero passage Configuration network agreement or Dynamic Host Configuration Protocol server distribution IP address.
In above-mentioned network audio transmission method, in step 1, described audio sends equipment by described audio signal
Or control signal encapsulates UDP stems in transport layer, in the described IP address of Internet encapsulation, in data link layer encapsulation Ethernet
Stem, and send it to physical layer;
Described audio reception device physical layer receive audio send equipment send data after, data link layer,
Internet, transport layer carry out corresponding unsealing operation and obtain audio signal or control signal.
In above-mentioned network audio transmission method, also including synchronizing clock signals, described synchronizing clock signals and number
According to synchronous packing, described audio reception device is according to synchronizing clock signals with same fiducial time exports audio signal or control
Signal.
In above-mentioned network audio transmission method, described audio sends equipment includes that microphone, digital music are stored
At least one of broadcast unit, DSP digital processing units;Described audio reception device includes sound equipment, DSP digital processing units, number
At least one in word tone pleasure storage broadcast unit.
Meanwhile, send and set the invention also discloses a kind of Network Audio Transmission System, including interchanger, a few audio
Standby, at least one audio reception device, described interchanger, audio send equipment and audio reception device is located at the same network segment
Interior, described audio sends equipment and contains the data of IP address, audio signal or control signal for wrapper, and data are sent out
It is sent to interchanger;
Described interchanger is used to receiving described data and by described data is activation to the corresponding audio of the IP address
Receiving device;
Described audio reception device is used for the data of desampler transmission and decapsulation obtains audio signal or control
Signal.
In above-mentioned Network Audio Transmission System, described audio sends equipment and is additionally operable to synchronizing clock signals and institute
The data stated are transmitted to interchanger;
Described audio reception device is used for according to synchronizing clock signals with same fiducial time exports audio signal or control
Signal processed.
Compared with prior art, the beneficial effects of the present invention are:
Voice data of the invention is transmitted in the form of packet, and audio is transmitted based on three layers of IP network technology
Data so that network audio transmission does not rely on control system and is individually present, solve traditional multi-line audio cable laying tired
Difficult problem, it is no longer necessary to expensive multichannel analog cable, uses CAT5e and CAT6 classes line and 100/ with low cost instead
The interchanger of 1000Mb/s.Also solve long-distance transmissions, data backup, automatic redundancy etc. analog machine is insurmountable and ask
Topic.
The present invention enters row clock synchronization using IEEE1588 precision interval clocks synchronous protocol, due to each audio network interface
All it is that local clock is synchronized to reference clock, so the data volume that their data are produced during packing and unpacking is
Identical, this would not cause voice data to be lost because of caching overload.
Meanwhile, distribution synchronizing clock signals, audio signal and control signal are carried out separately in consolidated network, audio
Signal and synchronizing signal are then to pack to be transmitted in UDP/IP forms together, and packet follows absolute timestamp to transmit in a network,
Any position node can be with the original signal of the identical sample frequency of output of same fiducial time in ensuring network.
The present invention uses special zero configuration technology --- " plug and play " Relevant Service Discovery Technologies.Looked into automatically using automatically configuring
Look for interface equipment, identification (RFID) tag and distinguish the work such as IP address, without starting the other DNS of high-level and DHCP service.I.e. not
In the case of needing any artificial participation and management, not needing various services to participate in, be automatically obtained between main frame, main frame and equipment
Between network service configuration.It is main to need to complete two aspects:(1) IP address is distributed automatically, the discovery of (2) service.Work as equipment
Netting twine is plugged, network is once connected to, just can be recognized and be configured mutually on network automatically, be truly realized plug and play.
The present invention only needs in advance be configured interchanger on control terminal such as computer, arbitrary in the LAN
Network endpoint, the route for can easily be consulted on Application Program Interface, monitoring, configure audio signal.
Brief description of the drawings
Fig. 1 is the flow diagram of the embodiment of the present invention 1;
Fig. 2 is the system of selection block diagram of the synchronizing clock signals of the embodiment of the present invention 1;
Fig. 3 is the block diagram of the embodiment of the present invention 2;
Fig. 4 is the block diagram of the embodiment of the present invention 3.
Specific embodiment
With reference to specific embodiment, technical scheme is described in further detail, but do not constitute it is right
Any limitation of the invention.
Embodiment 1
As shown in figure 1, a kind of network audio transmission method, it is related to interchanger, at least one audio to send equipment and at least
One audio reception device, described interchanger, audio send equipment and audio reception device is located in the same network segment, described
Method is specially:
Step 1:Audio sends equipment and will be packaged with the data is activation of IP address, audio signal or control signal to exchange
Machine;Described audio sends equipment and audio reception device and distributes IP address by zero configuration procotol or Dynamic Host Configuration Protocol server.
The present embodiment uses special zero configuration technology --- " plug and play " Relevant Service Discovery Technologies.It is automatic using automatically configuring
Search interface equipment, identification (RFID) tag and distinguish the work such as IP address, without starting the other DNS of high-level and DHCP service.Exist
In the case of not needing any artificial participation and management, not needing various services to participate in, it is automatically obtained between main frame, main frame and sets
The configuration of network service between standby.It is main to need to complete two aspects:(1) IP address is distributed automatically, the discovery of (2) service.When setting
It is standby to plug netting twine, network is once connected to, just can recognize and configure mutually on network automatically, it is truly realized plug and play.
For specifically:" plug and play " Relevant Service Discovery Technologies include following aspect:
(1) IP address is distributed automatically
The equipment of access system network, can be automatically its assignment configuration information, and configuration parameter maintains this network always
Set, even if restarting the equipment, network settings will not also change
The equipment for participating in same link can randomly choose an IP address in the address realm of 169.254.*
Then probe messages are sent, whether the selected IP address of detection is occupied
IP address of equipment informs other equipment once it is determined that will constantly give notice, and the IP address is occupied.
(2) service discovery
The equipment or main frame of (a) access system network, in the case of no configuration there is not other configurations management service yet, the service
Discovery feature can make the service provided on automatic device discovery network,
B () supports that such a framework, user terminal have user's agent process to be responsible for sending service request
C () service end states service by service broker's process
D (), when service discovery, user specifies the characteristic information of required service, and service request is sent by user agent
E, if there is the service for matching on () networking, user agent will receive the response of service position.
The encapsulation step of the data described in the present embodiment is as shown in figure 1, audio signal or control signal are used as data division
Produced in application/expression/session layer, then encapsulate UDP stems in transport layer, then encapsulate IP stems in Internet, most passed through afterwards
Carry out data transmission in physical layer after crossing Data Link Layer encapsulation Ethernet stem.
Data such as table 1 below after encapsulation:
Ethernet stem/IP stems/UDP stems |
Audio signal/control signal |
While encapsulation produces above-mentioned data, synchronizing clock signals are also encapsulated simultaneously.
Synchronizing clock signals of the invention enter row clock synchronization using IEEE1588 precision interval clocks synchronous protocol,
The network topology of IEEE1588 precision interval clock synchronous protocols is by reference clock (Crandmaster Clock), boundary clock
(Boundary Clock) and local clock (Ordinary CLock) are constituted.IEEE1588 is according to best master clock algorithm
(BMC) election that master clock is above-mentioned described reference clock is completed, each audio frequency apparatus in network tracks reference clock,
Because each audio network interface is that local clock is synchronized into reference clock, so their data are in packing and unpacking
During produce data volume be it is identical, this would not because caching overload cause voice data to be lost.
In addition, synchronizing clock signals, audio signal and control signal can be sent in consolidated network, audio signal and same
Step signal is then to pack to be transmitted in UDP/IP forms together, and packet follows absolute timestamp to transmit in a network, it is ensured that network
In any position node the original signal of identical sample frequency can be exported with same fiducial time.
Best master clock algorithm BMC (Best Master Clock Algorithm) independent operatings and clock system
On each clock of (refer herein to system of the invention in), the data in BMC set comparison algorithm DSC (Data Set
Comparison Algorithm) come complete elect master clock work.
DSC algorithms dynamic operation constantly calculates comparison clock in system operation on each clock according to real time data
The data set of election, set of the data set comprising parameter informations such as clock quality, clock grade, clock type, clock skews,
The process for constantly comparing is illustrated in fig. 2 shown below.
According to the state for constantly calculating result of the comparison each node of dynamic adjustment and port, system can be selected more suitably
Node is used as master clock.
Specific computational methods are as follows:
S1:Compare data set A, B, judge whether unique sign of A, B is identical;If identical, S2 is carried out, entered if difference
Row S3;Wherein, data set A represents legacy data collection;Data set B represents the new data set for updating;In this step, A, B be only
One sign refers to the data set inside algorithm to every generation, all gives a unique ident value;
S2:Judge whether the number of path that A, B are forwarded is identical;If it is different, then less value is relatively good, if identical, sentence
Whether the sequence ID of disconnected A and B are identical, and larger value is relatively good if identical;In this step, the number of path of forwarding is
Refer to the number of times that data set A and B are forwarded;Larger value and the size discrimination of less value is carried out by parameter sequence ID
Compare.
S3:Whether the clock stratum of A and B is identical, and S4 is entered if differing;The clock jitter of A and B is judged if identical
Whether variance is identical, and S4 is entered if difference, judges whether the ident value of A is less than the ident value of B if identical, if then entering
S4;In this step, clock stratum refers to accuracy class value, and more preferably, priority level is higher for whose precision;;Clock jitter refers to
For desired clock along actual clock exist not with time integral, when and in advance, when and delayed skew is referred to as clock jitter,
Referred to as shake can be quantitatively described with chattering frequency and jitter amplitude to clock jitter.
S4:Judge that less value is relatively good.
Step 2:Interchanger receives described data and transmits this data to the corresponding audio reception device of IP address;
Interchanger transmits data to corresponding audio reception device according to IP address packaged in data.
Step 3:Data that described audio reception device desampler sends simultaneously are decapsulated and obtain audio signal or control
Signal processed.
Audio reception device for data decapsulation according to the above-mentioned reverse de-encapsulation of encapsulation step.
The audio signal or control signal of the present embodiment are transmitted in the form of packet, based on three layers of IP network skill
Art transmits voice data so that network audio transmission does not rely on control system and is individually present, and solves traditional multi-line sound
The difficult problem of frequency cable laying, it is no longer necessary to expensive multichannel analog cable, use instead CAT5e with low cost and
The interchanger of CAT6 classes line and 100/1000Mb/s.Also the analog machines such as long-distance transmissions, data backup, automatic redundancy are solved
Insurmountable problem.
The present embodiment enters row clock synchronization using IEEE1588 precision interval clocks synchronous protocol, because each audio network connects
Mouth is all that local clock is synchronized into reference clock, so the data volume that their data are produced during packing and unpacking
It is identical, this would not cause voice data to be lost because of caching overload.
Meanwhile, distribution synchronizing clock signals, audio signal and control signal are carried out separately in consolidated network, audio
Signal and synchronizing signal are then to pack to be transmitted in UDP/IP forms together, and packet follows absolute timestamp to transmit in a network,
Any position node can be with the original signal of the identical sample frequency of output of same fiducial time in ensuring network.
The present embodiment uses special zero configuration technology --- " plug and play " Relevant Service Discovery Technologies.It is automatic using automatically configuring
Search interface equipment, identification (RFID) tag and distinguish the work such as IP address, without starting the other DNS of high-level and DHCP service.Exist
In the case of not needing any artificial participation and management, not needing various services to participate in, it is automatically obtained between main frame, main frame and sets
The configuration of network service between standby.It is main to need to complete two aspects:(1) IP address is distributed automatically, the discovery of (2) service.When setting
It is standby to plug netting twine, network is once connected to, just can recognize and configure mutually on network automatically, it is truly realized plug and play.
The present embodiment only needs in advance be configured interchanger on control terminal such as computer, any in the LAN
Network endpoint, can on Application Program Interface easily consult, monitoring, configuration audio signal route.
Embodiment 2
As shown in figure 3, a kind of Network Audio Transmission System, including interchanger 1, a few audio send equipment 2, at least one
Individual audio reception device 3, described interchanger 1, audio sends equipment 2 and audio reception device 3 is located in the same network segment;
Described audio sends the data that equipment 2 contains IP address, audio signal or control signal for wrapper, and will
Data is activation is to interchanger 1;In order to further improve the synchronism of data, data are also transmitted jointly with synchronizing clock signals
To interchanger 1;
Described interchanger 1 is used to receive described data and described data and synchronizing clock signals are sent into the IP
The corresponding audio reception device 3 in address;
Described audio reception device 3 is used for the data and synchronizing clock signals of desampler transmission and decapsulation is obtained
Audio signal or control signal.Described audio reception device 3 exports audio according to synchronizing clock signals with same fiducial time
Signal or control signal.Transmission and synchronous broadcasting to data is so achieved that on network level.
In the present embodiment, described interchanger 1 includes data receiver transmitting element and for matching somebody with somebody automatically for access device
Put interface equipment, identification (RFID) tag and distinguish IP address and the dispensing unit matched with the access device, described control signal bag
Include interface equipment, identification (RFID) tag and the differentiation IP address of the reception packet and send the interface equipment of the packet, mark
Label and differentiation IP address.
The voice data of the present embodiment in the form of packet (data packet format such as Fig. 1-2-2) is transmitted, based on three
The IP network technology of layer transmits voice data so that network audio transmission does not rely on control system and is individually present, and solves
The difficult problem of traditional multi-line audio cable laying, it is no longer necessary to expensive multichannel analog cable, uses low cost instead
Honest and clean CAT5e and CAT6 classes line and the interchanger of 100/1000Mb/s.Also long-distance transmissions, data backup, automatic superfluous are solved
It is remaining to wait the insurmountable problem of analog machine.
The present embodiment enters row clock synchronization using IEEE1588 precision interval clocks synchronous protocol, because each audio network connects
Mouth is all that local clock is synchronized into reference clock, so the data volume that their data are produced during packing and unpacking
It is identical, this would not cause voice data to be lost because of caching overload.
Meanwhile, distribution synchronizing clock signals, audio signal and control signal are carried out separately in consolidated network, audio
Signal and synchronizing signal are then to pack to be transmitted in UDP/IP forms together, and packet follows absolute timestamp to transmit in a network,
Any position node can be with the original signal of the identical sample frequency of output of same fiducial time in ensuring network.
The present embodiment uses special zero configuration technology --- " plug and play " Relevant Service Discovery Technologies.It is automatic using automatically configuring
Search interface equipment, identification (RFID) tag and distinguish the work such as IP address, without starting the other DNS of high-level and DHCP service.Exist
In the case of not needing any artificial participation and management, not needing various services to participate in, it is automatically obtained between main frame, main frame and sets
The configuration of network service between standby.It is main to need to complete two aspects:(1) IP address is distributed automatically, the discovery of (2) service.When setting
It is standby to plug netting twine, network is once connected to, just can recognize and configure mutually on network automatically, it is truly realized plug and play.
The present embodiment only needs in advance be configured interchanger on control terminal such as computer, any in the LAN
Network endpoint, can on Application Program Interface easily consult, monitoring, configuration audio signal route.
Embodiment 3
Below, the present embodiment is explained with specific example to the method for the present invention.
As shown in figure 4, by taking microphone 11, router 12, dsp processor 13, sound console 14, sound equipment 15, PC 16 as an example.
A () is embedded in conversion module (network interface containing Ethernet) in the other equipment in addition to router or interchanger 12
B () builds a network audio system as shown in Figure 3:
(b1) transmission line between each equipment is twisted-pair feeder more than cat5 classes
(b2) each audio frequency apparatus and PC are connected to the network interface of router by netting twine more than cat5 classes
(b3) IP address of each equipment according to the acquisition of zero configuration consultation in the range of 169.254.*,
(b4) control program of PC has service discovery function, find in the network system each facility information (including
The information such as title, IP address, voice-grade channel number)
C the control program of () now PC 16 can set the audio route that we want, for example, settable microphone
11 channel-1 as transmitting terminal, the channel-1 and channel-2 of sound console as receiving terminal,
D () is again using the channel-1 and channel-2 of sound console 14 as transmitting terminal, the channel- of dsp processor 13
1 and channel-2 has processed audio signal and can send it to dsp processor 13 as receiving terminal, sound console 14;
(e) again using the channel-1 and channel-2 of dsp processor 13 as transmitting terminal, the channel-1 of sound equipment and
Channel-2 as receiving terminal, dsp processor 13 processed audio signal can send it to sound equipment 15 channel-1 and
Channel-2, as left and right acoustic channels exports audio signal.
In the data transmission procedure of above-mentioned c-e, the IP address of the equipment that audio signal is delivered to required for encapsulating, while
Packed together with synchronizing clock signals, corresponding equipment is sent to by interchanger.
When needing to increase new equipment in system, the equipment is required for being embedded in or access our conversion module and (contains
Ethernet network interface), then by the interchanger or router 12 in the twisted pair line connection to audio network of cat5 classes and the above.Example
Such as adding cell phone apparatus, cell phone apparatus can access conversion module (then in audio network as transmitting terminal by 3.5 tone frequency channel wires
In, will its channel-1 and channel-2 as transmitting terminal), conversion module is again by the twisted-pair feeder of cat5 classes and the above
It is connected in audio network, is so achieved that the addition of new equipment.
It is above-described be only presently preferred embodiments of the present invention, it is all made in the range of the spirit and principles in the present invention appoint
What modification, equivalent and improvement etc., should be included within the scope of the present invention.