Sound recording circuit

20200077213 ยท 2020-03-05

    Inventors

    Cpc classification

    International classification

    Abstract

    Disclosed is a sound recording circuit capable of adjusting microphone sensitivity and preventing sound cracks caused by overly loud sound. The sound recording circuit includes: a microphone bias circuit configured to provide a bias voltage for a microphone circuit; an AC coupling capacitor configured to output an analog input signal according to a microphone signal of the microphone circuit; an analog amplifier circuit configured to output an analog output signal according to the analog input signal; an analog-to-digital converter configured to output a digital input signal according to the analog output signal; a digital amplifier circuit configured to output a digital output signal according to the digital input signal; and a signal detector configured to control an analog gain of the analog amplifier circuit, a digital gain of the digital amplifier circuit, and the bias voltage of the microphone bias circuit.

    Claims

    1. A circuit capable of being coupled to a microphone circuit and a storage circuit, comprising: a microphone bias circuit configured to provide a bias voltage for the microphone circuit; an alternating-current (AC) coupling capacitor configured to output an analog input signal according to a microphone signal of the microphone circuit; an analog amplifier circuit configured to output an analog output signal according to the analog input signal; an analog-to-digital converter configured to output a digital input signal according to the analog output signal; a digital amplifier circuit configured to generate a digital output signal according to the digital input signal and output the digital output signal to the storage circuit; and a signal detector configured to control an analog gain of the analog amplifier circuit, a digital gain of the digital amplifier circuit, and the bias voltage of the microphone bias circuit according to the digital input signal.

    2. The circuit of claim 1, wherein when the signal detector determines that the analog input signal is a clamping signal, the signal detector adjusts the bias voltage of the microphone bias circuit.

    3. The circuit of claim 2, wherein the signal detector determines whether the analog input signal is the clamping signal according to a pattern of the digital input signal, the analog gain of the analog amplifier circuit, and a nominal maximum output limit of the microphone circuit.

    4. The circuit of claim 1, wherein the signal detector controls at least one of a voltage, a resistor, and a current of the microphone bias circuit so as to control the bias voltage of the microphone bias circuit.

    5. The circuit of claim 1, wherein the signal detector includes: an energy calculator circuit configured to calculate and output an energy value of the analog input signal according to the digital input signal and the analog gain of the analog amplifier circuit; a comparator circuit configured to compare the energy value with a nominal maximum output limit of the microphone circuit and thereby output a comparison value; and a control circuit configured to adjust the bias voltage of the microphone bias circuit in response to the comparison value indicating that the energy value is higher than the nominal maximum output limit of the microphone circuit.

    6. The circuit of claim 1, wherein the microphone bias circuit is dynamically adjusted to control sensitivity of the microphone circuit.

    7. A circuit capable of being coupled to a microphone circuit and a storage circuit, comprising: a microphone bias circuit configured to provide a bias voltage for the microphone circuit; an AC coupling capacitor configured to output an analog input signal according to a microphone signal of the microphone circuit; an analog amplifier circuit configured to output an analog output signal according to the analog input signal; a first analog-to-digital converter configured to output a first digital input signal according to the analog output signal; a digital amplifier circuit configured to generate a digital output signal according to the first digital input signal and output the digital output signal to the storage circuit; a first signal detector configured to control an analog gain of the analog amplifier circuit and a digital gain of the digital amplifier circuit according to the first digital input signal; a second analog-to-digital converter configured to generate a second digital input signal according to the analog input signal; and a second signal detector configured to control the bias voltage of the microphone bias circuit according to the second digital input signal.

    8. The circuit of claim 7, wherein when the second signal detector determines that the analog input signal is a clamping signal, the second signal detector adjusts the bias voltage of the microphone bias circuit.

    9. The circuit of claim 8, wherein the second signal detector determines whether the analog input signal is the clamping signal according to a pattern of the second digital input signal and a nominal maximum output limit of the microphone limit.

    10. The circuit of claim 7, wherein the second signal detector controls at least one of a voltage, a resistor, and a current of the microphone bias circuit so as to control the bias voltage of the microphone bias circuit.

    11. The circuit of claim 7, wherein the second signal detector includes: an energy calculator circuit configured to calculate and output an energy value of the analog input signal according to the second digital input signal; a comparator circuit configured to compare the energy value with a nominal maximum output limit of the microphone circuit and thereby output a comparison value; and a control circuit configured to adjust the bias voltage of the microphone bias circuit in response to the comparison value indicating that the energy value is higher than the nominal maximum output limit of the microphone circuit.

    Description

    BRIEF DESCRIPTION OF THE DRAWINGS

    [0008] FIG. 1 shows an embodiment of the sound recording circuit of the present invention.

    [0009] FIG. 2 shows an embodiment of the microphone bias circuit of FIG. 1.

    [0010] FIG. 3 shows another embodiment of the microphone bias circuit of FIG. 1.

    [0011] FIG. 4 shows yet another embodiment of the microphone bias circuit of FIG. 1.

    [0012] FIG. 5 shows several scenarios of the sound recording circuit of FIG. 1 generating clamping signals.

    [0013] FIG. 6 shows an embodiment of the signal detector of FIG. 1.

    [0014] FIG. 7 shows an equivalent circuit of the microphone circuit of FIG. 1.

    [0015] FIG. 8 shows another embodiment of the sound recording circuit of the present invention.

    DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

    [0016] The present invention discloses a sound recording circuit capable of controlling the bias voltage for a microphone circuit to prevent the problem of sound cracks and/or capable of dynamically adjusting the sensitivity of the microphone circuit.

    [0017] FIG. 1 shows an embodiment of the sound recording circuit of the present invention. The sound recording circuit 100 of FIG. 1 includes a microphone bias circuit 110 (MIC Bias), an alternating-current (AC) coupling capacitor 120, an analog amplifier circuit 130, an analog-to-digital converter (ADC) 140, a digital amplifier circuit 150, and a signal detector 160.

    [0018] Please refer to FIG. 1. The microphone bias circuit 110 is configured to provide a bias voltage V.sub.BIAS for a microphone circuit 10 so as to allow the microphone circuit 10 to reflect sound waves (as shown by the dashed-line arrows of FIG. 1) according to the bias voltage V.sub.BIAS and thereby generate a microphone signal S.sub.MIC. The microphone bias circuit 110 includes an adjustable resistor (e.g., the adjustable resistor 210 of FIG. 2), an adjustable voltage source (e.g., the adjustable voltage source 310 of FIG. 3), or both of the adjustable resistor and the adjustable voltage source (e.g., the adjustable resistor 210 and the adjustable voltage source 310 of FIG. 4) while the sound recording circuit 100 can optionally include the microphone circuit 10 that is a known or self-developed circuit. The AC coupling capacitor 120 is configured to output an analog input signal S.sub.AIN according to the microphone signal S.sub.MIC. The analog amplifier circuit 130 is configured to output an analog output signal S.sub.AOUT according to the analog input signal S.sub.AIN and the analog gain G.sub.A of the analog amplifier circuit 130; the analog amplifier circuit 130 can be a known or self-developed circuit. The ADC 140 is configured to output a digital input signal S.sub.DIN according to the analog output signal S.sub.AOUT; the ADC 140 can be a known or self-developed circuit. The digital amplifier circuit 150 is configured to generate a digital output signal S.sub.DOUT according to the digital input signal S.sub.DIN and the digital gain G.sub.D of the digital amplifier circuit 150, and then output the digital output signal S.sub.DOUT to a storage circuit 12; each of the digital amplifier circuit 150 and the storage circuit 12 can be a known or self-developed circuit, and the storage circuit 12 is included in or independent of the sound recording circuit 100. The signal detector 160 is configured to control the analog gain G.sub.A of the analog amplifier circuit 130 and the digital gain G.sub.D of the digital amplifier circuit 150 according to the digital input signal S.sub.DIN, and also configured to control the bias voltage V.sub.BIAS of the microphone bias circuit 110 according to the digital input signal S.sub.DIN. With the signal detector 160 controlling the bias voltage V.sub.BIAS of the microphone bias circuit 110, the sound recording circuit 100 of this embodiment is capable of relieving the sound distortion (e.g., sound cracks) caused by a microphone signal (i.e., clamping signal here) exceeding the nominal maximum output limit of the microphone circuit 10, and/or capable of adaptively adjusting the sensitivity of the microphone circuit 10 for different sound recording settings.

    [0019] FIG. 5 shows several scenarios of the sound recording circuit 100 generating clamping signals. These scenarios include: [0020] (1) Scenario 1: The mismatch between the sensitivity of the microphone circuit 10 and the gains of the analog amplifier circuit 130 and the digital amplifier circuit 150 leads to the digital output signal D.sub.DOUT being a clamping signal. [0021] (2) Scenario 2: The mismatch between the sensitivity of the microphone circuit 10 and the gain of the analog amplifier circuit 130 leads to the analog output signal S.sub.AOUT and the derivative signals thereof being clamping signals. [0022] (3) Scenario 3: The mismatch between the microphone circuit 10 and the microphone bias circuit 110 or overly loud sound leads to the analog input signal S.sub.AIN and the derivative signals thereof being clamping signals.
    When the signal detector 160 detects Scenario 1, the signal detector 160 adjusts at least one of the analog gain G.sub.A and the digital gain G.sub.D so as to prevent the digital output signal S.sub.DOUT from being a clamping signal. When the signal detector 160 detects Scenario 2, the signal detector 160 adjusts the analog gain G.sub.A and optionally adjusts the digital gain G.sub.D so as to prevent the analog output signal S.sub.AOUT and the derivative signals thereof from being clamping signals. When the signal detector 160 detects Scenario 3, which means that the signal detector 160 finds that the analog input signal S.sub.AIN is a clamping signal, the signal detector 160 adjusts the bias voltage V.sub.BIAS of the microphone bias circuit 110 and optionally adjusts at least one of the analog gain G.sub.A and the digital gain G.sub.D so as to prevent the analog input signal S.sub.AIN and the derivative signals thereof from being clamping signals.

    [0023] In an exemplary implementation, when the signal detector 160 detects Scenario 3, the signal detector 160 determines whether the analog input signal S.sub.AIN is a clamping signal in accordance with a pattern of the digital input signal S.sub.DIN (e.g., successive binary bits such as 1 1 1 1 1 . . . while the number of these bits can be determined according to the demand for implementation), the analog gain G.sub.A of the analog amplifier circuit 130, and the nominal maximum output limit TH.sub.MIC of the microphone circuit 10, and accordingly determines whether the bias voltage V.sub.BIAS of the microphone bias circuit 110 needs to be adjusted. More specifically, the signal detector 160 may carry out the following steps to determine whether the analog input signal S.sub.AIN is a clamping signal: obtaining the signal strength of the digital input signal S.sub.DIN or the signal strength of the analog output signal S.sub.AOUT (e.g., 1.2 Vrms (root-mean-square voltage)) according to the pattern of the digital input signal S.sub.DIN; dividing the signal strength of the digital input signal S.sub.DIN or the signal strength of the analog output signal S.sub.AOUT by the analog gain G.sub.A (e.g., 20 dB=10 times) or offsetting the effect of the analog amplifier circuit 130 to obtain the signal strength of the analog input signal S.sub.AIN (e.g., 1.2 Vrms/10=0.12 Vrms); then comparing the signal strength of the analog input signal S.sub.AIN with the nominal maximum output limit TH.sub.MIC of the microphone circuit 10 (e.g., 0.1 Vrms) to determine that the analog input signal S.sub.AIN is a clamping signal if the signal strength of the analog input signal S.sub.AIN is higher than the nominal maximum output limit TH.sub.MIC (e.g., 0.12 Vrms>0.1 Vrms).

    [0024] FIG. 6 shows an embodiment of the signal detector 160. The signal detector 160 of FIG. 6 includes an energy calculator circuit 610, a comparator circuit 620, and a control circuit 630. The energy calculator circuit 610 is configured to calculate and output an energy value P.sub.AIN of the analog input signal S.sub.AIN according to the digital input signal S.sub.DIN and the analog gain G.sub.A of the analog amplifier circuit 130; for instance, the energy calculator circuit 610 executes a look-up table operation or predetermined calculation according to the pattern of the digital input signal S.sub.DIN to obtain the signal strength of the digital input signal S.sub.DIN or the signal strength of the analog output signal S.sub.AOUT, and then the energy calculator circuit 610 divides the signal strength of the digital input signal S.sub.DIN or the signal strength of the analog output signal S.sub.AOUT by the analog gain G.sub.A or offsets the effect of the analog amplifier circuit 130 to obtain the energy value P.sub.AIN of the analog input signal S.sub.AIN. The comparator circuit 620 is configured to compare the energy value P.sub.AIN with the nominal maximum output limit TH.sub.MIC of the microphone circuit 10 and thereby output a comparison value Comp; for instance, the comparator circuit 620 compares the energy value P.sub.AIN of the analog input signal S.sub.AIN with the nominal maximum output limit TH.sub.MIC of the microphone circuit 10 and thereby determines that the analog input signal S.sub.AIN is a clamping signal if the energy value P.sub.AIN of the analog input signal S.sub.AIN is higher than the nominal maximum output limit TH.sub.MIC of the microphone circuit 10. The control circuit 630 is configured to adjust the bias voltage V.sub.BIAS of the microphone bias circuit 110 and optionally adjust at least one of the analog gain G.sub.A and the digital gain G.sub.D in response to the comparison value Comp indicating that the energy value P.sub.AIN is higher than the nominal maximum output limit TH.sub.MIC.

    [0025] FIG. 7 shows an exemplary microphone circuit equivalent to the microphone circuit 10. The microphone circuit 700 of FIG. 7 is an electret condenser microphone (ECM) including an electret component 710 and a common-source junction field effect transistor (JFET) 720. The electret component 710 is capable of outputting different gate voltages Vg to the gate of the JFET 720 in response to the variation of sound waves (as shown by the dashed-line arrows of FIG. 5), and thus the output (i.e., the microphone signal S.sub.MIC) of the drain of the JFET 720 will vary with the change of the gate-to-source voltage Vgs of the JFET 720, in which the source voltage of the JFET 720 in FIG. 7 is a ground voltage or a low supply voltage. In addition, since the conversion relation between the signal output (i.e., the microphone signal S.sub.MIC) of the drain of the JFET 720 and the signal input (i.e., the voltage Vg) of the JFET 720 will vary with the DC bias voltage (which is affected by the current Id determined by the bias voltage V.sub.BIAS), the output of the JFET 720 (i.e., S.sub.MIC) can be adjusted with the proper control over the bias voltage V.sub.BIAS and the distortion of the output of the JFET 720 can be relieved.

    [0026] FIG. 8 shows another embodiment of the sound recording circuit of the present invention. The sound recording circuit 800 of FIG. 8 includes a microphone bias circuit (MIC Bias), an AC coupling capacitor 820, an analog amplifier circuit 830, a first ADC 840 (ADC1), a digital amplifier circuit 850, a first signal detector 860, a second ADC 870 (ADC2), and a second signal detector 880. The microphone bias circuit 820 is configured to provide a bias voltage V.sub.BIAS for a microphone circuit 80 (which is included in or independent of the sound recording circuit 800) so as to allow the microphone circuit 80 to generate a microphone signal S.sub.MIC according to the bias voltage V.sub.BIAS. The AC coupling capacitor 820 is configured to output an analog input signal S.sub.AIN according to the microphone signal S.sub.MIC. The analog amplifier circuit 830 is configured to output an analog output signal S.sub.AOUT according to the analog input signal S.sub.AIN. The first ADC 840 is configured to output a first digital input signal S.sub.DIN1 according to the analog output signal S.sub.AOUT. The digital amplifier circuit 850 is configured to generate a digital output signal S.sub.DOUT according to the first digital input signal S.sub.DIN1 and output the digital output signal S.sub.DOUT to a storage circuit 82 (which is included in or independent of the sound recording circuit 800). The first signal detector 860 is configured to control an analog gain of the analog amplifier circuit 830 and a digital gain of the digital amplifier circuit 850 according to the first digital input signal S.sub.DIN1. The second ADC 870 is configured to generate a second digital input signal S.sub.DIN2 according to the analog input signal S.sub.AIN. The second signal detector 880 is configured to control the bias voltage V.sub.BIAS of the microphone bias circuit 810 according to the second digital input signal S.sub.DIN2. In this embodiment, the second ADC 870 generates the second digital input signal S.sub.DIN2 according to the analog input signal S.sub.AIN instead of the first digital output signal S.sub.DIN1/the analog output signal S.sub.AOUT so that the second signal detector 880 can execute detection according to the second digital input signal S.sub.DIN2 early in comparison with the signal detector 160 of FIG. 1 and control the bias voltage V.sub.BIAS of the microphone bias circuit 810 promptly; in brief, the prompt detection of this embodiment can shorten the duration of the recording (i.e., the recording data stored in the storage circuit 82) including sound distortion.

    [0027] In an exemplary implementation, the second signal detector 880 determines whether the analog input signal S.sub.AIN is a clamping signal according to a pattern of the second digital input signal S.sub.DIN2 (e.g., successive binary bits, each of which is bit 1 while the number of these bits can be determined according to the demand for implementation) and the nominal maximum output limit of the microphone circuit 80. More specifically, the second signal detector 880 may carry out the following steps to determine whether the analog input signal S.sub.AIN is a clamping signal: obtaining the signal strength of the analog input signal S.sub.AIN according to the pattern of the second digital input signal S.sub.DIN2; and then comparing the signal strength of the analog input signal S.sub.AIN with the nominal maximum output limit of the microphone circuit 80 to determine that the analog input signal S.sub.AIN is a clamping signal if the signal strength of the analog input signal S.sub.AIN is higher than the nominal maximum output limit. In addition, an embodiment of the second signal detector 880 is similar to the signal detector 160 of FIG. 6 and includes: an energy calculator circuit configured to calculate and output an energy value of the analog input signal S.sub.AIN according to the second digital input signal S.sub.DIN2; a comparator circuit configured to compare the energy value with the nominal maximum output limit of the microphone circuit 80 and thereby output a comparison value; and a control circuit configured to adjust the bias voltage V.sub.BIAS of the microphone bias circuit 810 in response to the comparison value indicating that the energy value is higher than the nominal maximum output limit of the microphone circuit 80.

    [0028] Since those of ordinary skill in the art can appreciate the detail and the modification of the embodiment of FIG. 8 by referring to the disclosure of the embodiments of FIGS. 1-7, which implies that the features of the embodiments of FIGS. 1-7 can be applied to the embodiment of FIG. 8 in a reasonable way, repeated and redundant description is omitted here.

    [0029] It should be noted that people of ordinary skill in the art can implement the present invention by selectively using some or all of the features of any embodiment in this specification or selectively using some or all of the features of multiple embodiments in this specification as long as such implementation is practicable, which implies that the present invention can be carried out flexibly.

    [0030] To sum up, the sound recording circuit of the present invention can control the bias voltage for a microphone circuit and thereby reduce clamping signals caused by circuit mismatch or overly loud sound; accordingly, the problem of sound distortion such as sound cracks can be relieved.

    [0031] The aforementioned descriptions represent merely the preferred embodiments of the present invention, without any intention to limit the scope of the present invention thereto. Various equivalent changes, alterations, or modifications based on the claims of present invention are all consequently viewed as being embraced by the scope of the present invention.