CN109246519B - Line control earphone signal identification method and device, computer equipment and storage medium - Google Patents

Line control earphone signal identification method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN109246519B
CN109246519B CN201811213587.9A CN201811213587A CN109246519B CN 109246519 B CN109246519 B CN 109246519B CN 201811213587 A CN201811213587 A CN 201811213587A CN 109246519 B CN109246519 B CN 109246519B
Authority
CN
China
Prior art keywords
signal
control signal
reference ratio
pass filter
low level
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.)
Active
Application number
CN201811213587.9A
Other languages
Chinese (zh)
Other versions
CN109246519A (en
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.)
Zhuhai Jieli Technology Co Ltd
Original Assignee
Zhuhai Jieli Technology Co Ltd
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 Zhuhai Jieli Technology Co Ltd filed Critical Zhuhai Jieli Technology Co Ltd
Priority to CN201811213587.9A priority Critical patent/CN109246519B/en
Publication of CN109246519A publication Critical patent/CN109246519A/en
Application granted granted Critical
Publication of CN109246519B publication Critical patent/CN109246519B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2201/00Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
    • H04R2201/10Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Tone Control, Compression And Expansion, Limiting Amplitude (AREA)
  • Circuits Of Receivers In General (AREA)

Abstract

The application relates to a line control earphone signal identification method, a device, computer equipment and a storage medium, analog-to-digital conversion processing is carried out on an analog mixed signal, a digital mixed signal is obtained, filtering processing is carried out on the digital mixed signal, other irrelevant signals are filtered, a control signal is obtained, transmission path identification processing is carried out on the control signal, a control signal corresponding to a transmission path is obtained, in the whole process, the control signal is introduced into the line control earphone signal processing and identifying mode through the mixed signal, the control signal is processed and identified in a digital processing mode, an additional analog amplification filtering shaping circuit is not needed, the risk of signal interference is reduced, and the reliability is high.

Description

Line control earphone signal identification method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of digital control technologies, and in particular, to a method and an apparatus for identifying a signal of a line-controlled earphone, a computer device, and a storage medium.
Background
At present, the line control earphone can directly control access equipment on an earphone line, such as volume adjustment, pause, song cutting and the like, is convenient to use and is widely applied.
The control signal of the wire control earphone is a tiny high-frequency signal outside the frequency band of an audio signal and is coupled on an MIC signal input line, and because the wire control signal is superposed on the audio signal of the MIC, the general method is that an analog circuit is adopted firstly, high-pass filtering is added on an amplifying circuit, the frequency signal of an audio part is filtered, the external sound interference recorded by the MIC is avoided entering, then the signal is shaped by a shaping circuit and then sent to a control chip for processing and identification, and finally the control effect is realized.
However, the processing method of the wire-controlled earphone signal needs to add an additional analog amplification filtering shaping circuit outside the control chip, which increases the risk of signal interference and has low reliability.
Disclosure of Invention
In view of the above, it is desirable to provide a method and apparatus for recognizing a line-controlled headphone signal, a computer device, and a storage medium with high reliability, which solve the problem of low reliability.
A method for identifying signals of a line control earphone comprises the following steps: receiving an analog mixed signal; performing AD processing on the analog mixed signal to obtain a digital mixed signal; filtering the digital mixed signal to obtain a control signal in the digital mixed signal; and carrying out transmission path processing identification on the control signal, and identifying the control signal corresponding to the transmission path.
In one embodiment, the filtering the digital mixed signal to obtain the control signal in the digital mixed signal includes: carrying out low-pass filtering processing on the digital mixed signal; and carrying out high-pass filtering processing on the digital mixed signal subjected to the low-pass filtering processing to obtain a control signal in the digital mixed signal.
In one embodiment, the path identification processing is performed on the control signal, and identifying the control signal corresponding to the path includes: filtering the control signal to obtain a characteristic signal; processing the characteristic signal to obtain an amplitude signal; calculating a reference ratio of the amplitude signal to obtain a reference ratio signal; and comparing the reference ratio signal with a threshold value in a transmission path, and identifying a control signal corresponding to the transmission path.
In one embodiment, the filtering the control signal and the obtaining the characteristic signal includes: and performing band-pass filtering processing on the control signal to acquire a characteristic signal.
In one embodiment, the step of processing the characteristic signal and obtaining the amplitude signal comprises: carrying out absolute value processing on the characteristic signals; and carrying out low-pass filtering processing on the characteristic signal subjected to absolute value processing to obtain an amplitude signal.
In one embodiment, comparing the reference ratio signal with a threshold value in the transmission path, and identifying the control signal corresponding to the transmission path includes: comparing the reference ratio signal with a threshold value corresponding to a transmission path; and when the reference ratio signal is greater than the threshold value corresponding to the transmission path, identifying the control signal corresponding to the transmission path.
In one embodiment, the transmission path processing and identifying the control signal, and after identifying the control signal corresponding to the transmission path, the method further includes: acquiring CPU configuration parameters; and processing the control signal according to the configuration parameters.
A drive-by-wire earphone signal recognition apparatus, comprising: the signal receiving module is used for receiving the analog mixed signal; the analog-to-digital conversion module is used for carrying out AD processing on the analog mixed signal to obtain a digital mixed signal; the control signal acquisition module is used for filtering the digital mixed signal to acquire a control signal in the digital mixed signal; and the identification module is used for carrying out transmission path processing identification on the control signal and identifying the control signal corresponding to the transmission path.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program: receiving an analog mixed signal; performing AD processing on the analog mixed signal to obtain a digital mixed signal; filtering the digital mixed signal to obtain a control signal in the digital mixed signal; and carrying out transmission path processing identification on the control signal, and identifying the control signal corresponding to the transmission path.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of: receiving an analog mixed signal; performing AD processing on the analog mixed signal to obtain a digital mixed signal; filtering the digital mixed signal to obtain a control signal in the digital mixed signal; and carrying out transmission path processing identification on the control signal, and identifying the control signal corresponding to the transmission path.
According to the method, the device, the computer equipment and the storage medium for recognizing the line control earphone signal, analog-digital conversion processing is carried out on the analog mixed signal to obtain the digital mixed signal, filtering processing is carried out on the digital mixed signal to filter other irrelevant signals, a control signal is obtained, transmission channel recognition processing is carried out on the control signal to obtain the control signal corresponding to the transmission channel, in the whole process, the control signal is introduced into the line control earphone signal in a processing and recognizing mode through the mixed signal, the control signal is processed and recognized in a digital processing mode, an additional analog amplifying filtering shaping circuit is not needed, the risk of signal interference is reduced, and the reliability is high.
Drawings
Fig. 1 is a schematic flow chart of one embodiment of the line control earphone signal identification method;
fig. 2 is a schematic flow chart of another embodiment of the signal identification method for a line control earphone described above;
fig. 3 is a schematic structural diagram of one embodiment of the line control earphone signal identification device;
fig. 4 is a schematic structural diagram of one embodiment of the wire-controlled earphone signal identification computer device.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in fig. 1, a method for controlling earphone signals by wire is provided, which comprises the following steps:
s200: an analog mixed signal is received.
The analog signal is a signal in which the information parameter appears as a continuous signal in a given range, or a signal in which the characteristic quantity representing the information appears as an arbitrary value in a continuous time interval; a mixed signal is a signal in which more than one kind of signal is mixed together, an analog mixed signal is a signal in which more than one kind of information parameter appears as continuous signals within a given range or within a sustained time interval, which represent information whose characteristic quantities take the form of signals of arbitrary magnitude mixed together and which, further, in S200, the mixed signal includes an audio signal and a control signal, and the audio signal and the control signal are analog signals, and specifically, a MIC (Microphone) collects a voice input signal, the MIC (Microphone) is a simple device for picking up and transmitting sound, and can convert a sound signal into an electric signal, the control signal is attached to the audio signal, and the audio signal and the control signal are collected together by collecting a voice input signal through the MIC to form an analog mixed signal and then sent to the microprocessor, and the microprocessor receives the analog mixed signal comprising the audio signal and the control signal.
S400: and performing AD processing on the analog mixed signal to obtain a digital mixed signal.
Here, AD (Analog-to-Digital) is to convert an Analog signal into a Digital signal. The digital signal is a signal in which an independent variable is discrete and a dependent variable is also discrete, and the independent variable and the dependent variable of the signal are expressed by integers and one of finite numbers. In S400, the digital mixed signal includes an audio signal and a control signal, and the audio signal and the control signal are digital signals. Specifically, analog-to-digital conversion processing is performed on the analog mixed signal, the analog mixed signal is converted into a digital mixed signal, and the digital mixed signal including the audio signal and the control signal is acquired.
S600: and filtering the digital mixed signal to obtain a control signal in the digital mixed signal.
The filtering refers to an operation of filtering out a specific band of frequencies in the signal. Specifically, the microprocessor inputs the digital mixed signal obtained after the analog-to-digital conversion into the filter bank, performs filtering processing on the digital mixed signal, filters an incoherent frequency signal of a specific band frequency in the digital mixed signal, and obtains a control signal of a target band frequency.
S800: and carrying out transmission path processing identification on the control signal, and identifying the control signal corresponding to the transmission path.
Specifically, the control signal obtained from the digital mixed signal is input to each transmission channel, the corresponding preset frequencies in each transmission channel are different, the transmission channels with different preset frequencies process the control signal, and the control signal frequency identical to the preset frequency in the transmission channel is identified, so that the control signal corresponding to the transmission channel is identified.
According to the method for identifying the signals of the line control earphone, analog-to-digital conversion processing is carried out on the analog mixed signals, the digital mixed signals are obtained, filtering processing is carried out on the digital mixed signals, other irrelevant signals are filtered, control signals are obtained, transmission channel processing identification is carried out on the control signals, the control signals corresponding to the channels are identified, in the whole process, the control signals are introduced into the line control earphone in a processing and identifying mode through the mixed signals, the control signals are processed and identified in a digital processing mode, an additional analog amplifying filtering shaping circuit is not needed, the risk that the signals are interfered is reduced, and the reliability is high.
In one embodiment, the filtering the audio signal in the digital mixed signal, and the obtaining the control signal includes: carrying out low-pass filtering processing on the digital mixed signal to filter quantization noise in the digital mixed signal; and carrying out high-pass filtering processing on the digital mixed signal with the quantization noise removed, removing the audio signal in the digital mixed signal, and obtaining the control signal in the digital mixed signal.
The low-pass filtering is a filtering method, and the rule is that low-frequency signals can normally pass through, and high-frequency signals exceeding a set critical value are blocked and weakened, but the blocking and weakening amplitude can be changed according to different frequencies and different filtering programs. Quantization noise is known from the principle of delta modulation, and a signal recovered by a decoder is a demodulation voltage obtained by low-pass filtering and smoothing a step-shaped voltage, and is similar to the waveform of an input analog signal of an encoder, but has distortion, which is called quantization noise. The high-pass filtering is a filtering method, and the rule is that high-frequency signals can normally pass through, and low-frequency signals lower than a set threshold are blocked and weakened, but the blocking and weakening amplitude can be changed according to different frequencies and different filtering procedures. Specifically, the digital mixed signal is input into a low-pass filter to be subjected to low-pass filtering processing, quantization noise in the digital mixed signal is filtered, the digital mixed signal with the quantization noise being filtered is input into a high-pass filter bank to be subjected to high-pass filtering, an audio signal in the digital mixed signal is filtered, an independent control signal is left, signal interference is avoided, and the signal is identified more effectively.
In one embodiment, as shown in fig. 2, the identifying the control signal includes:
s820: and filtering the control signal to acquire a characteristic signal.
S840: and processing the characteristic signal to obtain an amplitude signal.
S860: and calculating the reference ratio of the amplitude signal to obtain a reference ratio signal.
S880: and comparing the reference ratio signal with a threshold value in the transmission path, and identifying the control signal corresponding to the transmission path.
Specifically, the microprocessor inputs control signals into different transmission paths respectively, the frequency of each transmission path is different, the control signals are filtered by different frequencies through each transmission path to obtain characteristic signals corresponding to each transmission path, the characteristic signals are processed to obtain amplitude signals corresponding to each characteristic signal, after the amplitude signals are obtained, each amplitude signal is input into each reference ratio calculator, each amplitude signal is respectively calculated by a reference ratio formula, reference values corresponding to each amplitude signal are calculated to obtain reference ratio signals corresponding to each amplitude signal, the microprocessor transmits the obtained reference ratio signals to a threshold path corresponding to the transmission path, the threshold values corresponding to the paths are compared, the control signals corresponding to the transmission paths are identified, and the control signals are digitally identified, the risk of control signals being disturbed is reduced.
In one embodiment, the filtering the control signal and the obtaining the characteristic signal includes: and performing band-pass filtering processing on the control signal to acquire a characteristic signal. The band-pass filtering is to allow a wave of a specific frequency band to pass through while shielding other frequency bands. Specifically, after the microprocessor acquires the control signal from the digital mixed signal, the control signal is input to the band-pass filter bank, and band-pass filtering is performed by the band-pass filter bank. And after band-pass filtering processing, acquiring a characteristic signal corresponding to the center frequency of the band-pass filtering. Through band-pass filtering, the accuracy of control signal identification is guaranteed more.
In one embodiment, the step of processing the characteristic signal and obtaining the amplitude signal comprises: carrying out absolute value processing on the characteristic signals; and carrying out low-pass filtering processing on the characteristic signal subjected to absolute value processing to obtain an amplitude signal. Where absolute value means that on the numerical axis, the distance of a number to a distant point is called the absolute value of the number. Specifically, after the microprocessor acquires the feature signal, the feature signal is input to an absolute value bank, absolute value processing is performed through an absolute value function, the feature signal subjected to the absolute value processing is input to a low-pass filter bank, and low-pass filtering processing is performed on the feature signal subjected to the absolute value processing, so that amplitude signals corresponding to the low-pass filters are acquired. It is to be understood that the low-pass filter bank in the present embodiment is different from the center frequency of the low-pass filter in "inputting the digital mixed signal to the low-pass filter for low-pass filtering processing" in another embodiment. And acquiring an accurate control signal through absolute value processing and low-pass filtering processing.
In one embodiment, comparing the reference ratio signal with a threshold value in the transmission path, and identifying the control signal corresponding to the transmission path includes: comparing the reference ratio signal with a threshold value corresponding to the threshold path; and when the reference ratio signal is greater than the threshold value corresponding to the threshold access, identifying the control signal corresponding to the threshold access.
Furthermore, after the microprocessor acquires the reference ratio signal, the microprocessor inputs each reference ratio into each gate value passage simultaneously, and through each threshold comparator in each threshold passage, comparing each reference ratio signal with each threshold value, judging whether the reference ratio signal is larger than a preset threshold value or not, when the reference ratio signal is greater than a predetermined threshold, the control signal of the frequency corresponding to the threshold path is identified, for example, when the reference ratio is greater than a predetermined threshold of the threshold path, the control signal entering the transmission path may be identified as a control signal corresponding to a particular frequency of the transmission path, it being understood that, the specific frequency corresponds to the preset frequency of the function keys of the line control earphone, and by identifying the frequency of the control signal, therefore, the control signal generated by pressing the specific line control key of the line control earphone is identified, and the control function information of the control signal is obtained. Specifically, when the reference ratio signal is greater than the threshold value corresponding to the threshold path, the control signal corresponding to the transmission path frequency is identified, and when the reference ratio signal is greater than the threshold value corresponding to the threshold path, the wide-high level signal is obtained; and when the reference ratio signal is smaller than a threshold value corresponding to the threshold access, acquiring a low level signal, performing low-pass filtering on the wide high level signal and the low level signal, acquiring an interrupt control signal, sending the interrupt control signal to the CPU, requesting the CPU to interrupt the program being executed, and executing the line control key function corresponding to the control signal, wherein the control signal corresponds to the identified control signal control function. The present embodiment accurately identifies the control signal by comparison with a threshold value.
In one embodiment, the processing of identifying a path to a control signal further includes, after identifying the control signal corresponding to the path: acquiring CPU configuration parameters; and processing the control signal according to the configuration parameters.
Furthermore, the CPU receives the interrupt control signal output by the microprocessor and sends a feedback signal to the microprocessor, the CPU can send configuration change information corresponding to each parameter in the transmission channel through the feedback signal, and the microprocessor responds to the parameter change configuration information and configures each parameter in the transmission channel, thereby influencing the output control signal and changing the related parameters of the control signal. For example, the microprocessor receives frequency configuration change information sent by the CPU to the filter, and changes the center frequency of the filter or the threshold value parameter, thereby realizing the change of the frequency of the output control signal.
In one embodiment, in practical applications, the wire-controlled earphone may correspond to four function keys, and the four key functions may be a previous tune, a next tune, a volume up key and a volume down key, where it is assumed that a control signal generated when the previous tune is pressed may have a frequency of 87KHZ, a control signal generated when the next tune is pressed may have a frequency of 125KHZ, a control signal generated when the volume up key is pressed may have a frequency of 154KHZ, and a control signal generated when the volume down key is pressed may have a frequency of 250 KHZ.
Furthermore, when a user listens to music, a control signal generated by pressing a certain control key is coupled on an MIC signal input line in an attaching mode to an audio signal to form an analog mixed signal, the microprocessor receives the analog mixed signal, obtains a first digital mixed signal by performing analog-to-digital conversion processing on the analog signal, the first digital mixed signal comprises the audio signal and the control signal, respectively transmits the first digital mixed signal to two channels, and for one channel, the microprocessor performs filtering processing on the first digital mixed signal, filters the control signal in the first digital mixed signal, obtains an independent audio signal, sends the independent audio signal to the CPU, and sends the CPU to a terminal according to the independent audio signal to perform voice broadcast; and aiming at the other channel, the microprocessor performs low-pass filtering processing on the first digital mixed signal through the first low-pass filter, so as to filter quantization noise in the first digital mixed signal and obtain a second digital mixed signal, the microprocessor performs high-pass filtering processing on the second digital mixed signal through the high-pass filter, so as to filter an audio signal in the second digital mixed signal and obtain an independent control signal, the microprocessor inputs the control signal into 4 channels of transmission channels respectively, and the frequency in the 4 channels of transmission channels corresponds to the key frequency of the line control earphone. Firstly, transmitting a control signal to a first band-pass filter, a second band-pass filter, a third band-pass filter and a fourth band-pass filter of a band-pass filter group, wherein the central frequency of the first band-pass filter, the central frequency of the second band-pass filter, the central frequency of the third band-pass filter and the frequency of the fourth band-pass central filter are respectively 87KHz, 125KHz, 154KHz and 250KHz, and after filtering the control signal, acquiring 4 paths of characteristic signals: the first signature signal sig01, the second signature signal sig02, the third signature signal sig03 and the fourth signature signal sig 04.
The microprocessor inputs 4 paths of characteristic signals into an absolute value taking group, absolute value taking processing is carried out through 4 paths of absolute value devices corresponding to the 4 paths of characteristic signals, the microprocessor inputs the 4 paths of characteristic signals after absolute value taking into a second low-pass filter, a third low-pass filter, a fourth low-pass filter and a fifth low-pass filter of the 4 paths of low-pass filter groups respectively to carry out low-pass filtering processing, and 4 paths of amplitude signals corresponding to the low-pass filters are obtained: the first amplitude signal sig11, the second amplitude signal sig12, the third amplitude signal sig13 and the fourth amplitude signal sig14 are calculated by a reference ratio formula for 4 paths of amplitude signals to obtain corresponding 4 paths of reference ratio signals: a first reference ratio signal sig21, a second reference ratio signal sig22si, a third reference ratio signal sig21, and a fourth reference ratio signal sig 21.
Respectively inputting the 4 paths of reference ratio signals into the 4 paths of threshold paths and judging simultaneously, wherein a judgment path I is as follows: inputting the first reference ratio signal into a first threshold comparator, judging whether the first reference ratio signal is larger than a preset threshold value, and when the first reference gate ratio signal sig21 is larger than the first threshold value, identifying that the currently received control signal is a control signal with the frequency of 87KHZ corresponding to the first channel, wherein the 87KHZ signal corresponds to a key function 'last bend'; and judging a second path: inputting the second reference ratio signal into the first threshold comparator, judging whether the second reference ratio signal is larger than a preset threshold value, and when the second reference ratio signal sig22 is larger than the first threshold value, identifying that the currently received control signal is a control signal with the frequency of 125KHZ corresponding to the first channel, wherein the 125KHZ control signal corresponds to the key function 'next bend'; judging a third path: inputting a third reference ratio signal into a third threshold comparator, judging whether the third reference ratio signal is larger than a preset threshold value, and when the third reference ratio signal sig23 is larger than the third threshold value, identifying that the currently received control signal is a control signal with the frequency of 154KHZ corresponding to the third channel, wherein the 154KHZ signal corresponds to the key function 'volume plus'; judging a path IV: and inputting the fourth reference ratio signal into a fourth threshold comparator, judging whether the fourth reference ratio signal is larger than a preset threshold value, identifying that the currently received control signal is a control signal with the frequency of 250KHZ corresponding to the fourth channel when the fourth reference ratio signal sig21 is larger than the fourth threshold value, identifying that the 250KHZ signal corresponds to the key function of volume reduction, and identifying the control signal by identifying the frequency corresponding to the channel. It can be understood that when none of the 4 reference ratio signals is greater than the threshold, the user does not press the drive-by-wire button.
In the first judgment path, when the first reference ratio signal is greater than the threshold value of the first threshold comparator, and the control signal is recognized to be 87KHZ corresponding to the situation that a user presses the 'last bend' function key, a first wide high level signal is obtained, the second judgment path, the third judgment path and the fourth judgment path respectively output a second low level signal, a third low level signal and a fourth low level signal with burrs, the first wide high level signal, the second low level signal, the third low level signal and the fourth low level signal with burrs are subjected to burr filtering processing, burrs are filtered, a first interrupt control signal corresponding to the 'last bend' function of the control signal is obtained, and the microprocessor transmits the first interrupt control signal to the CPU. Requesting the CPU to interrupt the program being executed, and carrying out 'last song' control on the terminal equipment to realize 'last song' of the earphone line control.
If the second reference ratio signal is greater than the threshold value of the second threshold comparator in the second judgment path, the second wide high level signal is obtained when the control signal is recognized to be 125KHZ corresponding to the situation that a user presses a 'next bend' function key, the second wide high level signal, the second low level signal and the fourth low level signal with burrs are respectively output by the first judgment path, the third judgment path and the fourth judgment path, the second wide high level signal, the first low level signal, the third low level signal and the fourth low level signal with burrs are subjected to burr filtering processing, burrs are filtered, a second interrupt control signal corresponding to the control signal is obtained, and the microprocessor transmits the second interrupt control signal to the CPU. Requesting the CPU to interrupt the program being executed, carrying out 'next song' control on the terminal equipment, and realizing the 'next song' of the earphone line control.
If the third reference ratio signal is greater than the threshold value of the third threshold comparator in the third judgment path, and the control signal is identified to be 154KHZ corresponding to the situation that a user presses a 'volume adding' function key, a third wide high level signal is obtained, the first judgment path, the second judgment path and the fourth judgment path respectively output a first low level signal, a second low level signal and a fourth low level signal with burrs, the third wide high level signal, the first low level signal, the second low level signal and the fourth low level signal with burrs are subjected to burr filtering processing, burrs are filtered, a third interrupt control signal corresponding to the control signal is obtained, and the microprocessor transmits the third interrupt control signal to the CPU. Requesting CPU to interrupt the program being executed, and carrying out volume increasing control on the terminal equipment to realize the earphone line control volume increasing.
If the fourth reference ratio signal is greater than the threshold value of the fourth threshold comparator in the fourth judgment path, and the control signal is recognized to be 250KHZ corresponding to the situation that a user presses a 'volume adding' function key, a fourth wide high level signal is obtained, the first judgment path, the second judgment path and the third judgment path respectively output a first low level signal, a second low level signal and a third low level signal with burrs, the fourth wide high level signal, the first low level signal, the second low level signal and the third low level signal with burrs are subjected to burr filtering processing, burrs are filtered, a fourth interrupt control signal corresponding to the control signal is obtained, and the microprocessor transmits the fourth interrupt control signal to the CPU. Requesting the CPU to interrupt the program being executed, carrying out volume reduction control on the terminal equipment, and realizing the earphone line control volume reduction.
It should be understood that although the various steps in the flow charts of fig. 1-2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 3, there is provided a drive-by-wire earphone signal identification device, including the following modules, wherein:
a signal receiving module 200, configured to receive the analog mixed signal;
an analog-to-digital conversion module 400, configured to perform AD processing on the analog mixed signal to obtain a digital mixed signal;
a control signal obtaining module 600, configured to perform filtering processing on the digital mixed signal to obtain a control signal in the digital mixed signal;
the identifying module 800 is configured to perform transmission path processing identification on the control signal, and identify the control signal corresponding to the transmission path.
In one embodiment, the control signal obtaining module is further configured to perform filtering processing on the digital mixed signal, and obtaining the control signal in the digital mixed signal includes: carrying out low-pass filtering processing on the digital mixed signal; and carrying out high-pass filtering processing on the digital mixed signal subjected to the low-pass filtering processing to obtain a control signal in the digital mixed signal.
In one embodiment, the identifying module is further configured to perform a path identification process on the control signal, and identifying the control signal corresponding to the path includes: filtering the control signal to obtain a characteristic signal; processing the characteristic signal to obtain an amplitude signal; calculating a reference ratio of the amplitude signal to obtain a reference ratio signal; and comparing the reference ratio signal with a threshold value in the transmission path, and identifying the control signal corresponding to the transmission path.
In one embodiment, the identification module is further configured to filter the control signal, and acquiring the characteristic signal includes: and performing band-pass filtering processing on the control signal to acquire a characteristic signal.
In one embodiment, the identification module is further configured to process the characteristic signal, and the step of obtaining the amplitude signal includes: carrying out absolute value processing on the characteristic signals; and carrying out low-pass filtering processing on the characteristic signal subjected to absolute value processing to obtain an amplitude signal.
In one embodiment, the identifying module is further configured to compare the reference ratio signal with a threshold value in the transmission path, and identifying the control signal corresponding to the transmission path includes: comparing the reference ratio signal with a threshold value corresponding to a transmission path; and when the reference ratio signal is greater than the threshold value corresponding to the transmission path, identifying the control signal corresponding to the transmission path.
In one embodiment, the above wire control earphone signal identification apparatus further includes a parameter configuration module, configured to perform transmission path processing identification on the control signal, and after identifying the control signal corresponding to the transmission path, the apparatus further includes: acquiring CPU configuration parameters; and processing the control signal according to the configuration parameters.
For specific limitations of the headset by wire signal identification device, reference may be made to the above limitations on the headset by wire signal identification method, which are not described herein again. All or part of the modules in the wire control earphone signal identification device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the wire control earphone signal identification data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of line controlled headphone signal identification.
Those skilled in the art will appreciate that the architecture shown in fig. 4 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: receiving an analog mixed signal; performing AD processing on the analog mixed signal to obtain a digital mixed signal; filtering the digital mixed signal to obtain a control signal in the digital mixed signal; and carrying out transmission path processing identification on the control signal, and identifying the control signal corresponding to the transmission path.
In one embodiment, the processor, when executing the computer program, further performs the steps of: filtering the digital mixed signal, and acquiring a control signal in the digital mixed signal comprises: carrying out low-pass filtering processing on the digital mixed signal; and carrying out high-pass filtering processing on the digital mixed signal subjected to the low-pass filtering processing to obtain a control signal in the digital mixed signal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: performing path identification processing on the control signal, wherein identifying the control signal corresponding to the path comprises: filtering the control signal to obtain a characteristic signal; processing the characteristic signal to obtain an amplitude signal; calculating a reference ratio of the amplitude signal to obtain a reference ratio signal; and comparing the reference ratio signal with a threshold value in the transmission path, and identifying the control signal corresponding to the transmission path.
In one embodiment, the processor, when executing the computer program, further performs the steps of: filtering the control signal, and acquiring the characteristic signal comprises: and performing band-pass filtering processing on the control signal to acquire a characteristic signal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the step of processing the characteristic signal and acquiring an amplitude signal comprises the following steps: carrying out absolute value processing on the characteristic signals; and carrying out low-pass filtering processing on the characteristic signal subjected to absolute value processing to obtain an amplitude signal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: comparing the reference ratio signal with a threshold value in the transmission path, wherein identifying the control signal corresponding to the transmission path comprises: comparing the reference ratio signal with a threshold value corresponding to a transmission path; and when the reference ratio signal is greater than the threshold value corresponding to the transmission path, identifying the control signal corresponding to the transmission path.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the method comprises the following steps of carrying out transmission path processing identification on a control signal, and after identifying the control signal corresponding to a transmission path, the method also comprises the following steps: acquiring CPU configuration parameters; and processing the control signal according to the configuration parameters.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, the computer program when processed and executed implementing the steps of: receiving an analog mixed signal; performing AD processing on the analog mixed signal to obtain a digital mixed signal; filtering the digital mixed signal to obtain a control signal in the digital mixed signal; and carrying out transmission path processing identification on the control signal, and identifying the control signal corresponding to the transmission path.
In one embodiment, the computer program when executed by the processor further performs the steps of: filtering the digital mixed signal, and acquiring a control signal in the digital mixed signal comprises: carrying out low-pass filtering processing on the digital mixed signal; and carrying out high-pass filtering processing on the digital mixed signal subjected to the low-pass filtering processing to obtain a control signal in the digital mixed signal.
In one embodiment, the computer program when executed by the processor further performs the steps of: performing path identification processing on the control signal, wherein identifying the control signal corresponding to the path comprises: filtering the control signal to obtain a characteristic signal; processing the characteristic signal to obtain an amplitude signal; calculating a reference ratio of the amplitude signal to obtain a reference ratio signal; and comparing the reference ratio signal with a threshold value in the transmission path, and identifying the control signal corresponding to the transmission path.
In one embodiment, the computer program when executed by the processor further performs the steps of: filtering the control signal, and acquiring the characteristic signal comprises: and performing band-pass filtering processing on the control signal to acquire a characteristic signal.
In one embodiment, the computer program when executed by the processor further performs the steps of: the step of processing the characteristic signal and acquiring an amplitude signal comprises the following steps: carrying out absolute value processing on the characteristic signals; and carrying out low-pass filtering processing on the characteristic signal subjected to absolute value processing to obtain an amplitude signal.
In one embodiment, the computer program when executed by the processor further performs the steps of: comparing the reference ratio signal with a threshold value in the transmission path, wherein identifying the control signal corresponding to the transmission path comprises: comparing the reference ratio signal with a threshold value corresponding to a transmission path; and when the reference ratio signal is greater than the threshold value corresponding to the transmission path, identifying the control signal corresponding to the transmission path.
In one embodiment, the computer program when executed by the processor further performs the steps of: the method comprises the following steps of carrying out transmission path processing identification on a control signal, and after identifying the control signal corresponding to a transmission path, the method also comprises the following steps: acquiring CPU configuration parameters; and processing the control signal according to the configuration parameters.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (6)

1. A method for identifying signals of line control earphones is applied to a microprocessor and comprises the following steps:
receiving an analog mixed signal formed by coupling a control signal generated by a current key on an MIC signal input line depending on an audio signal;
performing AD processing on the analog mixed signal to obtain a first digital mixed signal;
the first digital mixed signal comprises an audio signal and a control signal, and is respectively transmitted to the two channels;
aiming at one channel, the microprocessor filters the first digital mixed signal to filter out a control signal in the first digital mixed signal, obtains an independent audio signal, sends the independent audio signal to the CPU, and the CPU sends the independent audio signal to the terminal for voice broadcast;
aiming at the other channel, the microprocessor performs low-pass filtering processing on the first digital mixed signal through a first low-pass filter, filters quantization noise in the first digital mixed signal and obtains a second digital mixed signal, and the microprocessor performs high-pass filtering processing on the second digital mixed signal through a high-pass filter, filters an audio signal in the second digital mixed signal and obtains an independent control signal;
carrying out transmission path processing identification on the control signal, and identifying the control signal corresponding to the transmission path;
the identifying the transmission path of the control signal includes: filtering the control signal through a band-pass filter group to obtain a characteristic signal corresponding to the central frequency of each band-pass filter in the band-pass filter group;
carrying out absolute value processing on the characteristic signals, and respectively inputting the characteristic signals subjected to the absolute value processing into corresponding low-pass filters in a low-pass filter group to obtain amplitude signals corresponding to the central frequency of the low-pass filters;
respectively carrying out reference ratio calculation on the amplitude signals to obtain reference ratio signals;
inputting each reference ratio signal into a corresponding threshold access, and when the reference ratio signal larger than a preset threshold exists, performing burr filtering processing on the output signal of each threshold access to identify a control signal corresponding to the transmission access;
the band-pass filter bank is used for filtering the control signal to obtain characteristic signals corresponding to the center frequency of each band-pass filter in the band-pass filter bank, and the method comprises the following steps:
microprocessor inputs 4 transmission passageways with control signal respectively, and the frequency among 4 transmission passageways corresponds drive-by-wire earphone button frequency, with first band pass filter, second band pass filter, third band pass filter and the fourth band pass filter of control signal transmission to band pass filter bank, after filtering control signal, acquires 4 way characteristic signal: the first signature signal sig01, the second signature signal sig02, the third signature signal sig03 and the fourth signature signal sig 04;
the processing of taking an absolute value of the characteristic signal, and respectively inputting the characteristic signal after the processing of taking the absolute value into corresponding low-pass filters in a low-pass filter bank to obtain an amplitude signal corresponding to the center frequency of the low-pass filter, includes:
the microprocessor inputs 4 paths of characteristic signals into an absolute value taking group, absolute value taking processing is carried out through 4 paths of absolute value devices corresponding to the 4 paths of characteristic signals, the microprocessor inputs the 4 paths of characteristic signals after absolute value taking into a second low-pass filter, a third low-pass filter, a fourth low-pass filter and a fifth low-pass filter of the 4 paths of low-pass filter groups respectively to carry out low-pass filtering processing, and 4 paths of amplitude signals corresponding to the low-pass filters are obtained: a first amplitude signal sig11, a second amplitude signal sig12, a third amplitude signal sig13 and a fourth amplitude signal sig 14;
the respectively performing reference ratio calculation on the amplitude signals to obtain reference ratio signals includes:
and calculating 4 paths of amplitude signals through a reference ratio formula to obtain corresponding 4 paths of reference ratio signals: a first reference ratio signal sig21, a second reference ratio signal sig22, a third reference ratio signal sig23, and a fourth reference ratio signal sig 24;
the step of inputting each reference ratio signal into a corresponding threshold path, and when a reference ratio signal greater than a preset threshold exists, performing spike filtering processing on an output signal of each threshold path to identify a control signal corresponding to the transmission path includes:
respectively inputting the 4 paths of reference ratio signals into the 4 paths of threshold paths for simultaneous judgment, identifying a control signal corresponding to the frequency of a transmission path when the reference ratio signals are greater than the threshold values corresponding to the threshold paths, and acquiring wide and high level signals when the reference ratio signals are greater than the threshold values corresponding to the threshold paths; when the reference ratio signal is smaller than a threshold value corresponding to a threshold access, acquiring a low level signal, performing low-pass filtering on the wide high level signal and the low level signal, acquiring an interrupt control signal, sending the interrupt control signal to a CPU (central processing unit), requesting the CPU to interrupt a program being executed, and executing a line control key function corresponding to the control signal;
the CPU receives an interrupt control signal output by the microprocessor and sends a feedback signal to the microprocessor, the CPU sends configuration change information corresponding to each parameter in a transmission channel through the feedback signal, the microprocessor responds to the parameter change configuration information and configures each parameter in the transmission channel so as to influence the output control signal and change the related parameters of the control signal, wherein the parameter change configuration information comprises frequency configuration change information sent by the CPU to a filter, and the central frequency or threshold value parameter of the filter is changed so as to change the frequency of the output control signal;
judging a first path: inputting the first reference ratio signal into a first threshold comparator, judging whether the first reference ratio signal is larger than a preset threshold value, and when the first reference gate ratio signal sig21 is larger than the first threshold value, identifying that the currently received control signal is a control signal which corresponds to the first channel and has the frequency of the central frequency of the first band-pass filter, and corresponds to a key function 'last bend'; and judging a second path: inputting the second reference ratio signal into the first threshold comparator, judging whether the second reference ratio signal is larger than a preset threshold value, and when the second reference gate ratio signal sig22 is larger than the first threshold value, identifying that the currently received control signal is a control signal which corresponds to the first channel and has the frequency of the central frequency of the second band-pass filter, and corresponds to the key function 'next bend'; judging a third path: inputting a third reference ratio signal into a third threshold comparator, judging whether the third reference ratio signal is larger than a preset threshold value, and when the third reference ratio signal sig23 is larger than the third threshold value, identifying that the currently received control signal is a control signal which corresponds to a third channel and has the frequency of the central frequency of a third band-pass filter, and corresponding to a key function of 'volume up'; judging a path IV: inputting a fourth reference ratio signal into a fourth threshold comparator, judging whether the fourth reference ratio signal is larger than a preset threshold value, identifying that the currently received control signal is a control signal which corresponds to a fourth channel and has the frequency of the central frequency of a fourth band-pass filter when the fourth reference ratio signal sig24 is larger than the fourth threshold value, identifying the control signal by identifying the frequency corresponding to the channel corresponding to the volume reduction corresponding to the key function, and judging that the user does not press the line control key when any channel of the 4-channel reference ratio signal is larger than the threshold value;
in the first judging path, when the first reference ratio signal is greater than the threshold value of the first threshold comparator, the control signal is identified as the control signal of the central frequency of the first band-pass filter, corresponding to the situation that a user presses the 'last bend' function key, the first wide high level signal is obtained, the second judging path, the third judging path and the fourth judging path respectively output the second low level signal, the third low level signal and the fourth low level signal with burrs, the first wide high level signal, the second low level signal, the third low level signal and the fourth low level signal with burrs are subjected to burr filtering processing to filter the burrs, the first interrupt control signal corresponding to the 'last bend' of the control signal function is obtained, the microprocessor transmits the first interrupt control signal to the CPU to request the CPU to interrupt the program being executed, and the 'last bend' control is carried out on the terminal equipment, realizing the earphone line control 'upward bending';
if in the second judgment path, when the second reference ratio signal is greater than the threshold value of the second threshold comparator, the control signal is already identified as the control signal of the center frequency of the second band-pass filter, corresponding to the situation that a user presses a 'next-song' function key, the second wide high level signal is obtained, the second low level signal, the third low level signal and the fourth low level signal with burrs are respectively output by the first judgment path, the third judgment path and the fourth judgment path, the second wide high level signal, the first low level signal, the third low level signal and the fourth low level signal with burrs are subjected to burr filtering processing to filter the burrs and obtain a second interrupt control signal corresponding to the control signal, the microprocessor transmits the second interrupt control signal to the CPU to request the CPU to interrupt the program being executed, and the 'next-song' control is carried out on the terminal equipment, realizing the line control of the earphone to 'next bend';
if the third reference ratio signal is greater than the threshold value of the third threshold comparator in the third judgment path, the control signal is already identified as the control signal of the center frequency of the third band-pass filter, corresponding to the situation that the user presses the 'volume up' function key, a third wide high level signal is obtained, the first judgment path, the second judgment path and the fourth judgment path respectively output a first low level signal, a second low level signal and a fourth low level signal with burrs, carrying out burr filtering processing on a third wide high level signal, a first low level signal, a second low level signal and a fourth low level signal with burrs, filtering out the burrs, acquiring a third interruption control signal corresponding to the control signal, transmitting the third interruption control signal to a CPU by the microprocessor, requesting the CPU to interrupt a program being executed, carrying out volume adding control on terminal equipment, and realizing earphone line control volume adding;
if the fourth reference ratio signal is greater than the threshold of the fourth threshold comparator in the fourth judgment path, the control signal is already identified as the control signal of the center frequency of the fourth band-pass filter, corresponding to the situation that the user presses the 'volume up' function key, a fourth wide high level signal is obtained, the first judgment path, the second judgment path and the third judgment path respectively output a first low level signal, a second low level signal and a third low level signal with burrs, and carrying out burr filtering processing on a fourth wide high level signal, a first low level signal, a second low level signal and a third low level signal with burrs, filtering the burrs, acquiring a fourth interrupt control signal corresponding to the control signal, transmitting the fourth interrupt control signal to a CPU by the microprocessor, requesting the CPU to interrupt a program being executed, carrying out volume reduction control on the terminal equipment, and realizing the earphone line control volume reduction.
2. The method for identifying a line control earphone signal according to claim 1, wherein the calculating the reference ratio of the amplitude signals respectively and obtaining the reference ratio signal comprises:
and inputting the amplitude signals into each reference ratio calculator, respectively calculating the reference ratio formula of each amplitude signal through the reference ratio formula, and calculating the reference value corresponding to each amplitude signal to obtain the reference ratio signal corresponding to each amplitude signal.
3. The method for recognizing a line control earphone signal according to claim 1, wherein the step of performing a path recognition process on the control signal and obtaining the control signal corresponding to the path further comprises:
acquiring CPU configuration parameters;
and processing the control signal according to the configuration parameter.
4. A line-controlled earphone signal recognition apparatus, wherein the apparatus is a microprocessor, comprising:
the signal receiving module is used for receiving an analog mixed signal formed by coupling a control signal generated by a current key on an MIC signal input line depending on an audio signal;
the analog-to-digital conversion module is used for performing AD processing on the analog mixed signal to obtain a first digital mixed signal, wherein the first digital mixed signal comprises an audio signal and a control signal;
the control signal acquisition module is used for respectively transmitting the first digital mixed signal to the two channels; aiming at one channel, the microprocessor filters the first digital mixed signal to filter out a control signal in the first digital mixed signal, obtains an independent audio signal, sends the independent audio signal to the CPU, and the CPU sends the independent audio signal to the terminal for voice broadcast; aiming at the other channel, the microprocessor performs low-pass filtering processing on the first digital mixed signal through a first low-pass filter, filters quantization noise in the first digital mixed signal and obtains a second digital mixed signal, and the microprocessor performs high-pass filtering processing on the second digital mixed signal through a high-pass filter, filters an audio signal in the second digital mixed signal and obtains an independent control signal;
the identification module is used for carrying out transmission path processing identification on the control signal and identifying the control signal corresponding to the transmission path;
the identification module is further used for filtering the control signal through a band-pass filter group to obtain characteristic signals corresponding to the center frequency of each band-pass filter in the band-pass filter group; carrying out absolute value processing on the characteristic signals, and respectively inputting the characteristic signals subjected to the absolute value processing into corresponding low-pass filters in a low-pass filter group to obtain amplitude signals corresponding to the central frequency of the low-pass filters; respectively carrying out reference ratio calculation on the amplitude signals to obtain reference ratio signals; inputting each reference ratio signal into a corresponding threshold access, and when the reference ratio signal larger than a preset threshold exists, performing burr filtering processing on the output signal of each threshold access to identify a control signal corresponding to the transmission access;
the device is also used for identifying a control signal corresponding to the frequency of the transmission channel when the reference ratio signal is greater than a threshold value corresponding to the threshold channel, and acquiring a wide high level signal when the reference ratio signal is greater than the threshold value corresponding to the threshold channel; when the reference ratio signal is smaller than a threshold value corresponding to a threshold access, acquiring a low level signal, performing low-pass filtering on the wide high level signal and the low level signal, acquiring an interrupt control signal, sending the interrupt control signal to a CPU (central processing unit), requesting the CPU to interrupt a program being executed, and executing a line control key function corresponding to the control signal; the CPU receives an interrupt control signal output by the microprocessor and sends a feedback signal to the microprocessor, the CPU sends configuration change information corresponding to each parameter in a transmission channel through the feedback signal, the microprocessor responds to the parameter change configuration information and configures each parameter in the transmission channel so as to influence the output control signal and change the related parameters of the control signal, wherein the parameter change configuration information comprises frequency configuration change information sent by the CPU to a filter, and the central frequency or threshold value parameter of the filter is changed so as to change the frequency of the output control signal; microprocessor inputs 4 transmission passageways with control signal respectively, and the frequency among 4 transmission passageways corresponds drive-by-wire earphone button frequency, with first band pass filter, second band pass filter, third band pass filter and the fourth band pass filter of control signal transmission to band pass filter bank, after filtering control signal, acquires 4 way characteristic signal: the first signature signal sig01, the second signature signal sig02, the third signature signal sig03 and the fourth signature signal sig 04; the microprocessor inputs 4 paths of characteristic signals into an absolute value taking group, absolute value taking processing is carried out through 4 paths of absolute value devices corresponding to the 4 paths of characteristic signals, the microprocessor inputs the 4 paths of characteristic signals after absolute value taking into a second low-pass filter, a third low-pass filter, a fourth low-pass filter and a fifth low-pass filter of the 4 paths of low-pass filter groups respectively to carry out low-pass filtering processing, and 4 paths of amplitude signals corresponding to the low-pass filters are obtained: the first amplitude signal sig11, the second amplitude signal sig12, the third amplitude signal sig13 and the fourth amplitude signal sig14 are calculated by a reference ratio formula for 4 paths of amplitude signals to obtain corresponding 4 paths of reference ratio signals: a first reference ratio signal sig21, a second reference ratio signal sig22, a third reference ratio signal sig23, and a fourth reference ratio signal sig 24; respectively inputting the 4 paths of reference ratio signals into the 4 paths of threshold paths and judging simultaneously, wherein a judgment path I is as follows: inputting the first reference ratio signal into a first threshold comparator, judging whether the first reference ratio signal is larger than a preset threshold value, and when the first reference gate ratio signal sig21 is larger than the first threshold value, identifying that the currently received control signal is a control signal which corresponds to the first channel and has the frequency of the central frequency of the first band-pass filter, and corresponds to a key function 'last bend'; and judging a second path: inputting the second reference ratio signal into the first threshold comparator, judging whether the second reference ratio signal is larger than a preset threshold value, and when the second reference gate ratio signal sig22 is larger than the first threshold value, identifying that the currently received control signal is a control signal which corresponds to the first channel and has the frequency of the central frequency of the second band-pass filter, and corresponds to the key function 'next bend'; judging a third path: inputting a third reference ratio signal into a third threshold comparator, judging whether the third reference ratio signal is larger than a preset threshold value, and when the third reference ratio signal sig23 is larger than the third threshold value, identifying that the currently received control signal is a control signal which corresponds to a third channel and has the frequency of the central frequency of a third band-pass filter, and corresponding to a key function of 'volume up'; judging a path IV: inputting a fourth reference ratio signal into a fourth threshold comparator, judging whether the fourth reference ratio signal is larger than a preset threshold value, identifying that the currently received control signal is a control signal which corresponds to a fourth channel and has the frequency of the central frequency of a fourth band-pass filter when the fourth reference ratio signal sig24 is larger than the fourth threshold value, identifying the control signal by identifying the frequency corresponding to the channel corresponding to the volume reduction corresponding to the key function, and judging that the user does not press the line control key when any channel of the 4-channel reference ratio signal is larger than the threshold value; in the first judging path, when the first reference ratio signal is greater than the threshold value of the first threshold comparator, the control signal is identified as the control signal of the central frequency of the first band-pass filter, corresponding to the situation that a user presses the 'last bend' function key, the first wide high level signal is obtained, the second judging path, the third judging path and the fourth judging path respectively output the second low level signal, the third low level signal and the fourth low level signal with burrs, the first wide high level signal, the second low level signal, the third low level signal and the fourth low level signal with burrs are subjected to burr filtering processing to filter the burrs, the first interrupt control signal corresponding to the 'last bend' of the control signal function is obtained, the microprocessor transmits the first interrupt control signal to the CPU to request the CPU to interrupt the program being executed, and the 'last bend' control is carried out on the terminal equipment, realizing the earphone line control 'upward bending'; if in the second judgment path, when the second reference ratio signal is greater than the threshold value of the second threshold comparator, the control signal is already identified as the control signal of the center frequency of the second band-pass filter, corresponding to the situation that a user presses a 'next-song' function key, the second wide high level signal is obtained, the second low level signal, the third low level signal and the fourth low level signal with burrs are respectively output by the first judgment path, the third judgment path and the fourth judgment path, the second wide high level signal, the first low level signal, the third low level signal and the fourth low level signal with burrs are subjected to burr filtering processing to filter the burrs and obtain a second interrupt control signal corresponding to the control signal, the microprocessor transmits the second interrupt control signal to the CPU to request the CPU to interrupt the program being executed, and the 'next-song' control is carried out on the terminal equipment, realizing the line control of the earphone to 'next bend'; if the third reference ratio signal is greater than the threshold value of the third threshold comparator in the third judgment path, the control signal is already identified as the control signal of the center frequency of the third band-pass filter, corresponding to the situation that the user presses the 'volume up' function key, a third wide high level signal is obtained, the first judgment path, the second judgment path and the fourth judgment path respectively output a first low level signal, a second low level signal and a fourth low level signal with burrs, carrying out burr filtering processing on a third wide high level signal, a first low level signal, a second low level signal and a fourth low level signal with burrs, filtering out the burrs, acquiring a third interruption control signal corresponding to the control signal, transmitting the third interruption control signal to a CPU by the microprocessor, requesting the CPU to interrupt a program being executed, carrying out volume adding control on terminal equipment, and realizing earphone line control volume adding; if the fourth reference ratio signal is greater than the threshold of the fourth threshold comparator in the fourth judgment path, the control signal is already identified as the control signal of the center frequency of the fourth band-pass filter, corresponding to the situation that the user presses the 'volume up' function key, a fourth wide high level signal is obtained, the first judgment path, the second judgment path and the third judgment path respectively output a first low level signal, a second low level signal and a third low level signal with burrs, and carrying out burr filtering processing on a fourth wide high level signal, a first low level signal, a second low level signal and a third low level signal with burrs, filtering the burrs, acquiring a fourth interrupt control signal corresponding to the control signal, transmitting the fourth interrupt control signal to a CPU by the microprocessor, requesting the CPU to interrupt a program being executed, carrying out volume reduction control on the terminal equipment, and realizing the earphone line control volume reduction.
5. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the method of any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 3.
CN201811213587.9A 2018-10-18 2018-10-18 Line control earphone signal identification method and device, computer equipment and storage medium Active CN109246519B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811213587.9A CN109246519B (en) 2018-10-18 2018-10-18 Line control earphone signal identification method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811213587.9A CN109246519B (en) 2018-10-18 2018-10-18 Line control earphone signal identification method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109246519A CN109246519A (en) 2019-01-18
CN109246519B true CN109246519B (en) 2022-03-04

Family

ID=65053954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811213587.9A Active CN109246519B (en) 2018-10-18 2018-10-18 Line control earphone signal identification method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109246519B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725769A (en) * 2004-07-20 2006-01-25 泛泰·科力特株式会社 Method and apparatus for transmitting and outputting data in voice communication
CN103237281A (en) * 2013-05-08 2013-08-07 广东欧珀移动通信有限公司 Earphone wire control circuit of mobile terminal and wire control method
CN104330981A (en) * 2013-07-22 2015-02-04 联想(北京)有限公司 Key control method, electronic device and line-control device
CN105245997A (en) * 2015-09-29 2016-01-13 广东佳禾声学科技有限公司 Control method for transmitting control signal in audio mode
CN106627150A (en) * 2015-11-02 2017-05-10 现代自动车株式会社 Input device, vehicle having the input device, and method for controlling the vehicle
CN108132728A (en) * 2017-12-08 2018-06-08 南昌黑鲨科技有限公司 It is a kind of to operate identification device, recognition methods and the intelligent terminal with the device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8737573B2 (en) * 2011-05-09 2014-05-27 Intelligent Decisions, Inc. Systems, methods, and devices for testing communication lines
US9538275B2 (en) * 2011-10-27 2017-01-03 Youngok Lee Hands-free apparatus
CN105161122B (en) * 2015-09-23 2018-11-27 敲敲科技(北京)有限公司 Data processing method and device based on earphone
WO2017142111A1 (en) * 2016-02-19 2017-08-24 주식회사 트리니티랩 Smart device remote control system using audible frequency band audio signal
CN207518839U (en) * 2017-12-05 2018-06-19 深圳市客所思电子科技有限公司 There is the mobile telephone external sound card of mobile phone line control

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1725769A (en) * 2004-07-20 2006-01-25 泛泰·科力特株式会社 Method and apparatus for transmitting and outputting data in voice communication
CN103237281A (en) * 2013-05-08 2013-08-07 广东欧珀移动通信有限公司 Earphone wire control circuit of mobile terminal and wire control method
CN104330981A (en) * 2013-07-22 2015-02-04 联想(北京)有限公司 Key control method, electronic device and line-control device
CN105245997A (en) * 2015-09-29 2016-01-13 广东佳禾声学科技有限公司 Control method for transmitting control signal in audio mode
CN106627150A (en) * 2015-11-02 2017-05-10 现代自动车株式会社 Input device, vehicle having the input device, and method for controlling the vehicle
CN108132728A (en) * 2017-12-08 2018-06-08 南昌黑鲨科技有限公司 It is a kind of to operate identification device, recognition methods and the intelligent terminal with the device

Also Published As

Publication number Publication date
CN109246519A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN109391877A (en) Automatic tuning audio compressor is to prevent from being distorted
AU2016255683B2 (en) Process and architecture for remotely adjusting a hearing aid
EP2755204B1 (en) Noise suppression device and method
KR101902717B1 (en) Voice wake-up method and device
CN111356058B (en) Echo cancellation method and device and intelligent sound box
WO2013081670A1 (en) System for dynamic spectral correction of audio signals to compensate for ambient noise
US11070914B2 (en) Controller and control method
CN111885276B (en) Method and system for eliminating echo
US9084050B2 (en) Systems and methods for remapping an audio range to a human perceivable range
CN109246519B (en) Line control earphone signal identification method and device, computer equipment and storage medium
CN111970609A (en) Sound quality adjusting method, sound quality adjusting system, electronic device, earphone, and computer-readable storage medium
KR20170029624A (en) Acoustical signal processing method and device of communication device
EP3917157B1 (en) Hearing device with sound impulse suppression and related method
CN112420066A (en) Noise reduction method, noise reduction device, computer equipment and computer readable storage medium
CN112804612A (en) Earphone control method, earphone control device, earphone and computer readable storage medium
KR20190044912A (en) Electronic device for determining noise control parameter based on network connection inforiton and operating method thereof
CN102388624A (en) Sound processing device and sound processing method
CN113596669B (en) Voice compensation method, device and related components
CN113014460B (en) Voice processing method, home master control device, voice system and storage medium
CN114617543A (en) Respiratory monitoring method and device with identifiable identity
CN113990283A (en) Noise reduction processing method and device, earphone and computer readable storage medium
CN109245839B (en) Method for detecting narrow-band interference, communication chip and communication device thereof
KR101628112B1 (en) Apparatus and method for removing noise for voice recognition of vehicle
CN107819964B (en) Method, device, terminal and computer readable storage medium for improving call quality
CN111243611B (en) Microphone wind noise elimination method and device, storage medium and mobile terminal

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
CB02 Change of applicant information

Address after: 519000 No. 333, Kexing Road, Xiangzhou District, Zhuhai City, Guangdong Province

Applicant after: ZHUHAI JIELI TECHNOLOGY Co.,Ltd.

Address before: Floor 1-107, building 904, ShiJiHua Road, Zhuhai City, Guangdong Province

Applicant before: ZHUHAI JIELI TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant