Sound signal processing method and sound signal processing device
Through multiple analog gain value amplification and digitization processing, non-clipping signals are judged and output, and dynamic range control is performed, which solves the problem of clipping caused by the fixed dynamic range in digital signal processing of microphones, ensuring the quality of sound signals.
Patent Information
- Application Number
- CN202410804882.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-07-06
- Filing Date
- 2024-06-20
- Publication Date
- 2025-01-07
AI Technical Summary
Due to the fixed dynamic range control in digital signal processing, existing microphones have clipping when the sound signal exceeds the range, causing distortion and cannot be remedied through subsequent processing.
The sound signal is amplified by multiple analog gain values, and after digitization, it is determined whether it is a clipping signal, selectively output a non-clip signal, and perform a dynamic range control program on it to adjust the digital gain value to avoid clipping.
It effectively avoids clipping of sound signals after processing, ensures that the signal quality is not damaged, and solves the distortion problem caused by clipping.
Smart Images

Figure CN119277268A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of sound processing technology, and more particularly to a sound signal processing method and a sound signal processing device. Background Art
[0002] Recently, the rapid development of science and technology has improved people's quality of life, and the performance of audio devices has been improved accordingly, making people's requirements for sound quality increasingly growing. Common audio devices are, for example, microphones. Generally speaking, the sound signal received by the microphone is usually converted to digital and processed appropriately to amplify the signal level of the processed sound signal to an appropriate range. However, if the user speaks loudly when using the microphone, since the operating dynamic range of the dynamic range control in the digital signal processing is fixed, the signal level of the processed sound signal that exceeds the operating dynamic range is cut, causing clipping of the processed sound signal. Clipping will cause distortion of the processed sound signal, and it cannot be remedied by subsequent signal processing. Summary of the invention
[0003] Based on the above, the present application provides a sound signal processing method and a sound signal processing device to solve the problem of clipping of the sound signal after the signal is processed.
[0004] Based on the above purpose, the present application provides a sound signal processing method including: obtaining a sound signal; amplifying the sound signal according to multiple analog gain values to generate multiple sound amplified signals, wherein the multiple sound amplified signals respectively correspond to the multiple analog gain values; digitizing the multiple sound amplified signals to generate multiple digital sound signals; determining whether the multiple digital sound signals are clipping signals or non-clipping signals, and selectively outputting the non-clipping signals; and executing a dynamic range control program on the non-clipping signals to adjust the non-clipping signals.
[0005] In an embodiment of the present application, the plurality of digital sound signals include a first digital sound signal and a second digital sound signal, and determining whether the plurality of digital sound signals are clipping signals or non-clipping signals and selectively outputting non-clipping signals includes: when the first digital sound signal is determined to be a non-clipping signal, outputting the first digital sound signal; when the second digital sound signal is determined to be a non-clipping signal and the first digital sound signal is a clipping signal, outputting the second digital sound signal.
[0006] In an embodiment of the present application, multiple analog gain values include a first analog gain value and a second analog gain value, the first digital sound signal corresponds to the first analog gain value, the second digital sound signal corresponds to the second analog gain value, the dynamic range control program includes the digital gain value, and when the second digital sound signal is output, the dynamic range control program is executed on the non-clipping signal to adjust the non-clipping signal, including: performing a subtraction operation on the first analog gain value and the second analog gain value to generate a difference; adjusting the digital gain value according to the difference; and executing the dynamic range control program on the non-clipping signal according to the adjusted digital gain value to adjust the non-clipping signal.
[0007] In an embodiment of the present application, the time point at which the first digital sound signal is determined to be a clipping signal or a non-clipping signal is earlier than the time point at which the second digital sound signal is determined to be a clipping signal or a non-clipping signal.
[0008] In an embodiment of the present application, the plurality of digital sound signals include a first digital sound signal and a plurality of second digital sound signals. Determining whether the plurality of digital sound signals belong to clipping signals or non-clipping signals and selectively outputting non-clipping signals includes: when the first digital sound signal is determined to be a non-clipping signal, outputting the first digital sound signal; when one of the plurality of second digital sound signals is determined to be a non-clipping signal and at least one of the second digital sound signals of the first digital sound signal belongs to a clipping signal earlier than the determination time point of the non-clipping signal, outputting the second digital sound signal that is a non-clipping signal.
[0009] In an embodiment of the present application, the plurality of analog gain values include a first analog gain value and a plurality of second analog gain values, the first digital sound signal corresponds to the first analog gain value, the plurality of second digital sound signals respectively correspond to the plurality of second analog gain values, the dynamic range control program includes the digital gain value, and when the second digital sound signal belonging to the non-clipping signal is output, the dynamic range control program is executed on the non-clipping signal to adjust the non-clipping signal, including: performing a subtraction operation on the first analog gain value and the corresponding second analog gain value to generate a difference; adjusting the digital gain value according to the difference; and executing the dynamic range control program on the non-clipping signal according to the adjusted digital gain value to adjust the non-clipping signal.
[0010] In an embodiment of the present application, the time point at which the first digital sound signal is judged to be a clipping signal or a non-clipping signal is earlier than the time points at which the multiple second digital sound signals are judged to be clipping signals or non-clipping signals, and the time sequence of judging whether the multiple second digital sound signals are clipping signals or non-clipping signals is determined according to the numerical sequence of the multiple second analog gain values.
[0011] In an embodiment of the present application, the audio signal processing method further includes: performing a cross-fade process on the non-clipping signal.
[0012] Based on the above purpose, the present application provides a sound signal processing device, including a microphone, a preamplifier, an analog-to-digital converter, a microprocessor and a controller. The microphone obtains a sound signal. The preamplifier is connected to the microphone and has multiple analog gain values, and amplifies the sound signal according to the multiple analog gain values to generate multiple sound amplification signals, wherein the multiple sound amplification signals correspond to multiple analog gain values respectively. The analog-to-digital converter is connected to the preamplifier and digitizes the multiple sound amplification signals to generate multiple digital sound signals. The microprocessor is connected to the analog-to-digital converter and receives multiple digital sound signals. The controller is connected to the analog-to-digital converter and the microprocessor, and determines whether the multiple digital sound signals belong to clipping signals or non-clipping signals. The controller controls the microprocessor to selectively output non-clipping signals and execute a dynamic range control program on the non-clipping signals to adjust the non-clipping signals.
[0013] In an embodiment of the present application, the plurality of digital sound signals include a first digital sound signal and a second digital sound signal. The controller determines whether the plurality of digital sound signals are clipping signals or non-clipping signals, and controls the microprocessor to selectively output non-clipping signals, including: when the first digital sound signal is determined to be a non-clipping signal, the controller controls the microprocessor to output the first digital sound signal; when the second digital sound signal is determined to be a non-clipping signal and the first digital sound signal is a clipping signal, the controller controls the microprocessor to output the second digital sound signal.
[0014] In an embodiment of the present application, a microprocessor is connected to a preamplifier, a plurality of analog gain values include a first analog gain value and a second analog gain value, a first digital sound signal corresponds to the first analog gain value, a second digital sound signal corresponds to the second analog gain value, a dynamic range control program includes a digital gain value, and when a second digital sound signal belonging to a non-clipping signal is output, a controller controls the microprocessor to execute a dynamic range control program on the non-clipping signal to adjust the non-clipping signal including: performing a subtraction operation on the first analog gain value and the corresponding second analog gain value to generate a difference; adjusting the digital gain value according to the difference; and executing a dynamic range control program on the non-clipping signal according to the adjusted digital gain value to adjust the non-clipping signal.
[0015] In an embodiment of the present application, the time point at which the first digital sound signal is determined to be a clipping signal or a non-clipping signal is earlier than the time point at which the second digital sound signal is determined to be a clipping signal or a non-clipping signal.
[0016] In an embodiment of the present application, the plurality of digital sound signals include a first digital sound signal and a plurality of second digital sound signals. The controller determines whether the plurality of digital sound signals belong to clipping signals or non-clipping signals, and controls the microprocessor to selectively output non-clipping signals, including: when the first digital sound signal is determined to be a non-clipping signal, the controller controls the microprocessor to output the first digital sound signal; when one of the plurality of second digital sound signals is determined to be a non-clipping signal, and at least one of the second digital sound signals of the first digital sound signal belongs to a clipping signal earlier than the determination time point of the non-clipping signal, the controller controls the microprocessor to output the second digital sound signal that is a non-clipping signal.
[0017] In an embodiment of the present application, a microprocessor is connected to a preamplifier, a plurality of analog gain values include a first analog gain value and a plurality of second analog gain values, a first digital sound signal corresponds to the first analog gain value, and a plurality of second digital sound signals respectively correspond to the plurality of second analog gain values, a dynamic range control program includes a digital gain value, and when a second digital sound signal belonging to a non-clipping signal is output, a controller controls the microprocessor to execute a dynamic range control program on the non-clipping signal to adjust the non-clipping signal including: performing a subtraction operation on the first analog gain value and the corresponding second analog gain value to generate a difference; adjusting the digital gain value according to the difference; and executing a dynamic range control program on the non-clipping signal according to the adjusted digital gain value to adjust the non-clipping signal.
[0018] In an embodiment of the present application, the time point at which the first digital sound signal is judged to be a clipping signal or a non-clipping signal is earlier than the time points at which the multiple second digital sound signals are judged to be clipping signals or non-clipping signals, and the time sequence of judging whether the multiple second digital sound signals are clipping signals or non-clipping signals is determined according to the numerical sequence of the multiple second analog gain values.
[0019] In an embodiment of the present application, the controller controls the microprocessor to perform a cross-fade process on the non-clipped signal.
[0020] In summary, the audio signal processing method and the audio signal processing device of the present application amplify the audio signal according to multiple analog gain values to generate multiple audio amplification signals, and digitize the multiple audio amplification signals to generate multiple digital audio signals, then determine whether the multiple digital audio signals are clipping signals or non-clipping signals and selectively output non-clipping signals, and perform a dynamic range control procedure on the non-clipping signals. Therefore, no clipping is generated after the audio signal undergoes the aforementioned signal processing.
[0021] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application and implement it according to the contents of the specification, the present application is described in detail below with reference to the preferred embodiments of the present application and the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 The figure shows a configuration diagram of a sound signal processing device according to an embodiment of the present application.
[0023] Figure 2 The figure is a flow chart of a sound signal processing method according to an embodiment of the present application.
[0024] Figure 3 A flow chart showing whether a plurality of digital sound signals belong to clipping signals or non-clipping signals in a sound signal processing method according to an embodiment of the present application is shown.
[0025] Figure 4 A flow chart showing whether a plurality of digital sound signals belong to clipping signals or non-clipping signals in a sound signal processing method according to another embodiment of the present application is shown.
[0026] Figure 5 The flowchart of performing a dynamic range control procedure on a non-clipping signal in a sound signal processing method according to an embodiment of the present application is shown.
[0027] Figure 6 The following is a flow chart of a sound signal processing method according to another embodiment of the present application.
[0028] Description of reference numerals:
[0029] 10: Radio
[0030] 20: Preamplifier
[0031] 30: Analog-to-digital converter
[0032] 40: Microprocessor
[0033] 50: Controller
[0034] S11~S15, S21~S26, S141A~S144A, S141B~S14(2N)B, S151~S153: Steps DETAILED DESCRIPTION
[0035] The following is an explanation of the implementation of the present application by means of specific embodiments. People familiar with the technology can easily understand other advantages and effects of the present application from the contents disclosed in this specification.
[0036] It should be noted that, in the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the drawings and in combination with the embodiments. In order to enable those skilled in the art to better understand the present application scheme, the technical scheme in the embodiments of the present application will be clearly and completely described below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only embodiments of a part of the present application, not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in the field without making creative work should fall within the scope of protection of the present application.
[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0038] See also Figure 1 , which is a configuration diagram of a sound signal processing device according to an embodiment of the present application. Figure 1 As shown, the sound signal processing device includes a microphone 10, a preamplifier 20, an analog-to-digital converter 30, a microprocessor 40 and a controller 50. The microphone 10 obtains a sound signal, which is an analog signal and can be, for example, a human voice. The preamplifier 20 is connected to the microphone 10 and has a plurality of analog gain values, and amplifies the sound signal according to the plurality of analog gain values to generate a plurality of sound amplification signals, wherein the plurality of sound amplification signals correspond to the plurality of analog gain values respectively. The analog-to-digital converter 30 is connected to the preamplifier 20, and digitizes the plurality of sound amplification signals to generate a plurality of digital sound signals. The microprocessor 40 is connected to the analog-to-digital converter 30 and the preamplifier 20, and receives a plurality of digital sound signals. The controller 50 is connected to the analog-to-digital converter 30 and the microprocessor 40. The controller 50 determines whether a plurality of digital sound signals are clipping signals or non-clipping signals, and controls the microprocessor 40 to output a digital sound signal that is a non-clipping signal according to the control signal, and controls the microprocessor 40 to perform digital signal processing on the digital sound signal that is a non-clipping signal. The basis for determining whether a digital sound signal is a clipping signal or a non-clipping signal and the details of performing digital signal processing on the non-clipping signal will be described in the paragraph of the sound signal processing method.
[0039] It should be noted that the clipping signal is a digital sound signal with clipping, and the non-clipping signal is a digital sound signal without clipping. The digital sound signal includes a plurality of audio frames. For example, the digital sound signal includes 6 audio frames, and the number of audio frames may vary according to the duration, frequency, amplitude, and waveform of the digital sound signal and the sampling rate of the analog-to-digital converter 30, and the number of audio frames is not limited here.
[0040] The receiver 10 may be a microphone, a recorder or other device with a sound receiving function. The preamplifier 20 may be an operational amplifier or other types of amplifiers. The receiver 10 and the preamplifier 20 are merely examples and are not limited to the scope of the present application.
[0041] In one embodiment, the plurality of digital sound signals include a first digital sound signal and a second digital sound signal. The plurality of analog gain values include a first analog gain value and a second analog gain value, the first digital sound signal corresponds to the first analog gain value, the second digital sound signal corresponds to the second analog gain value, and the first analog gain value is greater than the second analog gain value. The controller 50 first determines whether the first digital sound signal is a clipping signal or a non-clipping signal. When the first digital sound signal is determined to be a non-clipping signal, the controller 50 controls the microprocessor 40 to output the first digital sound signal; when the first digital sound signal is determined to be a clipping signal, the controller 50 then determines whether the second digital sound signal is a clipping signal or a non-clipping signal. When the second digital sound signal is determined to be a non-clipping signal, the controller 50 controls the microprocessor 40 to output the second digital sound signal, and controls the microprocessor 40 to perform digital signal processing on the second digital sound signal according to the first analog gain value and the second analog gain value.
[0042] In another embodiment, the plurality of digital sound signals include a first digital sound signal and a plurality of second digital sound signals, the plurality of analog gain values include a first analog gain value and a plurality of second analog gain values, the first digital sound signal corresponds to the first analog gain value, the plurality of second digital sound signals correspond to the plurality of second analog gain values respectively, the first analog gain value is greater than the plurality of second analog gain values, and the plurality of second analog gain values decrease in sequence. The controller 50 first determines whether the first digital sound signal belongs to a clipping signal or a non-clipping signal, and when the first digital sound signal is determined to be a non-clipping signal, the controller 50 outputs the first digital sound signal; when the first digital sound signal is determined to be a clipping signal, the controller 50 then determines whether the plurality of second digital sound signals belong to clipping signals or non-clipping signals in sequence. Until one of the plurality of second digital sound signals is determined to be a non-clipped signal, the controller 50 determines that at least one second digital sound signal before the determination time point of the non-clipped signal is a clipped signal, and stops determining whether the remaining plurality of second digital sound signals after the determination time point of the non-clipped signal are clipped signals or non-clipped signals. Then, the controller 50 controls the microprocessor 40 to output the second digital sound signal that is a non-clipped signal, and controls the microprocessor 40 to control the digital signal processing of the non-clipped signal according to the first analog gain value and the corresponding second analog gain value.
[0043] See also Figure 2 , which is a flow chart of a method for processing a sound signal according to an embodiment of the present application. Figure 2 As shown, the sound signal processing method of the present application includes steps S11 to S15. Figure 2 The sound signal processing method shown can be applied to Figure 1 The sound signal processing device shown in FIG. 1 is not limited thereto. Figure 1 The operation of the audio signal processing device is shown to illustrate steps S11 to S15.
[0044] Step S11 : Acquire the sound signal. As mentioned above, the microphone 10 acquires the sound signal and transmits the sound signal to the preamplifier 20 .
[0045] Step S12: Amplify the sound signal according to the multiple analog gain values to generate multiple sound amplified signals. Specifically, the preamplifier 20 amplifies the sound signal with the multiple analog gain values to output multiple sound amplified signals. Then, the preamplifier 20 transmits the multiple sound amplified signals to the analog-to-digital converter 30 and transmits the multiple analog gain values to the microprocessor 40.
[0046] Step S13: Digitize the plurality of amplified sound signals to generate a plurality of digital sound signals. Specifically, the analog-to-digital converter 30 performs analog-to-digital conversion on the plurality of amplified sound signals, and then outputs a plurality of digital sound signals.
[0047] Step S14: Determine whether a plurality of digital sound signals are clipped signals or non-clipped signals, and selectively output non-clipped signals. Specifically, the controller 50 determines whether a plurality of digital sound signals are clipped according to the waveforms of the plurality of digital sound signals, so as to determine whether each digital sound signal is a clipped signal or a non-clipped signal. Further, the controller 50 determines whether the signal level of each digital sound signal is maintained at a specific signal level (e.g., 0dbFS) for a period of time. First, a digital sound signal is used as an example for explanation. The controller 50 obtains a specific signal level from the analog-to-digital converter 30. When it is determined that the signal level of a digital sound signal is maintained at a specific signal level for a period of time (e.g., 3 seconds), the controller 50 determines that the digital sound signal is clipped and that the digital sound signal is a clipped signal. The clipping determination of the remaining plurality of digital sound signals is the same as the clipping determination of a digital sound signal, and will not be repeated here.
[0048] In one embodiment, the plurality of digital sound signals include a first digital sound signal and a second digital sound signal, and the time point at which the first digital sound signal is determined to be a clipping signal or a non-clipping signal is earlier than the time point at which the second digital sound signal is determined to be a clipping signal or a non-clipping signal. The plurality of analog gain values include a first analog gain value and a second analog gain value, the first digital sound signal corresponds to the first analog gain value, the second digital sound signal corresponds to the second analog gain value, and the first analog gain value is greater than the second analog gain value.
[0049] The controller 50 determines whether clipping exists for each audio frame of the first digital audio signal and each audio frame of the second digital audio signal. The first digital audio signal and the second digital audio signal have the same multiple audio frames, but the waveform of the first digital audio signal is different from the waveform of the second digital audio signal. In the same audio frame, the controller 50 first determines whether the first digital audio signal is a clipping signal or a non-clipping signal, and then determines whether the second digital audio signal is a clipping signal or a non-clipping signal when the first digital audio signal is determined to be a clipping signal. Please refer to Figure 3 , which is a flow chart illustrating a method for processing a sound signal according to an embodiment of the present application, in which a plurality of digital sound signals belong to clipping signals or non-clipping signals. Figure 3 As shown in FIG. 1 , the step of determining whether a plurality of digital audio signals are clipping signals or non-clipping signals includes steps S141A to S144A. Figure 1 The operation of the audio signal processing device is shown to illustrate steps S141A to S144A.
[0050] Step S141A: Determine whether the first digital audio signal is a clipping signal or a non-clipping signal. Specifically, the controller 50 checks the waveform of the first digital audio signal to see whether the signal level of the first digital audio signal is maintained at a specific signal level for a period of time. When checking that the signal level of the first digital audio signal is maintained at the specific signal level for a period of time, the controller 50 determines that the first digital audio signal is a clipping signal; when checking that the signal level of the first digital audio signal is not maintained at the specific signal level for a period of time, the controller 50 determines that the first digital audio signal is a non-clipping signal.
[0051] When the controller 50 determines that the first digital sound signal is a non-clipped signal, step S142A is executed; when the controller 50 determines that the first digital sound signal is a clipped signal, step S143A is executed.
[0052] Step S142A: Output the first digital sound signal. Specifically, the controller 50 stops determining whether the second digital sound signal is a clipping signal or a non-clipping signal and transmits a control signal to the microprocessor 40, and the microprocessor 40 outputs the first digital sound signal.
[0053] Step S143A: Determine whether the second digital audio signal is a clipping signal or a non-clipping signal. Specifically, the controller 50 checks the waveform of the second digital audio signal to see whether the signal level of the second digital audio signal is maintained at a specific signal level for a period of time. When checking that the signal level of the second digital audio signal is maintained at the specific signal level for a period of time, the controller 50 determines that the second digital audio signal is a clipping signal; when checking that the signal level of the second digital audio signal is not maintained at the specific signal level for a period of time, the controller 50 determines that the second digital audio signal is a non-clipping signal.
[0054] When the controller 50 determines that the second digital sound signal is a non-clipped signal, step S144A is executed; when the controller 50 determines that the second digital sound signal is a clipped signal, the controller 50 does not operate or records that both the first digital sound signal and the second digital sound signal are clipped signals.
[0055] Step S144A: Output the second digital sound signal. Specifically, the controller 50 transmits a control signal to the microprocessor 40, and the microprocessor 40 outputs the second digital sound signal.
[0056] In another embodiment, the plurality of digital sound signals include a first digital sound signal and a plurality of second digital sound signals, and the judgment time point of whether the first digital sound signal belongs to a clipping signal or a non-clipping signal is earlier than the judgment time points of whether the plurality of second digital sound signals belong to a clipping signal or a non-clipping signal. The plurality of analog gain values include a first analog gain value and a plurality of second analog gain values, the first digital sound signal corresponds to the first analog gain value, the plurality of second digital sound signals respectively correspond to the plurality of second analog gain values, the first analog gain value is greater than the plurality of second analog gain values, and the plurality of second analog gain values are different from each other and decrease in sequence. The judgment time sequence of whether the plurality of second digital sound signals belong to a clipping signal or a non-clipping signal is determined according to the numerical sequence of the plurality of second analog gain values.
[0057] The controller 50 determines whether clipping occurs for each audio frame of the first digital sound signal and each audio frame of the plurality of second digital sound signals. The first digital sound signal and each second digital sound signal have the same plurality of audio frames, but the waveform of the first digital sound signal is different from the waveform of each second digital sound signal, and the waveforms of the plurality of second digital sound signals are also different from each other. In the same audio frame, the controller 50 first determines whether the first digital sound signal is a clipping signal or a non-clipping signal, and when determining that the first digital sound signal is a clipping signal, it then determines whether the plurality of second digital sound signals are clipping signals or non-clipping signals according to the numerical order of the plurality of second analog gain values. Please refer to further Figure 4 , which is a flow chart illustrating whether a plurality of digital sound signals belong to clipping signals or non-clipping signals in a sound signal processing method according to another embodiment of the present application. Figure 4 As shown in FIG. 1 , the step of determining whether a plurality of digital audio signals are clipping signals or non-clipping signals includes steps S141B to S14(2N)B, where N is a positive integer. Figure 1 The operation of the audio signal processing device is shown to illustrate step S141B to step S14(2N)B.
[0058] In the following description, three second digital sound signals will be taken as an example to illustrate the steps of determining whether multiple digital sound signals are clipping signals or non-clipping signals. That is, the step of determining whether multiple digital sound signals are clipping signals or non-clipping signals will be described using the situation where N=4 as an example. However, the step of determining whether multiple digital sound signals are clipping signals or non-clipping signals is also applicable to the situations where N=5 and N=6.
[0059] Therefore, the plurality of digital sound signals include a first digital sound signal and three second digital sound signals, the number of the plurality of second analog gain values is 3, the three second digital sound signals include a second digital sound signal D2-1, a second digital sound signal D2-2, and a second digital sound signal D2-3, the three second analog gain values include a second analog gain value G2-1, a second analog gain value G2-2, and a second analog gain value G2-3. The second analog gain value G2-1 is greater than the second analog gain value G2-2, the second analog gain value G2-2 is greater than the second analog gain value G2-3, the second digital sound signal D2-1 corresponds to the second analog gain value G2-1, the second digital sound signal D2-2 corresponds to the second analog gain value G2-2, and the second digital sound signal D2-3 corresponds to the second analog gain value G2-3.
[0060] When the controller 50 determines that the first digital sound signal is a clipping signal, it then determines whether the second digital sound signal D2-1 is a clipping signal or a non-clipping signal. When the controller 50 determines that the second digital sound signal D2-1 is a clipping signal, it then determines whether the second digital sound signal D2-2 is a clipping signal or a non-clipping signal. When the controller 50 determines that the second digital sound signal D2-2 is a clipping signal, it then determines whether the second digital sound signal D2-3 is a clipping signal or a non-clipping signal.
[0061] In addition, since the above paragraphs have described the judgment mechanism of whether a first digital audio signal and a second digital audio signal are clipping signals or non-clipping signals, the description is not repeated here. Step S141B and step S142B are the same as step S141A and step S142B, and are not repeated here.
[0062] Step S143B: Determine whether the second digital audio signal is a clipping signal or a non-clipping signal. When the second digital audio signal D2-1 is determined to be a non-clipping signal, proceed to step S144B; when the second digital audio signal D2-1 is determined to be a clipping signal, proceed to step S145B.
[0063] Step S144B: Output the second digital audio signal. Specifically, the controller 50 stops determining whether the second digital audio signal D2-2 and the second digital audio signal D2-3 are clipping signals or non-clipping signals, and transmits a control signal to the microprocessor 40, and the microprocessor 40 outputs the second digital audio signal D2-1.
[0064] Step S145B: Determine whether the second digital audio signal is a clipping signal or a non-clipping signal. When the second digital audio signal D2-2 is determined to be a non-clipping signal, proceed to step S146B; when the second digital audio signal D2-2 is determined to be a clipping signal, proceed to step S147B.
[0065] Step S146B: Output the second digital sound signal. Specifically, the controller 50 stops determining whether the second digital sound signal D2-3 is a clipping signal or a non-clipping signal and transmits a control signal to the microprocessor 40, and the microprocessor 40 outputs the second digital sound signal D2-2.
[0066] Step S147B: Determine whether the second digital sound signal is a clipping signal or a non-clipping signal. When the second digital sound signal D2-3 is determined to be a non-clipping signal, step S148B is executed; when the second digital sound signal D2-3 is determined to be a clipping signal, the controller 50 does not actuate or records that the first digital sound signal, the second digital sound signal D2-1, the second digital sound signal D2-2, and the second digital sound signal D2-3 are all clipping signals.
[0067] Step S148B: Output the second digital sound signal. Specifically, the controller 50 transmits the control signal to the microprocessor 40, and the microprocessor 40 outputs the second digital sound signal D2-3.
[0068] Step S15: Execute a dynamic range control procedure on the non-clipped signal to adjust the non-clipped signal. Specifically, the dynamic range control procedure includes a digital gain value (make up gain). The controller 50 transmits another control signal to the microprocessor 40. The microprocessor 40 executes the dynamic range control procedure on the non-clipped signal to adjust the non-clipped signal according to the digital gain value.
[0069] When the first digital sound signal is a non-clipped signal, the microprocessor 40 performs a dynamic range control procedure on the first digital sound signal according to another control signal to adjust the first digital sound signal according to the digital gain value. When the second digital sound signal is a non-clipped signal, the controller 50 controls the microprocessor 40 to adjust the digital gain value according to the first analog gain value and the corresponding second analog gain value to compensate for the difference between the first digital sound signal and the second digital sound signal which is a non-clipped signal. Please refer to Figure 5 , which is a flow chart illustrating a method for processing a sound signal and performing a dynamic range control procedure on a non-clipped signal according to an embodiment of the present application. Figure 5 As shown in FIG. 1 , the steps of executing the dynamic range control procedure for the non-clipped signal include steps S151 to S153. Figure 1 The operation of the audio signal processing device is shown to illustrate steps S151 to S153.
[0070] Step S151: Perform a subtraction operation on the first analog gain value and the corresponding second analog gain value to generate a difference value. Specifically, the controller 50 obtains the first analog gain value and the second analog gain value corresponding to the non-clipped signal from the preamplifier 20, and performs a subtraction operation on the first analog gain value and the second analog gain value corresponding to the non-clipped signal to generate a difference value.
[0071] Step S152: Adjust the digital gain value according to the difference value. Specifically, the controller 50 transmits the difference value and another control signal to the microprocessor 40, and the microprocessor 40 adjusts the digital gain value according to the difference value and another control signal.
[0072] Step S153: Execute a dynamic range control procedure on the non-clipped signal according to the adjusted digital gain value to adjust the non-clipped signal. Specifically, the microprocessor 40 executes a dynamic range control procedure on the second digital sound signal according to the adjusted digital gain value to adjust the second digital sound signal.
[0073] See also Figure 6 , which is a flow chart of a method for processing a sound signal according to another embodiment of the present application. Figure 6 As shown, the sound signal processing method of the present application includes steps S21 to S26, wherein steps S21 to S24 and step S26 are the same as steps S11 to S15. Figure 1 The operation of the audio signal processing device is shown to illustrate step S26.
[0074] Step S25: Perform a cross-fade process on the non-clipped signal. Specifically, the controller 50 controls the microprocessor 40 to perform a cross-fade process on the first digital audio signal or the second digital audio signal that is a non-clipped signal. Further, the controller 50 controls the microprocessor 40 to perform a fade-in process on the audio frame of the first digital audio signal or the second digital audio signal that is a non-clipped signal, and controls the microprocessor 40 to perform a fade-out process on the previous audio frame of the first digital audio signal or the second digital audio signal that is a non-clipped signal, where the previous audio frame is another audio frame that is earlier than the previous audio frame.
[0075] In summary, the audio signal processing method and the audio signal processing device of the present application amplify the audio signal according to multiple analog gain values to generate multiple audio amplification signals, and digitize the multiple audio amplification signals to generate multiple digital audio signals, then determine whether the multiple digital audio signals are clipping signals or non-clipping signals and selectively output non-clipping signals, and perform a dynamic range control procedure on the non-clipping signals. Therefore, no clipping is generated after the audio signal undergoes the aforementioned signal processing.
Claims
1. A method for processing a sound signal, characterized in that: include: Get sound signal; amplifying the sound signal according to a plurality of analog gain values to generate a plurality of amplified sound signals, wherein the plurality of amplified sound signals correspond to the plurality of analog gain values respectively; digitizing the plurality of amplified sound signals to generate a plurality of digital sound signals; Determining whether the plurality of digital audio signals are clipping signals or non-clipping signals, and selectively outputting the non-clipping signals; and A dynamic range control process is performed on the non-clipping signal to adjust the non-clipping signal.
2. The sound signal processing method according to claim 1, wherein: The plurality of digital sound signals include a first digital sound signal and a second digital sound signal, and determining whether the plurality of digital sound signals belong to the clipping signal or the non-clipping signal, and selectively outputting the non-clipping signal includes: When it is determined that the first digital sound signal belongs to the non-clipped signal, outputting the first digital sound signal; When it is determined that the second digital sound signal belongs to the non-clipped signal and the first digital sound signal belongs to the clipped signal, the second digital sound signal is output.
3. The sound signal processing method according to claim 2, wherein: The plurality of analog gain values include a first analog gain value and a second analog gain value, the first digital sound signal corresponds to the first analog gain value, the second digital sound signal corresponds to the second analog gain value, the dynamic range control program includes a digital gain value, and when the second digital sound signal is output, the dynamic range control program is executed on the non-clipped signal to adjust the non-clipped signal, including: performing a subtraction operation on the first analog gain value and the second analog gain value to generate a difference value; adjusting the digital gain value according to the difference; and The dynamic range control procedure is executed on the non-clipping signal according to the adjusted digital gain value to adjust the non-clipping signal.
4. The sound signal processing method according to claim 2, wherein: The time point at which the first digital sound signal is determined to be the clipping signal or the non-clipping signal is earlier than the time point at which the second digital sound signal is determined to be the clipping signal or the non-clipping signal.
5. The sound signal processing method according to claim 1, wherein: The plurality of digital sound signals include a first digital sound signal and a plurality of second digital sound signals, and determining whether the plurality of digital sound signals belong to the clipping signal or the non-clipping signal, and selectively outputting the non-clipping signal includes: When it is determined that the first digital sound signal belongs to the non-clipped signal, outputting the first digital sound signal; and When it is determined that one of the plurality of second digital sound signals belongs to the non-clipped signal, and at least one of the second digital sound signals of the first digital sound signal earlier than the determination time point of the non-clipped signal belongs to the clipped signal, the second digital sound signal belonging to the non-clipped signal is output.
6. The sound signal processing method as claimed in claim 5, characterized in that: The plurality of analog gain values include a first analog gain value and a plurality of second analog gain values, the first digital sound signal corresponds to the first analog gain value, and the plurality of second digital sound signals respectively correspond to the plurality of second analog gain values, the dynamic range control program includes a digital gain value, and when the second digital sound signal belonging to the non-clipping signal is output, the dynamic range control program is executed on the non-clipping signal to adjust the non-clipping signal, including: performing a subtraction operation on the first analog gain value and the corresponding second analog gain value to generate a difference value; adjusting the digital gain value according to the difference; and The dynamic range control procedure is executed on the non-clipping signal according to the adjusted digital gain value to adjust the non-clipping signal.
7. The sound signal processing method according to claim 6, wherein: The time point at which the first digital sound signal belongs to the clipping signal or the non-clipping signal is determined earlier than the time points at which the multiple second digital sound signals belong to the clipping signal or the non-clipping signal. The order of the time points at which the multiple second digital sound signals belong to the clipping signal or the non-clipping signal is determined according to the numerical order of the multiple second analog gain values.
8. The sound signal processing method according to claim 1, wherein: Also includes: A cross-fading process is performed on the non-clipped signal.
9. A sound signal processing device, characterized in that: include: Microphone, to obtain sound signals; A preamplifier connected to the receiver and having a plurality of analog gain values, and amplifying the sound signal according to the plurality of analog gain values to generate a plurality of amplified sound signals, wherein the plurality of amplified sound signals correspond to the plurality of analog gain values respectively; an analog-to-digital converter connected to the preamplifier and digitizing the plurality of amplified sound signals to generate a plurality of digital sound signals; A microprocessor connected to the analog-to-digital converter and receiving the plurality of digital sound signals; and The controller is connected to the analog-to-digital converter and the microprocessor, and determines whether the multiple digital sound signals are clipping signals or non-clipping signals. The controller controls the microprocessor to selectively output the non-clipping signal and execute a dynamic range control program on the non-clipping signal to adjust the non-clipping signal.
10. The sound signal processing device as claimed in claim 9, characterized in that: The plurality of digital sound signals include a first digital sound signal and a second digital sound signal. The controller determines whether the plurality of digital sound signals belong to the clipping signal or the non-clipping signal, and controls the microprocessor to selectively output the non-clipping signal, including: When it is determined that the first digital sound signal belongs to the non-clipped signal, the controller controls the microprocessor to output the first digital sound signal; When it is determined that the second digital sound signal belongs to the non-clipped signal and the first digital sound signal belongs to the clipped signal, the controller controls the microprocessor to output the second digital sound signal.
11. The sound signal processing device according to claim 10, wherein: The microprocessor is connected to the preamplifier, the plurality of analog gain values include a first analog gain value and a second analog gain value, the first digital sound signal corresponds to the first analog gain value, the second digital sound signal corresponds to the second analog gain value, the dynamic range control program includes digital gain values, and when the second digital sound signal belonging to the non-clipping signal is output, the controller controls the microprocessor to execute the dynamic range control program on the non-clipping signal to adjust the non-clipping signal including: performing a subtraction operation on the first analog gain value and the corresponding second analog gain value to generate a difference value; adjusting the digital gain value according to the difference; and The dynamic range control procedure is executed on the non-clipping signal according to the adjusted digital gain value to adjust the non-clipping signal.
12. The sound signal processing device according to claim 10, wherein: The time point at which the first digital sound signal is determined to be the clipping signal or the non-clipping signal is earlier than the time point at which the second digital sound signal is determined to be the clipping signal or the non-clipping signal.
13. The sound signal processing device as claimed in claim 9, characterized in that: The plurality of digital sound signals include a first digital sound signal and a plurality of second digital sound signals, the controller determines whether the plurality of digital sound signals belong to the clipping signal or the non-clipping signal, and controls the microprocessor to selectively output the non-clipping signal, including: when determining that the first digital sound signal belongs to the non-clipping signal, the controller controls the microprocessor to output the first digital sound signal; and When it is determined that one of the plurality of second digital sound signals belongs to the non-clipped signal, and at least one of the second digital sound signals of the first digital sound signal earlier than the determination time point of the non-clipped signal belongs to the clipped signal, the controller controls the microprocessor to output the second digital sound signal that belongs to the non-clipped signal.
14. The sound signal processing device as claimed in claim 13, characterized in that: The microprocessor is connected to the preamplifier, the multiple analog gain values include a first analog gain value and multiple second analog gain values, the first digital sound signal corresponds to the first analog gain value, and the multiple second digital sound signals correspond to the multiple second analog gain values respectively. The dynamic range control program includes digital gain values. When the second digital sound signal belonging to the non-clipping signal is output, the controller controls the microprocessor to execute the dynamic range control program on the non-clipping signal to adjust the non-clipping signal, including: performing a subtraction operation on the first analog gain value and the corresponding second analog gain value to generate a difference value; adjusting the digital gain value according to the difference; and The dynamic range control procedure is executed on the non-clipping signal according to the adjusted digital gain value to adjust the non-clipping signal.
15. The sound signal processing device as claimed in claim 14, characterized in that: The time point at which the first digital sound signal belongs to the clipping signal or the non-clipping signal is determined earlier than the time points at which the multiple second digital sound signals belong to the clipping signal or the non-clipping signal. The order of the time points at which the multiple second digital sound signals belong to the clipping signal or the non-clipping signal is determined according to the numerical order of the multiple second analog gain values.
16. The sound signal processing device as claimed in claim 9, characterized in that: The controller controls the microprocessor to perform a cross-fade process on the non-clipping signal.