CN109089190A - Impedance curve determines method, apparatus, storage medium and terminal device - Google Patents

Impedance curve determines method, apparatus, storage medium and terminal device Download PDF

Info

Publication number
CN109089190A
CN109089190A CN201811258377.1A CN201811258377A CN109089190A CN 109089190 A CN109089190 A CN 109089190A CN 201811258377 A CN201811258377 A CN 201811258377A CN 109089190 A CN109089190 A CN 109089190A
Authority
CN
China
Prior art keywords
transfer parameters
impedance
signal
current signal
voltage
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.)
Granted
Application number
CN201811258377.1A
Other languages
Chinese (zh)
Other versions
CN109089190B (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201811258377.1A priority Critical patent/CN109089190B/en
Publication of CN109089190A publication Critical patent/CN109089190A/en
Application granted granted Critical
Publication of CN109089190B publication Critical patent/CN109089190B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • 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)
  • Circuit For Audible Band Transducer (AREA)

Abstract

A kind of impedance curve provided in the embodiment of the present application determines method, apparatus, storage medium and terminal device, and this method includes the current signal and voltage signal for obtaining loudspeaker;Determine whether present impedance Transfer Parameters meet preset condition according to current signal and voltage signal;If the present impedance Transfer Parameters meet preset condition, the impedance curve of the loudspeaker is determined according to the present impedance Transfer Parameters;If the present impedance Transfer Parameters do not meet preset condition, it is then determined according to the voltage signal, the present impedance Transfer Parameters and the current signal and updates impedance Transfer Parameters, using the update impedance Transfer Parameters as present impedance Transfer Parameters, and return to the operation for executing the current signal and voltage signal that obtain loudspeaker.By using above-mentioned technical proposal, the impedance curve primarily determined can be adjusted according to current signal and voltage signal, and impedance curve is made constantly close to true value, to embody the current state of loudspeaker.

Description

Impedance curve determines method, apparatus, storage medium and terminal device
Technical field
The invention relates to speaker technology fields more particularly to a kind of impedance curve to determine method, apparatus, storage Medium and terminal device.
Background technique
With the fast development of the multimedia technology on mobile terminal, people all get used to listening to music on mobile terminals and See video, and loudspeaker is the pith for needing to use when user listens to music or sees video, therefore, for mobile terminal The monitoring of the performance of middle loudspeaker is also more important.
Impedance curve is to refer to loudspeaker in input different frequency letter as the important indicator that can embody loudspeaker Number when show the curves of different impedance values, and the impedance curve calculated in the prior art can not embody loudspeaking in real time well The state of device, so needing to optimize the calculation method of impedance curve.
Summary of the invention
A kind of impedance curve provided by the embodiments of the present application determines method, apparatus, storage medium and terminal device, Ke Yiti The accuracy of high impedance curve.
In a first aspect, the embodiment of the present application, which provides a kind of impedance curve, determines method, comprising:
Obtain the current signal and voltage signal of loudspeaker;
Determine whether the present impedance Transfer Parameters of the loudspeaker accord with according to the current signal and the voltage signal Close preset condition;
If the present impedance Transfer Parameters meet preset condition, institute is determined according to the present impedance Transfer Parameters State the impedance curve of loudspeaker;
If the present impedance Transfer Parameters do not meet preset condition, according to the voltage signal, the current resistance Anti- Transfer Parameters and the current signal, which determine, updates impedance Transfer Parameters, using the update impedance Transfer Parameters as current resistance Anti- Transfer Parameters, and return to the operation for executing the current signal and voltage signal that obtain loudspeaker.
Second aspect, the embodiment of the present application provide a kind of impedance curve determining device, comprising:
Signal acquisition module, for obtaining the current signal and voltage signal of loudspeaker;
Condition judgment module, for determining the current resistance of the loudspeaker according to the current signal and the voltage signal Whether anti-Transfer Parameters meet preset condition;
Curve determining module, if meeting preset condition for the present impedance Transfer Parameters, according to described current Impedance Transfer Parameters determine the impedance curve of the loudspeaker;
Parameter adjustment module, if preset condition is not met for the present impedance Transfer Parameters, according to the electricity It presses signal, the present impedance Transfer Parameters and the current signal to determine and updates impedance Transfer Parameters, by the update impedance Transfer Parameters return to the operation for executing the current signal and voltage signal that obtain loudspeaker as present impedance Transfer Parameters.
The third aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes that the impedance curve as described in the embodiment of the present application determines method when the program is executed by processor.
Fourth aspect, the embodiment of the present application provide a kind of terminal device, including memory, processor and are stored in storage It can realize on device and when the computer program of processor operation, the processor execute the computer program as the application is real It applies impedance curve described in example and determines method.
A kind of impedance curve provided in the embodiment of the present application determines scheme, by the current signal and electricity that obtain loudspeaker Press signal;Determine whether the present impedance Transfer Parameters of the loudspeaker meet according to the current signal and the voltage signal Preset condition;If the present impedance Transfer Parameters meet preset condition, determined according to the present impedance Transfer Parameters The impedance curve of the loudspeaker;If the present impedance Transfer Parameters do not meet preset condition, believed according to the voltage Number, the present impedance Transfer Parameters and the current signal determine and update impedance Transfer Parameters, by updates impedance transmitting Parameter returns to the operation for executing the current signal and voltage signal that obtain loudspeaker as present impedance Transfer Parameters.Pass through By adopting the above technical scheme, the impedance curve primarily determined can be adjusted according to current signal and voltage signal, keep impedance bent Line constantly close to true value, embodies the current state of loudspeaker.
Detailed description of the invention
Fig. 1 is the flow diagram that a kind of impedance curve provided by the embodiments of the present application determines method;
Fig. 2 is the flow diagram that another impedance curve provided by the embodiments of the present application determines method;
Fig. 3 is the functional block diagram of sef-adapting filter provided by the embodiments of the present application;
Fig. 4 is a kind of structural block diagram of impedance curve determining device provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of another terminal device provided by the embodiments of the present application.
Specific embodiment
Further illustrate the technical solution of the application below with reference to the accompanying drawings and specific embodiments.It is understood that It is that specific embodiment described herein is used only for explaining the application, rather than the restriction to the application.It further needs exist for illustrating , part relevant to the application is illustrated only for ease of description, in attached drawing rather than entire infrastructure.
It should be mentioned that some exemplary embodiments are described as before exemplary embodiment is discussed in greater detail The processing or method described as flow chart.Although each step is described as the processing of sequence by flow chart, many of these Step can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of each step can be rearranged.When its operation The processing can be terminated when completion, it is also possible to have the additional step being not included in attached drawing.The processing can be with Corresponding to method, function, regulation, subroutine, subprogram etc..
Impedance curve is to refer to loudspeaker in input different frequency letter as the important indicator that can embody loudspeaker Number when show the curves of different impedance values, when the impedance curve calculation method of general loudspeaker is mainly all based on to one section Interior impedance is averaged, but this mode can not embody the state of loudspeaker in real time well.
Fig. 1 is the flow diagram that a kind of impedance curve provided by the embodiments of the present application determines method, and this method can be by Impedance curve determining device executes, and wherein the device can generally be can integrate by software and or hardware realization in terminal device In, also it can integrate in the equipment that other are equipped with operating system.As shown in Figure 1, this method comprises:
S110, the current signal and voltage signal for obtaining loudspeaker.
Loudspeaker is when playing audio, and with the flowing of audio, the current signal and voltage signal of loudspeaker can also occur Variation.The current signal of the loudspeaker may include the current data in a time interval, and the time interval can be one Frame, the quantity of included current data can be configured according to concrete application demand in each frame.Illustratively, the electricity Flowing signal may include N number of current data, current signal i (n)=[i1,i2,…in], wherein n=1,2 ... N, N=1024.
The voltage signal of the loudspeaker may include the voltage data of a time interval, and the time interval can be One frame, the quantity of included voltage data can be configured according to concrete application demand in each frame.Illustratively, described Voltage signal may include N number of voltage data, voltage signal u (n)=[u1,u2,…un], wherein n=1,2 ... N, N=1024.
S111, the present impedance Transfer Parameters that the loudspeaker is determined according to the current signal and the voltage signal are It is no to meet preset condition.
Wherein, the present impedance Transfer Parameters include the impedance data in current time section, can be the current of prediction The quantity of the impedance data of time interval, the impedance data can be opposite with the quantity of the current data included by current signal It answers.Initial present impedance Transfer Parameters can be the one group of impedance data estimated, and with subsequent iterative operation, it is current to hinder Anti- Transfer Parameters can constantly change.Illustratively, initial present impedance Transfer Parameters Z0(k)=[0,0,0 ... 0].Current resistance One group of impedance data for including in anti-Transfer Parameters, it can reflect the variable condition of the impedance of loudspeaker, so present impedance Transfer Parameters can determine the impedance curve for the loudspeaker estimated.
The preset condition is the variable condition for judging the true impedance of present impedance Transfer Parameters and loudspeaker Error range condition.Meet preset condition, then it represents that present impedance Transfer Parameters and the variable condition of true impedance Application condition is small, then the impedance curve for determining loudspeaker can be removed with present impedance Transfer Parameters;If not meeting preset condition, Indicate that the application condition of the variable condition of present impedance Transfer Parameters and true impedance is big, it is also necessary to transmit and join to present impedance Number is iterated update, to determine the impedance Transfer Parameters closer to the variable condition of true impedance.
The current signal and voltage signal are the current status and voltage status of actually measured loudspeaker, loudspeaker Impedance and voltage and voltage also have certain incidence relation, so the current signal and voltage signal of the loudspeaker can be with bodies The variable condition of the impedance of existing loudspeaker can determine the present impedance transmitting ginseng estimated according to current signal and voltage signal Whether number meets preset condition.
Optionally, the present impedance Transfer Parameters of the loudspeaker are determined according to the current signal and the voltage signal Whether meeting preset condition can be implemented by following manner:
Fourier transformation is carried out to the current signal and the voltage signal, to obtain frequency domain current signal and frequency domain electricity Press signal;The present impedance Transfer Parameters of the loudspeaker are determined according to the frequency domain current signal and the frequency domain voltage signal Whether preset condition is met.
The Fourier transformation can be Fast Fourier Transform (FFT), frequency domain current signal I (k)=FFT (i (n)), frequency domain electricity It presses signal U (k)=FFT (u (n)), wherein k=1,2 ... K, K are the sampled point on frequency domain, and K can be 1024.
Wherein, the current signal of acquired loudspeaker and voltage signal include the current data and voltage number in time domain According to so needing to carry out Fourier's variation to current signal and voltage signal, to obtain on current signal and frequency domain on frequency domain Voltage signal;The variable condition of the voltage on different frequency and the variation of the electric current on different frequency can be obtained, into And can determine whether present impedance Transfer Parameters meet preset condition according to frequency domain current signal and frequency domain voltage signal, impedance Variable condition, that is, impedance variable condition on a different frequency.
Optionally, the present impedance of the loudspeaker is determined according to the frequency domain current signal and the frequency domain voltage signal Whether Transfer Parameters meet preset condition can be implemented by following manner:
Voltage prediction signal is determined according to the frequency domain current signal and present impedance Transfer Parameters, determines the voltage The voltage error of prediction signal and the frequency domain voltage signal;If the voltage error is lower than default error threshold, it is determined that The present impedance Transfer Parameters meet preset condition.
Wherein, the present impedance Transfer Parameters include the impedance data of prediction, so according to electric current, impedance and voltage Relationship can calculate the voltage data to one group of prediction according to frequency domain electric current and present impedance Transfer Parameters, as voltage prediction Signal.Frequency domain voltage signal is the voltage data of actually measured loudspeaker, and voltage prediction signal and frequency domain voltage signal exist Certain error, that is, the error predicted;So the error between voltage prediction signal and frequency domain voltage signal can reflect currently The error of impedance Transfer Parameters and the variable condition of true impedance.If the voltage error is lower than default error threshold, table Show that the application condition between voltage prediction signal and frequency domain voltage signal according to determined by present impedance Transfer Parameters is small, currently Impedance Transfer Parameters and the error of the variable condition of true impedance are also smaller, it is possible to determine present impedance place of production parameter Meet preset condition.
If S112, the present impedance Transfer Parameters meet preset condition, according to the present impedance Transfer Parameters Determine the impedance curve of the loudspeaker.
If the present impedance Transfer Parameters meet preset condition, then it represents that present impedance Transfer Parameters and loudspeaker The variable condition of true impedance is very close, then can determine that the impedance of the loudspeaker is bent according to present impedance Transfer Parameters Line.
If S113, the present impedance Transfer Parameters do not meet preset condition, according to the voltage signal, described work as Preceding impedance Transfer Parameters and the current signal, which determine, updates impedance Transfer Parameters, using the update impedance Transfer Parameters as working as Preceding impedance Transfer Parameters, and return to the operation for executing the current signal and voltage signal that obtain loudspeaker.
Wherein, if present impedance Transfer Parameters do not meet preset condition, then it represents that present impedance Transfer Parameters and loudspeaking There are biggish errors between the variable condition of the true impedance of device, so needing to be iterated more impedance Transfer Parameters Newly.Update can be iterated to the present impedance Transfer Parameters according to current signal, voltage signal, to obtain updating impedance Transfer Parameters, will update Transfer Parameters as present impedance Transfer Parameters, and return execute obtain loudspeaker current signal with The operation of voltage signal, i.e., judge whether new present impedance Transfer Parameters meet preset condition again.So iteration is not stopped more New present impedance Transfer Parameters, until present impedance Transfer Parameters meet preset condition, available closer true impedance Variable condition present impedance Transfer Parameters.
Optionally, it is determined according to the voltage signal, the present impedance Transfer Parameters and the current signal and updates resistance Anti- Transfer Parameters can be implemented by following manner:
Calibration parameter is determined according to the voltage error and the frequency domain current signal, according to the calibration parameter to described Present impedance Transfer Parameters are calibrated, to obtain updating impedance Transfer Parameters.
Wherein, it can determine that the voltage error can be with the voltage signal of response prediction and frequency domain voltage according to described above The error of signal also can reflect the error of the variable condition of the true impedance of present impedance Transfer Parameters and loudspeaker, institute Can determine calibration parameter according to voltage error and the frequency domain current signal, which is the calibration in impedance dimension Parameter can calibrate present impedance Transfer Parameters according to the calibration parameter, to obtain updating impedance Transfer Parameters.
Optionally, determine that impedance curve can be implemented by following manner according to the present impedance Transfer Parameters:
The real part array of the present impedance Transfer Parameters is extracted, and impedance curve is determined according to the real part array, In, the present impedance Transfer Parameters are plural array.
The present impedance Transfer Parameters with being constantly iterated update by frequency domain voltage signal and frequency domain current signal, Present impedance Transfer Parameters are the impedance data of one group of plural number form, can be by extracting the real number in present impedance Transfer Parameters Part is used as real part array, and the real part array is to react the variable condition of the real number of the corresponding impedance of different frequency, so root Impedance curve can be determined according to the real part array.
Real part array Rt(k)=real (Zt(k)), wherein ZtIt (k) is present impedance Transfer Parameters, real () is to take real part, Finally obtained real part array Rt(k) it is one group of real number, impedance curve can be determined according to this group of real number.
A kind of impedance curve provided in the embodiment of the present application determines method, current signal and electricity including obtaining loudspeaker Press signal;Determine whether the present impedance Transfer Parameters of the loudspeaker meet according to the current signal and the voltage signal Preset condition;If the present impedance Transfer Parameters meet preset condition, determined according to the present impedance Transfer Parameters The impedance curve of the loudspeaker;If the present impedance Transfer Parameters do not meet preset condition, believed according to the voltage Number, the present impedance Transfer Parameters and the current signal determine and update impedance Transfer Parameters, by updates impedance transmitting Parameter returns to the operation for executing the current signal and voltage signal that obtain loudspeaker as present impedance Transfer Parameters.Pass through By adopting the above technical scheme, the impedance curve primarily determined can be adjusted according to current signal and voltage signal, keep impedance bent Line constantly close to true value, embodies the current state of loudspeaker.
Fig. 2 is the flow diagram that another impedance curve provided by the embodiments of the present application determines method, in above-mentioned implementation On the basis of technical solution provided by example, optionally, as shown in Fig. 2, this method comprises:
S120, the current signal and voltage signal for obtaining loudspeaker.
Specific embodiment can refer to associated description above, and details are not described herein.
S121, using the current signal as input signal, and be input to using the voltage signal as expected response Sef-adapting filter.
S122, Fourier transformation is carried out to the current signal and the voltage signal by the sef-adapting filter, To obtain frequency domain current signal and frequency domain voltage signal, and it is true according to the frequency domain current signal and the frequency domain voltage signal Whether the present impedance Transfer Parameters of the fixed loudspeaker meet preset condition.
The sef-adapting filter can be adaptive frequency domain filter, will according to the characteristic of adaptive frequency domain filter Current signal is as input signal, after voltage signal is input to adaptive frequency domain filter as expected response, adaptive-filtering Device can carry out Fourier transformation to the current signal and voltage signal, to obtain frequency domain current signal and frequency domain voltage signal. And according to frequency domain current signal and frequency domain voltage signal determine the loudspeaker present impedance Transfer Parameters whether meet it is pre- If condition.
As shown in figure 3, voltage signal is as desired signal input value adaptive-filtering using current signal as input signal Device.The sef-adapting filter includes Fourier transform unit, error calculation unit, adaptive unit and time-varying iterative filtering Device;Fourier transform unit is used to carry out frequency-domain transform to input signal and expected response, and error calculation unit is defeated for calculating The error of value and expected response after entering signal and the multiplication of time-varying iteration coefficient, adaptive unit are used for according to error and input Signal generates adjustment signal, and time-varying iterative filter is for being adjusted time-varying iteration coefficient according to adjustment signal, to obtain New time-varying iteration coefficient.Wherein, adaptive frequency domain filter is applied in determining impedance curve, time-varying iterative filter Present impedance Transfer Parameters described in time-varying iteration coefficient, that is, the embodiment of the present application, different present impedance Transfer Parameters form resistance Anti- transmission function.
Optionally, the present impedance of the loudspeaker is determined according to the frequency domain current signal and the frequency domain voltage signal Whether Transfer Parameters meet preset condition can be implemented by following manner:
Voltage prediction signal is determined according to the frequency domain current signal and present impedance Transfer Parameters, determines the voltage The voltage error of prediction signal and the frequency domain voltage signal;If the voltage error is lower than default error threshold, it is determined that The present impedance Transfer Parameters meet preset condition.
Wherein, voltage prediction signal is determined by the sef-adapting filter according to the following formula:
Yt(k)=It(k)Zt(k);
Voltage error is determined according to the following formula by the sef-adapting filter:
Et(k)=Ut(k)-Yt(k);
Wherein, ItIt (k) is frequency domain current signal, ZtIt (k) is present impedance Transfer Parameters, YtIt (k) is voltage prediction signal, UtIt (k) is frequency domain voltage signal, EtIt (k) is voltage error.
If S123, the sef-adapting filter are in convergence state, determined according to the present impedance Transfer Parameters The impedance curve of the loudspeaker.
Wherein, sef-adapting filter can continuous its internal filtering parameter of iteration, until sef-adapting filter enters receipts Hold back state, sef-adapting filter enter convergence state mean determined by voltage error already below default error threshold, into And the impedance curve of the loudspeaker can be determined according to present impedance Transfer Parameters.
If S124, the sef-adapting filter are not in convergence state, according to the voltage signal, the current resistance Anti- Transfer Parameters and the current signal, which determine, updates impedance Transfer Parameters, using the update impedance Transfer Parameters as current resistance Anti- Transfer Parameters, and return to the operation for executing the current signal and voltage signal that obtain loudspeaker.
Wherein, if the sef-adapting filter is not in convergence state, then it represents that the sef-adapting filter still in Also in the training stage, the voltage error is still higher than default error threshold for the iterative process of filtering parameter, i.e. sef-adapting filter, And then it needs to be iterated update to present impedance Transfer Parameters.
Believed by the sef-adapting filter according to the voltage signal, the present impedance Transfer Parameters and the electric current Number determine update impedance Transfer Parameters, using the update impedance Transfer Parameters as present impedance Transfer Parameters, and return to execution Obtain the operation of the current signal and voltage signal of loudspeaker.
Optionally, by the sef-adapting filter according to the voltage signal, the present impedance Transfer Parameters and institute It states current signal and determines that updating impedance Transfer Parameters can implement by following manner:
Voltage prediction signal is determined according to the frequency domain current signal and present impedance Transfer Parameters, and determines the voltage The voltage error of prediction signal and the frequency domain voltage signal, specific embodiment can refer to associated description above, herein It repeats no more.
It determines according to the following formula and updates impedance Transfer Parameters:
Wherein, ZtIt (k) is present impedance Transfer Parameters, ItIt (k) is frequency domain current signal,For frequency domain current signal Conjugate complex number, EtIt (k) is voltage error, Zt+1(k) to update impedance Transfer Parameters, k is frequency domain sample point, and u is described adaptive The convergence step-length of filter.Wherein, the u can take 0.1-0.2, can also use variable step, i.e., input newly with each Current signal and voltage signal are changed;It can be arranged according to demand in practical application.
The embodiment of the present application provides a kind of impedance curve and determines method, realizes by using sef-adapting filter to resistance The determination of anti-curve, by the time-varying coefficient of the continuous renewal iteration of sef-adapting filter, to make the present impedance transmitting of prediction Parameter becomes closer to true impedance curve, embodies the current state of loudspeaker.
Fig. 4 is a kind of structural block diagram of impedance curve determining device provided by the embodiments of the present application, which can execute Impedance curve determines method, as shown in figure 4, the device includes:
Signal acquisition module 210, for obtaining the current signal and voltage signal of loudspeaker;
Condition judgment module 211, for determining working as the loudspeaker according to the current signal and the voltage signal Whether preceding impedance Transfer Parameters meet preset condition;
Curve determining module 212 is worked as according to if meeting preset condition for the present impedance Transfer Parameters Preceding impedance Transfer Parameters determine the impedance curve of the loudspeaker;
Parameter adjustment module 213, if preset condition is not met for the present impedance Transfer Parameters, according to Voltage signal, the present impedance Transfer Parameters and the current signal, which determine, updates impedance Transfer Parameters, and the update is hindered Anti- Transfer Parameters return to the behaviour for executing the current signal and voltage signal that obtain loudspeaker as present impedance Transfer Parameters Make.
A kind of impedance curve determining device provided in the embodiment of the present application, current signal and electricity including obtaining loudspeaker Press signal;Determine whether the present impedance Transfer Parameters of the loudspeaker meet according to the current signal and the voltage signal Preset condition;If the present impedance Transfer Parameters meet preset condition, determined according to the present impedance Transfer Parameters The impedance curve of the loudspeaker;If the present impedance Transfer Parameters do not meet preset condition, believed according to the voltage Number, the present impedance Transfer Parameters and the current signal determine and update impedance Transfer Parameters, by updates impedance transmitting Parameter returns to the operation for executing the current signal and voltage signal that obtain loudspeaker as present impedance Transfer Parameters.Pass through By adopting the above technical scheme, the impedance curve primarily determined can be adjusted according to current signal and voltage signal, keep impedance bent Line constantly close to true value, embodies the current state of loudspeaker.
Optionally, condition judgment module is specifically used for:
Fourier transformation is carried out to the current signal and the voltage signal, to obtain frequency domain current signal and frequency domain electricity Press signal;
The present impedance transmitting ginseng of the loudspeaker is determined according to the frequency domain current signal and the frequency domain voltage signal Whether number meets preset condition.
Optionally, condition judgment module is specifically used for:
Voltage prediction signal is determined according to the frequency domain current signal and present impedance Transfer Parameters, determines the voltage The voltage error of prediction signal and the frequency domain voltage signal;
If the voltage error is lower than default error threshold, it is determined that the present impedance Transfer Parameters meet default item Part.
Optionally, parameter adjustment module is specifically used for:
Calibration parameter is determined according to the voltage error and the frequency domain current signal;
The present impedance Transfer Parameters are calibrated according to the calibration parameter, to obtain updating impedance transmitting ginseng Number.
Optionally, further includes:
Input module, for obtain loudspeaker current signal and voltage signal after, using the current signal as Input signal, and sef-adapting filter is input to using the voltage signal as expected response;
Condition judgment module is specifically used for:
Fourier transformation is carried out to the current signal and the voltage signal by the sef-adapting filter, to obtain Frequency domain current signal and frequency domain voltage signal, and according to the frequency domain current signal and frequency domain voltage signal determination Whether the present impedance Transfer Parameters of loudspeaker meet preset condition;If the sef-adapting filter is in convergence state, Determine that the present impedance Transfer Parameters meet preset condition.
Optionally, parameter adjustment module is specifically used for:
Voltage prediction signal is determined according to the frequency domain current signal and present impedance Transfer Parameters, and determines the voltage The voltage error of prediction signal and the frequency domain voltage signal;
It determines according to the following formula and updates impedance Transfer Parameters:
Wherein, ZtIt (k) is present impedance Transfer Parameters, ItIt (k) is frequency domain current signal,For frequency domain current signal Conjugate complex number, EtIt (k) is voltage error, Zt+1(k) to update impedance Transfer Parameters, k is frequency domain sample point, and u is described adaptive The convergence step-length of filter.
Optionally, curve determining module is specifically used for:
The real part array of the present impedance Transfer Parameters is extracted, and impedance curve is determined according to the real part array, In, the present impedance Transfer Parameters are plural array.
A kind of storage medium comprising computer executable instructions provided by the embodiment of the present application, computer are executable It instructs the impedance curve being not limited to the described above to determine operation, the song of impedance provided by the application any embodiment can also be performed Line determines the relevant operation in method.
The embodiment of the present application also provides a kind of storage medium comprising computer executable instructions, and the computer is executable Instruction determines method for executing impedance curve when being executed by computer processor, this method comprises:
Obtain the current signal and voltage signal of loudspeaker;
Determine whether the present impedance Transfer Parameters of the loudspeaker accord with according to the current signal and the voltage signal Close preset condition;
If the present impedance Transfer Parameters meet preset condition, institute is determined according to the present impedance Transfer Parameters State the impedance curve of loudspeaker;
If the present impedance Transfer Parameters do not meet preset condition, according to the voltage signal, the current resistance Anti- Transfer Parameters and the current signal, which determine, updates impedance Transfer Parameters, using the update impedance Transfer Parameters as current resistance Anti- Transfer Parameters, and return to the operation for executing the current signal and voltage signal that obtain loudspeaker.
Storage medium --- any various types of memory devices or storage equipment.Term " storage medium " is intended to wrap It includes: install medium, such as CD-ROM, floppy disk or magnetic tape equipment;Computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, blue Bath (Rambus) RAM etc.;Nonvolatile memory, such as flash memory, magnetic medium (such as hard disk or optical storage);Register or the memory component of other similar types etc..Storage medium can further include other Memory of type or combinations thereof.In addition, storage medium can be located at program in the first computer system being wherein performed, Or can be located in different second computer systems, second computer system is connected to the by network (such as internet) One computer system.Second computer system can provide program instruction to the first computer for executing." storage is situated between term Matter " may include may reside in different location (such as by network connection different computer systems in) two or More storage mediums.Storage medium can store the program instruction that can be performed by one or more processors and (such as implement For computer program).
The embodiment of the present application provides a kind of terminal device, and resistance provided by the embodiments of the present application can be integrated in the terminal device Anti- curve determining device.
Fig. 5 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application, and the embodiment of the present application provides one Kind of terminal device 30, including memory 31, processor 32 and are stored on memory 31 and can be in the computer of processor operation Program, the processor realize that impedance curve described in above-described embodiment determines method when executing the computer program.This Shen Please embodiment provide terminal device, the accuracy of impedance curve can be improved.
Fig. 6 is a kind of structural schematic diagram of terminal device provided by the embodiments of the present application.As shown in fig. 6, the terminal device May include: shell (not shown), touch screen (not shown), touch key-press (not shown), memory 301, Central processing unit (Central Processing Unit, CPU) 302 (also known as processor, hereinafter referred to as CPU), circuit board (figure In be not shown) and power circuit (not shown).The circuit board is placed in the space interior that the shell surrounds;It is described CPU302 and the memory 301 are arranged on the circuit board;The power circuit, for for each of the terminal device Circuit or device power supply;The memory 301, for storing executable program code;The CPU302 described in reading by depositing The executable program code stored in reservoir 301 runs computer program corresponding with the executable program code, with reality Existing following steps:
Obtain the current signal and voltage signal of loudspeaker;
Determine whether the present impedance Transfer Parameters of the loudspeaker accord with according to the current signal and the voltage signal Close preset condition;
If the present impedance Transfer Parameters meet preset condition, institute is determined according to the present impedance Transfer Parameters State the impedance curve of loudspeaker;
If the present impedance Transfer Parameters do not meet preset condition, according to the voltage signal, the current resistance Anti- Transfer Parameters and the current signal, which determine, updates impedance Transfer Parameters, using the update impedance Transfer Parameters as current resistance Anti- Transfer Parameters, and return to the operation for executing the current signal and voltage signal that obtain loudspeaker.
The terminal device further include: Peripheral Interface 303, RF (Radio Frequency, radio frequency) circuit 305, audio-frequency electric Road 306, loudspeaker 311, power management chip 308, input/output (I/O) subsystem 309, touch screen 312, other input/controls Control equipment 310 and outside port 304, these components are communicated by one or more communication bus or signal wire 307.
It should be understood that graphic terminal 300 is only an example of terminal device, and terminal device 300 It can have than shown in the drawings more or less component, can combine two or more components, or can be with It is configured with different components.Various parts shown in the drawings can include one or more signal processings and/or dedicated It is realized in the combination of hardware, software or hardware and software including integrated circuit.
Just the terminal device provided in this embodiment determined for realizing impedance curve is described in detail below, the end End equipment takes the mobile phone as an example.
Memory 301, the memory 301 can be accessed by CPU302, Peripheral Interface 303 etc., and the memory 301 can It can also include nonvolatile memory to include high-speed random access memory, such as one or more disk memory, Flush memory device or other volatile solid-state parts.
The peripheral hardware that outputs and inputs of equipment can be connected to CPU302 and deposited by Peripheral Interface 303, the Peripheral Interface 303 Reservoir 301.
I/O subsystem 309, the I/O subsystem 309 can be by the input/output peripherals in equipment, such as touch screen 312 With other input/control devicess 310, it is connected to Peripheral Interface 303.I/O subsystem 309 may include 3091 He of display controller For controlling one or more input controllers 3092 of other input/control devicess 310.Wherein, one or more input controls Device 3092 processed receives electric signal from other input/control devicess 310 or sends electric signal to other input/control devicess 310, Other input/control devicess 310 may include physical button (push button, rocker buttons etc.), dial, slide switch, behaviour Vertical pole clicks idler wheel.It is worth noting that input controller 3092 can with it is following any one connect: keyboard, infrared port, The indicating equipment of USB interface and such as mouse.
Touch screen 312, the touch screen 312 are the input interface and output interface between subscriber terminal equipment and user, Visual output is shown to user, visual output may include figure, text, icon, video etc..
Display controller 3091 in I/O subsystem 309 receives electric signal from touch screen 312 or sends out to touch screen 312 Electric signals.Touch screen 312 detects the contact on touch screen, and the contact that display controller 3091 will test is converted to and is shown The interaction of user interface object on touch screen 312, i.e. realization human-computer interaction, the user interface being shown on touch screen 312 Object can be the icon of running game, the icon for being networked to corresponding network etc..It is worth noting that equipment can also include light Mouse, light mouse are the extensions for the touch sensitive surface for not showing the touch sensitive surface visually exported, or formed by touch screen.
RF circuit 305 is mainly used for establishing the communication of mobile phone Yu wireless network (i.e. network side), realizes mobile phone and wireless network The data receiver of network and transmission.Such as transmitting-receiving short message, Email etc..Specifically, RF circuit 305 receives and sends RF letter Number, RF signal is also referred to as electromagnetic signal, and RF circuit 305 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to telecommunications Number, and communicated by the electromagnetic signal with communication network and other equipment.RF circuit 305 may include for executing The known circuit of these functions comprising but it is not limited to antenna system, RF transceiver, one or more amplifiers, tuner, one A or multiple oscillators, digital signal processor, CODEC (COder-DECoder, coder) chipset, user identifier mould Block (Subscriber Identity Module, SIM) etc..
Voicefrequency circuit 306 is mainly used for receiving audio data from Peripheral Interface 303, which is converted to telecommunications Number, and the electric signal is sent to loudspeaker 311.
Loudspeaker 311 is reduced to sound for mobile phone to be passed through RF circuit 305 from the received voice signal of wireless network And the sound is played to user.
Power management chip 308, the hardware for being connected by CPU302, I/O subsystem and Peripheral Interface are powered And power management.
The accuracy of impedance curve can be improved in terminal device provided by the embodiments of the present application.
It is any that the application can be performed in impedance curve determining device, storage medium and the terminal device provided in above-described embodiment Impedance curve provided by embodiment determines method, has and executes the corresponding functional module of this method and beneficial effect.Not upper The technical detail of detailed description in embodiment is stated, reference can be made to impedance curve provided by the application any embodiment determines method.
Note that above are only the preferred embodiment and institute's application technology principle of the application.It will be appreciated by those skilled in the art that The application is not limited to specific embodiment described here, be able to carry out for a person skilled in the art it is various it is apparent variation, The protection scope readjusted and substituted without departing from the application.Therefore, although being carried out by above embodiments to the application It is described in further detail, but the application is not limited only to above embodiments, in the case where not departing from the application design, also It may include more other equivalent embodiments, and scope of the present application is determined by the scope of the appended claims.

Claims (10)

1. a kind of impedance curve determines method characterized by comprising
Obtain the current signal and voltage signal of loudspeaker;
According to the current signal and the voltage signal determine the loudspeaker present impedance Transfer Parameters whether meet it is pre- If condition;
If the present impedance Transfer Parameters meet preset condition, raised according to present impedance Transfer Parameters determination The impedance curve of sound device;
If the present impedance Transfer Parameters do not meet preset condition, passed according to the voltage signal, the present impedance It passs parameter and the current signal determines and updates impedance Transfer Parameters, passed the update impedance Transfer Parameters as present impedance Parameter is passed, and returns to the operation for executing the current signal and voltage signal that obtain loudspeaker.
2. the method as described in claim 1, which is characterized in that according to the current signal and voltage signal determination Whether the present impedance Transfer Parameters of loudspeaker meet preset condition
Fourier transformation is carried out to the current signal and the voltage signal, to obtain frequency domain current signal and frequency domain voltage letter Number;
The present impedance Transfer Parameters for determining the loudspeaker according to the frequency domain current signal and the frequency domain voltage signal are It is no to meet preset condition.
3. method according to claim 2, which is characterized in that according to the frequency domain current signal and the frequency domain voltage signal Determine whether the present impedance Transfer Parameters of the loudspeaker meet preset condition and include:
Voltage prediction signal is determined according to the frequency domain current signal and present impedance Transfer Parameters, determines the voltage prediction The voltage error of signal and the frequency domain voltage signal;
If the voltage error is lower than default error threshold, it is determined that the present impedance Transfer Parameters meet preset condition.
4. method as claimed in claim 3, which is characterized in that according to the voltage signal, the present impedance Transfer Parameters It is determined with the current signal and updates impedance Transfer Parameters, comprising:
Calibration parameter is determined according to the voltage error and the frequency domain current signal;
The present impedance Transfer Parameters are calibrated according to the calibration parameter, to obtain updating impedance Transfer Parameters.
5. method according to claim 2, which is characterized in that after the current signal and voltage signal that obtain loudspeaker, also Include:
Using the current signal as input signal, and using the voltage signal as expected response it is input to adaptive-filtering Device;
According to the current signal and the voltage signal determine the loudspeaker present impedance Transfer Parameters whether meet it is pre- If condition, comprising:
Fourier transformation is carried out to the current signal and the voltage signal by the sef-adapting filter, to obtain frequency domain Current signal and frequency domain voltage signal, and the loudspeaking is determined according to the frequency domain current signal and the frequency domain voltage signal Whether the present impedance Transfer Parameters of device meet preset condition;
If the sef-adapting filter is in convergence state, it is determined that the present impedance Transfer Parameters meet preset condition.
6. method as claimed in claim 5, which is characterized in that described to be transmitted according to the voltage signal, the present impedance Parameter and the current signal, which determine, updates impedance Transfer Parameters, comprising:
Voltage prediction signal is determined according to the frequency domain current signal and present impedance Transfer Parameters, and determines the voltage prediction The voltage error of signal and the frequency domain voltage signal;
It determines according to the following formula and updates impedance Transfer Parameters:
Wherein, ZtIt (k) is present impedance Transfer Parameters, ItIt (k) is frequency domain current signal,For the conjugation of frequency domain current signal Plural number, EtIt (k) is voltage error, Zt+1(k) to update impedance Transfer Parameters, k is frequency domain sample point, and u is the adaptive-filtering The convergence step-length of device.
7. the method as described in right wants 1 to 6 any one, which is characterized in that determined according to the present impedance Transfer Parameters Impedance curve includes:
The real part array of the present impedance Transfer Parameters is extracted, and impedance curve is determined according to the real part array, wherein institute Present impedance Transfer Parameters are stated as plural array.
8. a kind of impedance curve determining device characterized by comprising
Signal acquisition module, for obtaining the current signal and voltage signal of loudspeaker;
Condition judgment module, for determining that the present impedance of the loudspeaker is passed according to the current signal and the voltage signal Pass whether parameter meets preset condition;
Curve determining module, if meeting preset condition for the present impedance Transfer Parameters, according to the present impedance Transfer Parameters determine the impedance curve of the loudspeaker;
Parameter adjustment module is believed if not meeting preset condition for the present impedance Transfer Parameters according to the voltage Number, the present impedance Transfer Parameters and the current signal determine and update impedance Transfer Parameters, by updates impedance transmitting Parameter returns to the operation for executing the current signal and voltage signal that obtain loudspeaker as present impedance Transfer Parameters.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor It is realized when row as impedance curve of any of claims 1-7 determines method.
10. a kind of terminal device, which is characterized in that including memory, processor and storage are on a memory and can be in processor The computer program of operation, which is characterized in that the processor realizes that claim 1-7 such as appoints when executing the computer program Impedance curve described in one determines method.
CN201811258377.1A 2018-10-26 2018-10-26 Impedance curve determination method and device, storage medium and terminal equipment Active CN109089190B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811258377.1A CN109089190B (en) 2018-10-26 2018-10-26 Impedance curve determination method and device, storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811258377.1A CN109089190B (en) 2018-10-26 2018-10-26 Impedance curve determination method and device, storage medium and terminal equipment

Publications (2)

Publication Number Publication Date
CN109089190A true CN109089190A (en) 2018-12-25
CN109089190B CN109089190B (en) 2021-05-18

Family

ID=64844291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811258377.1A Active CN109089190B (en) 2018-10-26 2018-10-26 Impedance curve determination method and device, storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN109089190B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654799A (en) * 2019-12-31 2020-09-11 广州励丰文化科技股份有限公司 Loudspeaker unit identification method and device
CN112887893A (en) * 2021-02-03 2021-06-01 北京小米移动软件有限公司 Loudspeaker using method, device and medium
CN115550829A (en) * 2022-11-28 2022-12-30 杭州兆华电子股份有限公司 Method and system for testing T/S parameters of loudspeaker

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196336A (en) * 2010-03-17 2011-09-21 哈曼国际工业有限公司 Audio power management system
CN104635050A (en) * 2013-11-08 2015-05-20 瑞昱半导体股份有限公司 Impedance detection device and method
CN106068007A (en) * 2016-06-07 2016-11-02 瑞声科技(新加坡)有限公司 Nonlinear loudspeaker system identifying method
CN106454679A (en) * 2016-11-17 2017-02-22 矽力杰半导体技术(杭州)有限公司 Loudspeaker diaphragm state estimation method, and loudspeaker drive circuit using the same
CN107484081A (en) * 2017-07-27 2017-12-15 努比亚技术有限公司 A kind of method of adjustment of audio signal, device, terminal and computer-readable recording medium
CN107734427A (en) * 2017-09-13 2018-02-23 广州市迪士普信息科技有限公司 A kind of guard method and device according to voice coil loudspeaker voice coil temperature rise adjust automatically speaker volume
CN108307284A (en) * 2017-12-29 2018-07-20 青岛海信移动通信技术股份有限公司 A kind of method, device and mobile terminal of automatic detection loud speaker

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102196336A (en) * 2010-03-17 2011-09-21 哈曼国际工业有限公司 Audio power management system
CN104635050A (en) * 2013-11-08 2015-05-20 瑞昱半导体股份有限公司 Impedance detection device and method
CN106068007A (en) * 2016-06-07 2016-11-02 瑞声科技(新加坡)有限公司 Nonlinear loudspeaker system identifying method
CN106454679A (en) * 2016-11-17 2017-02-22 矽力杰半导体技术(杭州)有限公司 Loudspeaker diaphragm state estimation method, and loudspeaker drive circuit using the same
CN107484081A (en) * 2017-07-27 2017-12-15 努比亚技术有限公司 A kind of method of adjustment of audio signal, device, terminal and computer-readable recording medium
CN107734427A (en) * 2017-09-13 2018-02-23 广州市迪士普信息科技有限公司 A kind of guard method and device according to voice coil loudspeaker voice coil temperature rise adjust automatically speaker volume
CN108307284A (en) * 2017-12-29 2018-07-20 青岛海信移动通信技术股份有限公司 A kind of method, device and mobile terminal of automatic detection loud speaker

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111654799A (en) * 2019-12-31 2020-09-11 广州励丰文化科技股份有限公司 Loudspeaker unit identification method and device
CN112887893A (en) * 2021-02-03 2021-06-01 北京小米移动软件有限公司 Loudspeaker using method, device and medium
CN115550829A (en) * 2022-11-28 2022-12-30 杭州兆华电子股份有限公司 Method and system for testing T/S parameters of loudspeaker
CN115550829B (en) * 2022-11-28 2023-02-28 杭州兆华电子股份有限公司 Method and system for testing T/S parameters of loudspeaker

Also Published As

Publication number Publication date
CN109089190B (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN109119093A (en) Voice de-noising method, device, storage medium and mobile terminal
CN109379678B (en) Nonlinear compensation method, nonlinear compensation device, storage medium and terminal equipment
CN109089190A (en) Impedance curve determines method, apparatus, storage medium and terminal device
CN109147818A (en) Acoustic feature extracting method, device, storage medium and terminal device
CN108810749B (en) Player control method, device, terminal equipment and storage medium
CN107343076A (en) Volume adjusting method, device, storage medium and mobile terminal
CN108932124A (en) neural network model compression method, device, terminal device and storage medium
CN107944259A (en) Using the management-control method of startup, device and storage medium and mobile terminal
CN107526569B (en) A kind of volume adjusting method, device, storage medium and mobile terminal
CN107040661A (en) Control method, device and the mobile terminal of mobile terminal playing volume
CN107508983B (en) Volume adjusting method and device, storage medium and terminal equipment
CN109104203A (en) Communication means, electronic device and computer readable storage medium
CN107766546B (en) Application recommendation method and device, storage medium and terminal equipment
CN107404753A (en) Volume adjusting method, device, terminal and storage medium
CN107799113A (en) Audio-frequency processing method, device, storage medium and mobile terminal
CN110599989A (en) Audio processing method, device and storage medium
CN109119097B (en) Pitch detection method, device, storage medium and mobile terminal
CN108886548B (en) Method for determining device power consumption of electronic equipment, electronic equipment and storage medium
CN110730948A (en) Volume adjusting method and device, storage medium and mobile terminal
CN114785363A (en) Noise compensation method, device, electronic equipment and computer readable storage medium
CN108513003A (en) Desktop icons method of adjustment, device, terminal device and storage medium
CN107493380A (en) volume adjusting method, device, storage medium and terminal device
WO2024027246A1 (en) Sound signal processing method and apparatus, and electronic device and storage medium
CN106101361B (en) Display methods, device and the mobile phone of cell phone address book
CN108055706A (en) wireless network connection control method, device, storage medium and terminal device

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
GR01 Patent grant
GR01 Patent grant