Sound signal processing method and sound signal processing devices
The sound signal processing method addresses clipping issues by using multiple gain values and dynamic range control to identify and adjust non-clipping signals, ensuring clear audio output.
Patent Information
- Application Number
- GB2024009526
- Authority / Receiving Office
- GB · GB
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2023-07-06
- Filing Date
- 2024-07-02
- Publication Date
- 2025-09-03
- Estimated Expiration
- 2044-07-02
AI Technical Summary
Existing audio devices suffer from signal clipping due to fixed operational dynamic ranges in analog-to-digital converters, leading to distorted sound signals when users speak loudly.
A sound signal processing method involving multiple analog gain values, digitization, and dynamic range control to identify and output non-clipping signals, adjusting them through digital gain values to prevent clipping.
Prevents signal clipping by selectively outputting and adjusting non-clipping signals, ensuring high-quality sound reproduction without distortion.
Smart Images

Figure 00000001_0000 
Figure 00000001_0001 
Figure 00000002_0000
Abstract
Description
BACKGROUND 1. Technical Field
[0001] The present invention relates to the field of sound processing technology, and more particularly to a sound signal processing method and a sound signal processing device. 2. Description of the Related 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, which has led to an increasing demand for sound quality. A common audio device is, for example, a microphone. Generally speaking, the sound signal received by the microphone undergoes analog-to-digital conversion and appropriate digital signal processing, so that the signal level of the processed sound signal is amplified to an appropriate range. However, if the user speaks loudly while using the microphone, since the operating dynamic range of the analog digital converter is fixed, the signal levels exceeding the operational dynamic range are clipped. This clipping causes distortion in the processed sound signal, which cannot be corrected by subsequent signal processing.
[0003] The information disclosed in this Background section is only for enhancement of understanding of the background of the described technology and therefore it may contain information that does not form the prior art that is already known to a person of ordinary skill in the art. Further, the information disclosed in the Background section does not mean that one or more problems to be resolved by one or more embodiments of the disclosure was acknowledged by a person of ordinary skill in the art. SUMMARY [ 0004 ] According to the above description, the present application provides a sound signal processing method and a sound signal processing device to address the clipping problem that occurs after the sound signal has been processed.
[0005] To achieve the above-mentioned objective, the present application provides a sound signal processing method including: obtaining a 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 sound signals are clipping signals or non-clipping signals, and selectively outputting the non-clipping sound signals; and performing a dynamic range control program on the nonclipping sound signals to adjust the non-clipping sound signals.
[0006] According to one embodiment of the present application, the plurality of digital sound signals comprises a first digital sound signal and a second digital sound signal, determining whether the plurality of digital sound signals are the clipping signals or the nonclipping signals, and selectively outputting the non-clipping sound signals includes: outputting the first digital sound signal when the first digital sound signals is determined to be the non-clipping signal; outputting the second digital sound signal when the second digital sound signal is determined to be the non-clipping signal and the first digital sound signal is determined to be the clipping signal.
[0007] According to one embodiment of the present application, the plurality of analog gain values include a first analog gain value and a second analog gain value, the first digital sound signal corresponding to the first analog gain value, and the second digital sound signal corresponding to the second analog gain value, the dynamic range control program comprises a digital gain value, and when outputting the second digital sound signal, performing the dynamic range control program on the non-clipping sound signals to adjust the non-clipping sound signals, includes: performing subtraction between 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, performing the dynamic range control program on the non-clipping sound signals according to the adjusted digital gain value to adjust the non-clipping sound signals.
[0008] According to one embodiment of the present application, a determination time-point for determining whether the first digital sound signal is the clipping sound signal or the non-clipping sound signal is earlier than the determination time-point for determining whether the second digital sound signal is the clipping sound signal or the non-clipping sound signal.
[0009] According to one embodiment of the present application, the plurality of digital sound signals includes a first digital sound signal and a plurality of second digital sound signals, determining whether the plurality of digital sound signals are the clipped sound signals or the non-clipping sound signals, and selectively outputting the non-clipping sound signals, includes: when the first digital sound signal is determined to be the nonclipping sound signal, outputting the first digital sound signal; and, when at least one of the plurality of second digital sound signals is determined to be the non-clipping sound signal, and both the first digital sound signal and at least one of the plurality of second digital sound signals was determined earlier than the at least one of the plurality of second digital sound signals is being determined to be the non-clipping sound signal are the clipping sound signals, outputting the second digital sound signal that is being determined to be the nonclipping sound signal.
[0010] According to one embodiment of the present application, the plurality of analog gain values comprises 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 values, and when outputting the second digital sound signal that is being determined to be the nonclipping sound signal, performing the dynamic range control program on the non-clipping sound signal to adjust the non-clipping sound signals, includes: performing subtraction between 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, performing the dynamic range control program on the non-clipping sound signals according to the adjusted digital gain value.
[0011] According to one embodiment of the present application, the determination time-point for determining whether the first digital sound signal is the clipping signal or non-clipping signal is earlier than a plurality of the determination time-points for determining whether the plurality of second digital sound signals are clipping signals or non-clipping signals; a chronical sequence for determining whether the plurality of second digital sound signals are the clipping signals or the non-clipping signals is determined based on a numerical order of the plurality of second analog gain values.
[0012] According to one embodiment of the present application, the method further includes performing a cross-fade processing on the non-clipping sound signals. [0013 ] To achieve the above-mentioned objective, the present application provides a sound signal processing device including an audio device, a pre-amplifier, an analog digital converter, a microprocessor, and a controller. The audio device is applied for obtaining a sound signal. The pre-amplifier connects to the audio device and has a plurality of analog gain values. The pre-amplifier amplifies 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 corresponds to the plurality of analog gain values, respectively. The analog digital converter connects to the pre-amplifier and digitizes the plurality of amplified sound signals to generate a plurality of digital sound signals. The microprocessor connects to the analog digital converter and receives the plurality of digital sound signals. The controller connects to the analog digital converter and the microprocessor and determines whether the plurality of digital sound signals are clipping signals or non-clipping signals, and selectively outputs the non-clipping sound signals and performs a dynamic range control program on the non-clipping sound signals to adjust the non-clipping sound signals.
[0014] According to one embodiment of the present application, the plurality of digital sound signals includes a first digital sound signal and a second digital sound signal, the controller determines whether the plurality of digital sound signals are the clipping signals or the non-clipping signals, and controlling the microprocessor to selectively output the non-clipping sound signals includes: when the first digital sound signal is determined to be the 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 the nonclipping signal and the first digital sound signal is determined to be the clipping signal, the controller controls the microprocessor to output the second digital sound signal.
[0015] According to one embodiment of the present application, the microprocessor connects to the pre-amplifier, the plurality of analog gain values include a first analog gain value and a second analog gain value, the first digital sound signal corresponding to the first analog gain value, and the second digital sound signal corresponding to the second analog gain value, the dynamic range control program includes a digital gain value, and when outputting the second digital sound signal, the controller controls the microprocessor to perform the dynamic range control program on the non-clipping sound signals to adjust the non-clipping sound signals, includes: performing subtraction between 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, performing the dynamic range control program on the non-clipping sound signals according to the adjusted digital gain value to adjust the nonclipping sound signals.
[0016] According to one embodiment of the present application, a determination time-point for determining whether the first digital sound signal is the clipping sound signal or the non-clipping sound signal is earlier than the determination time-point for determining whether the second digital sound signal is the clipping sound signal or the non-clipping sound signal.
[0017] According to one embodiment of the present application, the plurality of digital sound signals comprises a first digital sound signal and a plurality of second digital sound signals, the controller determines whether the digital sound signals are the clipped sound signals or the non-clipping sound signals, and controls the microprocessor selectively output the non-clipping sound signals includes: when the first digital sound signal is determined to be the non-clipping sound signal, the controller controls the microprocessor output the first digital sound signal; and, when at least one of the plurality of second digital sound signals is determined to be the non-clipping sound signal, and both the first digital sound signal and at least one of the plurality of second digital sound signals was determined earlier than the at least one of the plurality of second digital sound signals is being determined to be the non-clipping sound signal are the clipping sound signals, the controller controls the microprocessor to output the second digital sound signal that is being determined to be the non-clipping sound signal.
[0018] According to one embodiment of the present application, the microprocessor connects to the pre-amplifier, 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 values, and when outputting the second digital sound signal that is being determined to be the non-clipping sound signal, the controller controls the microprocessor to perform the dynamic range control program on the non-clipping sound signal to adjust the non-clipping sound signals, includes: performing subtraction between 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 performing the dynamic range control program on the non-clipping sound signals according to the adjusted digital gain value.
[0019] According to one embodiment of the present application, the determination time-point for determining whether the first digital sound signal is the clipping signal or non-clipping signal is earlier than a plurality of the determination time-points for determining whether the second digital sound signals are clipping signals or non-clipping signals; a chronical sequence for determining whether the plurality of second digital sound signals are the clipping signals or the non-clipping signals is determined based on a numerical order of the plurality of second analog gain values.
[0020] According to one embodiment of the present application, the controller controls the microprocessor to perform a cross-fade processing on the non-clipping sound signals.
[0021] In summary, the sound signal processing method and device of this application amplify sound signals based on a plurality of analog gain values to generate a plurality of amplified sound signals, and digitize the plurality of the amplified sound signals to generate the plurality of digital sound signals, and then determine whether the plurality of the digital sound signals are clipping signals or non-clipping signals, and selectively output the non-clipping signals, and subsequently perform a dynamic range control program on the non-clipping signals. Therefore, after the aforementioned signal processing, no clipping occurs in the sound signal. [ 0022 ] The above explanation is merely an overview of the technical solution in this application. Tn order to provide a clearer understanding of the technical means of this application and to facilitate implementation in accordance with the specification, the following detailed description of preferred embodiments of this application, accompanied by drawings, is provided. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] FIG. 1 shows a sound signal processing device according to an embodiment of the present application; FIG.2 is a flowchart of the sound signal processing method according to an embodiment of the present application; FIG.3 is a flowchart of determining whether the plurality of digital sound signals are clipping signals or non-clipping signals in the sound signal processing method according to an embodiment of the present application; FIG.4 is a flowchart of determining whether the plurality of digital sound signals are clipping signals or non-clipping signals in the sound signal processing method according to another embodiment of the present application; FIG.5 is a flowchart of performing the dynamic range control program on non-clipping signals in the sound signal processing method according to an embodiment of the present application; and FIG.6 is a flowchart of the sound signal processing method according to another embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0024] It is to be understood that other embodiments may be utilized and structural changes may be made without departing from the scope of the present invention. Also, it is to be understood that the phraseology and terminology used herein are for the purpose of description and should not be regarded as limiting. The use of “including,” “comprising,” or “having” and variations thereof herein is meant to encompass the items listed thereafter and equivalents thereof as well as additional items. Unless limited otherwise, the terms “connected,” “coupled,” and “mounted,” and variations thereof herein are used broadly and encompass direct and indirect connections, couplings, and mountings. P125987GB 25 03 25 5
[0025] FIG. 1 illustrates the configuration diagram of the sound signal processing device according to an embodiment of the present application. As shown in FIG. 1, the sound signal processing device includes an audio device 10, a pre-amplifier 20, an analog digital converter 30, a microprocessor 40 and a controller 50. The audio device 10 obtains sound signals, which are analog signals and can be, for example, human 10 voices. The pre-amplifier 20 connects to the audio device 10 and has a plurality of analog gain values, the pre-amplifier 20 amplifies the sound signals according to the plurality of analog gain values to generate a plurality of amplified sound signals, wherein the amplified sound signals respectively correspond to the plurality of analog gain values. The analog digital converter 30 connects to the pre-amplifier 20 and 15 digitizes the plurality of amplified sound signals to generate a plurality of digital sound signals. The microprocessor 40 connects to the analog digital converter 30 and the preamplifier 20. The microprocessor 40 receives the plurality of digital sound signals. The controller 50 connects to the analog digital converter 30 and the microprocessor 40. The controller 50 determines whether the digital sound signals are clipping signals or non- 20 clipping signals, and controls the microprocessor 40 to output the digital sound signals that are non-clipping signals based on control signals. Additionally, the controller 50 controls the microprocessor 40 to perform digital signal processing on the digital sound signals determined to be the non-clipping signals. Details regarding the criteria for determining whether digital sound signals are clipping signals or non-clipping signals 25 and details for performing digital signal processing on the non-clipping signals will be described in the paragraphs of the sound signal processing method.
[0026] Clipping signals refer to digital sound signals that have undergone clipping. Non-clipping signals refer to digital sound signals without clipping. The digital sound signals include a plurality of audio frames. For instance, digital sound signals include 6 audio frames, and the number of audio frames can vary depending on factors such as the duration, frequency, amplitude, waveform, and sampling rate of the analog digital converter 30. The actual number of audio frames is not limited and can vary accordingly.
[0027] The audio device 10 can be a microphone, a recording device, or any other device capable of receiving audio signals. The pre-amplifier 20 can be an operational amplifier or another type of amplifier. The above-mentioned audio device 10 and the preamplifier 20 are provided as examples for illustration purposes and are not limited to those specifically stated in this application. [ 0028 ] In one embodiment, a plurality of digital sound signals includes a first digital sound signal and a second digital sound signal. The analog gain values include a first analog gain value and a second analog gain value, the first digital sound signals corresponds to the first analog gain value, the second digital sound signals corresponds to the second analog gain value, 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 the 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 the clipping signal, the controller 50 then to determine whether the second digital sound signal is the clipping signal or the non-clipping signal. When the second digital sound signal is determined to be the 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.
[0029] In another embodiment, the plurality of digital sound signals includes a first digital sound signal and a plurality of second digital sound signals, the plurality of analog gain values includes 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 corresponds to the plurality of second analog gain values, the first analog gain value is greater than the plurality of second analog gain values, the analog gain value of the plurality of second analog gain value decrease sequentially. The controller 50 first determines whether the first digital sound signal is the clipping signal or the non-clipping signal. When the first digital sound signals are determined to be the nonclipping signal, the controller 50 outputs the first digital sound signals; when the first digital sound signals are determined to be the clipping signal, the controller 50 then sequentially determines whether each of the plurality of second digital sound signals is the clipping signal or the non-clipping signal. Until one of the plurality of second digital sound signals is determined to be the non-clipping signal, the controller 50 determines at least one of second digital sound signals existed earlier than the determination time point that determining one of the plurality of second digital sound signals is the non-clipping signal is clipping signals, and then stops determining whether the remaining the plurality of second digital sound signals after the determination time-point that one of the plurality of second digital sound signals has been determined to be the non-clipping signal is clipping signals or nonclipping signals. Subsequently, the controller 50 controls the microprocessor 40 to output the second digital sound signal that is determined to be the non-clipping signal. The microprocessor 40 is also directed by the controller 50 to perform digital signal processing on the non-clipping signals according to the first analog gain value and the corresponding second analog gain value.
[0030] FIG. 2 illustrates a flowchart of the sound signal processing method according to an embodiment of the present application. As shown in FIG. 2, the sound signal processing method of the present application includes steps Sil to SI 5. The sound signal processing method shown in FIG. 2 can be applied to the sound signal processing device shown in FIG. I but is not limited thereto. The following is an illustrative explanation of steps SI 1 to S15 based on the operation of the sound signal processing device shown in FIG. 1. [ 0031 ] StepS 11: obtaining a sound signal. As previously described, the audio device 10 obtains a sound signal, and the sound signal is transmitted to the pre-amplifier 20.
[0032] Step SI 2: amplifying the sound signal according to a plurality of analog gain values to generate a plurality of amplified sound signals. Specifically, the pre-amplifier 20 amplifies the sound signal using a plurality of analog gain values, thereby outputting a plurality of amplified sound signals. Subsequently, the pre-amplifier 20 transmits the plurality of amplified sound signals to the analog digital converter 30 and the pre-amplifier 20 transmits the plurality of analog gain values to the microprocessor 40.
[0033] Step S13: digitizing the plurality of amplified sound signals to generate a plurality of digital sound signals. Specifically, the analog digital converter 30 performs analog-to-digital conversion on the plurality of amplified sound signals, thereby outputting the plurality of digital sound signals.
[0034] Step S14: determining whether the plurality of digital sound signals are clipping signals or non-clipping signals, and selectively outputting the non-clipping sound signals. Specifically, the controller 50 determines whether each of the plurality of digital sound signals is a clipping signal or a non-clipping signal according to the waveforms of the plurality of digital sound signals. Additionally, the controller 50 determines whether the signal level of each digital sound signal remains at a specific level (e.g., OdbFS) for a period of time. Taking single digital sound signal as an example, the controller 50 retrieves the signal level from the analog digital converter 30, if the signal level of the digital sound signal remains at a specific level (e.g., OdbFS) for a duration (e.g., 3 seconds), the controller 50 determines that this digital sound signal is clipping. Therefore, this digital sound signal is classified as a clipping signal. The determination for clipping of the remaining plurality of digital sound signals follows the same process as the single digital sound signal described above, without repeating the details.
[0035] In one embodiment, the plurality of digital sound signals includes a first digital sound signal and a second digital sound signal, a determination time-point for determining whether the first digital sound signal is the clipping sound signal or the nonclipping sound signal is earlier than the determination time-point for determining whether the second digital sound signal is a clipping signal or a non-clipping signal. The plurality of analog gain values includes a first analog gain value and a second analog gain value, the first digital sound signals corresponds to the first analog gain value, the second digital sound signals corresponds to the second analog gain value, the first analog gain value is greater than the second analog gain value.
[0036] The controller 50 determines whether each audio frame of the first digital sound signal and each audio frame of the second digital sound signal is clipping or not. Both the first digital sound signal and the second digital sound signal have the same plurality of audio frames. However, the waveform of the first digital sound signal is different form the waveform of the second digital sound signal. For the same audio frame, the controller 50 first determines whether the first digital sound signal is the clipping signal or the nonclipping signal, when the first digital sound signal is the clipping signal, the controller 50 then proceeds to determine whether the second digital sound signal is the clipping signal or the non-clipping signal. FIG. 3 further depicts a flowchart of the method in this application showing whether a plurality of digital sound signals are clipping signals or non-clipping signals. As shown in FIG. 3, steps for determining whether the plurality of digital sound signals are clipping signals or non-clipping signals include Step S141A to Step SI44A. The operation of the sound signal processing device shown in FIG. 1 is used as an example to explain steps S141A to SI44A.
[0037] Step S141A: determine whether the first digital sound signal is clipping signal or non-clipping signal. Specifically, the controller 50 examines the waveform of the first digital sound signal to determine whether the signal level of the first digital sound signal maintains at a specific level for a certain period of time or not. When the signal level of the first digital sound signal maintains at a specific level for a certain period of time, the controller 50 determines that the first digital sound signal is the clipping signal. When the signal level of the first digital sound signal does not maintain at a specific level for a certain period of time, the controller 50 determines that the first digital sound signals is the nonclipping signal.
[0038] When the controller 50 determines the first digital sound signals is the nonclipping signal, the controller 50 proceeds to Step S142A: When the controller 50 determines the first digital sound signals is the clipping signal, the controller 50 proceeds to Step S143A.
[0039] Step S142A: outputting the first digital sound signal. Specifically, the controller 50 stops determining whether the second digital sound signal is the clipping signal or the non-clipping signal and sends a control signal to the microprocessor 40, the microprocessor 40 outputs the first digital sound signal.
[0040] S143A: determining whether the second digital sound signals is the clipping signal or the non-clipping signal. Specifically, the controller 50 examines the waveform of the second digital sound signals to determine whether the signal level of the second digital sound signals maintains at a specific level for a certain period of time or not. When the signal level of the second digital sound signals maintains at a specific level for a certain period of time, the controller 50 determines that the second digital sound signal is the clipping signal. When the signal level of the second digital sound signals does not maintain at a specific level for a certain period of time, the controller 50 determines that the second digital sound signals is the non-clipping signal. [0041 ] When the controller 50 determines that the second digital sound signals is the non-clipping signal, the controller 50 proceeds to Step S144A. When the controller 50 determines that the second digital sound signal is the clipping signal, the controller 50 takes no action and records the first digital sound signal and the second digital sound signal are both clipping signals.
[0042] Step S144A: outputting the second digital sound signals. Specifically, the controller 50 sends control signals to the microprocessor 40, the microprocessor 40 outputs the second digital sound signals. [0043 ] In another embodiment, the plurality of digital sound signals includes a first digital sound signals and a plurality of second digital sound signals, the determination timepoint for determining whether the first digital sound signal is the clipping signal or the nonclipping signal is earlier than the determination time-point for determining whether the plurality of second digital sound signals is the clipping signal or the 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, the analog gain value of each of the plurality of second analog gain values is different and sequentially decreasing. The chronical sequence of the determination time-points for determining whether each of the plurality of second digital sound signals is the clipping signal or the non-clipping signal is determined based on a numerical order of plurality of second analog gain value. [0044 J The controller 50 determines whether each audio frame of the first digital sound signals and each audio frame of the plurality of second digital sound signal is clipping or not, the first digital sound signal and each audio frame of the second digital sound signals have the same audio frames, however, the waveform of the first digital sound signal differs from the waveforms of the second digital sound signals, and each of the plurality of second digital sound signals has different waveforms. Within the same audio frame, the controller 50 first determines whether the first digital sound signal is the clipping signal or the nonclipping signal. When the controller 50 determines the first digital sound signals is the clipping signal, the controller 50 subsequently determines whether the plurality of second digital sound signals is the clipping signal or the non-clipping signal according to the numerical order of the plurality of second analog gain value. FIG. 4 further illustrates a flowchart of determining whether the plurality of digital audio signal is clipped or nonlipping according to another embodiment of this application. As shown in FIG. 4, the steps for determining whether the plurality of digital sound signals is the clipping signal or the non-clipping signal includes stepS141B to stepS14(2N)B, wherein N is a positive integer. The operation of the sound signal processing device shown in FIG. 1 is used to illustrate steps S141B to S14(2N)B.
[0045] In the following discussion, three second digital sound signals will be used as an example to illustrate the steps for determining whether the plurality of digital sound signals is the clipping signal or the non-clipping signal. Specifically, the steps for determining whether plurality of digital sound signals is the clipping signal or the non clipping signal will be illustrated using the case where (N = 4), but these steps also apply to cases where (N = 5) and (N = 6).
[0046] Therefore, the plurality of digital sound signals includes a first digital sound signal and three second digital sound signals, the number of the plurality of second analog gain value is three. 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, the second digital sound signal D2-3 corresponds to the second analog gain value G2-3. [ 0047 ] After determining that the first digital sound signal is the clipping signal, the controller 50 subsequently determines whether the second digital sound signal D2-1 is the clipping signal or the non-clipping signal. While the second digital sound signal D2-1 is determined to be clipping signal, the controller 50 then determines whether the second digital sound signal D2-2 is the clipping signal or the non-clipping signal. Furthermore, while the second digital sound signal D2-2 is determined to be the clipping signal, the controller 50 proceeds to determine whether the second digital sound signal D2-3 is the clipping signal or the non-clipping signal. [0048 ] Furthermore, since the preceding paragraph has already described the mechanism for determining whether one first digital sound signal and one second digital sound signals are clipping signals or non-clipping signals, it will not be reiterated here. Steps S141B and S142B are identical to steps S141A and S142B, and therefore will not be described again here.
[0049] Step S143B: determining whether the second digital sound signals is the clipping signal or the non-clipping signal. When it is determined that the second digital sound signal D2-1 is a non-clipping signal, proceed to Step S144B. When it is determined that the second digital sound signal D2-1 is a clipping signal, proceed to Step S145B.
[0050] Step S144B: outputting the second digital sound signals. Specifically, controller 50 ceases to determine whether the second digital sound signal D2-2 and the second digital sound signal D2-3 is a clipping signal or a non-clipping signal, and transmits control signals to the microprocessor 40, the microprocessor 40 outputs the second digital sound signal D2-1.
[0051] Step S145B: determine whether the second digital sound signals are a clipping signal or a non-clipping signal. When the second digital sound signal D2-2 is determined to be a non-clipping signal, proceed to Step S146B. When the second digital sound signal D2-2 is determined to be a clipping signal, proceed to Step S147B.
[0052] Step S146B : output the second digital sound signals. Specifically, the controller 50 ceases to determine whether the second digital sound signal D2-3 is a clipping signal or a non-clipping signal and transmits control signals to the microprocessor 40, the microprocessor 40 outputs the second digital sound signal D2-2. [0053 ] 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, proceed to Step S148B. When the second digital sound signal D2-3 is determined to be a clipping signal, controller 50 does not take action or record 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.
[0054] Step S148B: output the second digital sound signals. Specifically, the controller 50 sends control signals to the microprocessor 40, the microprocessor 40 outputs the second digital sound signal D2-3.
[0055] Step S15: performing a dynamic range control program on the non-clipping signals, to adjust the non-clipping signals. Specifically, the dynamic range control program includes a digital gain value (make up gain), the controller 50 sends another control signal to the microprocessor 40, the microprocessor 40 performs the dynamic range control program on the non-clipping signals, to adjust non-clipping signals according to the digital gain value.
[0056] When the first digital sound signal is a non-clipping signal, the microprocessor 40 performs the dynamic range control program 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 non-clipping, the controller 50 controls the microprocessor 40 adjust the digital gain value based on the first analog gain value and the corresponding second analog gain value, to compensate the differences between the first digital sound signal and the second digital sound signals determined to be a non-clipping signal. FIG. 5 illustrates the process of performing the dynamic range control program on non-clipping signals in accordance with an embodiment of the sound signal processing method. As shown in FIG. 5, the steps for performing the dynamic range control program on non-clipping signals include steps S151 to Step SI53. The operation of the sound signal processing device shown in FIG. 1 will be used as an illustrative example to explain steps S151 to S153.
[0057] Step S151: perform subtraction between the first analog gain value and the corresponding second analog gain value to generate a difference. Specifically, the controller 50 obtains the first analog gain value and the corresponding second analog gain value of the non-clipping signal from the pre-amplifier 20 and performs subtraction between the first analog gain value the corresponding second analog gain value of the non-clipping signal to generate a difference.
[0058] Step SI52: Adjust the digital gain value according to the difference. Specifically, the controller 50 sends the difference and another control signal to the microprocessor 40, the microprocessor 40 adjusts the digital gain value according to the difference and another control signal.
[0059] Step SI53: performing the dynamic range control program on the nonclipping signal according to the adjusted digital gain value to adjust the non-clipping signal. Specifically, the microprocessor 40 performs the dynamic range control program on the second digital sound signal according to the adjusted digital gain value, to adjust the second digital sound signals. [ 0060 ] FIG. 6 illustrates another embodiment of the sound signal processing method according to this application. As shown in FIG. 6, the sound signal processing method of this application includes steps S21 to S26, where steps S21 to S24 and Step S26 are identical to steps SI 1 to SI5. Below is an illustrative explanation of Step S25 using the operation of the sound signal processing device shown in FIG. 1. [0061 ] Step S25: Perform cross-fade processing on the non-clipping signal. Specifically, the controller 50 controls the microprocessor 40 to perform cross-fade processing on the first digital sound signal or the second digital sound signals that is determined to be a non-clipping signal. Furthermore, the controller 50 controls the microprocessor 40 to perform a fade-in process on an audio frame of the first digital audio signal or the second digital audio signal that is a non-clipping signal, and controls the microprocessor 40 to perform a fade-out process on a previous audio frame of the first digital audio signal or the second digital audio signal that is a non-clipped signal, wherein the previous audio frame is another audio frame that is earlier than the audio frame.
[0062] In summary, the sound signals processing method and the sound signals processing device of the present application, amplify sound signals based on plurality of analog gain values to generate plurality of amplified sound signals, and then digitized the amplified sound signals to generate plurality of digital sound signals. Subsequently, determining the plurality of digital sound signals are clipping signals or non-clipping signals, and selectively outputting non-clipping sound signals, and performing the dynamic range control program on the non-clipping signals. Therefore, after the aforementioned signal processing, no clipping occurs in the sound signal [ 0063 ] The foregoing description of the preferred embodiments of the invention has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise form or to exemplary embodiments disclosed. Accordingly, the foregoing description should be regarded as illustrative rather than restrictive. Obviously, many modifications and variations will be apparent to practitioners skilled in this art. The embodiments are chosen and described in order to best explain the principles of the invention and its best mode practical application, thereby to enable persons skilled in the art to understand the invention for various embodiments and with various modifications as are suited to the particular use or implementation contemplated. It is intended that the scope of the invention be defined by the claims appended hereto and their equivalents in which all terms are meant in their broadest reasonable sense unless otherwise indicated. Therefore, the term “the invention”, “the present invention” or the like does not necessarily limit the claim scope to a specific embodiment, and the reference to particularly preferred exemplary embodiments of the invention does not imply a limitation on the invention, and no such limitation is to be inferred. The invention is limited only by the spirit and scope of the appended claims. Moreover, these claims may refer to use “first”, “second”, etc. following with noun or element. Such terms should be understood as a nomenclature and should not be construed as giving the limitation on the number of the elements modified by such nomenclature unless specific number has been given. The abstract of the disclosure is provided to comply with the rules requiring an abstract, which will allow a searcher to quickly ascertain the subject matter of the technical disclosure of any patent issued from this disclosure. It is submitted 5 with the understanding that it will not be used to interpret or limit the scope or meaning of the claims. Any advantages and benefits described may not apply to all embodiments of the invention. It should be appreciated that variations may be made in the embodiments described by persons skilled in the art without departing from the scope of the present invention as defined by the following claims. Moreover, no element and component in the 10 present invention is intended to be dedicated to the public regardless of whether the element or component is explicitly recited in the following claims.
Claims
25 03 25What is claimed is:
1. A sound signal processing method, comprising:obtaining a sound signal;amplifying the sound signal according to a plurality of analog gain values to generate10 a plurality of amplified sound signals, wherein the plurality of amplified sound signals corresponds to the plurality of analog gain values respectively, the plurality of analog gain values comprising a first analog gain value and a second analog gain value;digitizing the plurality of amplified sound signals to generate a plurality of digital sound signals, the plurality of digital sound signals comprising a first digital sound signal15 and a second digital sound signal, the first digital sound signal corresponding to the first analog gain value, the second digital sound signal corresponding to the second analog gain value, wherein the first analog gain value is greater than the second analog gain value;determining whether the plurality of digital sound signals are clipping signals or nonclipping signals, and selectively outputting the non-clipping sound signals, which comprises:20 outputting the first digital sound signal when the first digital sound signals isdetermined to be the non-clipping signal; andoutputting the second digital sound signal when the second digital sound signal is determined to be the non-clipping signal and the first digital sound signal is determined to be the clipping signal; and25 when the second digital sound signal is outputted, performing a dynamic rangecontrol program, which comprises a digital gain value, on the non-clipping sound signals to adjust the non-clipping sound signals, which comprises:performing subtraction between the first analog gain value and the second analog gain value to generate a difference;30 adjusting the digital gain value according to the difference; and25 03 255 performing the dynamic range control program on the non-clipping soundsignals according to the adjusted digital gain value to adjust the non-clipping sound signals.
2. The sound signal processing method as claimed in claim 1, wherein the step of 10 determining whether the first digital sound signal is the clipping sound signal or the nonclipping sound signal is earlier than the step of determining whether the second digital sound signal is the clipping sound signal or the non-clipping sound signal.
3. A sound signal processing method, comprising:15 obtaining a 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 corresponds to the plurality of analog gain values respectively, the plurality of analog gain values comprises a first analog gain value and a plurality of second analog gain values,20 digitizing the plurality of amplified sound signals to generate a plurality of digitalsound signals, wherein the plurality of digital sound signals comprises a first digital sound signal and a plurality of second digital sound signals, the first digital sound signal corresponding to the first analog gain value, and the plurality of second digital sound signals respectively correspond to the plurality of second analog gain values, wherein the first25 analog gain value is greater than the second analog gain values;determining whether the plurality of digital sound signals are clipping signals or nonclipping signals, and selectively outputting the non-clipping sound signals, which comprises: determining whether the first digital sound signal is the clipping sound signalor the non-clipping sound signal;30 when the first digital sound signal is determined to be the non-clipping soundsignal, outputting the first digital sound signal; and25 03 255 when the first digital sound signal is determined to be the clipping soundsignal, sequentially determining whether each of the plurality of second digital sound signals is the clipping signal or the non-clipping signal, until one of the plurality of second digital sound signals is determined to be the non-clipping sound signal, outputting the second digital sound signal that determined to be the non-clipping10 sound signal; andwhen one of the plurality second digital sound signals is outputted, performing a dynamic range control program, which comprises a digital gain values, on the non-clipping sound signal to adjust the non-clipping sound signals, which comprises:performing subtraction between the first analog gain value and one of the15 plurality of second analog gain values to generate a difference, wherein theselected second analog gain value corresponds to the second digital sound signal determined to be the non-clipping sound signal;adjusting the digital gain value according to the difference; andperforming the dynamic range control program on the non-clipping sound20 signals according to the adjusted digital gain value.
4. The sound signal processing method as claimed in claim 3, wherein the step of determining whether the first digital sound signal is the clipping signal or non-clipping signal is earlier than a plurality of the step of determining whether the plurality of second25 digital sound signals are clipping signals or non-clipping signals, andwherein a chronical sequence for determining whether the plurality of second digital sound signals are the clipping signals or the non-clipping signals is set based on a numerical order of the plurality of second analog gain values.30 5. A sound signal processing device, comprising:an audio device for obtaining a sound signal;25 03 255 a pre-amplifier, connecting to the audio device and having a plurality of analog gainvalues, for 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, wherein the plurality of analog gain values comprise a first analog gain value and a second analog gain value;10 an analog digital converter, connecting to the pre-amplifier, for digitizing theplurality of amplified sound signals to generate a plurality of digital sound signals, wherein the plurality of digital sound signals comprises a first digital sound signal and a second digital sound signal, the first digital sound signal corresponding to the first analog gain value, and the second digital sound signal corresponding to the second analog gain value, wherein15 the first analog gain value is greater than the second analog gain value;a microprocessor connecting to the analog digital converter and the pre-amplifier, and receiving the plurality of digital sound signals; anda controller, connecting to the analog digital converter and the microprocessor, for determining whether the plurality of digital sound signals are clipping signals or non-20 clipping signals, and the controller controlling the microprocessor to selectively output the non-clipping sound signals, which comprise:outputting the first digital sound signal when the first digital sound signal is determined to be the non-clipping signal; andoutputting the second digital sound signal when the second digital sound25 signal is determined to be the non-clipping signal and the first digital sound signalis also determined to be the clipping signal; andwhen the second digital sound signal is outputted, the controller controlling the microprocessor to perform a dynamic range control program, which comprises a digital gain value, on the non-clipping sound signals to adjust the non-clipping sound signals, which 30 comprises:performing subtraction between the first analog gain value and the second analog gain value to generate a difference;25 03 255 adjusting the digital gain value according to the difference; andperforming the dynamic range control program on the non-clipping sound signals according to the adjusted digital gain value to adjust the non-clipping sound signals.10 6. The sound signal processing device as claimed in claim 5, wherein the step ofdetermining whether the first digital sound signal is the clipping sound signal or the nonclipping sound signal is earlier than the step of determining whether the second digital sound signal is the clipping sound signal or the non-clipping sound signal.15 7. A sound signal processing device , comprising:an audio device for obtaining a sound signal;a pre-amplifier, connecting to the audio device and having a plurality of analog gain values, for 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 20 signals correspond to the plurality of analog gain values respectively, wherein the plurality of analog gain values comprise a first analog gain value and a plurality of second analog gain values;an analog digital converter, connecting to the pre-amplifier, for digitizing the plurality of amplified sound signals to generate a plurality of digital sound signals, wherein 25 the plurality of digital sound signals comprises a first digital sound signal and a plurality of second digital sound signals, 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, wherein the first analog gain value is greater than the second analog gain values;30 a microprocessor connecting to the analog digital converter and the pre-amplifier,and receiving the plurality of digital sound signals; and25 03 255 a controller, connecting to the analog digital converter and the microprocessor, fordetermining whether the plurality of digital sound signals are clipping signals or nonclipping signals, and the controller controlling the microprocessor to selectively output the non-clipping sound signals, which comprise:determining whether the first digital sound signal is the clipping sound signal 10 or the non-clipping sound signal;when the first digital sound signal is determined to be the non-clipping sound signal, the controller controls the microprocessor to output the first digital sound signal; andwhen the first digital sound signal is determined to be the clipping sound15 signal, sequentially determining whether each of the plurality of second digital soundsignals is the clipping signal or the non-clipping signal, until one of the plurality of second digital sound signals is determined to be the non-clipping sound signal, outputting the second digital sound signal that determined to be the non-clipping sound signal; and20 when one of the plurality second digital sound signals is outputted, the controllercontrols the microprocessor to perform a dynamic range control program, which comprises a digital gain values, on the non-clipping sound signal to adjust the non-clipping sound signals, which comprises:performing subtraction between the first analog gain value and one of the25 plurality of second analog gain values to generate a difference, wherein the selectedsecond analog gain value corresponds to the second digital sound signal determined to the non-clipping sound signal;adjusting the digital gain value according to the difference; andperforming the dynamic range control program on the non-clipping sound 30 signals according to the adjusted digital gain value.5 8. The sound signal processing device as claimed in claim 7, wherein the step ofdetermining whether the first digital sound signal is the clipping signal or non-clipping signal is earlier than a plurality of the step of determining whether the plurality of second digital sound signals are clipping signals or non-clipping signals, andwherein a chronical sequence for determining whether the plurality of second digital10 sound signals are the clipping signals or the non-clipping signals is determined based on a numerical order of the plurality of second analog gain values.25 03 25
Citation Information
Patent Citations
Audio dynamic range control method and device, storage medium and audio equipment
CN115623384A
Automatic gain control circuit for communication signals
EP3059860A1
Input signal level control for communications channels
GB1599401A
Automatic volume and dynamic range adjustment for mobile audio devices
US20080269926A1
Digital Compressor for Compressing an Audio Signal
US20160211821A1