CN113345445A - Audio coding and decoding circuit - Google Patents

Audio coding and decoding circuit Download PDF

Info

Publication number
CN113345445A
CN113345445A CN202010092670.6A CN202010092670A CN113345445A CN 113345445 A CN113345445 A CN 113345445A CN 202010092670 A CN202010092670 A CN 202010092670A CN 113345445 A CN113345445 A CN 113345445A
Authority
CN
China
Prior art keywords
circuit
audio
output
digital
analog
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010092670.6A
Other languages
Chinese (zh)
Inventor
庄宗朋
张政斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Realtek Semiconductor Corp
Original Assignee
Realtek Semiconductor Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Realtek Semiconductor Corp filed Critical Realtek Semiconductor Corp
Priority to CN202010092670.6A priority Critical patent/CN113345445A/en
Publication of CN113345445A publication Critical patent/CN113345445A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
    • G10L19/00Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis
    • G10L19/04Speech or audio signals analysis-synthesis techniques for redundancy reduction, e.g. in vocoders; Coding or decoding of speech or audio signals, using source filter models or psychoacoustic analysis using predictive techniques
    • G10L19/16Vocoder architecture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R3/00Circuits for transducers, loudspeakers or microphones

Landscapes

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

Abstract

The present disclosure relates to audio codec circuits. An audio encoding and decoding circuit comprises a voltage detection circuit, an output processing circuit, a digital-to-analog circuit and an audio amplifying circuit. The voltage detection circuit is used for detecting an input voltage. The output processing circuit obtains a first output compensation value according to the input voltage, an output circuit parameter and a first output reference. The output processing circuit processes a digital audio and compensates the processed audio with the first output compensation value. The digital-to-analog circuit is used for performing digital-to-analog conversion on the compensated audio frequency to obtain an analog audio frequency. The audio amplifying circuit is used for amplifying the analog audio and outputting the analog audio.

Description

Audio coding and decoding circuit
Technical Field
The present invention relates to a codec circuit, and more particularly, to an audio codec circuit.
Background
The True Wireless earphone (True Wireless Stereo) refers to an earphone without any wire connection between a left ear single body, a right ear single body and a broadcasting host. The broadcasting host machine respectively carries out signal transmission with the left ear monomer and the right ear monomer of the real wireless earphone in a wireless mode, the left ear monomer and the right ear monomer of a part of real wireless earphones can carry out signal transmission in a wireless mode to obtain better dialing and receiving quality, and the left ear monomer and the right ear monomer of the other part of real wireless earphones have no signal transmission.
In the design of a true wireless earphone, relatively high requirements are placed on the synchronization of broadcast between two ears and the consistency of broadcast volume. Factors influencing the broadcast volume between the two ears comprise the consistency of the left ear monomer and the right ear monomer in audio processing and the consistency of the loudspeaker broadcast of the left ear monomer and the right ear monomer. The emphasis on speaker consistency is that the smaller and better the difference between speakers, i.e., the closer and better the volume emitted by the two ear speakers is for the same analog audio. The consistency of the audio processing of the left ear monomer and the right ear monomer is that the analog audio output by the left ear monomer and the right ear monomer is closer and better after the same digital audio is converted into the analog audio by the left ear monomer and the right ear monomer respectively.
Disclosure of Invention
Based on the above requirements of the true wireless earphone, the present application provides an audio codec circuit, which can improve the consistency of audio processing of left and right ear monomers.
According to some embodiments, a wireless and audio codec circuit includes a wireless circuit and an audio codec circuit.
According to some embodiments, an audio codec circuit includes a voltage detection circuit, an output processing circuit, a digital-to-analog circuit, and an audio amplification circuit. The voltage detection circuit is used for detecting an input voltage. The output processing circuit obtains a first output compensation value according to the input voltage, an output circuit parameter and a first output reference. The output processing circuit processes a digital audio and compensates the processed audio with the first output compensation value. The digital-to-analog circuit is used for performing digital-to-analog conversion on the compensated audio frequency to obtain an analog audio frequency. The audio amplifying circuit is used for amplifying the analog audio and outputting the analog audio.
According to some embodiments, the first output reference is a specification voltage obtained by the output processing circuit according to the input voltage and the output circuit parameter when the input voltage is a standard voltage.
According to some embodiments, the audio codec circuit has a second output compensation value, the second output compensation value is an output comparison value of the analog audio and the digital audio that are amplified when the input voltage is the standard voltage, and the output processing circuit compensates the processed audio by the first output compensation value and the second output compensation value.
According to some embodiments, the audio codec circuit further includes a pre-amplifier circuit, an analog-to-digital circuit, and an input processing circuit. The pre-amplifier circuit is used to amplify a radio signal. The analog-to-digital conversion circuit is used for converting the amplified signal into a digital signal. The input processing circuit obtains a first input compensation value according to the input voltage, an input circuit parameter and a first input reference value, and the input processing circuit processes and compensates the digital signal by the first input compensation value and outputs the digital signal.
According to some embodiments, the audio codec circuit includes a level generating circuit for generating a level voltage according to the input voltage, the audio codec circuit has a second input compensation value, the second input compensation value is an input comparison value of the digital signal and the audio signal when the input voltage is the standard voltage, the input processing circuit compensates the digital signal with the first input compensation value and the second input compensation value, the audio amplifying circuit amplifies the analog audio according to the level voltage and outputs the amplified audio, and the digital-to-analog circuit performs digital-to-analog conversion on the compensated digital audio according to the level voltage to obtain an analog audio.
According to some embodiments, an audio codec circuit includes an output processing circuit, a digital-to-analog circuit, an audio amplifying circuit, a feedback gain circuit, a feedback analog-to-digital converting circuit, and a calibration circuit. The output processing circuit is used for processing and outputting a digital audio. The digital-to-analog circuit is used for performing digital-to-analog conversion on the output of the output processing circuit to output an analog audio. The audio amplifying circuit is used for amplifying the analog audio to output the amplified audio. The loopback gain circuit is used for gaining the amplified audio to output the gained audio. The loopback ADC circuit is used for performing analog-digital conversion on the audio frequency which is gained to a digital loopback audio frequency. The correction circuit is used for controlling the output processing circuit to use a test audio frequency as the output of the output processing circuit and comparing the digital loopback audio frequency with the test audio frequency to obtain a correction compensation value, and the correction circuit controls the output processing circuit to compensate the processed digital audio frequency by the correction compensation value and uses the compensated digital audio frequency as the output of the output processing circuit.
According to some embodiments, the audio codec circuit further includes a control circuit, when activated, controlling the output processing circuit to use the test tone as the output of the output processing circuit, to make the calibration circuit compare the digital loopback tone and the test tone to obtain the calibration compensation value, and to control the output processing circuit to compensate the processed digital tone with the calibration compensation value and use the compensated digital tone as the output of the output processing circuit.
According to some embodiments, the audio codec circuit has a second output compensation value, the second output compensation value is an output comparison value of the analog audio and the digital audio that are amplified when the input voltage is a standard voltage, the output processing circuit compensates the processed digital audio with the correction compensation value and the second output compensation value, and the compensated digital audio is the output of the output processing circuit.
According to some embodiments, the audio codec circuit further includes a switch, when the calibration circuit controls the output processing circuit to use a test audio as the output of the output processing circuit, the calibration circuit controls the switch to electrically connect the output of the audio amplifier circuit to the loopback gain circuit, and when the calibration circuit controls the output processing circuit to compensate the processed digital audio with the calibration compensation value and uses the compensated digital audio as the output of the output processing circuit, the calibration circuit controls the switch to electrically connect the output of the audio amplifier circuit to the speaker.
According to some embodiments, the audio codec circuit further includes a pre-amplifier circuit, an analog-to-digital circuit, and an input processing circuit. The pre-amplifier circuit is used to amplify a radio signal. The analog-to-digital conversion circuit is used for converting the amplified signal into a digital signal. The input processing circuit is used for processing and outputting the digital signal after compensating the digital signal by a second input compensation value, and the second input compensation value is an input comparison value of the digital signal and the radio signal when the input voltage is the standard voltage.
According to some embodiments, the audio codec circuit includes an output processing circuit, a digital-to-analog circuit, an audio amplifying circuit, a pre-amplifying circuit, an analog-to-digital circuit, an input processing circuit, and a correction circuit. The output processing circuit is used for processing and outputting a digital audio. The digital-to-analog circuit is used for performing digital-to-analog conversion on the output of the output processing circuit to output an analog audio. The audio amplifying circuit is used for amplifying the analog audio to output the amplified analog audio. The pre-amplifier circuit is used to amplify a radio signal. The analog-to-digital conversion circuit is used for converting the amplified radio signal into a digital signal. The input processing circuit is used for processing the digital signal and outputting the digital signal. The calibration circuit 124 is used to control the output processing circuit to use a test audio as the output of the output processing circuit, to use the amplified analog audio as the received audio signal, and to compare the digital signal with the test audio to obtain a calibration compensation value, and the calibration circuit controls the output processing circuit to compensate the processed digital audio with the calibration compensation value and to use the compensated digital audio as the output of the output processing circuit.
In summary, according to some embodiments, when the audio codec circuit is configured in the left ear unit and the right ear unit, the consistency of the left ear unit and the right ear unit in audio processing can be improved.
Drawings
FIG. 1 is a functional block diagram of a true wireless headset and applications thereof according to some embodiments;
FIG. 2 is a block diagram of an audio codec circuit according to some embodiments;
FIG. 3 is a block diagram of an audio codec circuit according to some embodiments; and
FIG. 4 is a block diagram of an audio codec circuit according to some embodiments.
Detailed Description
Referring to fig. 1, fig. 1 is a functional block diagram of a real wireless headset and applications thereof according to some embodiments. The real wireless earphone comprises a left ear single body 10 and a right ear single body 50. The left ear unit 10 and the right ear unit 50 communicate with the main device 90 in a wireless manner. The left ear cell 10 includes a radio circuit 150, a power supply circuit 140, an audio codec circuit 100, a speaker (microphone) 170, and a microphone 160. Similarly, the right ear cell 50 includes a radio circuit 550, a power supply circuit 540, an audio codec circuit 500, a speaker 570, and a microphone 560.
In some embodiments, the host device 90 is a device capable of playing audio, such as an MP3 player, a mobile phone, a laptop computer, a desktop computer, a car audio device, a stereo, a karaoke, etc. In some embodiments, the host device 90 is a radio-enabled device, such as a recorder, a voice pen, a speaker, a mobile phone, a laptop computer, a desktop computer, a car audio device, a stereo, a karaoke, etc. In some embodiments, the host device 90 is a device capable of broadcasting and receiving sound, such as a mobile phone, a notebook computer, a desktop computer, a car audio device, a stereo, karaoke, etc.
The master device 90 is in accordance with the wireless communication standard of the wireless circuit 150,550 of the left and right ear cells 10, 50. In some embodiments, the Host device 90 wirelessly communicates with the left and right ear cells 10,50 by Bluetooth (Bluetooth), in which case the wireless circuit 150,550 is a Bluetooth wireless circuit, and the wireless circuit is, but not limited to, a Bluetooth Chip (Bluetooth Host/Chip). However, the wireless communication between the master device 90 and the left and right ear cells 10,50 may be other wireless communication protocols, such as but not limited to WiFi, ZigBee (ZigBee). Taking the wireless Circuit 150,550 as an example of a bluetooth chip, the bluetooth chip includes a Radio Frequency (RF) Circuit, a modulation Circuit, and a Baseband Circuit/Baseband Processor (Baseband and Processor).
When broadcasting, the main device 90 communicates with the left and right ear units 10,50 in a wireless communication manner, and transmits the audio to be played to the left and right ear units 10,50, the wireless circuit 150,550 receives the audio with the main device 90 and transmits the audio to the audio codec circuits 100,500, the audio codec circuits 100,500 process and convert the audio into analog audio, the audio codec circuits 100,500 provide the analog audio to the speaker 170,570, and the speaker 170,570 plays the analog audio as corresponding sound.
When receiving sound (for example, the user speaks into the microphone 160), the microphone 160 converts the sound into a sound receiving signal, the audio codec circuit 100,500 converts the sound receiving signal into a digital sound receiving signal and transmits the digital sound receiving signal to the wireless circuit 150,550, and the wireless circuit 150,550 transmits the digital sound receiving signal to the host device 90 via wireless communication.
The power circuit 140,540 is used to provide power to the wireless circuit 150,550 and the audio codec circuit 100, 500. In some embodiments, the power circuit 140,540 includes a battery and a power management circuit (not shown).
The structure of the right ear single body 50 is similar to the structure of the left ear single body 10, and the left ear single body 10 will be described below, and the right ear single body 50 will not be described in detail.
Referring to fig. 2, fig. 2 is a block diagram of an audio codec circuit according to some embodiments. The audio codec circuit 100 includes a voltage detection circuit 101, an output processing circuit 102, a digital-to-analog circuit 104, and an audio amplifier circuit 106. The voltage detection circuit 101 is used for detecting an input voltage. The output processing circuit 102 obtains a first output compensation value according to the input voltage, an output circuit parameter, and a first output reference. The output processing circuit 102 processes a digital audio and compensates the processed digital audio by the first output compensation value. The digital-to-analog circuit 104 is used for performing digital-to-analog conversion on the compensated digital audio to obtain an analog audio. The audio amplifier circuit 106 is used for amplifying the analog audio and outputting the amplified audio.
The audio codec circuit 100 receives a power supplied by the power circuit 140, and the voltage detection circuit 101 detects an input voltage of the power. In some embodiments, the audio codec circuit 100 includes a power input 108, and the power input 108 is used for receiving power supplied by the power circuit 140. The voltage detection circuit 101 is used for detecting the input voltage of the power input terminal 108.
The digital audio processed by the output processing circuit 102 may be digital audio from outside the output processing circuit 102, for example, digital audio received by a digital interface 110 of the audio codec circuit 100. For the embodiment of fig. 1, the digital audio is from a wireless circuit 150. The output processing circuit 102 processes the digital audio signal, but is not limited to equalizing the digital audio signal, increasing the sampling frequency (upsampling) of the digital audio signal, etc. by the output processing circuit 102. In some embodiments, the output processing circuit 102 increases the sampling frequency of the digital audio by advancing the sampling frequency in an interpolation manner. After the output processing circuit 102 processes the digital audio, the processed digital audio is obtained.
In some embodiments, when the audio codec circuit 100 is supplied with a power source having a standard voltage, the output processing circuit 102 obtains an output voltage (also referred to as a specification voltage) of the audio amplifier circuit 106 according to the output circuit parameter and the standard voltage (i.e., the input voltage). In some embodiments, the output circuit parameter Co, the reference voltage Vs, and the output voltage Vo are related to Vo — Co × Vs × Di, where Di is the digital audio output by the output processing circuit 102. The output circuit parameter Co is related to the design specifications of the dac 104 and the audio amplifier 106, so the output voltage of the audio amplifier 106 obtained by the output processing circuit 102 according to the output circuit parameter and the standard voltage can also be referred to as a specification voltage. For example, if the standard voltage is 1.8V and the output circuit parameter is Co, the output voltage value Vo is 1.8Co Di, and the 1.8Co is the first output reference (i.e., the output voltage value Vo is divided by the digital audio Di output by the output processing circuit 102).
In some embodiments, the standard Voltage is a Rated Voltage (Rated Voltage) of the audio codec circuit 100.
The output voltage Vo of the audio amplifier circuit 106 (i.e. the output voltage converted by the digital-to-analog circuit 104 and amplified by the audio amplifier circuit 106) is related to the input voltage supplied by the audio codec circuit 100, i.e. the output voltage Vo of the audio amplifier circuit 106 is related to the input voltage Vdd detected by the voltage detector circuit 101: vo is Co Vdd. According to the embodiment of fig. 1, the audio codec circuit 100 is powered by the power circuit 140, the voltage of the power may vary with time, and for example, the power circuit 140 includes a battery, the voltage of the battery may be higher than the standard voltage, and the voltage of the battery may decrease with time, so the output voltage of the audio amplifier circuit 106 will vary accordingly, which is different from the first output reference during design. Therefore, the output processing circuit 102 obtains a first output compensation value according to the input voltage Vdd, the output circuit parameter Co, and the first output reference. Taking the standard voltage as 1.8V as an example, the first output reference is 1.8Co, when the input voltage Vdd obtained by the voltage detection circuit 101 is 1.7V, the output voltage of the audio amplifier circuit 106 is 1.7Co, a difference of 0.1Co is generated between the two, and at this time, the output processing circuit 102 obtains the first output compensation value corresponding to the difference value of 0.1 Co.
Then, the output processing circuit 102 processes the digital audio and compensates the processed audio by the first output compensation value. Continuing with the example of the first output compensation value being 0.1Co, the output processing circuit 102 compensates the compensated digital audio with the first output compensation value of 0.1 Co. In this way, the audio codec circuit 100 can compensate for the difference in output voltage caused by the difference between the supplied voltage and the standard voltage (or the design voltage). Therefore, when the voltages supplied by the power circuits 140 and 540 are different, the left ear cell 10 having the audio codec circuit 100 and the right ear cell 50 having the audio codec circuit 500 do not generate the difference in the output voltages of the audio codec circuits 100 and 500 of the left and right ear cells 10 and 50, that is, when the voltages supplied by the power circuits 140 and 540 vary, the left and right ear cells 10 and 50 can still output relatively consistent output voltages, and the corresponding speakers 170,570 can also emit relatively consistent sound volume.
The first output reference may be a memory stored in the output processing circuit 102, a firmware stored in the output processing circuit 102, or a memory stored outside the output processing circuit 102.
The digital-to-analog circuit 104 is used for performing digital-to-analog conversion on the compensated audio to obtain an analog audio. The digital-to-analog conversion is to convert digital signals into analog signals. The Audio amplifier circuit 106(Audio amplifier/headset) is used for amplifying the analog Audio and outputting an amplified analog Audio.
The power input terminal 108 receives power from the power circuit 140 and supplies the power to all components inside the audio codec circuit 100, such as but not limited to the voltage detection circuit 101, the output processing circuit 102, the digital-to-analog circuit 104, and the audio amplifier circuit 106.
In some embodiments, the first output reference is a standard voltage of the audio codec circuit 100, and the output processing circuit 102 obtains a first output compensation value according to the input voltage Vdd, the output circuit parameter Co, and the first output reference. According to the above example, when the standard voltage is 1.8V (volt), the output voltage of the audio amplifier circuit is 1.8Co, and when the input voltage obtained by the voltage detection circuit 101 is 1.65V (volt), the output voltage of the audio amplifier circuit is 1.65Co, so the first output compensation value obtained by the output processing circuit 102 is a compensation value corresponding to 0.15Co (1.8Co-1.65 Co).
The output processing circuit 102 compensates the processed digital audio by the first output compensation value so that the output voltage of the audio amplifying circuit 106 at the input voltage coincides with the output voltage of the audio amplifying circuit 106 at the standard voltage.
As can be seen from the above description, the first output reference may be "the standard voltage of the audio codec circuit 100" or "the output voltage of the audio amplifier circuit 106 obtained according to the output circuit parameter and the standard voltage when the audio codec circuit 100 is supplied with the power having the standard voltage". When the first output reference is the standard voltage of the audio codec circuit 100, the output processing circuit 102 obtains the first output offset value according to (Vs-Vdd) × Co.
The audio codec circuit 100 compensates the digital signal according to the first output compensation value, so as to compensate the difference of the audio codec circuit 100 caused by the input voltage variation, thereby preventing the difference of the output analog audio caused by the input voltage variation among the plurality of audio codec circuits 100.
In some embodiments, the first output compensation value further compensates for the difference of the plurality of voltage detection circuits 101 caused by the process drift. Specifically, the voltage detection circuit 101 is used for detecting the input voltage and converting the input voltage into a corresponding digital voltage signal. When the voltage detection circuits 101 are manufactured, there may be a difference between the voltage detection circuits 101 due to process drift. For example, in design, the voltage detection circuit 101 should output a digital voltage signal corresponding to 1.8V when detecting a voltage of 1.8V, but a part of the actual products of the voltage detection circuit 101 should output a digital voltage signal corresponding to 1.82V or 1.79V when detecting a voltage of 1.8V, wherein-0.02V (1.8-1.82) or 0.01V (1.8-1.79) is the difference of the voltage detection circuit 101 caused by the manufacturing process. To compensate for the process-induced variations, the first output compensation value additionally compensates for the process-induced variations.
The difference of the voltage detection circuit 101 caused by the manufacturing process can be obtained by testing and reading the digital voltage signal output by the voltage detection circuit 101 by a calibration machine before the audio codec circuit 100 leaves the factory. Continuing with the example of the first output compensation value, the calibration stage provides the standard voltage of 1.8V to the audio codec circuit 100, and the calibration stage reads the digital voltage signal of 1.78V output by the voltage detection circuit 101, and obtains the difference value of 0.02V (1.8-1.78). When the audio codec circuit 100 is operating, the first output offset value is 0.05V (1.8- (1.73+0.02)) when the input voltage detected by the voltage detection circuit 101 is 1.73, and therefore the output processing circuit 102 compensates the digital audio by the first output offset value (0.05V).
In some embodiments, the audio codec circuit 100 includes a level generating circuit 118, the level generating circuit 118 is configured to generate a level voltage according to the input voltage, and provide the level voltage to the dac circuit 104 and the audio amplifying circuit 106. The DAC circuit 104 performs DAC on the compensated audio according to the level voltage to obtain the analog audio. The audio amplifier circuit 106 amplifies the analog audio according to the level voltage and outputs the amplified audio.
In some embodiments, the audio codec circuit 100 has a second output compensation value, the second output compensation value is an output comparison value of the analog audio and the digital audio that are amplified when the input voltage is the standard voltage, and the output processing circuit 102 compensates the processed audio by the first output compensation value and the second output compensation value.
The second output compensation value is used to compensate for the difference between the audio codec circuits 100 caused by the process drift when the audio codec circuit 100 is manufactured. The second output compensation value can be obtained by a calibration machine (or a calibration fixture, not shown) before the audio codec circuit 100 leaves the factory. The calibration stage provides a power source with a standard voltage to the audio codec circuit 100, the calibration stage provides the digital audio to the audio codec circuit 100 through the digital interface 110, and the output processing circuit 102 processes the digital audio and compensates the processed audio by the first output compensation value. The digital-to-analog circuit 104 is used for performing digital-to-analog conversion on the compensated audio to obtain an analog audio. The audio amplifier circuit 106 is used for amplifying the analog audio and outputting the amplified audio. The calibration machine receives the amplified analog audio and compares the amplified analog audio with the digital audio to obtain an output comparison value. For example, the volume of the digital audio is 9 decibels (dB), and in design, the voltage of the amplified analog audio corresponding to 9dB is a corresponding voltage, and the calibration stage compares the amplified voltage of the analog audio with the corresponding voltage to obtain the output comparison value. The calibration stage obtains the second output compensation value according to the output comparison value and stores the second output compensation value in the audio codec circuit 100.
The second output compensation value obtained from the test of the calibration equipment is used to compensate the difference caused by the manufacturing process of the DAC circuit 104, the level generating circuit 118, and the audio amplifying circuit 106 of the audio codec circuit 100. In addition, the relation between the output voltage Vo and the input digital audio Di is used to illustrate the process drift error, and the audio codec circuit 100 has an output circuit parameter of Co during design, so the output voltage Vo is Vdd × Co × Di during design. However, the actual output voltage Vo 'is Vdd + Co' Di, Vo and Vo 'due to the Co' as the output circuit parameter of the actual product, so the actual output voltage of the audio codec circuit 100 at the standard voltage of 1.8V is measured by the calibration machine, and the second output compensation value is obtained. In some embodiments, the second output compensation value a is Vo/Vo '═ 1.8 × Di × Co/(1.8 × Di × Co') ═ Co/Co ', and the output processing circuit 102 compensates the digital audio Di with the second output compensation value a to Di × a, so that the actual output voltage of the audio amplifying circuit 106 is Vdd × Co' × Di a, and a is substituted to Vdd × Co '× Di (Co/Co') -Vdd × Co Di, which is the output voltage at the time of the design. Therefore, the error of the audio codec circuits 100 caused by the manufacturing process can be compensated by the second output compensation value.
Since the audio codec circuit 100 is supplied with the power source having the standard voltage, the first compensation value is zero, and the calibration apparatus is not affected by the first compensation value when testing and measuring the corresponding voltage.
Therefore, the audio codec circuit 100 performs the compensation processing on the processed digital audio by the first output compensation value and the second output compensation value, which can eliminate the difference caused by the process drift of different audio codec circuits 100 and the difference caused by the different voltages of the power supplies supplied to the audio codec circuit 100, thereby improving the consistency of the sound volume of the left and right ear units 10, 50.
The second output offset value can be stored in a memory inside the audio codec circuit 100, such as but not limited to a memory inside or outside the output processing circuit 102, or can be stored in a firmware of the output processing circuit 102.
In some embodiments, the audio codec circuit 100 further includes a pre-amplifier circuit 112, an analog-to-digital circuit 114, and an input processing circuit 116. The pre-amplifier circuit 112 is used to amplify a radio signal. The analog-to-digital converter 114 is used to convert the amplified signal into a digital signal. The input processing circuit 116 obtains a first input compensation value according to the input voltage, an input circuit parameter, and a first input reference value, and the input processing circuit processes and compensates the digital signal with the first input compensation value and outputs the digital signal.
The order in which the input processing circuit 116 processes and compensates the digital signal with the second input compensation value can be changed, i.e., the input processing circuit 116 processes the digital signal first and then compensates the processed digital signal with the second input compensation value, or the input processing circuit 116 compensates the digital signal with the second input compensation value first and then processes the compensated digital signal.
The received audio signal is from the microphone 160, and the preamplifier circuit (preamplifier) 112 is used to amplify the received audio signal. The analog-to-digital conversion circuit 114 is used for performing analog-to-digital conversion on the amplified signal to obtain the digital signal. The processing of the digital signal by the input processing circuit 116 may be a down sampling of the digital signal by the input processing circuit 116. in some embodiments, the input processing circuit 116 includes a digital down filter.
The first input reference value may be stored in a memory inside the input processing circuit 116, may be stored in a firmware of the input processing circuit 116, or may be stored in a memory outside the input processing circuit 116.
The first input reference value has a similar concept to the first output reference value, and is the corresponding volume of the digital signal obtained according to the design specification after the audio signal passes through the preamplifier circuit 112 and the adc circuit 114 when the audio codec circuit 100 is supplied with power having a standard voltage, so that the input circuit parameter Ci is related to the design specification of the preamplifier circuit 112 and the adc circuit 114. In some embodiments, the relationship among the input circuit parameter Ci, the standard voltage Vs, and the voltage Vmi of the radio signal is Vi Ci Vmi Vs, where Vi is the digital signal output from the adc circuit 114 to the input processing circuit 116, and Vmi is the voltage of the radio signal from the microphone 160 passing through the preamplifier circuit 112. For example, if the standard voltage is 1.8V and the input circuit parameter is Ci, the voltage value Vi of the digital signal is 1.8Ci Vmi, and this 1.8Ci Vmi is the first input reference.
Similar to the first output reference concept, the relationship among the input circuit parameter Ci, the input voltage Vdd, the voltage Vmi of the radio signal, and the digital signal Vi is Vi Ci Vdd Vmi, so that when the voltage of the power supplied to the audio codec circuit 100 by the power supply circuit 140 varies, the amplification result of the preamplifier circuit 112 and the conversion result of the adc circuit 114 also vary. For example, the standard voltage is 1.8V, the first input reference is 1.8Ci, when the input voltage variation is 1.65V, Vi varies by 1.65Ci Vmi, and the difference between Vi and the first input reference is 0.15Ci Vmi, where 0.15 is a remainder between 1.8 and 1.65, and the input processing circuit 116 obtains the first input reference corresponding to the difference of 0.15Ci Vmi.
Similarly to the first output reference, in some embodiments, the first input reference may also be the "standard voltage of the audio codec circuit 100", or the volume of the analog-to-digital output obtained by the audio codec circuit 100 when the audio codec circuit is supplied with power having the standard voltage according to the input circuit parameter and the standard voltage.
Therefore, the input processing circuit 116 obtains the first input compensation value according to the input voltage, the input circuit parameter, and the first input reference value, and the input processing circuit 116 processes the digital signal and compensates the processed digital signal with the first input compensation value and outputs the processed digital signal. The compensated digital signal outputted from the input processing circuit 116 is outputted to the wireless circuit 150 via the digital interface 110, and the wireless circuit 150 transmits the compensated digital signal to the host device 90 via wireless communication.
It should be noted that the level voltage generated by the level generating circuit 118 is also provided to the analog-to-digital circuit 114 and the preamplifier circuit 112.
In some embodiments, the audio codec circuit 100 has a second input offset value, the second input offset value is an input comparison value of the digital signal and the audio signal when the input voltage is the standard voltage, and the input processing circuit 116 compensates the digital signal with the first input offset value and the second input offset value.
Similar to the aforementioned second output compensation value, the second input compensation value can be obtained by calibrating the audio codec circuit 100 by a calibration machine (or a calibration fixture, not shown) before the audio codec circuit leaves the factory. The calibration stage provides a power source with a standard voltage to the audio codec circuit 100, the calibration stage provides a predetermined radio signal to the preamplifier circuit 112, the preamplifier circuit 112 amplifies the radio signal, the analog-to-digital circuit 114 converts the amplified radio signal into a digital signal, the input processing circuit 116 processes the digital signal and compensates the processed digital signal with the first input compensation value for output, the calibration platform receives the compensated digital signal from the digital interface 110, and compares the compensated digital signal with the reception signal to obtain the input comparison value, the calibration equipment obtains the second input compensation value according to the input comparison value, and transmits the second input compensation value to the audio codec circuit 100 through the digital interface 110, the audio codec circuit 100 stores the second input offset value, which can be stored in the input processing circuit 116. For example, according to the design specification of the audio codec circuit 100, after the audio codec circuit 100 receives and processes the predetermined received signal, the volume of the digital signal output to the wireless circuit 150 is 9dB, however, when the calibration is performed by the calibration machine, the volume of the digital signal output by the audio codec circuit 100 is 8.88dB, which means that the audio codec circuit 100 has a difference of 0.12dB from the design specification, so that the calibration circuit transmits the second input compensation value corresponding to 0.12dB to the audio codec circuit 100, so as to facilitate the input processing circuit 116 to compensate.
Therefore, the audio codec circuit 100 performs the compensation processing on the processed digital signal by using the first input compensation value and the second input compensation value, which can eliminate the difference caused by the process drift of different audio codec circuits 100 and the difference caused by the different voltages of the power supplies supplied to the audio codec circuit 100, thereby improving the consistency of sound reception of the left and right ear units 10, 50.
In some embodiments, the calibration stage for obtaining the second output compensation value can also be performed by a control circuit (as shown in fig. 3) inside the audio codec circuit 100.
Referring to fig. 3, fig. 3 is a block diagram of an audio codec circuit according to some embodiments. The audio codec circuit 100a includes an output processing circuit 102, a digital-to-analog circuit 104, an audio amplifier circuit 106, a feedback gain circuit 120, a feedback analog-to-digital conversion circuit 122, and a calibration circuit 124. The output processing circuit 102 is used for processing and outputting a digital audio. The digital-to-analog circuit 104 is used for performing digital-to-analog conversion on the output of the output processing circuit 102 to output an analog audio. The audio amplifying circuit 106 is configured to amplify the analog audio to output an amplified audio (the amplified analog audio). The loopback gain circuit 120 is used for gain the amplified audio to output a gain audio. The loopback ADC circuit 122 is used for analog-to-digital converting the audio frequency which is gained into a digital loopback audio frequency. The calibration circuit 124 is used for controlling the output processing circuit 102 to use a test tone as the output of the output processing circuit 102 and comparing the digital loopback tone with the test tone to obtain a calibration compensation value, and the calibration circuit 124 controls the output processing circuit 102 to compensate the processed digital tone with the calibration compensation value and to use the compensated digital tone as the output of the output processing circuit 102.
The digital-to-analog conversion of the digital-to-analog circuit 104 is to convert a digital signal into an analog signal. The analog-to-digital conversion of the loopback ADC circuit converts an analog signal into a digital signal.
After the test audio passes through the digital-to-analog converter 104, the audio amplifier 106, the loopback gain circuit 120, and the loopback adc circuit 122, theoretically, when the audio codec circuit 100a conforming to the design specification is operated under the power supply with the standard voltage, the digital loopback audio output by the loopback adc circuit 122 should be consistent with the test audio. Since the difference between the voltage of the power source provided by the power source circuit 140 and the standard voltage or other environmental factors (such as temperature) cause the difference between the left and right ear cells 10,50, the digital loopback audio output by the loopback adc circuit 122 is different from the test audio, the calibration circuit 124 obtains a corresponding calibration compensation value according to the difference between the digital loopback audio and the test audio, so that the output processing circuit 102 processes the digital audio and compensates the processed digital audio by the calibration compensation value, and the output processing circuit 102 uses the compensated digital audio as the output of the output processing circuit 102. Then, the audio amplifying circuit 106 amplifies the output of the output processing circuit 102 (i.e., the compensated digital audio) to output the amplified audio. Thus, the audio codec circuit 100a can compensate for the difference between the power voltages supplied by the power circuit 140 and the difference between the audio codec circuits 100a of the left and right ear cells 10,50 caused by other environmental variations.
In some embodiments, the calibration circuit 124 performs the aforementioned operation of testing the audio when the audio codec circuit 100a is initialized (i.e., when power is initially supplied), obtains the calibration offset value, and thereafter, the output processing circuit 102 processes the digital audio and compensates the processed digital audio with the calibration offset value.
In some embodiments, the audio codec circuit 100a further includes a control interface 126 and a control circuit 128. When activated, the control circuit 128 controls the output processing circuit 102 to use the test tone as the output of the output processing circuit 102, causes the calibration circuit 124 to compare the digital loopback tone and the test tone to obtain the calibration compensation value, and controls the output processing circuit 102 to compensate the processed digital tone with the calibration compensation value and use the compensated digital tone as the output of the output processing circuit 102. The control circuit 128 is activated when receiving a command from the control interface 126, and the wireless circuit 150 or calibration tool retrieves the command through the control interface 126 to activate the control circuit 128.
In some embodiments, the control circuit 128 controls the calibration circuit 124 to perform the aforementioned operation of testing audio and obtain the calibration offset value when the audio codec circuit 100a is initialized. In some embodiments, the control circuit 128 periodically controls the calibration circuit 124 to perform the aforementioned test audio operation and obtain the calibration offset value. The duration of the periodicity is design dependent and is not limited to every hour, every two hours, every three hours, etc. In some embodiments, the control circuit 128 controls the calibration circuit 124 to perform the test audio operation non-periodically and obtain the calibration offset value. For example, when the audio codec circuit 100a does not receive any digital audio from the digital interface 110, the control circuit 128 controls the calibration circuit 124 to perform the operation of the test audio and obtain the calibration offset value. The aforementioned digital interface 110 is adapted to receive the digital audio from outside the audio codec circuit 100a, such as but not limited to the digital audio from the wireless circuit 150.
There are several embodiments of the calibration circuit 124 controlling the output processing circuit 102 to use a test tone as the output of the output processing circuit 102, such as but not limited to the following examples. Firstly, the method comprises the following steps: the calibration circuit 124 controls the output processing circuit 102 to generate the test audio from the output processing circuit 102. II, secondly: the calibration circuit 124 generates and transmits the test audio to the output processing circuit 102, and the output processing circuit 102 outputs the test audio. Thirdly, the method comprises the following steps: a calibration tool (not shown) commands the control circuit 128 via the control interface 126 to control the calibration circuit 124 and the output processing circuit 102 correspondingly. The calibration apparatus inputs the test audio through the digital interface 110, and controls the output processing circuit 102 through the control circuit 128 to directly use the test audio as the output of the output processing circuit 102, and then controls the calibration circuit 124 to compare the digital loopback audio and the test audio to obtain the calibration compensation value. Fourthly, the method comprises the following steps: the calibration apparatus transmits a predetermined audio to the output processing circuit 102 through the digital interface 110, wherein the predetermined audio is processed by the output processing circuit 102 to form the test audio, so that the output processing circuit 102 outputs the test audio, and then the calibration apparatus controls the calibration circuit 124 to compare the digital loopback audio and the test audio to obtain the calibration compensation value.
Referring to fig. 3, in some embodiments, the audio codec circuit 100a further includes a switch 130, when the calibration circuit 124 controls the output processing circuit 102 to use a test audio as the output of the output processing circuit 102, the calibration circuit 124 controls the switch 130 to electrically connect the output of the audio amplifier circuit 106 to the loopback gain circuit 120, and when the calibration circuit 124 controls the output processing circuit 102 to compensate the processed digital audio by the calibration compensation value and uses the compensated digital audio as the output of the output processing circuit 102, the calibration circuit 124 controls the switch 130 to electrically connect the output of the audio amplifier circuit 106 to the speaker 170.
In some embodiments, the audio codec circuit 100a further includes a pre-amplifier circuit 112, an analog-to-digital circuit 114, and an input processing circuit 116. The pre-amplifier circuit 112 is used to amplify a radio signal. The analog-to-digital converter 114 is used to convert the amplified signal into a digital signal. The input processing circuit 116 is used for processing and outputting the digital signal after compensating the digital signal by a second input compensation value, wherein the second input compensation value is an input comparison value of the digital signal and the received signal when the input voltage is the standard voltage. The input processing circuit 116 can exchange the processing and the compensation of the digital signal by the second input compensation value, that is, the input processing circuit 116 processes the digital signal first and then compensates the processed digital signal by the second input compensation value, or the input processing circuit 116 compensates the digital signal by the second input compensation value first and then processes the compensated digital signal.
In some embodiments, the audio codec circuit 100 includes a plurality of level generating circuits 118a,118b, and the level generating circuits 118a,118b are configured to generate a level voltage according to the input voltage and provide the level voltage to the dac circuit 104, the audio amplifier circuit 106, the loopback gain circuit 120, the loopback adc circuit 122, the pre-amplifier circuit 112, and the adc circuit 114. The DAC circuit 104 performs DAC on the compensated audio according to the level voltage to obtain the analog audio. The audio amplifier circuit 106 amplifies the analog audio according to the level voltage and outputs the amplified audio. The loopback gain circuit 120 gains the amplified audio according to the level voltage to output the audio with the gain. The loopback ADC circuit 122 converts the amplified audio into the digital loopback audio according to the level voltage. The pre-amplifier circuit 112 amplifies the received signal according to the level voltage. The analog-to-digital conversion circuit 114 converts the amplified signal number into the digital signal according to the level voltage.
Referring to fig. 4, fig. 4 is a block diagram of an audio codec circuit according to some embodiments. The audio codec circuit 100b includes an output processing circuit 102, a digital-to-analog circuit 104, an audio amplifying circuit 106, a pre-amplifying circuit 112, an analog-to-digital circuit 114, an input processing circuit 116, and a correction circuit 124. The output processing circuit 102 is used for processing and outputting a digital audio. The digital-to-analog circuit 104 is used for performing digital-to-analog conversion on the output of the output processing circuit 102 to output an analog audio. The audio amplifier circuit 106 is used for amplifying the analog audio to output an amplified analog audio. The pre-amplifier circuit 112 is used to amplify a radio signal. The analog-to-digital converter 114 is used to convert the amplified radio signal into a digital signal. The input processing circuit 116 is used for processing and outputting the digital signal. The calibration circuit 124 is used to control the output processing circuit 102 to use a test audio as the output of the output processing circuit 102, to use the amplified analog audio as the received audio signal, and to compare the digital signal with the test audio to obtain a calibration compensation value, and the calibration circuit 124 controls the output processing circuit 102 to compensate the processed digital audio by the calibration compensation value and to use the compensated digital audio as the output of the output processing circuit.
The output processing circuit 102 compensates the difference between the standard voltage and the voltage of the power source provided by the power source circuit 140 or the difference between the left and right ear cells 10 and 50 caused by other environmental factors (such as temperature, etc.) by compensating the calibration compensation value.
The embodiment of fig. 4 is similar to the embodiment of fig. 3, in the calibration stage of the embodiment of fig. 4, the calibration circuit 124 controls the output processing circuit 102 to use the test audio as the output of the output processing circuit 102, and makes the amplified analog audio output by the audio amplifying circuit 106 as the radio signal, which is provided to the pre-amplifying circuit 112, the pre-amplifying circuit 112 amplifies the radio signal, and the analog-to-digital circuit 114 converts the amplified analog signal into the digital signal, and then the calibration circuit 124 compares the digital signal and the test audio to obtain the calibration compensation value. As such, compared to the embodiment of fig. 3, the audio codec circuit 100b of fig. 4 does not need to provide the loopback gain circuit 120 and the loopback adc circuit 122 of the audio codec circuit 110a of fig. 3, and the audio codec circuit 100b of fig. 4 is more compact and less costly.
In some embodiments, the audio codec circuit 100b further includes two switches 132,134, when the calibration circuit 124 controls the output processing circuit 102 to use the test audio as the output of the output processing circuit 102, the calibration circuit 124 controls the switches 132,134 to electrically connect the output of the audio amplifier circuit 106 to the pre-amplifier circuit 112, and when the calibration circuit 124 controls the output processing circuit 102 to compensate the processed digital audio by the calibration compensation value and uses the compensated digital audio as the output of the output processing circuit 102, the calibration circuit 124 controls the switches 132,134 to electrically connect the output of the audio amplifier circuit 106 to the speaker 170.
In some embodiments, the audio codec circuit 100b has a second output compensation value, the second output compensation value is an output comparison value of the analog audio and the digital audio that are amplified when the input voltage is a standard voltage, the output processing circuit 102 compensates the processed digital audio by the correction compensation value and the second output compensation value, and the compensated digital audio is the output of the output processing circuit 102.
In some embodiments, the audio codec circuit 100b has a second input offset value, the second input offset value is an input comparison value of the digital signal and the audio signal when the input voltage is the standard voltage, the input processing circuit 116 compensates the processed digital audio by the second input offset value and uses the compensated digital audio as the output of the input processing circuit 116.
In some embodiments, the audio codec circuit 100b further includes a digital interface 110 and a plurality of level generating circuits 118a,118 b. In some embodiments, the audio codec circuit 100b further includes a control circuit 128 and a control interface 126. The digital interface 110, the level generating circuits 118a,118b, the control circuit 128, and the control interface 126 are similar to the corresponding circuits in fig. 3, and are not described again.
Referring to fig. 1 again, in some embodiments, the wireless and audio codec circuit (also referred to as a wireless and audio codec chip or a wireless and audio codec integrated chip) includes a wireless circuit 150 and an audio codec circuit 100. The audio codec circuit 100 of the wireless and audio codec circuit may be any one of the audio codec circuit 100 of fig. 2, the audio codec circuit 100a of fig. 3, or the audio codec circuit 100b of fig. 4.
In summary, according to some embodiments, when the audio codec circuit is configured in the left ear unit and the right ear unit, the consistency of the left ear unit and the right ear unit in audio processing can be improved.
[ notation ] to show
10 left ear monomer
50, right ear monomer
90 main device
100,500 audio encoding and decoding circuit
100a,100b audio codec circuit
101 voltage detection circuit
102 output processing circuit
104 digital-to-analog circuit
106 audio amplifying circuit
108 power supply input terminal
110 digital interface
112 pre-amplifier circuit
114 analog to digital conversion circuit
116 input processing circuit
118,118a,118b level generation circuit
120 loop back gain circuit
122 loopback analog-to-digital conversion circuit
124 correction circuit
126 control interface
128 control circuit
130,132,134 change-over switch
140,540 power supply circuit
150,550 radio circuit
160,560 microphone
170,570 speaker

Claims (10)

1. An audio codec circuit comprising:
a voltage detection circuit for detecting an input voltage;
an output processing circuit, the output processing circuit obtains a first output compensation value according to the input voltage, an output circuit parameter and a first output reference, the output processing circuit processes a digital audio and compensates the processed digital audio by the first output compensation value;
a digital-to-analog circuit for performing digital-to-analog conversion on the compensated digital audio to obtain an analog audio; and
an audio amplifier circuit for amplifying the analog audio and outputting the amplified audio.
2. The audio codec circuit of claim 1, wherein the first output reference is a specification voltage obtained by the output processing circuit according to the input voltage and the output circuit parameter when the input voltage is a standard voltage.
3. The audio codec circuit of claim 2, wherein the audio codec circuit comprises a level generating circuit for generating a level voltage according to the input voltage, the audio codec circuit has a second output compensation value, the second output compensation value is an output comparison value of the analog audio and the digital audio that are amplified when the input voltage is the standard voltage, the output processing circuit compensates the processed digital audio by the first output compensation value and the second output compensation value, the audio amplifying circuit amplifies the analog audio and outputs the amplified digital audio according to the level voltage, and the digital-to-analog circuit performs digital-to-analog conversion on the compensated digital audio according to the level voltage to obtain the analog audio.
4. The audio codec circuit of any of claims 1 to 3, further comprising:
a pre-amplifier circuit for amplifying a radio signal;
an analog-to-digital conversion circuit for converting the amplified signal number into a digital signal; and
an input processing circuit, obtaining a first input compensation value according to the input voltage, an input circuit parameter and a first input reference value, wherein the input processing circuit processes and compensates the digital signal by the first input compensation value and outputs the digital signal;
the audio codec circuit has a second input offset value, the second input offset value is an input comparison value of the digital signal and the radio signal when the input voltage is the standard voltage, and the input processing circuit compensates the digital signal with the first input offset value and the second input offset value.
5. An audio codec circuit comprising:
an output processing circuit for processing and outputting a digital audio;
a digital-to-analog circuit for performing digital-to-analog conversion on the output of the output processing circuit to output an analog audio;
an audio amplifying circuit for amplifying the analog audio to output an amplified analog audio;
a feedback gain circuit for gaining the amplified analog audio to output a gained analog audio;
a feedback A/D converter for performing A/D conversion on the gained analog audio to a digital feedback audio; and
a correction circuit for controlling the output processing circuit to use a test audio as the output of the output processing circuit and for comparing the digital loopback audio with the test audio to obtain a correction compensation value, wherein the correction circuit controls the output processing circuit to compensate the processed digital audio with the correction compensation value and uses the compensated digital audio as the output of the output processing circuit.
6. The audio codec circuit of claim 5, wherein the audio codec circuit includes a level generation circuit, the level generating circuit is used to generate a level voltage according to the input voltage, the audio codec circuit has a second output compensation value, the second output compensation value is an output comparison value of the analog audio and the digital audio amplified when the input voltage is a standard voltage, the output processing circuit compensates the processed digital audio by the correction compensation value and the second output compensation value, and takes the compensated digital audio as the output of the output processing circuit, the audio amplifier circuit is used for amplifying the analog audio according to the level voltage and outputting the amplified analog audio, and the digital-to-analog circuit is used for performing digital-to-analog conversion on the compensated digital audio according to the level voltage to obtain the analog audio.
7. The audio codec circuit of any of claims 5 to 6, further comprising:
a pre-amplifier circuit for amplifying a radio signal;
an analog-to-digital conversion circuit for converting the amplified signal into a digital signal; and
an input processing circuit for processing and outputting the digital signal after compensating the digital signal by a second input compensation value, wherein the second input compensation value is an input comparison value of the digital signal and the received signal when the input voltage is the standard voltage.
8. An audio codec circuit comprising:
an output processing circuit for processing and outputting a digital audio;
a digital-to-analog circuit for performing digital-to-analog conversion on the output of the output processing circuit to output an analog audio;
an audio amplifying circuit for amplifying the analog audio to output an amplified analog audio;
a pre-amplifier circuit for amplifying a radio signal;
an analog-to-digital conversion circuit for converting the amplified radio signal into a digital signal;
an input processing circuit for processing the digital signal and outputting; and
a correction circuit for controlling the output processing circuit to use a test audio as the output of the output processing circuit, for using the amplified analog audio as the reception signal, and for comparing the digital signal with the test audio to obtain a correction compensation value, wherein the correction circuit controls the output processing circuit to compensate the processed digital audio with the correction compensation value and uses the compensated digital audio as the output of the output processing circuit.
9. The audio codec circuit of claim 8, wherein the audio codec circuit includes a level generation circuit, the level generating circuit is used to generate a level voltage according to the input voltage, the audio codec circuit has a second output compensation value, the second output compensation value is an output comparison value of the analog audio and the digital audio amplified when the input voltage is a standard voltage, the output processing circuit compensates the processed digital audio by the correction compensation value and the second output compensation value, and takes the compensated digital audio as the output of the output processing circuit, the audio amplifier circuit is used for amplifying the analog audio according to the level voltage and outputting the amplified analog audio, and the digital-to-analog circuit is used for performing digital-to-analog conversion on the compensated digital audio according to the level voltage to obtain the analog audio.
10. The audio codec circuit of claim 9, wherein the audio codec circuit has a second input offset, the second input offset being an input comparison of the digital signal and the audio signal when the input voltage is the standard voltage, the input processing circuit compensating the processed digital audio with the second input offset and using the compensated digital audio as the output of the input processing circuit.
CN202010092670.6A 2020-02-14 2020-02-14 Audio coding and decoding circuit Pending CN113345445A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010092670.6A CN113345445A (en) 2020-02-14 2020-02-14 Audio coding and decoding circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010092670.6A CN113345445A (en) 2020-02-14 2020-02-14 Audio coding and decoding circuit

Publications (1)

Publication Number Publication Date
CN113345445A true CN113345445A (en) 2021-09-03

Family

ID=77466933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010092670.6A Pending CN113345445A (en) 2020-02-14 2020-02-14 Audio coding and decoding circuit

Country Status (1)

Country Link
CN (1) CN113345445A (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050246180A1 (en) * 2004-04-28 2005-11-03 Funai Electric Co., Ltd. Audio signal process circuit
US20070140513A1 (en) * 2005-12-15 2007-06-21 Harman International Industries, Incorporated Distortion compensation
US20080192959A1 (en) * 2007-02-14 2008-08-14 Samsung Electronics Co., Ltd. Method and apparatus for controlling audio signal output level of portable audio device
CN101719370A (en) * 2009-11-25 2010-06-02 中兴通讯股份有限公司 Device and method for realizing reconfiguration of mobile terminal audio encoding-decoding algorithm
US20110249826A1 (en) * 2008-12-18 2011-10-13 Koninklijke Philips Electronics N.V. Active audio noise cancelling
US20140003616A1 (en) * 2012-07-02 2014-01-02 Timothy M. Johnson Headset Impedance Detection
CN104811154A (en) * 2014-01-28 2015-07-29 宏达国际电子股份有限公司 Sound producing system and audio amplifying method thereof
US9584082B1 (en) * 2013-09-17 2017-02-28 Cirrus Logic, Inc. Systems and methods for supply-based gain control of an audio output signal
WO2017113946A1 (en) * 2015-12-30 2017-07-06 努比亚技术有限公司 Device and method for processing audio
CN107317559A (en) * 2016-04-26 2017-11-03 宏达国际电子股份有限公司 The control method that portable electric device, Sound producing system and its sound are produced
US20180324524A1 (en) * 2017-05-02 2018-11-08 Texas Instruments Incorporated Loudspeaker enhancement
CN110731050A (en) * 2017-04-27 2020-01-24 思睿逻辑国际半导体有限公司 Controlling a noise transfer function of a signal path to reduce charge pump noise
CN110741432A (en) * 2017-06-06 2020-01-31 思睿逻辑国际半导体有限公司 Apparatus and method for dynamic range enhancement of audio signals

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050246180A1 (en) * 2004-04-28 2005-11-03 Funai Electric Co., Ltd. Audio signal process circuit
US20070140513A1 (en) * 2005-12-15 2007-06-21 Harman International Industries, Incorporated Distortion compensation
US20080192959A1 (en) * 2007-02-14 2008-08-14 Samsung Electronics Co., Ltd. Method and apparatus for controlling audio signal output level of portable audio device
US20110249826A1 (en) * 2008-12-18 2011-10-13 Koninklijke Philips Electronics N.V. Active audio noise cancelling
CN101719370A (en) * 2009-11-25 2010-06-02 中兴通讯股份有限公司 Device and method for realizing reconfiguration of mobile terminal audio encoding-decoding algorithm
US20140003616A1 (en) * 2012-07-02 2014-01-02 Timothy M. Johnson Headset Impedance Detection
US9584082B1 (en) * 2013-09-17 2017-02-28 Cirrus Logic, Inc. Systems and methods for supply-based gain control of an audio output signal
CN104811154A (en) * 2014-01-28 2015-07-29 宏达国际电子股份有限公司 Sound producing system and audio amplifying method thereof
WO2017113946A1 (en) * 2015-12-30 2017-07-06 努比亚技术有限公司 Device and method for processing audio
CN107317559A (en) * 2016-04-26 2017-11-03 宏达国际电子股份有限公司 The control method that portable electric device, Sound producing system and its sound are produced
CN110731050A (en) * 2017-04-27 2020-01-24 思睿逻辑国际半导体有限公司 Controlling a noise transfer function of a signal path to reduce charge pump noise
US20180324524A1 (en) * 2017-05-02 2018-11-08 Texas Instruments Incorporated Loudspeaker enhancement
CN110741432A (en) * 2017-06-06 2020-01-31 思睿逻辑国际半导体有限公司 Apparatus and method for dynamic range enhancement of audio signals

Similar Documents

Publication Publication Date Title
US9748913B2 (en) Apparatus and method for transmitting/receiving voice signal through headset
CN1960175B (en) Method and apparatus to control output power of a power amplifier and audio player having the same
JP5931953B2 (en) Method and apparatus for rendering ambient signals
US20130003990A1 (en) Electronic device and audio output control method thereof
CN101945146B (en) Terminal and audio signal output method
US20050207596A1 (en) Packaged digital microphone device with auxiliary line-in function
CN108632697B (en) Acoustic system, headphone device, microphone device, and acoustic output method
US20070078544A1 (en) Sound output system and method
US10992274B2 (en) Audio signal processing
US20180279035A1 (en) Portable device and method for entering power-saving mode
US10734011B2 (en) Method and system for transmission path noise control
KR20070019439A (en) Method and apparatus for extending sound input and output
TWI783210B (en) Audio codec circuit
CN211089941U (en) Gain switching noise reduction circuit and audio device thereof
CN113345445A (en) Audio coding and decoding circuit
KR101648042B1 (en) Earphone system for mobile phone with Active Noise Cancellation function
CN105744424A (en) Earphone mode switching method, terminal and earphone
US20070078545A1 (en) Sound output system and method
CN113993028B (en) Signal processing circuit and method and bone conduction earphone
US20070078547A1 (en) Sound output system and method
CN117061949B (en) Earphone volume adjusting method and electronic equipment
US20240114286A1 (en) Digital lavalier microphone
CN110896341A (en) Signal processing method, integrated talkback chip and interphone
CN114339522A (en) Audio processing device and terminal equipment
CN104661149A (en) Signal processing circuit and related signal processing method applied to earphone and microphone set

Legal Events

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