A kind of method and apparatus of audio interface conversion
Technical field
The present invention relates to Audiotechnica fields, more particularly to a kind of method and apparatus of audio interface conversion.
Background technique
Audio interface is the equipment for connecting microphone and other sound sources and computer, is risen between analog and digital signal
The effect of bridge connection is arrived.Audio interface is usually matched with preceding microphone, route input and other a series of input equipments
It closes and uses.
There are many common audio interface, including line_out (circuit output) audio port, phone_out (sound output)
Audio port, blocking head XLR, PC (computer) Mike's delivery outlet etc., each audio interface can be realized corresponding audio collection
Function.
In practical applications, terminal device is the equipment that a kind of pair of volume requires, if be arranged in the terminal device
More audio interface then will increase the volume of the terminal device.
Summary of the invention
The embodiment of the present invention, can the technical problem to be solved is that a kind of method and apparatus of audio interface conversion are provided
The space for saving terminal, reduces the volume of terminal.
To solve the above-mentioned problems, the invention discloses a kind of devices of audio interface conversion, comprising:
First audio processing modules are connected with the first audio interface, the first audio for acquiring to the first audio interface
Signal carries out the first audio processing, obtains the first input signal;
Second audio processing modules are connected with the second audio interface, the second audio for acquiring to the second audio interface
Signal carries out the second audio processing, obtains the second input signal;
Audio merging module is connected with first audio processing modules and the second audio processing modules, for institute
It states the first input signal and the second input signal merges, obtain third input signal;And
Audio conversion module is connected with the audio merging module, for the third input signal to be converted to number
Signal.
Preferably, first audio processing modules, comprising:
Amplifying circuit is connected with first audio interface, the first audio for acquiring first audio interface
Signal amplifies processing;
Differential-to-single-ended circuit is connected with the amplifying circuit, for the first audio signal after the enhanced processing
It carries out difference and turns single-ended processing, obtain the first input signal.
Preferably, second audio processing modules, comprising:
Bleeder circuit is connected with second audio interface, the second audio for acquiring in second audio interface
When signal is line output signal, voltage division processing is carried out to the line output signal, obtains the second input signal.
Preferably, the audio merging module, comprising:
Adder is connected with first audio processing modules and the second audio processing modules, is used for described first
Input signal and the second input signal merge processing, obtain third input signal.
Preferably, the audio conversion module, comprising:
Analog and digital signal conversion chip is connected with the audio merging module, for turning the third input signal
Change digital signal into.
Preferably, described device further include:
Biasing circuit is connected with second audio interface, the second audio for acquiring in second audio interface
Signal carries out at pressurization the computer Mike signal for computer Mike signal and when the bleeder circuit is in close state
Reason, obtains the second input signal.
According to another aspect of the invention, a kind of method of audio interface conversion is disclosed, comprising:
First audio processing is carried out to the first audio signal of the first audio interface acquisition, obtains the first input signal;
Second audio processing is carried out to the second audio signal of the second audio interface acquisition, obtains the second input signal;
First input signal and the second input signal are merged, third input signal is obtained;
The third input signal is converted into digital signal.
Preferably, first audio signal to the acquisition of the first audio interface carries out the first audio processing, obtains first
The step of input signal, comprising:
The first audio signal that first audio interface acquires is amplified into processing;
Difference is carried out to the first audio signal after the enhanced processing and turns single-ended processing, obtains the first input signal.
Preferably, second audio signal to the acquisition of the second audio interface carries out the second audio processing, obtains second
The step of input signal, comprising:
When the second audio signal of second audio interface acquisition is line output signal, the circuit output is believed
Number carry out voltage division processing, obtain the second input signal.
Preferably, described that first input signal and the second input signal are merged, obtain third input signal
The step of, comprising:
Processing is merged to first input signal and the second input signal by adder, obtains third input letter
Number.
Preferably, the described the step of third input signal is converted into digital signal, comprising:
Conversion process is carried out to the third input signal by analog and digital signal conversion chip, the third is inputted
Signal is converted into digital signal.
Preferably, the method also includes:
In the second audio signal of second audio interface acquisition be computer Mike signal and the bleeder circuit is in
When closed state, pressurized treatments are carried out to the computer Mike signal, obtain the second input signal.
Compared with prior art, the embodiment of the present invention includes following advantages:
The various audio signals of acquisition can be realized by the first audio interface and the second audio interface in the embodiment of the present invention
In a particular application both audio interface are arranged in terminal, without each audio interface is listed in terminal in process
On, so as to save the space of terminal, reduce the volume of terminal.
Detailed description of the invention
Fig. 1 shows a kind of structural block diagram of the Installation practice of audio interface conversion of the invention;
Fig. 2 shows the electrical block diagrams of the first audio processing modules of one kind of the invention;
Fig. 3 shows the electrical block diagram of the second audio processing modules of one kind of the invention;
Fig. 4 shows a kind of structural schematic diagram of biasing circuit of the invention;
Fig. 5 shows a kind of structural schematic diagram of audio merging module of the invention;And
Fig. 6 shows a kind of step flow chart of the embodiment of the method for audio interface conversion of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
Embodiment one
Referring to Fig.1, a kind of structural block diagram of the Installation practice of audio interface conversion of the invention is shown, it specifically can be with
It include: the first audio processing modules 110, the second audio processing modules 120, audio merging module 130 and audio conversion module
140;
First audio processing modules 110
In practical applications, first audio processing modules 110 can be connected with the first audio interface, for the
First audio signal of one audio interface acquisition carries out the first audio processing, obtains the first input signal;
The embodiment of the present invention can be applied to the audio/video conference system of multiplex roles, professional audio collecting system, and each
The mutual conversion acquisition system etc. of kind audio interface.In embodiments of the present invention, by taking the first audio interface is blocking head as an example
It is illustrated, the blocking head can connect microphone, can be used for acquiring the first audio signal of microphone output.Certainly, will
Blocking head is only of the invention a kind of to can according to need spirit in practical applications using example as the first audio interface
It is living to select other types of first audio interface, further, it is also possible to the number of the first audio interface of flexible setting according to actual needs
Amount can connect two microphones such as when two blocking heads are arranged, the present invention for the first audio interface type and
Quantity is without restriction.
After the first audio signal for receiving the acquisition of the first audio interface, the first audio processing modules 110 can be right
First audio signal carries out the first audio processing, obtains the first input signal, so that acquired by the first audio interface
Different types of first audio signal can be converted to the first input signal for meeting unified standard.
In one preferred embodiment of the invention, first audio processing modules 110, can specifically include:
Amplifying circuit is connected with first audio interface, the first audio for acquiring first audio interface
Signal amplifies processing;
Differential-to-single-ended circuit is connected with the amplifying circuit, for the first audio signal after the enhanced processing
It carries out difference and turns single-ended processing, obtain the first input signal.
Referring to Fig. 2, the electrical block diagram of the first audio processing modules of one kind of the invention is shown.Wherein, first
Audio interface may include two blocking heads, and blocking head usually has a pair of of audio input line (anode and cathode), such as Fig. 2 institute
Showing, two blocking heads are respectively blocking head 1 (including positive MIC_1+ and cathode MIC_1-), blocking head 2 (including positive MIC_2+
With cathode MIC_2-), two-way microphone signal can be accessed by two blocking heads.
Wherein, a pair of of audio input the line MIC_2+ and MIC_2- of blocking head 2, respectively with capacitor C685 and C687 and
After resistance R198 and R196 series connection, then be connected with two input terminals of operational amplifier U36, the first audio of the acquisition of blocking head 2
Signal exports after the processing of operational amplifier U36 from the output end of U36, after amplification and difference turn single-ended processing
Obtain the first input signal MIC2_OUT.Wherein, U36 and coupled resistance and capacitor have collectively constituted amplification, difference
Turn single-end circuit, wherein the positive and negative polarities of two input terminals of U36 do difference processing to input signal respectively, and inside becomes single
End signal exports amplified single-ended multiplied by amplification coefficient then according to negative-feedback amplification coefficient (R195/R191) in output end
Signal.Amplification, differential-to-single-ended circuit amplifies the first audio signal of balance input and difference turns single-ended processing
Afterwards, the first audio signal is converted to the first input signal of linear level.For the treatment process of blocking head 1, with blocking head 2
It is identical, a pair of of audio input the line MIC_1+ and MIC_1- of blocking head 1, respectively with capacitor C689 and C690 and resistance R199
It is connected after R201 series connection, then with two input terminals of operational amplifier NE5532, the first audio signal warp that blocking head 1 acquires
It after crossing the processing of operational amplifier NE5532, is exported from the output end of NE5532, after amplification and difference turn single-ended processing
Obtain the first input signal MIC1_OUT.
Second audio processing modules 120
Second audio processing modules 120 can be connected with the second audio interface, for acquiring to the second audio interface
Two audio signals carry out the second audio processing, obtain the second input signal;
In embodiments of the present invention, it is illustrated so that the second audio interface is lotus flower head as an example, the lotus flower head can connect
A variety of audio interface are connect, can be used for acquiring circuit output (line_out) signal of standard, sound exports (phone_out) signal
With second audio signal such as computer (PC) Mike's output signal.It is appreciated that using lotus flower head as the second audio interface, only
It is of the invention it is a kind of can according to need in practical applications using example and flexibly select other types of audio interface, this
Outside, the quantity of the second audio interface can also be set, and the present invention does not limit the type and quantity of the second audio interface
System.
After the second audio signal for receiving the acquisition of the second audio interface, the second audio processing modules 110 can be right
Second audio signal carries out the second audio processing, obtains the second input signal, so that acquired by the second audio interface
Different types of second audio signal can be converted to the second input signal for meeting unified standard.
In one preferred embodiment of the invention, second audio processing modules 120, can specifically include:
Bleeder circuit is connected with second audio interface, the second audio for acquiring in second audio interface
When signal is line output signal, voltage division processing is carried out to the line output signal, obtains the second input signal.
Referring to Fig. 3, the electrical block diagram of the second audio processing modules of one kind of the invention is shown.Specifically, such as
Shown in Fig. 3, RCA is lotus flower head, and resistance R295, R296 and capacitor C826 constitute first group of bleeder circuit, resistance R297, R298 and
Capacitor C827 constitutes second group of bleeder circuit, and two plugs of RCA are respectively at first group of bleeder circuit and second group of bleeder circuit
It is connected.Due to being in practical applications usually left and right acoustic channels input, the present invention is using two groups of bleeder circuits, i.e. 2 sound channels
Respectively a bleeder circuit is needed to be divided.
When the second audio signal of second audio interface acquisition is line_out signal, external input in order to prevent
Linear level overtension and be more than analog and digital signal conversion chip (audio A/D chip) input voltage receive range, can
To reduce the level of line_out signal using bleeder circuit.
When the second audio signal of second audio interface acquisition is phone_out signal, because of the signal voltage
Very little, prevailing transmission is current signal, it is not required that therefore, can close the switch SW5 in Fig. 3 with bleeder circuit
And SW6, the voltage divide function of bleeder circuit is closed, phone_out signal is allowed to be directly entered audio A/D chip.
In one preferred embodiment of the invention, described device can also include:
Biasing circuit is connected with second audio interface, the second audio for acquiring in second audio interface
Signal carries out at pressurization the computer Mike signal for computer Mike signal and when the bleeder circuit is in close state
Reason, obtains the second input signal.
Specifically, when the second audio signal of second audio interface acquisition is PC Mike signal, because of the signal
Voltage is smaller, and needs the bias voltage of an external 3V, so while closing bleeder circuit, it is also necessary to control audio
A/D chip opens MICBIAS function, gives microphone power.Referring to Fig. 4, the structure for showing a kind of biasing circuit of the invention is shown
It is intended to, it illustrates the importation circuit of audio A/D chip (2 signal wires including connecting pin 14 and 16) and MICBIAS
Connection type;Wherein, pin 14 and 16 can be audio left and right acoustic channels collection terminal, and pin 15 can connect the biased electrical of microphone
The output of pressure, the bias voltage can be controlled by the inside of chip by software mode, external linear signal or phone_out letter
Number when to the chip send order close bias voltage output, audio A/D chip can be then given when external PC microphone signal
Send the output that bias voltage is opened in order.
Audio merging module 130
Audio merging module 130 is connected with first audio processing modules and the second audio processing modules, for pair
First input signal and the second input signal merge, and obtain third input signal;
In one preferred embodiment of the invention, the audio merging module 130, can specifically include:
Adder is connected with first audio processing modules and the second audio processing modules, is used for described first
Input signal and the second input signal merge processing, obtain third input signal.
Referring to Fig. 5, a kind of structural schematic diagram of audio merging module of the invention is shown.Wherein, MIC1_OUT and
MIC2_OUT is that the first audio signal acquired to two blocking heads passes through the first audio processing, obtained two first inputs letter
Number, wherein LINE_IN is the second audio signal of lotus flower head acquisition, wherein LINE_IN may include line_out signal,
Phone_out signal and PC Mike's output signal etc..
The first input signal MIC1_OUT and MIC2_OUT and second is inputted as shown in figure 5, adder can be used
Signal LINE_IN is merged, and obtains third input signal MIC_IN, can be by MIC_IN input audio A/D chip.Specifically
Above-mentioned several signals on ground, input terminal are connected in parallel, as long as the series resistance of dead end signal is equal to the resistance value of negative feedback resistor,
So this few road input signal will be to be added summation, and addition result is exported in output end.
Audio conversion module 140
Audio conversion module 140 is connected with the audio merging module, for the third input signal to be converted to number
Word signal.
The audio conversion module can be audio A/D chip, for converting analog signals into digital signal.
In a kind of application example of the invention, the present invention can be applied in the aurora series of view networked terminals, due to
Aurora series terminal is mainly used in high-end video meeting or video directing center, and various audio interface are many kinds of, such as
There are card agriculture input, notebook phone_out input, line_out input etc. will greatly save outer through the embodiment of the present invention
The work of portion's audio signal conversion, eliminates a lot of audio frequency apparatuses, a variety of different signals can be directly accessed terminal, finally
It is merged together or is transmitted and played respectively.
In the embodiment of the present invention, the first audio processing is carried out by the first audio signal acquired to the first audio interface,
The first input signal is obtained, the second audio processing is carried out to the second audio signal of the second audio interface acquisition, it is defeated to obtain second
Enter signal, then the first input signal and the second input signal are merged into operation, obtain third input signal, finally by
Three input signals are converted into digital signal, so as to carry out subsequent processing.Therefore, the embodiment of the present invention is connect by the first audio
Mouth and the second audio interface, can be realized the process for acquiring various audio signals, in a particular application, both are arranged in terminal
Audio interface, so as to save the space of terminal, reduces terminal without each audio interface to be listed in terminal
Volume.
Embodiment two
Referring to Fig. 6, a kind of step flow chart of the embodiment of the method for audio interface conversion of the invention is shown, specifically may be used
To include:
Step 601 carries out the first audio processing to the first audio signal of the first audio interface acquisition, obtains the first input
Signal;
Step 602 carries out the second audio processing to the second audio signal of the second audio interface acquisition, obtains the second input
Signal;
Step 603 merges first input signal and the second input signal, obtains third input signal;
The third input signal is converted to digital signal by step 604.
In one preferred embodiment of the invention, first audio signal to the acquisition of the first audio interface carries out the
One audio processing, can specifically include the step of obtaining the first input signal:
The first audio signal that first audio interface acquires is amplified into processing;
Difference is carried out to the first audio signal after the enhanced processing and turns single-ended processing, obtains the first input signal.
In another preferred embodiment of the invention, second audio signal to the acquisition of the second audio interface carries out
Second audio processing, can specifically include the step of obtaining the second input signal:
When the second audio signal of second audio interface acquisition is line output signal, the circuit output is believed
Number carry out voltage division processing, obtain the second input signal.
It is described that first input signal and the second input signal are carried out in another preferred embodiment of the invention
It the step of merging, obtaining third input signal, can specifically include:
Processing is merged to first input signal and the second input signal by adder, obtains third input letter
Number.
In still another preferable embodiment of the invention, the step that the third input signal is converted to digital signal
Suddenly, it can specifically include:
Conversion process is carried out to the third input signal by analog and digital signal conversion chip, the third is inputted
Signal is converted into digital signal.
In still another preferable embodiment of the invention, the method can also include:
In the second audio signal of second audio interface acquisition be computer Mike signal and the bleeder circuit is in
When closed state, pressurized treatments are carried out to the computer Mike signal, obtain the second input signal.
For embodiment of the method, since it is substantially similar to Installation practice, so be described relatively simple, it is related
Place illustrates referring to the part of Installation practice.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of method and apparatus of audio interface conversion provided by the present invention, it is described in detail, herein
In apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to sides
Assistant solves method and its core concept of the invention;At the same time, for those skilled in the art, think of according to the present invention
Think, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as pair
Limitation of the invention.