CN112581971A - Audio signal processing method and device - Google Patents

Audio signal processing method and device Download PDF

Info

Publication number
CN112581971A
CN112581971A CN202011459818.1A CN202011459818A CN112581971A CN 112581971 A CN112581971 A CN 112581971A CN 202011459818 A CN202011459818 A CN 202011459818A CN 112581971 A CN112581971 A CN 112581971A
Authority
CN
China
Prior art keywords
signal
processing result
audio processing
audio
integrated
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011459818.1A
Other languages
Chinese (zh)
Other versions
CN112581971B (en
Inventor
袁延金
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN202011459818.1A priority Critical patent/CN112581971B/en
Publication of CN112581971A publication Critical patent/CN112581971A/en
Application granted granted Critical
Publication of CN112581971B publication Critical patent/CN112581971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L21/00Speech or voice signal processing techniques to produce another audible or non-audible signal, e.g. visual or tactile, in order to modify its quality or its intelligibility
    • G10L21/02Speech enhancement, e.g. noise reduction or echo cancellation
    • G10L21/0208Noise filtering
    • G10L2021/02082Noise filtering the noise being echo, reverberation of the speech

Landscapes

  • Engineering & Computer Science (AREA)
  • Computational Linguistics (AREA)
  • Quality & Reliability (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Amplifiers (AREA)

Abstract

The embodiment of the invention provides an audio signal processing method and an audio signal processing device, which relate to the technical field of audio processing, and the method comprises the following steps: obtaining a digital signal obtained by performing analog-to-digital conversion on an input analog signal; when two paths of digital signals to be integrated exist in the obtained digital signals, integrating the two paths of digital signals to be integrated, and integrating the two paths of digital signals to be integrated into one path of integrated signal; performing audio processing on the integrated signal to obtain an audio processing result; and outputting the audio signal based on the audio processing result according to the type of the output signal of the current configuration. By applying the scheme provided by the embodiment of the invention, the signal processing equipment can support the processing of the balanced signal.

Description

Audio signal processing method and device
Technical Field
The present invention relates to the field of audio processing technologies, and in particular, to an audio signal processing method and apparatus.
Background
In the prior art, part of signal processing equipment only includes an unbalanced signal input port and does not include a balanced signal input port, so that the signal processing equipment can only support inputting unbalanced signals and does not support inputting balanced signals with strong anti-interference capability, and thus, the signal processing equipment does not support audio processing such as sound mixing, noise reduction, echo cancellation and the like on the balanced signals.
Disclosure of Invention
An object of the embodiments of the present invention is to provide an audio signal processing method and apparatus, so that a signal processing device supports processing a balanced signal. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides an audio signal processing method, where the method includes:
obtaining a digital signal obtained by performing analog-to-digital conversion on an input analog signal;
when two paths of digital signals to be integrated exist in the obtained digital signals, the two paths of digital signals to be integrated are integrated into one path of integrated signal, wherein the integrated signal is a digital signal, the two paths of digital signals to be integrated can be obtained through splitting processing, and the two paths of digital signals to be integrated are as follows: the method comprises the following steps of carrying out analog-to-digital conversion on two paths of analog signals to be integrated to obtain digital signals, wherein the two paths of analog signals to be integrated are as follows: the input analog signal that balanced signal input port inserts, balanced signal input port is: the device comprises a preset unbalanced signal input port for accessing a balanced signal;
performing audio processing on the integrated signal to obtain an audio processing result;
and outputting an audio signal based on the audio processing result according to the type of the output signal of the current configuration.
In a second aspect, an embodiment of the present invention provides an audio signal processing method, where the method includes:
obtaining a digital signal obtained by performing analog-to-digital conversion on an input analog signal;
according to the type of an unbalanced signal input port connected to the input analog signal, performing audio processing on the digital signal to obtain an audio processing result, wherein the type of the unbalanced signal input port comprises: a type for accessing balanced signals and a type for accessing unbalanced signals;
if the type of the currently configured output signal is a balanced signal type, splitting the audio processing result to obtain two split signals with different signal values;
and outputting the audio signal based on the two paths of different split signals.
In a third aspect, an embodiment of the present invention provides an audio signal processing apparatus, where the apparatus includes:
the first signal acquisition module is used for acquiring a digital signal obtained by performing analog-to-digital conversion on an input analog signal;
the integration processing module is configured to, when two paths of to-be-integrated digital signals exist in the obtained digital signals, perform integration processing on the two paths of to-be-integrated digital signals, and integrate the two paths of to-be-integrated digital signals into one path of integrated signal, where the integrated signal is a digital signal and can obtain the two paths of to-be-integrated digital signals through splitting processing, and the two paths of to-be-integrated digital signals are: the method comprises the following steps of carrying out analog-to-digital conversion on two paths of analog signals to be integrated to obtain digital signals, wherein the two paths of analog signals to be integrated are as follows: the input analog signal that balanced signal input port inserts, balanced signal input port is: the device comprises a preset unbalanced signal input port for accessing a balanced signal;
the first audio processing module is used for carrying out audio processing on the integrated signal to obtain an audio processing result;
and the first signal output module is used for outputting an audio signal based on the audio processing result according to the type of the output signal configured currently.
In a fourth aspect, an embodiment of the present invention provides an audio signal processing apparatus, where the apparatus includes:
the second signal acquisition module is used for acquiring a digital signal obtained by performing analog-to-digital conversion on the input analog signal;
a second audio processing module, configured to perform audio processing on the digital signal according to a type of an unbalanced signal input port accessing the input analog signal, to obtain an audio processing result, where the type of the unbalanced signal input port includes: a type for accessing balanced signals and a type for accessing unbalanced signals;
the splitting processing module is used for splitting the audio processing result to obtain two split signals with different signal values if the type of the currently configured output signal is a balanced signal type;
and the second signal output module is used for outputting the audio signal based on the two paths of different split signals.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of the first aspect when executing a program stored in the memory.
In a sixth aspect, an embodiment of the present invention provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor and the communication interface complete communication between the memory and the processor through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of the second aspect when executing the program stored in the memory.
In a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program, when executed by a processor, implements the method steps in any of the first aspects.
In an eighth aspect, the present invention provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any one of the second aspects.
In a ninth aspect, embodiments of the present invention also provide a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method steps of any of the first aspects described above.
In a tenth aspect, the present invention further provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the method steps of any one of the second aspects.
The embodiment of the invention has the following beneficial effects:
as can be seen from the above, when the scheme provided by the embodiment of the present invention is applied to process an audio signal, the original unbalanced signal input port of the signal processing device may be pre-configured as a port for accessing a balanced signal. Therefore, before audio processing is performed on the two accessed audio signals, if the two accessed audio signals are from two unbalanced signal input ports which are configured to be accessed with balanced signals in advance, the two accessed audio signals are considered to be balanced signals, so that after the two audio signals are subjected to analog-to-digital conversion to obtain two digital signals, the two digital signals are integrated into one integrated signal, then the integrated signal is subjected to audio processing, and the audio signals are output based on the audio processing result.
It can be seen that, in the scheme provided by the embodiment of the present invention, only the type of the signal accessed by the original unbalanced signal input port of the signal processing apparatus is changed, so that the structure of the signal processing apparatus is not changed. In addition, after the type of the signal accessed by the unbalanced signal input port is configured to be the balanced signal type, the signal processing device can access the balanced signal, and further can process the balanced signal, so that when the scheme provided by the embodiment of the invention is applied to process the audio signal, the balanced signal can be processed on the basis of not changing the structure of the signal processing device.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a first audio signal processing method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an access relationship of a first unbalanced signal input port according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an access relationship of a second unbalanced signal input port according to an embodiment of the present invention;
fig. 4 is a block diagram of a mixing process according to an embodiment of the present invention;
fig. 5 is a schematic circuit diagram of a first signal processing apparatus according to an embodiment of the present invention;
FIG. 6 is a flowchart illustrating a second audio signal processing method according to an embodiment of the present invention;
FIG. 7 is a flowchart illustrating a third audio signal processing method according to an embodiment of the invention;
fig. 8 is a process block diagram of a splitting process according to an embodiment of the present invention;
fig. 9 is a schematic diagram illustrating an output relationship of a first unbalanced signal output port according to an embodiment of the present invention;
fig. 10 is a schematic diagram illustrating an output relationship of a second unbalanced signal output port according to an embodiment of the present invention;
FIG. 11 is a flowchart illustrating a fourth audio signal processing method according to an embodiment of the invention;
fig. 12 is a circuit schematic diagram of a second signal processing apparatus according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a first audio signal processing apparatus according to an embodiment of the present invention;
fig. 14 is a schematic structural diagram of a second audio signal processing apparatus according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Since part of the signal processing equipment only comprises the unbalanced signal input port and does not comprise the balanced signal input port, the balanced signal processing is not supported. In order to enable the signal processing device to support processing of balanced signals, embodiments of the present invention provide an audio signal processing method and apparatus.
In one embodiment of the present invention, there is provided an audio signal processing method, including:
and obtaining a digital signal obtained by performing analog-to-digital conversion on the input analog signal.
When two paths of digital signals to be integrated exist in the obtained digital signals, the two paths of digital signals to be integrated are integrated into one path of integrated signal, wherein the integrated signal is a digital signal, the two paths of digital signals to be integrated can be obtained through splitting processing, and the two paths of digital signals to be integrated are as follows: the two analog signals to be integrated are subjected to analog-to-digital conversion to obtain digital signals, wherein the two analog signals to be integrated are as follows: the input analog signal that balanced signal input port inserts, above-mentioned balanced signal input port is: and the preset unbalanced signal input port is used for accessing the balanced signal.
And carrying out audio processing on the integrated signal to obtain an audio processing result.
And outputting the audio signal based on the audio processing result according to the type of the output signal configured currently.
As can be seen from the above, in the solution provided by the embodiment of the present invention, only the type of the signal connected to the original unbalanced signal input port of the signal processing apparatus is changed, so that the structure of the signal processing apparatus is not changed. In addition, after the type of the signal accessed by the unbalanced signal input port is configured to be the balanced signal type, the signal processing device can access the balanced signal, and further can process the balanced signal, so that when the scheme provided by the embodiment of the invention is applied to process the audio signal, the balanced signal can be processed on the basis of not changing the structure of the signal processing device.
In another embodiment of the present invention, there is provided an audio signal processing method, including:
obtaining a digital signal obtained by performing analog-to-digital conversion on an input analog signal;
according to the type of an unbalanced signal input port accessing the input analog signal, performing audio processing on the digital signal to obtain an audio processing result, wherein the type of the unbalanced signal input port comprises: a type for accessing balanced signals and a type for accessing unbalanced signals;
if the type of the currently configured output signal is a balanced signal type, splitting the audio processing result to obtain two split signals with different signal values;
and outputting the audio signal based on the two paths of different split signals.
As can be seen from the above, in the solution provided by the embodiment of the present invention, only the type of the signal output by the original unbalanced signal output port of the signal processing apparatus is changed, so that the change of the structure of the signal processing apparatus is not brought about. In addition, after the type of the signal output by the unbalanced signal output port is configured as the balanced signal type, the signal processing device can output the balanced signal, that is, the balanced signal can be processed, so that when the scheme provided by the embodiment of the invention is applied to processing the audio signal, the balanced signal can be processed without changing the structure of the signal processing device.
The following describes in detail an audio processing method according to an embodiment of the present invention by using specific embodiments.
Referring to fig. 1, a flowchart of a first audio signal processing method is provided according to an embodiment of the present invention.
Specifically, the execution main body of the embodiment of the present invention may be an audio Processing device, a video Processing device, or other Signal Processing devices, for example, a recording and playing device, a recording and playing host, and of course, may also be a Digital Signal Processing chip in the Signal Processing device, for example, an audio Processing chip, such as a C6748 chip, and may also be other Processing chips, such as a DSP (Digital Signal Processor), a CPU (Central Processing Unit), and the like.
The audio processing method comprises the following steps S101-S104.
S101: and obtaining a digital signal obtained by performing analog-to-digital conversion on the input analog signal.
The audio processing device may perform audio processing on the acquired Analog signal by accessing the acquired Analog signal to the signal processing device, and before performing audio processing, the signal processing device may perform Analog-to-Digital conversion on the accessed Analog signal by inputting an input Analog signal to an ADC (Analog-to-Digital Converter), and convert the accessed Analog signal into a Digital signal.
The input analog signal may be a two-channel audio signal or a mono audio signal.
Specifically, after the input interface of the signal processing device receives the input analog signal, the input analog signal may be input to the audio analog-to-digital conversion chip, and the audio analog-to-digital conversion chip performs analog-to-digital conversion on the input analog signal, so as to obtain a digital signal. For example, the audio analog-to-digital conversion chip may be PCM 1864.
In addition, before performing analog-to-digital conversion on the input analog signal, the input analog signal may be subjected to operational amplification processing, after the input interface of the signal processing device receives the input analog signal, the input analog signal may be input to an operational amplifier, the operational amplifier performs operational amplification processing on the input analog signal, and then the operational amplification processing result is input to an audio analog-to-digital conversion chip for analog-to-digital conversion. For example, the operational amplifier may be a 4558CM chip.
Further, the obtained digital signal may be composed of 16 signal values, each of which may be short integer data, and the signal values may be positive values or negative values.
S102: and when two paths of digital signals to be integrated exist in the obtained digital signals, integrating the two paths of digital signals to be integrated, and integrating the two paths of digital signals to be integrated into one integrated signal.
The integrated signal is a digital signal, and the two paths of digital signals to be integrated can be obtained through splitting processing.
The two paths of digital signals to be integrated are as follows: and performing analog-to-digital conversion on the two paths of analog signals to be integrated to obtain digital signals.
The two paths of analog signals to be integrated are as follows: and balancing the input analog signals accessed by the signal input ports.
The balanced signal input port is: and the preset unbalanced signal input port is used for accessing the balanced signal.
Specifically, the balanced signal includes two analog signals obtained by processing the original signal, the two analog signals can be restored to obtain the original signal, each unbalanced signal input port can only be accessed to one analog signal, therefore, the balanced signal needs to be accessed through the two unbalanced signal input ports, and the preset unbalanced signal input ports for accessing the balanced signal are correspondingly paired with each other. And, the user can set any two unbalanced signal input ports of the signal processing apparatus as a pair of ports for accessing balanced signals.
In an embodiment of the present invention, the two paths of digital signals to be integrated may be integrated into one integrated signal through the following steps a-B.
Step A: and respectively subtracting the signal values with the same signal value sequence number in the first digital signal and the second digital signal to obtain a calculation result.
Wherein, the first digital signal is: and one signal in the two paths of digital signals to be integrated.
The second digital signal is: and the other signal except the first digital signal in the two paths of digital signals to be integrated.
Specifically, the sequence number indicates the sequence of the signal values in the digital signal, for example, the sequence number of the first signal value in the two digital signals to be integrated is the same and may be 1.
And B: and dividing each calculation result by a preset coefficient to obtain each signal value in the integrated signal.
Specifically, it may be considered that the signal values with the same signal value sequence number in the first digital signal and the second digital signal are subtracted to obtain a calculation result, and then the calculation result is divided by a preset coefficient to obtain a signal value with a signal value sequence number in the integrated signal that is the same as the signal value sequence number of the subtracted signal value.
For example, the signal value with the signal value sequence number of 3 in the integrated signal can be obtained by subtracting the signal value with the signal value sequence number of 3 in the first digital signal and the second digital signal to obtain a calculation result, and dividing the calculation result by a preset coefficient.
In addition, because the first digital signal and the second digital signal are obtained by performing analog-to-digital conversion on the balance signal, the two paths of digital signals corresponding to the balance signal are obtained by multiplying the signal value in the original signal by different coefficients or directly taking the original signal as one path of digital signal. For the case of taking the original signal as a digital signal, the digital signal is obtained by multiplying the signal value in the original signal by 1.
The preset coefficients are: a difference between the first coefficient and the second coefficient, wherein the first coefficient is: the original signal is processed to obtain a coefficient multiplied by the first digital signal, and the second coefficient is: the original signal is processed to obtain a coefficient multiplied by the second digital signal. Therefore, it can be considered that the signal values in the first digital signal and the second digital signal having the same signal value sequence number are subtracted to obtain a calculation result, and the calculation result is divided by a preset coefficient to obtain an integrated signal, which is the original signal.
In an embodiment of the present invention, the steps a to B may be implemented according to the following formulas to obtain the integrated signal:
Figure BDA0002831085200000081
wherein, D represents the signal value in the integrated signal, A and B represent the signal value with the same sequence number as the signal value represented by D in the two paths of digital signals to be integrated, and N represents the preset coefficient.
For example, a and B may be the first signal values of the two digital signals to be integrated, if D is the first signal value of the integrated signal, the sequence numbers of A, B, D are both 1, if a and B are the second signal values of the two digital signals to be integrated, if D is the second signal value of the integrated signal, the sequence numbers of A, B, D are both 2, and so on.
Referring to fig. 2, a schematic diagram of an access relationship of a first unbalanced signal input port according to an embodiment of the present invention is provided.
Wherein, the left side of fig. 2 is a signal processing device comprising unbalanced signal input ports 1, 2 and a ground port G. On the right side of fig. 2 is an audio acquisition device, such as a microphone or the like, comprising a balanced signal output port OUT+And OUT-And a ground port G.
Specifically, the unbalanced signal input ports 1 and 2 are provided as ports for receiving balanced signals, and the balanced signal output port OUT_And OUT+Respectively connected to the unbalanced signal input ports 1, 2. The audio acquisition device may input two analog signals of the balanced signal to the signal processing device. And the ground wire port G of the audio acquisition equipment is connected with the ground wire port G of the signal processing equipment.
Referring to fig. 3, a schematic diagram of an access relationship of a second unbalanced signal input port according to an embodiment of the present invention is provided.
On the left side of fig. 3, there is a signal processing apparatus including unbalanced signal input ports 1, 2, and 3 and a ground port G. The audio acquisition device M and the audio acquisition device N are on the right side of fig. 3, and the audio acquisition device M includes a balanced signal output port + and-, and a ground port G. The audio acquisition device N comprises an unbalanced signal output port IN, and a ground port G.
Specifically, the unbalanced signal input ports 1 and 2 are configured as ports for accessing balanced signals, and the balanced signal output ports — and + are respectively connected to the unbalanced signal input ports 1 and 2. The audio acquisition device M may input two analog signals of the balanced signal to the signal processing device. The unbalanced signal input port 3 is connected to the unbalanced signal output port IN, so that the audio acquisition device N can input the unbalanced signal to the signal processing device. The ground port G of the audio acquisition equipment M and N is connected with the ground port G of the signal processing equipment.
Fig. 3 is only an example of the unbalanced signal input port, and besides the embodiment shown in fig. 3, the user may set the unbalanced signal input ports 2 and 3 as ports for accessing the balanced signal, and may set the unbalanced signal input ports 1 and 3 as ports for accessing the balanced signal.
It can be seen that, the unbalanced signal input ports of the signal processing apparatus can be set as ports for accessing balanced signals, so that the unbalanced signal input ports can access both balanced signals and unbalanced signals according to different user settings, and the unbalanced signal input ports are reusable.
S103: and carrying out audio processing on the integrated signal to obtain an audio processing result.
Specifically, the audio processing may be: the integrated signal is subjected to noise reduction, echo cancellation, and other processing, which may be implemented by an algorithm in the prior art, which is not limited in the embodiment of the present invention.
In addition, the audio processing may be: and carrying out sound mixing processing on the integrated signal and the digital signals of other paths to obtain a sound mixing processing result.
The integrated signal and each signal value in the other digital signals may be mixed according to the following formula:
D0=D+C
wherein, D is0Representing the signal value in the mixing result, D and C representing the sum of the integrated signal and the digital signals0The signal values represented have the same sequence number.
Specifically, D and C may be the first signal values of the integrated signal and the other digital signals, respectively, and D is calculated0Is the first signal value in the mixing processing result, then D0D, C, the sequence numbers of the signal values are all 1, D and C can be the second signal values of the integrated signal and other digital signals respectively, and D is calculated0Is the second signal value in the mixing processing result, then D0D, C, the same signal value sequence number is 2, and so on.
The above formula only indicates that the integrated signal is mixed with one path of digital signal, and similarly, the integrated signal may also be mixed with multiple paths of digital signals, and it is necessary to accumulate multiple signal values with the same signal value sequence number in the integrated signal and other multiple paths of digital signals.
In addition, the audio mixing processing may be performed on the integrated signal by other audio mixing processing methods, which is not limited in the embodiment of the present invention.
Referring to fig. 4, a process block diagram of mixing processing according to an embodiment of the present invention is shown.
X, Y, Z is an analog signal, the analog signal X and the analog signal Y are two paths of analog signals to be integrated, AD represents analog-to-digital conversion, and DA represents digital-to-analog conversion.
As can be seen from the figure, analog-to-digital conversion is performed on the analog signals X, Y, Z to obtain digital signals corresponding to the analog signals, where the digital signals corresponding to the analog signals X, Y are two paths of digital signals to be integrated. And integrating the two paths of digital signals to be integrated to obtain integrated signals, and performing sound mixing processing on the integrated signals and digital signals corresponding to the analog signals Z to obtain sound mixing processing results. And D/A conversion is carried out on the mixed sound processing result to obtain an analog signal.
In this figure, only the audio mixing process is taken as an example of the audio processing, and the audio processing such as echo cancellation and noise reduction may be directly performed on the integrated signal after the integration process.
S104: and outputting the audio signal based on the audio processing result according to the type of the output signal configured currently.
The preset output signal type may be a digital signal type or an analog signal type, and specifically, the analog signal type may be further classified into a balanced signal type and an unbalanced signal type.
Since the audio processing is performed on the digital signal, and the obtained audio processing result is also a digital signal, if the type of the preset output signal is an analog signal type, the audio processing result needs to be subjected to digital-to-analog conversion before the audio signal is output.
Specifically, after the audio processing result is obtained, the audio processing result may be input to a DAC (Digital to Analog Converter) for Digital to Analog conversion. Because the audio processing result is an audio signal, the audio processing result can be input into an audio digital-to-analog conversion chip, and the audio digital-to-analog conversion chip performs digital-to-analog conversion on the audio processing result, so that an analog signal is obtained. For example, the audio digital-to-analog conversion chip may be PCM 5100.
If the type of the preset output signal is a balanced signal type, the preset output signal can be implemented through steps S104A-S104B, which will not be described in detail herein.
As can be seen from the above, in the solution provided by the embodiment of the present invention, only the type of the signal connected to the original unbalanced signal input port of the signal processing apparatus is changed, so that the structure of the signal processing apparatus is not changed. In addition, after the type of the signal accessed by the unbalanced signal input port is configured to be the balanced signal type, the signal processing device can access the balanced signal, and further can process the balanced signal, so that when the scheme provided by the embodiment of the invention is applied to process the audio signal, the balanced signal can be processed on the basis of not changing the structure of the signal processing device.
In addition, under the condition that the input analog signals come from audio acquisition equipment with higher requirements on audio stability, such as a microphone, and the like, in the process of processing the input analog signals, in order to avoid the influence of the input analog signals on the current in a circuit of the signal processing equipment, a phantom power supply can be externally connected to the signal processing equipment, and the influence on the input analog signals is smaller because the stability of the current output by the phantom power supply is higher. By the method, the signal processing equipment can process the input analog signals with high audio stability requirements, so that the ports of the signal processing equipment can be expanded.
The phantom power supply may be a 48V power supply.
Referring to fig. 5, a schematic circuit diagram of a first signal processing apparatus according to an embodiment of the present invention is provided.
Wherein AIN1-6 is the input analog signal, AIN1 and AIN2 are the left and right binaural analog signals, so AIN1-6 includes 8 input analog signals in total, and the input analog signal may be a balanced signal or an unbalanced signal. 4558CM is an operational amplifier, and can perform operational amplification processing on an input analog signal. The PCM1864 is an audio analog-to-digital conversion chip, and can perform analog-to-digital conversion on an input analog signal subjected to operational amplification to obtain a digital signal. I2S is an integrated circuit built-in audio bus that can be used to transmit digital signals. The C6748 processor may perform integration processing, audio processing, etc. on the digital signals, and MCASP is the interface to the C6748 processor. The audio processing result of the C6748 processor can be transmitted to the audio digital-to-analog conversion chip PCM5100 through the I2S, and the audio processing result is converted into analog signals, 1(LR), 2(LR), and 3(LR) are output analog signals, and the output analog signals can be balanced signals or unbalanced signals.
Referring to fig. 6, a flowchart of a second audio signal processing method according to an embodiment of the present invention is shown, and compared with the foregoing embodiment shown in fig. 1, the above step S104 can be implemented by the following steps S104A-S104B.
S104A: and if the type of the currently configured output signal is a balanced signal type, splitting the audio processing result to obtain two split signals with different signal values.
Specifically, the balanced signal includes two analog signals, so that the audio signal needs to be split into two split signals with different signal values when the type of the preset output signal is the balanced signal type. And respectively converting the two paths of split signals into analog signals so as to obtain two paths of analog signals.
In an embodiment of the present invention, two split signals can be obtained through the following steps C to D:
and C: and obtaining the inverse number of each signal value in the audio processing result to obtain an inverse audio processing result.
Specifically, the audio processing result includes a plurality of signal values, an inverse number of each signal value is obtained, and the inverse numbers of the signal values are combined into an inverse audio processing result according to the arrangement sequence of the signal values in the audio processing result.
Furthermore, depending on the data type of the signal value, a negative number may be stored in the signal processing apparatus in the form of a sign bit plus a complement, which is not the signal value itself. Therefore, the inverse of the signal value may not be directly sign-inverted with respect to the signal value of the audio processing result, and the inverse obtained by directly sign-inverting may be an error. The method for calculating the inverse number is different according to different data types of the signal values, and specifically, the method for calculating the inverse number for the signal values of different data types is the prior art, which is not limited in the present invention. For example, the data type of the signal value may be short, long, or the like.
Because the absolute value of the inverse number is the same as the absolute value of the signal value, if the signal value in the audio processing result does not have data overflow, that is, the signal value exceeds the numerical value limit of the data type corresponding to the signal value, the inverse number of each signal value in the audio processing result is obtained, and the phenomenon of data overflow is not easy to occur in each signal value in the obtained inverse audio processing result.
Step D: and determining the audio processing result and the opposite audio processing result as two split signals with different signal values.
Specifically, the audio processing result and the inverse audio processing result are two audio processing results that are mutually inverse, the two split signals may be referred to as differential signals, and the steps C to D may be referred to as differential processing.
In another embodiment of the present invention, two different split signals can be obtained through the following steps E to F:
step E: and multiplying each signal value in the audio processing result by a first preset multiple respectively to obtain a first double audio processing result.
Specifically, the audio processing result includes a plurality of signal values, each signal value is multiplied by a first preset multiple, and the signal values multiplied by the first preset multiple form a first doubled audio processing result according to the arrangement sequence of the signal values in the audio processing result.
The first preset multiple may be any multiple value, but is limited by the data type of the signal value, and if the first preset multiple is larger, the calculated signal value multiplied by the first preset multiple may exceed the value range of the data type corresponding to the signal value, thereby causing a problem of data overflow. Therefore, the first preset multiple may be set to a smaller multiple value, such as 2 times, 3 times, etc.
Step F: and obtaining two split signals with different signal values according to the audio processing result and the first audio doubling processing result.
In an embodiment of the present invention, the audio processing result and the first doubled audio processing result may be determined as two different split signals.
In another embodiment of the present invention, the step F may be realized by the following steps F1 to F2.
Step F1: and multiplying each signal value in the audio processing result by a second preset multiple respectively to obtain a second double audio processing result.
The first preset multiple is different from the second preset multiple.
The first preset multiple is different from the second preset multiple, so that the first doubled audio processing result obtained by calculation is different from the second doubled audio processing result.
In an embodiment of the present invention, the signal values in the audio processing result may be processed according to the following formula, so as to implement the steps E to F1.
S1=N*S0
S2=K*S0
Wherein S is0For the signal values in the audio processing result, N is a first preset multiple, K is a second preset multiple, N is not equal to K, and S is1For the signal value, S, in the first double audio processing result2Is the signal value in the second double audio processing result.
Step F2: and determining the first audio frequency doubling processing result and the second audio frequency doubling processing result as two split signals with different signal values.
S104B: and outputting the audio signal based on the two paths of split signals.
Specifically, since the balanced signal is an analog signal, before the audio signal is output, digital-to-analog conversion needs to be performed on the two split signals to obtain an analog signal, and the obtained analog signal is output.
Wherein, the obtained analog signal can be output through a preset unbalanced signal output port for outputting a balanced signal.
As can be seen from the above, the scheme provided by the embodiment of the present invention only changes the type of the signal output by the original unbalanced signal output port of the signal processing apparatus, and can output the analog signal through the preset unbalanced signal output port for outputting the balanced signal without changing the structure of the signal processing apparatus. The scheme provided by the embodiment of the invention not only can process the input balance signal, but also can output the balance signal.
Referring to fig. 7, a flowchart of a third audio signal processing method according to an embodiment of the present invention is shown, where the method includes the following steps S701 to S704.
S701: and obtaining a digital signal obtained by performing analog-to-digital conversion on the input analog signal.
S702: and according to the type of the unbalanced signal input port connected with the input analog signal, carrying out audio processing on the digital signal to obtain an audio processing result.
Wherein, the types of the unbalanced signal input port comprise: a type for accessing balanced signals and a type for accessing unbalanced signals.
Specifically, if the type of the unbalanced signal input port accessing the input analog signal is a type for accessing a balanced signal, the accessed input analog signal is considered to be a balanced signal, and the performing the audio processing on the digital signal includes: and integrating the digital signals to obtain integrated signals, and performing audio processing on the integrated signals.
If the type of the unbalanced signal input port accessing the input analog signal is a type for accessing an unbalanced signal, the accessed input analog signal is considered to be an unbalanced signal, and the performing the audio processing on the digital signal includes: and directly carrying out audio processing on the digital signal.
S703: and if the type of the currently configured output signal is a balanced signal type, splitting the audio processing result to obtain two split signals with different signal values.
Specifically, the balanced signal includes two analog signals obtained by performing digital-to-analog conversion on two different split signals.
In one embodiment of the present invention, two different split signals can be obtained through the following steps G to H.
Step G: obtaining the opposite number of each signal value in the audio processing result to obtain an opposite audio processing result;
step H: and determining the audio processing result and the opposite audio processing result as two split signals with different signal values.
Specifically, the steps G to H are similar to the steps C to D, and are not described again in this embodiment of the present invention.
In another embodiment of the present invention, two different split signals can be obtained through the following steps I-J.
Step I: and multiplying each signal value in the audio processing result by a first preset multiple respectively to obtain a first double audio processing result.
Step J: and obtaining two split signals with different signal values according to the audio processing result and the first audio doubling processing result.
Specifically, steps I to J are similar to steps E to F, which are not described again in the embodiments of the present invention.
In addition, in one embodiment of the present invention, the above step J may be implemented by the following steps J1 to J2.
Step J1: and multiplying each signal value in the audio processing result by a second preset multiple respectively to obtain a second double audio processing result.
The first preset multiple is different from the second preset multiple.
Step J2: and determining the first audio frequency doubling processing result and the second audio frequency doubling processing result as two split signals with different signal values.
Specifically, the steps J1 to J2 are similar to the steps F1 to F2, and are not repeated in this embodiment of the present invention.
Referring to fig. 8, a block diagram of a splitting process according to an embodiment of the present invention is provided.
The wavy lines in the graph represent analog signals, firstly, input analog signals are converted into digital signals through AD (analog-to-digital) signals, audio processing results are obtained after the digital signals are subjected to audio processing, the audio processing results are subjected to splitting processing, and two paths of different splitting signals are obtained, wherein the upper splitting signal is the audio processing result, and the lower splitting signal is the opposite audio processing result. And D, performing DA conversion on the two paths of split signals to obtain an output analog signal.
S704: and outputting the audio signal based on the two paths of different split signals.
Specifically, after the two split signals are obtained, the two split signals may be input to an audio digital-to-analog conversion chip, and the audio digital-to-analog conversion chip performs digital-to-analog conversion on the two split signals, so as to obtain analog signals, which are used as two analog signals of the balance signal. The audio digital-to-analog conversion chip may be PCM 5100.
Referring to fig. 9, a schematic diagram of an output relationship of a first unbalanced signal output port according to an embodiment of the present invention is provided.
Wherein, the left side of fig. 9 is a signal processing device comprising unbalanced signal output ports 4, 5 and a ground port G. On the right side of fig. 9 is an audio playback device, such as a sound box, which includes a balanced signal input port OUT+And IN_And a ground port G.
Specifically, the unbalanced signal output ports 4 and 5 are provided as ports for outputting balanced signals, and the balanced signal input port OUT+And IN-Respectively connected to the unbalanced signal output ports 5, 4. The signal processing device may output the two analog signals of the balanced signal to the audio playing device. The ground port G of the signal processing device is connected to the ground port G of the signal processing device.
Referring to fig. 10, a schematic diagram of an output relationship of a second unbalanced signal output port according to an embodiment of the present invention is provided.
In fig. 10, the left side is a signal processing apparatus including unbalanced signal output ports 4, 5, and 6 and a ground port G. On the right side of FIG. 10 are an audio playback device O and an audio playback device P, the audio playback device O including a balanced signal input port IN-And OUT+And a ground port G. The audio player P comprises an unbalanced signal input portIN, and ground port G.
Specifically, the unbalanced signal output ports 4 and 5 are provided as ports for outputting balanced signals, and the balanced signal input port IN-And OUT+And are respectively connected with the unbalanced signal output ports 4 and 5, the signal processing equipment can output two paths of analog signals of the balanced signal to the audio playing equipment O. The unbalanced signal output port 6 is connected to the unbalanced signal input port IN, and the signal processing device can output the unbalanced signal to the audio playback device P. The ground port G of the audio playing device O and P is connected with the ground port G of the signal processing device.
Fig. 10 described above is only an example of the unbalanced signal output port, and in addition to the embodiment shown in fig. 10, the user may set the unbalanced signal output ports 5 and 6 as ports for outputting balanced signals, and may set the unbalanced signal output ports 4 and 6 as ports for outputting balanced signals.
It can be seen that the unbalanced signal output ports of the signal processing apparatus can be set by a user as ports for outputting balanced signals, and thus, according to the setting, the unbalanced signal output ports can output both balanced signals and unbalanced signals, and the unbalanced signal output ports are reusable.
As can be seen from the above, in the solution provided by the embodiment of the present invention, only the type of the signal output by the original unbalanced signal output port of the signal processing apparatus is changed, so that the change of the structure of the signal processing apparatus is not brought about. In addition, after the type of the signal output by the unbalanced signal output port is configured as the balanced signal type, the signal processing device can output the balanced signal, that is, the balanced signal can be processed, so that when the scheme provided by the embodiment of the invention is applied to processing the audio signal, the balanced signal can be processed without changing the structure of the signal processing device.
Referring to fig. 11, a flowchart illustrating a fourth audio signal processing method according to an embodiment of the present invention is provided, and compared with the embodiment shown in fig. 7, the step S702 can be implemented by the following steps S702A-S702B.
S702A: and if the type of the unbalanced signal input port for accessing the input analog signal is the type for accessing the balanced signal, integrating two paths of digital signals to be integrated contained in the digital signals, and integrating the two paths of digital signals to be integrated into one path of integrated signal.
The integrated signal is a digital signal, and the two paths of digital signals to be integrated can be obtained through splitting processing. The two paths of digital signals to be integrated are as follows: and performing analog-to-digital conversion on the input analog signal to obtain a digital signal.
S702B: and carrying out audio processing based on the integrated signal to obtain an audio processing result.
As can be seen from the above, the scheme provided by the embodiment of the present invention only changes the type of the signal accessed by the original unbalanced signal input port of the signal processing device, and can perform integration processing on the digital signal of the input balanced signal to obtain an integrated signal and perform audio processing on the integrated signal without changing the structure of the signal processing device. The scheme provided by the embodiment of the invention not only can output the balance signal, but also can process the accessed balance signal.
Referring to fig. 12, a circuit schematic diagram of a second signal processing device according to an embodiment of the present invention, compared with the circuit schematic diagram shown in fig. 5, further includes an AD9388 video analog-to-digital conversion chip for performing analog-to-digital conversion on two video signals, i.e., 1# HDMI and 2# HDMI.
The first processor is used for carrying out digital signal processing on input IPC1, IPC2, talkback and interactive audio.
The circuit also comprises another C6748 chip, the upper C6748 chip can be used as a main chip, the lower C6748 chip can be used as a slave chip, and the MCBSP port is contained in the slave chip. Different classes of input audio signals can be processed in different C6748 chips, and the classes can be classified according to the content of the input audio signals or the input ports, for example, local audio, HDMI audio, interactive audio can be processed in the master chip, and intercom audio and coded audio can be processed in the slave chip.
The circuit also comprises a second processor and a third processor for encoding and packaging, and the second processor can output the HDMI signal.
As shown in fig. 12, the input audio signal input to the signal processing device may be an analog signal or a digital signal, the input audio signal may be an audio signal or a video signal, and the output audio signal output from the signal processing device may be an analog signal or a digital signal.
In addition, the second processor and the third processor can be arranged to output other signals, so that the output signals of the signal processing equipment can be expanded.
Corresponding to the audio signal processing method, the embodiment of the invention also provides an audio signal processing device.
Referring to fig. 13, a schematic structural diagram of a first audio signal processing apparatus according to an embodiment of the present invention is shown, where the apparatus includes:
the first signal obtaining module 1301 is configured to obtain a digital signal obtained by performing analog-to-digital conversion on an input analog signal.
Specifically, in an embodiment of the present invention, the first signal obtaining module 1301 may be composed of an audio analog-to-digital conversion chip PCM 1864. The first signal obtaining module 1301 may further include an operational amplifier 4558CM configured to perform operational amplification processing on the input analog signal.
An integration processing module 1302, configured to, when there are two paths of to-be-integrated digital signals in the obtained digital signals, perform integration processing on the two paths of to-be-integrated digital signals, and integrate the two paths of to-be-integrated digital signals into one path of integrated signal, where the integrated signal is a digital signal and the two paths of to-be-integrated digital signals can be obtained through splitting processing, and the two paths of to-be-integrated digital signals are: the method comprises the following steps of carrying out analog-to-digital conversion on two paths of analog signals to be integrated to obtain digital signals, wherein the two paths of analog signals to be integrated are as follows: the input analog signal that balanced signal input port inserts, balanced signal input port is: and the preset unbalanced signal input port is used for accessing the balanced signal.
Specifically, in an embodiment of the present invention, the integrated processing module 1302 may be composed of a C6748 processor.
And the first audio processing module 1303 is configured to perform audio processing on the integrated signal to obtain an audio processing result.
Specifically, in an embodiment of the present invention, the first audio processing module 1303 may also be composed of a C6748 processor.
A first signal output module 1304, configured to output an audio signal based on the audio processing result according to the type of the currently configured output signal.
As can be seen from the above, in the solution provided by the embodiment of the present invention, only the type of the signal connected to the original unbalanced signal input port of the signal processing apparatus is changed, so that the structure of the signal processing apparatus is not changed. In addition, after the type of the signal accessed by the unbalanced signal input port is configured to be the balanced signal type, the signal processing device can access the balanced signal, and further can process the balanced signal, so that when the scheme provided by the embodiment of the invention is applied to process the audio signal, the balanced signal can be processed on the basis of not changing the structure of the signal processing device.
In an embodiment of the invention, the first signal output module 1304 includes:
the first signal splitting submodule is used for splitting the audio processing result to obtain two paths of split signals with different signal values if the type of the currently configured output signal is a balanced signal type;
and the first signal output submodule is used for outputting audio signals based on the two paths of split signals.
Specifically, in an embodiment of the present invention, since the type of the currently configured output signal is a balanced signal type, the balanced signal is an analog signal, and before the audio signal is output, digital-to-analog conversion needs to be performed on the two split signals to obtain the analog signal. Therefore, the first signal output submodule can be composed of the audio digital-to-analog conversion chip PCM 5100.
As can be seen from the above, the scheme provided by the embodiment of the present invention only changes the type of the signal output by the original unbalanced signal output port of the signal processing apparatus, and can output the analog signal through the preset unbalanced signal output port for outputting the balanced signal without changing the structure of the signal processing apparatus. The scheme provided by the embodiment of the invention not only can process the input balance signal, but also can output the balance signal.
In an embodiment of the present invention, the first signal splitting sub-module is specifically configured to:
if the type of the currently configured output signal is a balanced signal type, obtaining the opposite number of each signal value in the audio processing result to obtain an opposite audio processing result;
and determining the audio processing result and the opposite audio processing result as two split signals with different signal values.
In an embodiment of the present invention, the first signal splitting sub-module includes:
the signal doubling unit is used for multiplying each signal value in the audio processing result by a first preset multiple to obtain a first doubled audio processing result if the type of the currently configured output signal is a balanced signal type;
and the signal obtaining unit is used for obtaining two paths of split signals with different signal values according to the audio processing result and the first doubled audio processing result.
In an embodiment of the present invention, the signal obtaining unit is specifically configured to:
multiplying each signal value in the audio processing result by a second preset multiple respectively to obtain a second doubled audio processing result, wherein the first preset multiple is different from the second preset multiple;
and determining the first audio frequency doubling processing result and the second audio frequency doubling processing result as two split signals with different signal values.
In an embodiment of the present invention, the integrated processing module 1302 is specifically configured to:
when two paths of digital signals to be integrated exist in the obtained digital signals, subtracting signal values with the same signal value sequence number in the first digital signal and the second digital signal respectively to obtain a calculation result, wherein the first digital signal is as follows: one of the two paths of digital signals to be integrated is a signal, and the second digital signal is: the other signal except the first digital signal in the two paths of digital signals to be integrated;
and dividing each calculation result by a preset coefficient to obtain each signal value in the integrated signal.
Referring to fig. 14, a schematic structural diagram of a second audio signal processing apparatus according to an embodiment of the present invention is shown, where the apparatus includes:
a second signal obtaining module 1401, configured to obtain a digital signal obtained by performing analog-to-digital conversion on the input analog signal.
Specifically, in an embodiment of the present invention, the second signal obtaining module 1401 may be composed of an audio analog-to-digital conversion chip PCM 1864.
The second signal obtaining module 1401 may further include an operational amplifier 4558CM configured to perform operational amplification processing on the input analog signal.
A second audio processing module 1402, configured to perform audio processing on the digital signal according to a type of an unbalanced signal input port accessing the input analog signal, to obtain an audio processing result, where the type of the unbalanced signal input port includes: a type for accessing balanced signals and a type for accessing unbalanced signals.
Specifically, in an embodiment of the present invention, the second audio processing module 1402 may be composed of a C6748 processor.
A splitting module 1403, configured to split the audio processing result to obtain two split signals with different signal values if the type of the currently configured output signal is a balanced signal type.
Specifically, in an embodiment of the present invention, the splitting processing module 1403 may also be composed of a C6748 processor.
A second signal output module 1404, configured to output an audio signal based on the two different split signals.
Specifically, in an embodiment of the present invention, since the type of the currently configured output signal is a balanced signal type, the balanced signal is an analog signal, and before the audio signal is output, digital-to-analog conversion needs to be performed on the two split signals to obtain the analog signal. The second signal output module 1404 may be composed of an audio digital-to-analog conversion chip PCM 5100.
As can be seen from the above, in the solution provided by the embodiment of the present invention, only the type of the signal output by the original unbalanced signal output port of the signal processing apparatus is changed, so that the change of the structure of the signal processing apparatus is not brought about. In addition, after the type of the signal output by the unbalanced signal output port is configured as the balanced signal type, the signal processing device can output the balanced signal, that is, the balanced signal can be processed, so that when the scheme provided by the embodiment of the invention is applied to processing the audio signal, the balanced signal can be processed without changing the structure of the signal processing device.
In an embodiment of the present invention, the second audio processing module 1402 is specifically configured to:
if the type of the unbalanced signal input port accessed with the input analog signal is a type used for accessing a balanced signal, integrating two paths of digital signals to be integrated contained in the digital signal, and integrating the two paths of digital signals to be integrated into one path of integrated signal, wherein the integrated signal is a digital signal, and the two paths of digital signals to be integrated can be obtained through splitting processing, and the two paths of digital signals to be integrated are: performing analog-to-digital conversion on the input analog signal to obtain a digital signal;
and carrying out audio processing based on the integrated signal to obtain an audio processing result.
As can be seen from the above, the scheme provided by the embodiment of the present invention only changes the type of the signal accessed by the original unbalanced signal input port of the signal processing device, and can perform integration processing on the digital signal of the input balanced signal to obtain an integrated signal and perform audio processing on the integrated signal without changing the structure of the signal processing device. The scheme provided by the embodiment of the invention not only can output the balance signal, but also can process the accessed balance signal.
In an embodiment of the present invention, the splitting module 1403 is specifically configured to:
if the type of the currently configured output signal is a balanced signal type, obtaining the opposite number of each signal value in the audio processing result to obtain an opposite audio processing result;
and determining the audio processing result and the opposite audio processing result as two split signals with different signal values.
As can be seen from the above, since the absolute value of the above-mentioned inverse number is the same as the absolute value of the signal value, if the signal value in the above-mentioned audio processing result does not have data overflow, the inverse number of each signal value in the above-mentioned audio processing result is obtained, and the phenomenon that data overflow is not easily generated for each signal value in the obtained inverse audio processing result.
In an embodiment of the present invention, the splitting module 1403 includes:
the signal doubling submodule is used for multiplying each signal value in the audio processing result by a first preset multiple respectively to obtain a first doubled audio processing result if the type of the currently configured output signal is a balanced signal type;
and the signal obtaining submodule is used for obtaining two paths of split signals with different signal values according to the audio processing result and the first doubled audio processing result.
In an embodiment of the present invention, the signal obtaining sub-module is specifically configured to:
multiplying each signal value in the audio processing result by a second preset multiple respectively to obtain a second doubled audio processing result, wherein the first preset multiple is different from the second preset multiple;
and determining the first audio frequency doubling processing result and the second audio frequency doubling processing result as two split signals with different signal values.
An embodiment of the present invention further provides an electronic device, as shown in fig. 15, including a processor 1501, a communication interface 1502, a memory 1503, and a communication bus 1504, where the processor 1501, the communication interface 1502, and the memory 1503 complete mutual communication through the communication bus 1504,
a memory 1503 for storing a computer program;
the processor 1501 is configured to implement the method steps of any of the audio signal processing methods described above when executing the program stored in the memory 1503.
When the electronic equipment provided by the embodiment of the invention is applied to audio signal processing, the scheme provided by the embodiment of the invention only changes the type of the signal accessed by the original unbalanced signal input port of the signal processing equipment and the type of the signal output by the unbalanced signal output port, so that the structure of the signal processing equipment cannot be changed. In addition, after the type of the signal accessed by the unbalanced signal input port is configured to be the balanced signal type, the signal processing device can access the balanced signal. After the type of the signal output by the unbalanced signal output port is configured to be the balanced signal type, the signal processing equipment can output the balanced signal, and then the balanced signal can be processed. Therefore, when the scheme provided by the embodiment of the invention is applied to processing the audio signal, the balanced signal can be supported to be processed on the basis of not changing the structure of the signal processing equipment.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided by the present invention, a computer-readable storage medium is also provided, in which a computer program is stored, which, when being executed by a processor, realizes the steps of any of the audio signal processing methods described above.
When the computer program stored in the computer-readable storage medium applied to the agent side provided by the embodiment of the present invention is executed to perform audio signal processing, in the scheme provided by the embodiment of the present invention, only the type of the signal accessed by the original unbalanced signal input port of the signal processing device and the type of the signal output by the unbalanced signal output port are changed, so that the structure of the signal processing device is not changed. In addition, after the type of the signal accessed by the unbalanced signal input port is configured to be the balanced signal type, the signal processing device can access the balanced signal. After the type of the signal output by the unbalanced signal output port is configured to be the balanced signal type, the signal processing equipment can output the balanced signal, and then the balanced signal can be processed. Therefore, when the scheme provided by the embodiment of the invention is applied to processing the audio signal, the balanced signal can be supported to be processed on the basis of not changing the structure of the signal processing equipment.
In a further embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the steps of any of the audio signal processing methods of the above embodiments.
In the case of executing the computer program applied to the agent side provided by the embodiment of the present invention to perform audio signal processing, in the scheme provided by the embodiment of the present invention, only the type of the signal accessed by the original unbalanced signal input port of the signal processing device and the type of the signal output by the unbalanced signal output port are changed, so that the structure of the signal processing device is not changed. In addition, after the type of the signal accessed by the unbalanced signal input port is configured to be the balanced signal type, the signal processing device can access the balanced signal. After the type of the signal output by the unbalanced signal output port is configured to be the balanced signal type, the signal processing equipment can output the balanced signal, and then the balanced signal can be processed. Therefore, when the scheme provided by the embodiment of the invention is applied to processing the audio signal, the balanced signal can be supported to be processed on the basis of not changing the structure of the signal processing equipment.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus, the electronic device, the computer-readable storage medium and the computer program product, since they are substantially similar to the method embodiments, the description is relatively simple, and in relation to them, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (26)

1. A method of audio signal processing, the method comprising:
obtaining a digital signal obtained by performing analog-to-digital conversion on an input analog signal;
when two paths of digital signals to be integrated exist in the obtained digital signals, the two paths of digital signals to be integrated are integrated into one path of integrated signal, wherein the integrated signal is a digital signal, the two paths of digital signals to be integrated can be obtained through splitting processing, and the two paths of digital signals to be integrated are as follows: the method comprises the following steps of carrying out analog-to-digital conversion on two paths of analog signals to be integrated to obtain digital signals, wherein the two paths of analog signals to be integrated are as follows: the input analog signal that balanced signal input port inserts, balanced signal input port is: the device comprises a preset unbalanced signal input port for accessing a balanced signal;
performing audio processing on the integrated signal to obtain an audio processing result;
and outputting an audio signal based on the audio processing result according to the type of the output signal of the current configuration.
2. The method of claim 1, wherein outputting an audio signal based on the audio processing result according to the type of the currently configured output signal comprises:
if the type of the currently configured output signal is a balanced signal type, splitting the audio processing result to obtain two split signals with different signal values;
and outputting an audio signal based on the two paths of split signals.
3. The method according to claim 2, wherein the splitting the audio processing result to obtain two split signals with different signal values includes:
obtaining the opposite number of each signal value in the audio processing result to obtain an opposite audio processing result;
and determining the audio processing result and the opposite audio processing result as two split signals with different signal values.
4. The method according to claim 2, wherein the splitting the audio processing result to obtain two split signals with different signal values includes:
multiplying each signal value in the audio processing result by a first preset multiple respectively to obtain a first doubled audio processing result;
and acquiring two split signals with different signal values according to the audio processing result and the first audio doubling processing result.
5. The method of claim 4, wherein the obtaining the split signals with different signal values according to the audio processing result and the first doubled audio processing result comprises:
multiplying each signal value in the audio processing result by a second preset multiple respectively to obtain a second doubled audio processing result, wherein the first preset multiple is different from the second preset multiple;
and determining the first audio frequency doubling processing result and the second audio frequency doubling processing result as two split signals with different signal values.
6. The method according to any one of claims 1 to 5, wherein the integrating the two digital signals to be integrated into one integrated signal comprises:
subtracting the signal values with the same signal value sequence number in the first digital signal and the second digital signal respectively to obtain a calculation result, wherein the first digital signal is as follows: one of the two paths of digital signals to be integrated is a signal, and the second digital signal is: the other signal except the first digital signal in the two paths of digital signals to be integrated;
and dividing each calculation result by a preset coefficient to obtain each signal value in the integrated signal.
7. A method of audio signal processing, the method comprising:
obtaining a digital signal obtained by performing analog-to-digital conversion on an input analog signal;
according to the type of an unbalanced signal input port connected to the input analog signal, performing audio processing on the digital signal to obtain an audio processing result, wherein the type of the unbalanced signal input port comprises: a type for accessing balanced signals and a type for accessing unbalanced signals;
if the type of the currently configured output signal is a balanced signal type, splitting the audio processing result to obtain two split signals with different signal values;
and outputting the audio signal based on the two paths of different split signals.
8. The method of claim 7, wherein performing audio processing on the digital signal according to a type of unbalanced signal input port accessing the input analog signal to obtain an audio processing result comprises:
if the type of the unbalanced signal input port accessed with the input analog signal is a type used for accessing a balanced signal, integrating two paths of digital signals to be integrated contained in the digital signal, and integrating the two paths of digital signals to be integrated into one path of integrated signal, wherein the integrated signal is a digital signal, and the two paths of digital signals to be integrated can be obtained through splitting processing, and the two paths of digital signals to be integrated are: performing analog-to-digital conversion on the input analog signal to obtain a digital signal;
and carrying out audio processing based on the integrated signal to obtain an audio processing result.
9. The method according to claim 7 or 8, wherein the splitting the audio processing result to obtain two split signals with different signal values if the type of the currently configured output signal is a balanced signal type comprises:
if the type of the currently configured output signal is a balanced signal type, obtaining the opposite number of each signal value in the audio processing result to obtain an opposite audio processing result;
and determining the audio processing result and the opposite audio processing result as two split signals with different signal values.
10. The method according to claim 7 or 8, wherein the splitting the audio processing result to obtain two split signals with different signal values if the type of the currently configured output signal is a balanced signal type comprises:
if the type of the currently configured output signal is a balanced signal type, multiplying each signal value in the audio processing result by a first preset multiple respectively to obtain a first double audio processing result;
and acquiring two split signals with different signal values according to the audio processing result and the first audio doubling processing result.
11. The method of claim 10, wherein the obtaining two split signals with different signal values according to the audio processing result and the first doubled audio processing result comprises:
multiplying each signal value in the audio processing result by a second preset multiple respectively to obtain a second doubled audio processing result, wherein the first preset multiple is different from the second preset multiple;
and determining the first audio frequency doubling processing result and the second audio frequency doubling processing result as two split signals with different signal values.
12. An audio signal processing apparatus, characterized in that the apparatus comprises:
the first signal acquisition module is used for acquiring a digital signal obtained by performing analog-to-digital conversion on an input analog signal;
the integration processing module is configured to, when two paths of to-be-integrated digital signals exist in the obtained digital signals, perform integration processing on the two paths of to-be-integrated digital signals, and integrate the two paths of to-be-integrated digital signals into one path of integrated signal, where the integrated signal is a digital signal and can obtain the two paths of to-be-integrated digital signals through splitting processing, and the two paths of to-be-integrated digital signals are: the method comprises the following steps of carrying out analog-to-digital conversion on two paths of analog signals to be integrated to obtain digital signals, wherein the two paths of analog signals to be integrated are as follows: the input analog signal that balanced signal input port inserts, balanced signal input port is: the device comprises a preset unbalanced signal input port for accessing a balanced signal;
the first audio processing module is used for carrying out audio processing on the integrated signal to obtain an audio processing result;
and the first signal output module is used for outputting an audio signal based on the audio processing result according to the type of the output signal configured currently.
13. The apparatus of claim 12, wherein the first signal output module comprises:
the first signal splitting submodule is used for splitting the audio processing result to obtain two paths of split signals with different signal values if the type of the currently configured output signal is a balanced signal type;
and the first signal output submodule is used for outputting an audio signal based on the two paths of split signals.
14. The apparatus of claim 13, wherein the first signal splitting sub-module is specifically configured to:
if the type of the currently configured output signal is a balanced signal type, obtaining the opposite number of each signal value in the audio processing result to obtain an opposite audio processing result;
and determining the audio processing result and the opposite audio processing result as two split signals with different signal values.
15. The apparatus of claim 13, wherein the first signal splitting sub-module comprises:
the signal doubling unit is used for multiplying each signal value in the audio processing result by a first preset multiple to obtain a first doubled audio processing result if the type of the currently configured output signal is a balanced signal type;
and the signal obtaining unit is used for obtaining two paths of split signals with different signal values according to the audio processing result and the first doubled audio processing result.
16. The apparatus according to claim 15, wherein the signal obtaining unit is specifically configured to:
multiplying each signal value in the audio processing result by a second preset multiple respectively to obtain a second doubled audio processing result, wherein the first preset multiple is different from the second preset multiple;
and determining the first audio frequency doubling processing result and the second audio frequency doubling processing result as two split signals with different signal values.
17. The apparatus according to any one of claims 12 to 16, wherein the integrated processing module is specifically configured to:
when two paths of digital signals to be integrated exist in the obtained digital signals, subtracting signal values with the same signal value sequence number in the first digital signal and the second digital signal respectively to obtain a calculation result, wherein the first digital signal is as follows: one of the two paths of digital signals to be integrated is a signal, and the second digital signal is: the other signal except the first digital signal in the two paths of digital signals to be integrated;
and dividing each calculation result by a preset coefficient to obtain each signal value in the integrated signal.
18. An audio signal processing apparatus, characterized in that the apparatus comprises:
the second signal acquisition module is used for acquiring a digital signal obtained by performing analog-to-digital conversion on the input analog signal;
a second audio processing module, configured to perform audio processing on the digital signal according to a type of an unbalanced signal input port accessing the input analog signal, to obtain an audio processing result, where the type of the unbalanced signal input port includes: a type for accessing balanced signals and a type for accessing unbalanced signals;
the splitting processing module is used for splitting the audio processing result to obtain two split signals with different signal values if the type of the currently configured output signal is a balanced signal type;
and the second signal output module is used for outputting the audio signal based on the two paths of different split signals.
19. The apparatus of claim 18, wherein the second audio processing module is specifically configured to:
if the type of the unbalanced signal input port accessed with the input analog signal is a type used for accessing a balanced signal, integrating two paths of digital signals to be integrated contained in the digital signal, and integrating the two paths of digital signals to be integrated into one path of integrated signal, wherein the integrated signal is a digital signal, and the two paths of digital signals to be integrated can be obtained through splitting processing, and the two paths of digital signals to be integrated are: performing analog-to-digital conversion on the input analog signal to obtain a digital signal;
and carrying out audio processing based on the integrated signal to obtain an audio processing result.
20. The apparatus according to claim 18 or 19, wherein the splitting processing module is specifically configured to:
if the type of the currently configured output signal is a balanced signal type, obtaining the opposite number of each signal value in the audio processing result to obtain an opposite audio processing result;
and determining the audio processing result and the opposite audio processing result as two split signals with different signal values.
21. The apparatus of claim 18 or 19, wherein the splitting processing module comprises:
the signal doubling submodule is used for multiplying each signal value in the audio processing result by a first preset multiple respectively to obtain a first doubled audio processing result if the type of the currently configured output signal is a balanced signal type;
and the signal obtaining submodule is used for obtaining two paths of split signals with different signal values according to the audio processing result and the first doubled audio processing result.
22. The apparatus of claim 21, wherein the signal acquisition submodule is specifically configured to:
multiplying each signal value in the audio processing result by a second preset multiple respectively to obtain a second doubled audio processing result, wherein the first preset multiple is different from the second preset multiple;
and determining the first audio frequency doubling processing result and the second audio frequency doubling processing result as two split signals with different signal values.
23. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-6 when executing a program stored in the memory.
24. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 7 to 11 when executing a program stored in the memory.
25. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 6.
26. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any of the claims 7-11.
CN202011459818.1A 2020-12-11 2020-12-11 Audio signal processing method and device Active CN112581971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011459818.1A CN112581971B (en) 2020-12-11 2020-12-11 Audio signal processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011459818.1A CN112581971B (en) 2020-12-11 2020-12-11 Audio signal processing method and device

Publications (2)

Publication Number Publication Date
CN112581971A true CN112581971A (en) 2021-03-30
CN112581971B CN112581971B (en) 2024-05-03

Family

ID=75131546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011459818.1A Active CN112581971B (en) 2020-12-11 2020-12-11 Audio signal processing method and device

Country Status (1)

Country Link
CN (1) CN112581971B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6657574B1 (en) * 2002-12-09 2003-12-02 Cirrus Logic, Inc. One line data format for audio analog-to-digital converters
US20060153397A1 (en) * 2002-11-28 2006-07-13 Andrew Foster Audio distribution system
CN101079265A (en) * 2007-07-11 2007-11-28 北京中星微电子有限公司 Voice signal processing system
EP2262279A1 (en) * 2009-06-12 2010-12-15 Sony Corporation Signal processing apparatus and signal processing method for loudspeaker motional feedback
CN205029849U (en) * 2015-09-30 2016-02-10 徐文波 Anti -interference digital microphone
CN105790765A (en) * 2015-01-14 2016-07-20 联发科技股份有限公司 Differential Analog-digital Converter And Method Used For Converting Analog Signals To Digital Signals
CN106059509A (en) * 2012-04-16 2016-10-26 英飞凌科技股份有限公司 System and integrated circuit for amplifying signal provided by capacitive signal source
WO2017113946A1 (en) * 2015-12-30 2017-07-06 努比亚技术有限公司 Device and method for processing audio
CN207354556U (en) * 2017-10-16 2018-05-11 维沃移动通信有限公司 A kind of head circuit, earphone and mobile terminal
CN207625776U (en) * 2017-12-26 2018-07-17 广州市迪士普音响科技有限公司 A kind of apparatus for processing audio
WO2018154324A1 (en) * 2017-02-27 2018-08-30 Cirrus Logic International Semiconductor Limited Mems sensors
US20200105319A1 (en) * 2018-09-29 2020-04-02 Intel Corporation Dynamic reconfigurable dual power i/o receiver

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060153397A1 (en) * 2002-11-28 2006-07-13 Andrew Foster Audio distribution system
US6657574B1 (en) * 2002-12-09 2003-12-02 Cirrus Logic, Inc. One line data format for audio analog-to-digital converters
CN101079265A (en) * 2007-07-11 2007-11-28 北京中星微电子有限公司 Voice signal processing system
EP2262279A1 (en) * 2009-06-12 2010-12-15 Sony Corporation Signal processing apparatus and signal processing method for loudspeaker motional feedback
CN106059509A (en) * 2012-04-16 2016-10-26 英飞凌科技股份有限公司 System and integrated circuit for amplifying signal provided by capacitive signal source
CN105790765A (en) * 2015-01-14 2016-07-20 联发科技股份有限公司 Differential Analog-digital Converter And Method Used For Converting Analog Signals To Digital Signals
CN205029849U (en) * 2015-09-30 2016-02-10 徐文波 Anti -interference digital microphone
WO2017113946A1 (en) * 2015-12-30 2017-07-06 努比亚技术有限公司 Device and method for processing audio
WO2018154324A1 (en) * 2017-02-27 2018-08-30 Cirrus Logic International Semiconductor Limited Mems sensors
CN207354556U (en) * 2017-10-16 2018-05-11 维沃移动通信有限公司 A kind of head circuit, earphone and mobile terminal
CN207625776U (en) * 2017-12-26 2018-07-17 广州市迪士普音响科技有限公司 A kind of apparatus for processing audio
US20200105319A1 (en) * 2018-09-29 2020-04-02 Intel Corporation Dynamic reconfigurable dual power i/o receiver

Also Published As

Publication number Publication date
CN112581971B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
CN103152498B (en) Echo canceler
WO2020063594A1 (en) Audio playback circuit and terminal
CN110809214B (en) Audio playing method, audio playing device and terminal equipment
CN107357642B (en) Calculation task adjusting method and device
US7358876B1 (en) Mixed-mode analog offset cancellation for data conversion systems
US20130243223A1 (en) Audio signal processing circuit, car audio apparatus using the same, audio component apparatus, electronic device and output audio signal generating method
CN107682802B (en) Method and device for debugging sound effect of audio equipment
CN110956973A (en) Echo cancellation method and device and intelligent terminal
CN111356058B (en) Echo cancellation method and device and intelligent sound box
CN105992100B (en) A kind of preset collection determination method for parameter of audio equalizer and device
CN112581971A (en) Audio signal processing method and device
CN107453712A (en) D convertor circuit
JPH11212768A (en) Logarithmic value calculation circuit
CN111083250A (en) Mobile terminal and noise reduction method thereof
JP6078358B2 (en) Noise reduction device, broadcast reception device, and noise reduction method
CN216437346U (en) Echo cancellation device and television
TWI685785B (en) Memory storage device and operation method thereof for implementing inner product operatioin
CN101030372B (en) Speech signal processing system
Chew et al. FPGA implementation of acoustic echo cancelling
CN218826209U (en) Digital sound console recording system
CN109981078B (en) Data processing method, device and storage medium
WANHAMMAR An approach to LSI implementation of wave digital filters
Takato A Serial Processing FIR Inverse Filter Circuit
KR100667814B1 (en) Portable audio apparatus having tone and effect function of electric guitar
CN116528114A (en) Dual-channel digital power amplifier control device, system, method, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant