Summary of the invention
Technical matters to be solved by this invention provides a kind of speech signal processing system, can receive, handles and export simulating signal and digital signal simultaneously, improves the integrated level of system, reduces system cost.
In order to solve the problems of the technologies described above, the invention provides a kind of speech signal processing system, it is characterized in that, comprise simulating signal input processing module, audio coding receiver module, the first selection module, digital signal pretreatment module, digital signal processing module, audio coding sending module, second selection module and the simulating signal output processing module, wherein:
The simulating signal input processing module is used to receive the multi-channel analog input signal, therefrom selects one the tunnel, converts thereof into the serial digital signal output of optional network specific digit audio coding specification;
The audio coding receiver module is used for from the system outside and/or the simulating signal input processing module receives the serial digital signal of described optional network specific digit audio coding specification, converts thereof into the Parallel Digital audio signal output;
First selects module to be used to receive digital audio and video signals and the digital M signal that the audio coding receiver module is exported, and therefrom selects two-way or multichannel output according to control signal;
The digital signal pretreatment module is used to receive first digital audio and video signals of selecting module output, select wherein any one the road or will be wherein arbitrarily two-way carry out outputing to digital signal processing module after the numeral mixing and carry out digital audio processing;
The audio coding sending module is used for according to control signal, the serial digital signal and the output that convert digital signal and/or other digital M signal of digital signal processing module output to optional network specific digit audio coding specification;
Second selects module to be used for according to control signal, selects one or more to export system outside and/or simulating signal output processing module to the serial digital signal of the optional network specific digit audio coding specification that receives from system outside, simulating signal input processing module, audio coding sending module;
The simulating signal output processing module is used for the serial digital signal of simulating signal that receives and/or optional network specific digit audio coding specification is carried out analogue audio frequency processing and output.
In addition, described digital audio encoding specification comprises I2S and PCM.
In addition, the described digital signal processing module digital audio processing of carrying out comprises following a kind of or combination in any in several: recording, noise removing, modified tone, read and generate digital audio and video signals from audio file; Analogue audio frequency that described simulating signal output processing module is carried out is handled and is comprised following a kind of or combination in any in several: convert digital signal to simulating signal, simulating signal is mixed, simulating signal is amplified, digital signal is carried out filtering.
In addition, described first select module and second to select module to comprise a plurality of MUX; Described audio coding receiver module comprises one or more digital audio encoding receivers; Described audio coding sending module comprises one or more digital audio encoding transmitters.
In addition, described simulating signal input processing module comprises modulus processing unit and digital audio encoding transmitter; Described modulus processing unit comprises MUX, analog to digital converter; Wherein:
MUX is used for according to control signal, selects one tunnel output from the multichannel analog signals of input;
Analog to digital converter is used for the analog signal conversion of MUX output is become digital signal and output;
The digital audio encoding transmitter is used for the digital signal of analog to digital converter output is converted to the serial digital signal output of optional network specific digit audio coding specification.
In addition, described simulating signal output processing module comprises digital audio encoding receiver, digital-to-analogue processing unit; The digital-to-analogue processing unit comprises digital to analog converter, analog mixer; Wherein:
The serial digital signal that the digital audio encoding receiver is used for the optional network specific digit audio coding specification that will receive converts the Parallel Digital audio signal output to;
Digital to analog converter is used for converting the digital audio and video signals of digital audio encoding receiver output to simulating signal output;
The analog intermediate signal that analog mixer is used for receiving is mixed with the simulating signal of digital to analog converter output and is exported.
In addition, described simulating signal input processing module comprises two described modulus processing units; Described optional network specific digit audio coding specification is I2S; Described modulus processing unit also comprises amplifier and digital filter; Wherein:
Amplifier is used for the simulating signal of described MUX output is carried out earlier exporting described analog to digital converter again to after the processing and amplifying, by analog to digital converter this analog signal conversion is become digital signal output;
Export described digital audio encoding transmitter again to after the advanced line number word of the digital signal Filtering Processing that digital filter is used for described analog to digital converter is exported, this digital signal is converted to the serial digital signal output of optional network specific digit audio coding specification by the digital audio encoding transmitter.
In addition, described simulating signal output processing module comprises two described digital-to-analogue processing units; Described optional network specific digit audio coding specification is I2S; Described digital-to-analogue processing unit also comprises digital filter and amplifier; Wherein:
Export described digital to analog converter again to after the advanced line number word of the Parallel Digital sound signal Filtering Processing that digital filter is used for described digital audio encoding receiver is exported, convert this Parallel Digital sound signal to simulating signal output by digital to analog converter;
Amplifier is used for the simulating signal of described analog mixer output is carried out exporting after the processing and amplifying.
In addition, this system also comprises controlled chronotron and/or UART, wherein:
Controlled chronotron is used for exporting described first as M signal according to control signal after the time that the digital signal time-delay of described digital signal processing module output is specific and selects module;
UART is used for transmission of digital signals between described digital signal processing module and system outside.
In addition, described digital signal pretreatment module comprises digital mixer and MUX, wherein:
Digital mixer is used for selecting the digital signal of module output to carry out numeral mixing and output with described first;
MUX receives described first digital signal of selecting module and digital mixer to export, and therefrom selects one the tunnel to export described digital signal processing module to according to control signal.
The present invention changes into the multichannel analog signals and the digital signal of input unified audio format and handles, by MUX the processing path of sound signal is carried out flexible configuration, reduce the complexity of system effectively, reduced the quantity of redundant device, reduced cost.
Embodiment
The present invention changes into unified audio format and handles by multichannel analog signals and digital signal that will input, by MUX the processing path of input signal is carried out flexible configuration, for simulating signal and digital signal provide unified input, processing and output stage.
Describe the present invention below in conjunction with drawings and Examples.
Fig. 1 is the circuit structure diagram of first embodiment of the invention speech signal processing system.As shown in Figure 1, speech signal processing system of the present invention comprises: simulating signal input processing module, audio coding receiver module, first select module, digital signal pretreatment module, UART (Universal AsynchronousReceiver/Transmitter, universal asynchronous receiver/transmitter (UART)), digital signal processing module (processor), audio coding sending module, controlled chronotron, second to select module and simulating signal output processing module.Wherein:
The simulating signal input processing module is used to receive the multidiameter delay analog input signal, therefrom selects one the tunnel, converts thereof into the serial digital signal output of optional network specific digit audio coding specification.
Above-mentioned digital audio encoding specification can be I2S (Inter-IC Sound, Intel's integrated circuit voice), PCM (Pulse Code Modulation, pulse code modulation (PCM)) etc.Wherein, the serial digital signal of PCM specification is used to transmit monophonic audio signal, and the serial digital signal of I2S specification is used to transmit monophony or binaural audio signal.
PCM/I2S digital audio encoding transmitter receives parallel digital signal, is sent to PCM/I2S digital audio encoding receiver after converting thereof into the serial digital signal of PCM/I2S specification; PCM/I2S digital audio encoding receiver converts the serial digital signal that receives to the parallel digital signal output of specific format.The output format of parallel digital signal is by final reception, treatment facility (as processor, the DAC etc.) decision of this signal.
In the present embodiment, the simulating signal input processing module comprises: the first MUX MUX1, the first analog to digital converter ADC1 and the first digital audio encoding transmitter I2S/PCM_TX1.
The first MUX MUX1 is used to receive Parallel Simulation signal A_IN_1, A_IN_2 and A_IN_3, and (figure part omitted) therefrom selects one tunnel output (note is made S1) according to first control signal;
The first analog to digital converter ADC1 is used to receive the simulating signal S1 of first MUX MUX1 output, and converts thereof into digital signal output;
The first digital audio encoding transmitter I2S/PCM_TX1 is used to receive the digital signal of first analog to digital converter ADC1 output, and (figure part omitted) converts thereof into the serial digital signal output of 12S specification or PCM specification according to second control signal.Owing in the present embodiment, only have one tunnel simulating signal to export ADC1 to, and export I2S/PCM_TX1 to after changing digital signal into by ADC1 through MUX1.Therefore, 12S/PCM_TX1 changes it and export according to the PCM agreement as monophonic audio signal.Certainly, also can change and export it according to the 12S agreement.
Above-mentioned first control signal is used for making MUX1 to select one tunnel output at the multi-channel analog input signal.For example, when first control signal value was 1, MUX1 selected A_IN_1 output; When first control signal value was 2, MUX1 selected A_IN_2 output.
Above-mentioned second control signal is used to make 12S/PCM_TX1 the digital signal of input to be converted to the serial digital signal output of optional network specific digit audio coding specification.For example, when second control signal value was 0, I2S/PCM_TX1 converted the digital signal of input to the serial digital signal output of PCM specification; When second control signal value was 1, I2S/PCM_TX1 converted the digital signal of input to the serial digital signal output of 12S specification.
As from the foregoing, after the processing through the simulating signal input processing module, the multichannel analog signals of input is selected and convert the serial digital signal of PCM or 12S specification to, has identical form with the digital signal of input, and the system of being convenient to is to processing such as it mix.
The audio coding receiver module be used for receiving and output (being the equipment or the module of speech signal processing system of the present invention outside) input from the system outside and/or from the serial digital signal of the optional network specific digit audio coding specification of simulating signal input processing module input, convert thereof into (being the digital signal processing module specified format) the parallel signal output that is fit to that digital signal processing module receives and handle.
In the present embodiment, the audio coding receiver module comprises: the first digital audio encoding receiver I2S/PCM_RX1 and the second digital audio encoding receiver 12S/PCM_RX2.
The first digital audio encoding receiver I2S/PCM_RX1 is used for from the serial digital signal DIN1 of outside I2S of reception of system or PCM specification, and converts thereof into the parallel signal output (note is made S3) that is fit to the digital signal processing module reception and handles.
The second digital audio encoding receiver I2S/PCM_RX2 is used for receiving from simulating signal input processing module (the corresponding first digital audio encoding transmitter I2S/PCM_TX1 of present embodiment) serial digital signal of I2S or PCM specification, and converts thereof into the parallel signal output (note is made S4) that is fit to the digital signal processing module reception and handles.
First selects module to be used to receive digital audio and video signals and the M signal that the audio coding receiver module is exported, and therefrom selects two-way or multichannel output according to control signal.
Above-mentioned M signal is meant other signal of the native system module output except that input signal and output signal.According to the difference of the module of exporting, M signal can be divided into digital M signal and analog intermediate signal.First selects module to receive the digital M signal of controlled chronotron output in the present embodiment.
In the present embodiment, first selects module to comprise the second MUX MUX2 and the 3rd MUX MUX3.
The second MUX MUX2 is used to receive the output signal S3 and the S4 of audio coding receiver module, and therefrom selects one tunnel output according to the 3rd control signal.
The 3rd MUX MUX3 is used to receive the output signal S3 or the S4 of audio coding receiver module, and the digital signal of controlled chronotron output, and (figure part omitted) therefrom selects one tunnel output according to the 4th control signal.
The digital signal pretreatment module is used to receive first two-way or the multi-path digital sound signal of selecting module output, select wherein any one the road or will be wherein arbitrarily the two-way digital audio and video signals carry out digital audio and video signals output after numeral is mixed (audio mixing).
In the present embodiment, the digital signal pretreatment module comprises digital mixer and the 4th MUX MUX4.
Digital mixer is used for selecting the two-way digital audio and video signals of module output to carry out numeral mixing and output with first.
The 4th MUX MUX4 is used to receive first digital audio and video signals of selecting module and digital mixer to export, and (figure part omitted) therefrom selects one tunnel output according to the 5th control signal.
UART is used for sending and receiving the serial sound signal between processor and system outside.D_IN2 is the input signal of system outside among Fig. 1, and D_UT2 is the signal that exports the system outside to.
Digital signal processing module (processor) be used for to the output of digital signal pre-processing module, UART output or from the digital audio and video signals that storer (figure part omitted) reads and generates record, digital audio processing tasks such as noise removing, modified tone, and export UART and/or audio coding sending module and/or controlled chronotron to.
Above-mentioned processor is the flush bonding processor that uses of suitable speech signal processing system such as ARM (Advanced Risc Machines, senior reduced instruction set processor) normally.
For the digital signal that exports controlled chronotron to, owing to need mix with the digital signal of audio coding receiver module output, so need be with it with the Parallel Digital form output identical with the digital signal of audio coding receiver module output.
The audio coding sending module is used for the digital signal of receiving processor output, converts thereof into the serial digital signal output of optional network specific digit audio coding specification according to control signal.
In the present embodiment, the audio coding sending module comprises the second digital audio encoding transmitter I2S/PCM_TX2.
The second digital audio encoding transmitter 12S/PCM_TX2 is used for the digital signal of receiving processor output, and (figure part omitted) converts thereof into the serial digital signal of 12S or PCM specification according to the 6th control signal, and exports the second selection module to.
Controlled chronotron was used for according to the digital signal time-delay specific time of the 7th control signal (figure part omitted) with processor output.
It all is that the programmable digital audio delay device of identical digital signal realizes that the specific implementation method can be consulted relevant documentation that controlled chronotron adopts input and output signal usually.
Second selects module to be used for the serial digital signal D _ IN_1 of the outside input of receiving system, the serial digital signal S2 of simulating signal input processing module output and the serial digital signal of audio coding sending module output, selects one or more output according to control signal.
Second selects module to comprise the 5th MUX MUX5 and the 6th MUX MUX6 in the present embodiment.
In the present embodiment, the 5th MUX MUX5 is used to receive the serial digital signal S2 of simulating signal input processing module output and the serial digital signal of audio coding sending module output, selects one tunnel output (note is made D_OUT_1) to the system outside according to the 8th control signal (figure part omitted).
In the present embodiment, the 6th MUX MUX6 is used for the serial digital signal D_IN_1 of the outside input of receiving system and the serial digital signal of audio coding sending module output, selects one the tunnel to export the simulating signal output processing module to according to the 9th control signal (figure part omitted).
The simulating signal output processing module is used to receive second serial digital signal and the analog intermediate signal of selecting the optional network specific digit audio coding specification of module output, the serial digital signal that receives is converted to after the simulating signal to simulate with above-mentioned analog intermediate signal mixes (audio mixing) and handle, mixed simulating signal such as is amplified at simulated audio signal handle the back and export (note is made A_OUT_1).
In the present embodiment, the simulating signal output processing module comprises: the 3rd digital audio encoding receiver I2S/PCM_RX3, the first digital to analog converter DAC1, first analog mixer and first amplifier.
The 3rd digital audio encoding receiver 12S/PCM_RX3 is used for receiving second and selects the 12S of module (present embodiment is MUX6) output or the serial digital signal of PCM specification, convert thereof into (promptly with the input data layout of DAC1 the be complementary) parallel digital signal that is fit to that the first digital to analog converter DAC1 receives and handle, and output.
The first digital to analog converter DAC1 is used to receive the parallel digital signal of 12S/PCM_RX3 output, converts thereof into simulating signal and output.
First analog mixer is used for the simulating signal and the simulating signal S1 of DAC1 output are simulated hybrid processing, and output.
First amplifier is used for the simulating signal of first analog mixer output is carried out processing and amplifying, with amplified analog signal output (note is made A_OUT_1).
Control signals such as first control signal, second control signal can be generated by processor.
In above embodiment, the simulating signal input processing module only comprises a MUX and an analog to digital converter, therefore can only handle monophonic audio signal; Equally, the simulating signal output processing module also only comprises a digital to analog converter, also can only handle and export monophonic audio signal.
Fig. 2 is the circuit structure diagram of second embodiment of the invention speech signal processing system.Present embodiment is expanded simulating signal input processing module among first embodiment and simulating signal output processing module, so that binaural audio signal is handled.Simulating signal input processing module among second embodiment has also increased amplifier module in addition, and the simulating signal output processing module has increased the digital filtering functional module.Only show simulating signal input processing module and simulating signal output processing module among Fig. 2, other module slightly.
In the present embodiment, the simulating signal input processing module comprises the first modulus processing unit, the second modulus processing unit and the first digital audio encoding transmitter 12S/PCM_TX1.The first modulus processing unit comprises the first MUX MUX1, the 3rd amplifier, the first analog to digital converter ADC1 and first digital filter; The second modulus processing unit comprises the 7th MUX MUX7, the 4th amplifier, the second analog to digital converter ADC2 and second digital filter.Wherein,
The 3rd amplifier in the first modulus processing unit is used for the simulating signal of MUX1 output is amplified and output; Be that the simulating signal of MUX1 output exports first analog to digital converter to and carries out the analog to digital conversion operation after the 3rd amplifier amplifies, export first digital filter then to.
In the second modulus processing unit:
The 7th MUX MUX7 is used to receive Parallel Simulation signal A_IN_11, A_IN_21 and A_IN_31, and (figure part omitted) therefrom selects one tunnel (note is made S11) output according to the tenth control signal;
The 4th amplifier is used for the simulating signal of MUX7 output is amplified and output.
The second analog to digital converter ADC2 is used to receive the simulating signal of the 4th amplifier output, and converts thereof into digital signal and export second digital filter to.
First digital filter and second digital filter are respectively applied for the digital signal of ADC1 and ADC2 output are carried out Filtering Processing, and the signal after will handling exports the first digital audio encoding transmitter 12S/PCM_TX1 respectively to.
The first digital audio encoding transmitter 12S/PCM_TX1 is used for the two ways of digital signals of first digital filter and the output of second digital filter is merged into the output of one road serial digital signal according to the 12S agreement.
In the present embodiment, the simulating signal output processing module comprises the 3rd digital audio encoding receiver I2S/PCM_RX3, the first digital-to-analogue processing unit, the second digital-to-analogue processing unit.The first digital-to-analogue processing unit comprises the 3rd digital filter, the first digital to analog converter DAC1, first analog mixer, first amplifier; The second digital-to-analogue processing unit comprises the 4th digital filter, the second digital to analog converter DAC2, second analog mixer, second amplifier.Wherein:
In the present embodiment, the 3rd digital audio encoding receiver 12S/PCM_RX3 receives the serial digital signal of 12S specification, converts thereof into (promptly with the input data layout of DAC1 and DAC2 be complementary) the two-way parallel digital signal output that is fit to that the first digital to analog converter DAC1 and the second digital to analog converter DAC2 receive and handle.
In the first digital-to-analogue processing unit, the 3rd digital filter is used for that a road of the two-way parallel digital signal of 12S/PCM_RX3 output is carried out digital filtering to be handled, and exports filtered digital signal to first digital to analog converter DAC1.The function of the first digital to analog converter DAC1, first analog mixer and first amplifier and a last embodiment are basic identical, after just a way word signal of 12S/PCM_RX3 output exports the 3rd digital filter to and carries out Filtering Processing, export DAC1 again to.In addition, first analog mixer also can mix its simulating signal with DAC1 output after simulating signal S1 amplifies through the 3rd amplifier in the simulating signal input processing module again.
In the second digital-to-analogue processing unit:
The 4th digital filter is used for that digital filtering is carried out on another road of the two-way parallel digital signal of 12S/PCM_RX3 output to be handled, and exports filtered digital signal to second digital to analog converter DAC2.
The second digital to analog converter DAC2 is used to receive the digital signal of the 4th digital filter output, converts thereof into simulating signal and output.
Second analog mixer is used for the simulating signal and the simulating signal S11 of DAC2 output are simulated hybrid processing, and output.Certainly, also can after amplifying through the 4th amplifier in the simulating signal input processing module, again its simulating signal with DAC2 output be mixed simulating signal S11.
Second amplifier is used for the simulating signal of second analog mixer output is carried out processing and amplifying, with amplified analog signal output (note is made A_OUT_11).
In this embodiment, simulating signal S1 and S11 through the first MUX MUX1 and the 7th MUX MUX7 selection output can be respectively the left and right sound track signals of one tunnel sound signal, a pair of differential signal, it also can be two-way monophony simulating signal, for example, the sound signal of both call sides.When being two-way monophony simulating signal for input signal, also can protocol conversion becomes one road serial digital signal output according to I2S by I2S/PCM_TX1.
Below in conjunction with Fig. 3, the course of work that speech signal processing system of the present invention is applied to mobile phone is described with two application examples.In order more clearly to describe the course of work of the present invention, speech processing system of the present invention 3 modules have in addition been increased among Fig. 3: bluetooth, external audio codec and baseband processor, and each module position among first embodiment shown in Figure 1 adjusted more approaching real applied environment.
The application example 1-broadcast of playing Karaoka:
Processor reads audio file (accompaniment) from storer, export (representing with single line among the figure) to I2S/PCM_TX2 with the form of parallel digital signal, I2S/PCM_TX2 converts parallel digital signal to serial digital signal according to PCM or I2S agreement, export I2S/PCM_RX3 to through MUX6, convert simulated audio signal to through DAC1; Simultaneously by hands-free microphone (A_IN_2) input simulated audio signal; Above two-way simulated audio signal exports loudspeaker (A_OUT_1) to after mixing through first analog mixer.
The two-way recording of application example 2-phone:
The other side's sound signal of conversation is sent to the external audio codec by baseband processor with the form of digital signal, the digital audio encoding transmitter (figure part omitted) that comprises PCM or I2S specification in the external audio codec, this transmitter is imported (D_IN_1) to I2S/PCM_RX1 with this digital signal with the PCM specification, arrives MUX2 again;
Simultaneously, the our sound signal of conversation inputs to MUX1 by telephone microphone input (A_IN_2), exports ADC1 to and convert digital signal to after MUX1 selects, and inputs to MUX3 through 12S/PCM_TX1 and 12S/PCM_RX2 again;
Above-mentioned two-way audio signal is selected to export digital mixer to by MUX2, MUX3 respectively and is carried out hybrid processing, and the digital signal after the processing transfers to the processor processing of recording through MUX4.
Emphasis of the present invention provides the speech processes platform that an analog channel and digital channel combine, and is not limited to import what signal or carries out what concrete processing, but can make up flexibly as required.
The present invention can have various mapping modes on the basis of the foregoing description, and for example, the audio coding receiver module can also receive the multichannel input signal except D_IN_1 and S2; Second selects module also can arrive system outside or simulating signal output processing module by increasing the MUX outputting multiplex signals; The audio coding sending module can comprise a plurality of digital audio encoding transmitters, except the parallel digital signal of receiving processor output, also can receive the digital M signal of same format, for example from first parallel digital signal of selecting module or digital mixer to export; The simulating signal output processing module mixes after the multi-path digital conversion of signals of input can being become simulating signal.