CN114527952A - Method and device for eliminating POP sound caused by audio switching - Google Patents
Method and device for eliminating POP sound caused by audio switching Download PDFInfo
- Publication number
- CN114527952A CN114527952A CN202111663790.8A CN202111663790A CN114527952A CN 114527952 A CN114527952 A CN 114527952A CN 202111663790 A CN202111663790 A CN 202111663790A CN 114527952 A CN114527952 A CN 114527952A
- Authority
- CN
- China
- Prior art keywords
- audio
- fade
- pop sound
- music
- control program
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/162—Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/16—Sound input; Sound output
- G06F3/165—Management of the audio stream, e.g. setting of volume, audio stream path
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Amplifiers (AREA)
Abstract
The invention discloses a method and a device for eliminating POP sound caused by audio switching, wherein the method comprises the following steps: s1, recording an audio control program, wherein the audio control program is used for controlling the volume fade-in duration of an audio output end; s2, connecting the earphone with the mobile phone through Bluetooth; s3, recording an audio state; and S4, carrying out POP sound elimination according to different audio state conversion, and selecting different fade-in time lengths in the audio control program for fade-in. The invention detects the states of the call, the music playing and the language assistant through the earphone end, realizes the POP sound control process from the call to the audio through the earphone end, and has self-adaptability to the time of the fade-in process; if the music is played all the time, no fade-in process exists; if the call is to the audio playing, increasing the fade-in time; if the voice assistant plays the audio, fade-in time is reduced, and POP sound generated when the audio state of the mobile phone is converted is effectively solved.
Description
Technical Field
The invention belongs to the field of audio POP sound processing, and particularly relates to a method for eliminating POP sound caused by audio switching. Meanwhile, the invention also relates to a design device for solving POP sound caused by audio switching.
Background
The POP sound is also called crackle, and may also be called POPs and clinks. The sound is obvious when the sound is played at the beginning and the end, namely the sound of current impact is sensed
With the improvement of living standard, smart phones have become quite popular. However, because of the complicated brand and the control related to communication and audio playing, each business has different design modes. At present, a common phenomenon exists, namely that after a call is finished, when a mobile phone is switched to music, a POP sound, namely hopping noise interference is easily generated, when a user uses an earphone and Bluetooth to connect the mobile phone to listen, because the ear is very close to the direct sense organ of the audio, the use experience of the user is very influenced
Disclosure of Invention
The invention aims to solve the defects in the prior art, and provides a method and a device for eliminating POP sound caused by audio switching.
In order to achieve the purpose, the invention provides the following technical scheme:
a method for eliminating POP sound caused by audio switching comprises the following steps:
s1, recording an audio control program, wherein the audio control program is used for controlling the volume fade-in duration of an audio output end;
s2, connecting the earphone with the mobile phone through Bluetooth;
s3, recording the audio state, and recording the states of the audio twice before and after through the earphone;
the audio state is specifically: converting the call into music, converting the music into music and converting the voice assistant into audio playing, wherein the audio playing is one of music or call;
and S4, carrying out POP sound elimination according to different audio state conversion, and selecting different fade-in time lengths in the audio control program for fade-in.
Preferably, in step S1, the audio control program is recorded by connecting a codec to a baseband chip of the mobile phone through an I2S bus, so as to transmit sound; the codec is connected with a baseband chip of the mobile phone through an I2C bus, and is used for transmitting a control instruction, and the audio control program specifically includes: the earphone comprises a T1 fade-in time length, a T2 fade-in time length and a no fade-in time length, and control keys of the T1 fade-in time length and the T2 fade-in time length are arranged on the earphone.
Preferably, the fade-in duration of T1 corresponds to an audio state of a call to music, the fade-in duration of T2 corresponds to a voice assistant to convert to audio playing, the duration of T2 is shorter than T1, and the specific recording method of the audio control program is as follows:
1) t1 fade-in duration, reset the codec, and write in the corresponding control parameter through I2C, used to open the up-link of the codec, set a conversation state bit at the same time, record that the conversation state is already in at this moment, then start the conversation;
2) t2 fade-in duration, reset codec, write in corresponding control parameter via I2C to start the down-link of codec, set a play status bit, record the play status, and start music or call
3) By judging the playing state bit, the player can know that the player is in the playing state at present, does not need to reset a codec, does not need to write in control parameters again, accelerates the speed of switching music, and avoids the generation of POP sound.
Preferably, the audio control program gradually increases the current volume value in an equally spaced manner.
Preferably, the codec is configured to compress and decompress a video signal, and includes a linear prediction unit configured to filter an input signal based on an adaptive filter; a transform unit for converting a frame of the filtered input signal into a transform domain; a quantization unit for quantizing the transform domain signal.
A device for eliminating POP sound caused by audio switching comprises an output power amplifier, a common mode level buffer and a reference level generating circuit, wherein the common mode level buffer and the reference level generating circuit are arranged in the output power amplifier, and the output end of the reference level generating circuit is coupled with the input end of the common mode level buffer.
Preferably, the common mode level buffer comprises a buffer feedback operational amplifier and a common mode feedback circuit, the buffer feedback operational amplifier has a P/N complementary input structure, and the buffer feedback operational amplifier and the common mode feedback circuit are combined to form a fully differential operational amplifier.
Preferably, the reference level generating circuit comprises a comparator IC1, an input coupling capacitor C1 for coupling the audio signal into the inverting terminal a of the comparator IC1, a dc resistance voltage dividing circuit and an RC integrating circuit, wherein the output terminals of the RC integrating circuit and the dc resistance voltage dividing circuit are directly connected to the point b of the inverting input terminal of the comparator IC1, and form the follow-up reference level by means of superposition; and the superposition of the reference level constantly equal to the divided voltage of the direct-current power supply and the integrated voltage of the real-time input signal on the capacitor C at any time point b is realized.
The invention has the technical effects and advantages that: the method for eliminating the POP sound caused by audio switching detects the states of communication, music playing and language assistant through the earphone end, realizes the POP sound control process from communication to audio through the earphone end, and has self-adaptability to the time of fade-in process; if the music is played all the time, no fade-in process exists; if the call is to the audio playing, increasing the fade-in time; if the voice assistant plays the audio, fade-in time is reduced, and POP sound generated when the audio state of the mobile phone is converted is effectively solved.
Drawings
Fig. 1 is a flowchart of a method for eliminating POP sound caused by audio switching according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is further described in detail with reference to the following embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a method for eliminating POP sound caused by audio switching as shown in figure 1, which comprises the following steps:
s1, recording an audio control program, wherein the audio control program is used for controlling the volume fade-in duration of an audio output end;
s2, connecting the earphone with the mobile phone through Bluetooth;
s3, recording the audio state, and recording the states of the audio twice before and after through the earphone;
the audio state is specifically: converting the call into music, converting the music into music and converting the voice assistant into audio playing, wherein the audio playing is one of music or call;
and S4, carrying out POP sound elimination according to different audio state conversion, and selecting different fade-in time lengths in the audio control program for fade-in.
In the step S1, the audio control program is recorded and connected with the baseband chip of the mobile phone through an I2S bus by a codec, so as to transmit sound; the codec is connected with a baseband chip of the mobile phone through an I2C bus and is used for transmitting a control instruction, and the audio control program specifically comprises: the T1 fade-in period, the T2 fade-in period, and the no fade-in period, and the control keys for the T1 fade-in period and the T2 fade-in period are provided on the headphones.
The fade-in duration of T1 corresponds to the audio state of the conversation to music, the fade-in duration of T2 corresponds to the audio playing converted by the voice assistant, the duration of T2 is shorter than T1, and the specific recording method of the audio control program is as follows:
1) t1 fade-in duration, reset the codec, and write in the corresponding control parameter through I2C, used to open the up-link of the codec, set a conversation state bit at the same time, record that the conversation state is already in at this moment, then start the conversation;
2) t2 fade-in duration, reset codec, write in corresponding control parameter via I2C to start the down-link of codec, set a play status bit, record the play status, and start music or call
3) By judging the playing state bit, the player can know that the player is in the playing state at present, does not need to reset a codec, does not need to write in control parameters again, accelerates the speed of switching music, and avoids the generation of POP sound.
The audio control program gradually increases the current volume value in an equally spaced manner.
The codec is used for compressing and decompressing a video signal and comprises a linear prediction unit used for filtering an input signal based on an adaptive filter; a transform unit for converting a frame of the filtered input signal into a transform domain; a quantization unit for quantizing the transform domain signal.
A device for eliminating POP sound caused by audio switching comprises an output power amplifier, a common mode level buffer and a reference level generating circuit, wherein the common mode level buffer and the reference level generating circuit are arranged in the output power amplifier, and the output end of the reference level generating circuit is coupled with the input end of the common mode level buffer.
The common-mode level buffer comprises a buffer feedback operational amplifier and a common-mode feedback circuit, wherein the buffer feedback operational amplifier has a P/N complementary input structure, and the buffer feedback operational amplifier and the common-mode feedback circuit are combined to form a fully differential operational amplifier;
the common mode feedback circuit comprises an amplifying circuit, a biasing circuit connected with the amplifying circuit and a feedback loop connected with the amplifying circuit and the biasing circuit, wherein the feedback loop comprises a first field effect tube M1, an eighth field effect tube M1B connected with the first field effect tube M1, a tenth field effect tube M2B and an eleventh field effect tube MFB connected with the eighth field effect tube M1B and the tenth field effect tube M2B, a common mode voltage value of the common mode feedback circuit is adjusted through the eleventh field effect tube MFB, a grid electrode of the first field effect tube M1 is connected with a source electrode of the eleventh field effect tube MFB, a drain electrode of the first field effect tube M1B is connected with a source electrode of the tenth field effect tube M2B, the source electrode of the first field effect tube M1 1 is grounded, grid electrodes of the eighth field effect tube M1B and the tenth field effect tube M2B are respectively connected with two input ends, and drain electrodes of the eighth field effect tube M1B and the tenth field effect tube M2B are connected with a grid electrode of the eleventh field effect tube MFB.
The reference level generating circuit comprises a comparator IC1, an input coupling capacitor C1 for coupling an audio signal into an inverting terminal a of the comparator IC1, a direct-current resistance voltage division circuit and an RC integrating circuit, wherein output ends of the RC integrating circuit and the direct-current resistance voltage division circuit are directly connected to a point b of the non-inverting input terminal of the comparator IC1, and a follow-up reference level is formed in a superposition mode; the reference level at any time point b is constantly equal to the superposition of the direct-current power supply divided voltage and the integrated voltage of a real-time input signal on a capacitor C, the RC integrated circuit is formed by connecting R3 and C2 in series, wherein one end of R3 is connected with the inverting input end a of a comparator IC1 through a coupling capacitor C3 to obtain an input video signal, one end of C2 is grounded, a connecting line between the R3 and the C2 is directly connected to a point b of the non-inverting input end of the comparator IC1, and the integrated voltage formed by the input video signal on the capacitor C2 is used as a follow-up part in the reference level at the point b;
in order to accurately obtain the rising edge time of the test signal, the comparator sets a proper reference level to obtain the first rising edge of the output signal; when the rising edge of the test signal cannot be obtained, but the dynamic reference level with the outline similar to the shape of the test signal is formed by adding the RC integrating circuit to a set direct current level, the rising edge of the main test signal A can be reliably and directly obtained after the comparator outputs; the time constant τ is R3C2 and C3 is the coupling capacitance.
In summary, the following steps: the method for eliminating the POP sound caused by audio switching detects the states of communication, music playing and language assistant through the earphone end, realizes the POP sound control process from communication to audio through the earphone end, and has self-adaptability to the time of fade-in process; if the music is played all the time, no fade-in process exists; if the call is to the audio playing, increasing the fade-in time; if the voice assistant plays the audio, fade-in time is reduced, and POP sound generated when the audio state of the mobile phone is converted is effectively solved.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments or portions thereof without departing from the spirit and scope of the invention.
Claims (8)
1. A method for eliminating POP sound caused by audio switching is characterized by comprising the following steps:
s1, recording an audio control program, wherein the audio control program is used for controlling the volume fade-in duration of an audio output end;
s2, connecting the earphone with the mobile phone through Bluetooth;
s3, recording the audio state, and recording the states of the audio twice before and after through the earphone;
the audio state is specifically: converting the call into music, converting the music into music and converting the voice assistant into audio playing, wherein the audio playing is one of music or call;
and S4, carrying out POP sound elimination according to different audio state conversion, and selecting different fade-in time lengths in the audio control program for fade-in.
2. The method of claim 1, wherein the POP sound caused by audio switching is eliminated: in the step S1, the audio control program is recorded and connected with the baseband chip of the mobile phone through an I2S bus by a codec, so as to transmit sound; the codec is connected with a baseband chip of the mobile phone through an I2C bus, and is used for transmitting a control instruction, and the audio control program specifically includes: the earphone comprises a T1 fade-in time length, a T2 fade-in time length and a no fade-in time length, and control keys of the T1 fade-in time length and the T2 fade-in time length are arranged on the earphone.
3. The method of claim 2, wherein the POP sound caused by audio switching is eliminated: the fade-in duration of the T1 corresponds to the audio state of a conversation to music, the fade-in duration of the T2 corresponds to the audio playing of a voice assistant to music, the duration of the T2 is shorter than that of the T1, and the specific recording method of the audio control program comprises the following steps:
1) t1 fade-in duration, reset the codec, and write in the corresponding control parameter through I2C, used to open the up-link of the codec, set a conversation state bit at the same time, record that the conversation state is already in at this moment, then start the conversation;
2) t2 fade-in duration, reset codec, write in corresponding control parameter via I2C to start the down-link of codec, set a play status bit, record the play status, and start music or call
3) By judging the playing state bit, the player can know that the player is in the playing state at present, does not need to reset a codec, does not need to write in control parameters again, accelerates the speed of switching music, and avoids the generation of POP sound.
4. The method of claim 1, wherein the POP sound caused by audio switching is eliminated: the audio control program gradually increases the current volume value at equal intervals.
5. The method of claim 2, wherein the POP sound caused by audio switching is eliminated: the codec is used for compressing and decompressing a video signal and comprises a linear prediction unit used for filtering an input signal based on an adaptive filter; a transform unit for converting a frame of the filtered input signal into a transform domain; a quantization unit for quantizing the transform domain signal.
6. An apparatus for eliminating POP sound caused by audio switching, comprising an output power amplifier, a common mode level buffer, and a reference level generating circuit, wherein: the common mode level buffer and the reference level generating circuit are both arranged in the output power amplifier, and the output end of the reference level generating circuit is coupled with the input end of the common mode level buffer.
7. The apparatus of claim 6, wherein the apparatus for eliminating POP sound caused by audio switching comprises: the common mode level buffer comprises a buffer feedback operational amplifier and a common mode feedback circuit, wherein the buffer feedback operational amplifier has a P/N complementary input structure, and the buffer feedback operational amplifier and the common mode feedback circuit are combined to form a fully differential operational amplifier.
8. The apparatus of claim 6, wherein the apparatus for eliminating POP sound caused by audio switching comprises: the reference level generating circuit comprises a comparator IC1, an input coupling capacitor C1 for coupling an audio signal into an inverting terminal a of the comparator IC1, a direct current resistance voltage division circuit and an RC integrating circuit, wherein the output ends of the RC integrating circuit and the direct current resistance voltage division circuit are directly connected to a point b of the non-inverting terminal of the comparator IC1, and a follow-up reference level is formed in a superposition mode; and the superposition of the reference level constantly equal to the divided voltage of the direct-current power supply and the integrated voltage of the real-time input signal on the capacitor C at any time point b is realized.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111663790.8A CN114527952A (en) | 2021-12-30 | 2021-12-30 | Method and device for eliminating POP sound caused by audio switching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111663790.8A CN114527952A (en) | 2021-12-30 | 2021-12-30 | Method and device for eliminating POP sound caused by audio switching |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114527952A true CN114527952A (en) | 2022-05-24 |
Family
ID=81620859
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111663790.8A Pending CN114527952A (en) | 2021-12-30 | 2021-12-30 | Method and device for eliminating POP sound caused by audio switching |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114527952A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116471355A (en) * | 2023-06-20 | 2023-07-21 | 荣耀终端有限公司 | Audio playing method and electronic equipment |
-
2021
- 2021-12-30 CN CN202111663790.8A patent/CN114527952A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116471355A (en) * | 2023-06-20 | 2023-07-21 | 荣耀终端有限公司 | Audio playing method and electronic equipment |
CN116471355B (en) * | 2023-06-20 | 2023-11-10 | 荣耀终端有限公司 | Audio playing method and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103460716B (en) | For the method and apparatus of Audio Signal Processing | |
CN104685563B (en) | The audio signal shaping of playback in making an uproar for noisy environment | |
CN105120389B (en) | A kind of method and earphone carrying out noise reduction process according to scene | |
CN102724360B (en) | Method and device for implementation of hearing-aid function of mobile phone and hearing-aid mobile phone | |
CN103237281B (en) | The earphone line control circuit of a kind of mobile terminal and line control method | |
CN201054780Y (en) | Automatic noise reduction earphone | |
CN107071654A (en) | A kind of digital noise reduction method, device and a kind of audio-frequence player device | |
US20230171539A1 (en) | Audio output device, method for eliminating sound leakage, and storage medium (as amended) | |
CN107645689B (en) | Method and device for eliminating sound crosstalk and voice coding and decoding chip | |
CN102065352B (en) | Device and method for eliminating POP noise of CAPLESS audio power amplifier | |
CN105118514A (en) | A method and earphone for playing lossless quality sound | |
US10491997B2 (en) | Controlling noise transfer function of signal path to reduce charge pump noise | |
CN114527952A (en) | Method and device for eliminating POP sound caused by audio switching | |
TW201933336A (en) | Electronic device and echo cancellation method applied to electronic device | |
CN102300002A (en) | Mobile terminal and hearing aiding processing method thereof | |
CN109511040B (en) | Whisper amplifying method and device and earphone | |
CN116405822A (en) | Bass enhancement system and method applied to open Bluetooth headset | |
CN204206429U (en) | Audio signal processing | |
CN203563181U (en) | Mobile terminal having KTS sound effect | |
CN203181164U (en) | A handset | |
CN113890492A (en) | Power supply voltage control method and controller of audio power amplifier and audio equipment | |
CN112637438B (en) | Entrance guard double-end intercom method and system based on single-line transmission | |
CN202310065U (en) | Audio output device | |
CN101651872A (en) | Multipurpose radio communication device and audio regulation method used by same | |
CN204031431U (en) | A kind of dynamic effect picture storage and reproduce system |
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 |