[go: up one dir, main page]

CN106775558B - Method and device for obtaining earphone optimization parameters and audio providing method and system - Google Patents

Method and device for obtaining earphone optimization parameters and audio providing method and system Download PDF

Info

Publication number
CN106775558B
CN106775558B CN201611076230.1A CN201611076230A CN106775558B CN 106775558 B CN106775558 B CN 106775558B CN 201611076230 A CN201611076230 A CN 201611076230A CN 106775558 B CN106775558 B CN 106775558B
Authority
CN
China
Prior art keywords
impedance array
impedance
reference impedance
array
earphone
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
CN201611076230.1A
Other languages
Chinese (zh)
Other versions
CN106775558A (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.)
Hisense Mobile Communications Technology Co Ltd
Original Assignee
Hisense Mobile Communications 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 Hisense Mobile Communications Technology Co Ltd filed Critical Hisense Mobile Communications Technology Co Ltd
Priority to CN201611076230.1A priority Critical patent/CN106775558B/en
Publication of CN106775558A publication Critical patent/CN106775558A/en
Application granted granted Critical
Publication of CN106775558B publication Critical patent/CN106775558B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/16Sound input; Sound output
    • G06F3/162Interface to dedicated audio devices, e.g. audio drivers, interface to CODECs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Circuit For Audible Band Transducer (AREA)

Abstract

The invention discloses a method and a device for obtaining optimized parameters of an earphone, and a method and a system for providing audio, wherein the method comprises the following steps: generating a sweep frequency audio signal, amplifying the sweep frequency audio signal, and driving an earphone by using the amplified sweep frequency audio signal; sampling a loudspeaker end of the earphone, and generating an impedance array of the earphone according to the sampling result, wherein the data structure of the impedance array corresponds to the data structure of a preset earphone type reference impedance array set; and comparing the impedance array with a reference impedance array set, and determining the optimization parameters of the earphone according to the comparison result. The method disclosed by the embodiment of the invention effectively determines the optimization parameters of the current earphone configured by the terminal, and then provides the matched audio signal for the earphone according to the preset optimization parameters.

Description

Method and device for obtaining earphone optimization parameters and audio providing method and system
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for acquiring optimized parameters of an earphone and an audio providing method and system.
Background
Earphones, which are a common audio device, have become standard configurations for various terminals, and if an audio signal output from the terminal matches the inherent technical characteristics of the earphones, an optimal sound effect can be obtained. However, any type of earphone product has its own technical standard, and different types or models of earphones have different technical characteristics due to different materials, cavity structures and the like; the same type of headset may also have different technical characteristics due to the lack of standardization in design or production; in addition, even the same type of earphone has different technical characteristics due to different parts and errors generated in the manufacturing process, which makes it difficult to ensure that the audio signal output by the earphone can be matched with all types of earphone products in the terminal design and production process. Therefore, in order to enable the terminal to provide the optimal sound effect for the configured earphones, many terminals, especially mobile or intelligent terminals, may be configured with optimized parameters suitable for different types of earphones, so that the terminal is expected to adjust the characteristics of the output audio signal to a degree matching with the technical characteristics of the earphones.
This creates a problem as to how can the terminal know the type or technical characteristics of the headset? Some terminals provide a method of manual selection to know the type of headset connected. For example, fig. 1 shows a headset type selection interface provided by an intelligent terminal. As can be seen from fig. 1, a user may manually select preset optimization parameters matched with the type of the earphone according to the type of the used earphone, so that the intelligent terminal can provide an audio signal matched with technical characteristics for the earphone, so as to improve the quality of the output sound quality of the earphone.
The drawbacks of manual selection of the earphone type are very obvious, inefficiency and possible selection errors. As an improvement, the prior art provides a scheme for automatically identifying the type of an earphone, which determines a ground area and a microphone area of the earphone by detecting a circuit state between a sound channel area and an adjacent area of the earphone, and makes the ground area and the microphone area of the earphone respectively butt-joint with a ground terminal and a microphone terminal of an earphone system in an electronic device; however, these schemes can only identify the types of earphones based on different physical structures, and these schemes cannot be used to effectively determine the optimized parameters of the current earphones configured by the terminal, so that it is difficult to provide the earphones with matched audio signals according to the preset optimized parameters.
Disclosure of Invention
The invention aims to provide a method and a device for acquiring optimized parameters of an earphone, and a method and a system for providing audio, so as to solve the problem that the existing terminal cannot effectively determine the optimized parameters of the current earphone configured by the terminal, so that matched audio signals are difficult to provide for the earphone according to the preset optimized parameters.
In a first aspect, an embodiment of the present invention provides a method for obtaining optimized parameters of an earphone, including:
generating a sweep frequency audio signal, amplifying the sweep frequency audio signal, and driving an earphone by using the amplified sweep frequency audio signal;
sampling a loudspeaker end of the earphone, and generating an impedance array of the earphone according to the sampling result, wherein the data structure of the impedance array corresponds to the data structure of a preset earphone type reference impedance array set;
and comparing the impedance array with a reference impedance array set, and determining the optimization parameters of the earphone according to the comparison result.
In a second aspect, an embodiment of the present invention provides an apparatus for obtaining an optimized parameter of an earphone, including a memory storing a reference impedance array set, an operation controller connected to the memory, a signal generator connected to the operation controller, a driving amplifier connected to the signal generator, and a signal collector connected to the operation controller; wherein:
the signal generator is used for generating a sweep frequency audio signal according to the control signal of the operation controller;
the drive amplifier is used for amplifying the sweep frequency audio signal and outputting the amplified sweep frequency audio signal to drive the earphone;
the signal collector is used for sampling the loudspeaker end of the earphone and outputting a sampling result;
the operation controller is used for generating an impedance array of the earphone according to the sampling result output by the signal collector, comparing the impedance array with a reference impedance array set, and determining the optimization parameters of the earphone according to the comparison result; and the data structure of the impedance array corresponds to the data structure of the preset earphone type reference impedance array.
In a third aspect, an embodiment of the present invention provides an audio providing method, where the method includes:
generating a sweep frequency audio signal, amplifying the sweep frequency audio signal, and driving an earphone by using the amplified sweep frequency audio signal;
sampling a loudspeaker end of the earphone, and generating an impedance array of the earphone according to the sampling result, wherein the data structure of the impedance array corresponds to the data structure of a preset earphone type reference impedance array set;
comparing the impedance array with a reference impedance array set, and determining the optimization parameters of the earphone according to the comparison result;
adjusting an audio signal using the optimized parameters of the headset, and driving the headset with the adjusted audio signal.
In a fourth aspect, an embodiment of the present invention provides an audio providing system, including an audio signal decoding apparatus, and a filter gain apparatus connected to the audio signal decoding apparatus and an earphone connected to the filter gain apparatus, the system further including:
the device comprises a memory, an operation controller, a signal generator, a driving amplifier and a signal collector, wherein the memory stores a reference impedance array set, the operation controller is connected with the memory, the signal generator is connected with the operation controller, the driving amplifier is connected with the signal generator, and the signal collector is connected with the operation controller; wherein:
the signal generator is used for generating a sweep frequency audio signal according to the control signal of the operation controller;
the drive amplifier is used for amplifying the sweep frequency audio signal and outputting the amplified sweep frequency audio signal to drive the earphone;
the signal collector is used for sampling the loudspeaker end of the earphone and outputting a sampling result;
the operation controller is used for generating an impedance array of the earphone according to the sampling result output by the signal collector, comparing the impedance array with a reference impedance array set, and determining the optimization parameters of the earphone according to the comparison result; the data structure of the impedance array corresponds to the data structure of a preset earphone type reference impedance array;
the filtering gain device receives the optimized parameter adjustment audio signal output by the operation controller, and drives the earphone by the adjusted audio signal.
The technical scheme shows that the invention discloses a method and a device for obtaining optimized parameters of an earphone and a method and a system for providing audio, wherein the method comprises the following steps: generating a sweep frequency audio signal, amplifying the sweep frequency audio signal, and driving an earphone by using the amplified sweep frequency audio signal; sampling a loudspeaker end of the earphone, and generating an impedance array of the earphone according to the sampling result, wherein the data structure of the impedance array corresponds to the data structure of a preset earphone type reference impedance array set; and comparing the impedance array with a reference impedance array set, and determining the optimization parameters of the earphone according to the comparison result. When the earphone is inserted into the terminal, the terminal generates an impedance array of the earphone, the terminal traverses a pre-stored reference impedance array set, searches a reference impedance array matched with the impedance array, and determines an optimization parameter corresponding to the reference impedance array as an optimization parameter of the earphone; and adjusting the audio signal by using the optimized parameters of the earphone, and driving the earphone by using the adjusted audio signal. The terminal can effectively determine the optimization parameters of the current earphone configured by the terminal by using the method disclosed by the embodiment of the invention, and then provides the matched audio signal for the earphone according to the preset optimization parameters.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
FIG. 1 is a diagram of a headset type selection interface provided by a smart terminal;
fig. 2 is a block diagram showing a configuration of an audio providing system according to a preferred embodiment of the present invention;
fig. 3 is a flow chart of a method for obtaining optimized parameters of a headset according to a preferred embodiment of the present invention;
FIG. 4 is a detailed flowchart of step S3 according to a preferred embodiment of the present invention;
FIG. 5 is a detailed flowchart of step S313 according to a preferred embodiment of the present invention;
FIG. 6 is a primary impedance curve for the HIFIMan HE56 earpiece shown in accordance with a preferred embodiment of the present invention;
FIG. 7 is a primary impedance curve for a Vsonic VSD3s headphone shown in a preferred embodiment of the present invention;
fig. 8 is a detailed flowchart of step S3 according to another preferred embodiment of the present invention;
FIG. 9 is a detailed flowchart of step S323 according to a preferred embodiment of the present invention;
fig. 10 is a block diagram illustrating an apparatus for obtaining optimized parameters of a headset according to a preferred embodiment of the present invention;
fig. 11 is a flowchart illustrating an audio providing method according to a preferred embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
The method for obtaining the optimized parameters of the earphones, which is disclosed by the embodiment of the invention, can be applied to devices at least comprising an audio providing system and the optimized parameters of the earphones, such as mobile phones, computers, MP3 and other terminals.
Fig. 2 is a block diagram of an audio providing system according to a preferred embodiment of the present invention, where the system shown in fig. 2 includes an audio signal decoding apparatus 106, a filter gain apparatus 107 connected to the audio signal decoding apparatus 106, and an earphone 108 connected to the filter gain apparatus 107, and the system further includes:
a memory 101 storing a reference impedance array set, an operation controller 105 connected to the memory 101, a signal generator 102 connected to the operation controller 105, a driving amplifier 103 connected to the signal generator 102, and a signal collector 104 connected to the operation controller 105; wherein:
the signal generator 102 is configured to generate a frequency sweep audio signal according to the control signal of the operation controller 105;
the driving amplifier 103 is configured to amplify the frequency sweep audio signal, and output the amplified frequency sweep audio signal to drive the earphone 108;
the signal collector 104 is configured to sample a speaker end of the earphone 108 and output a sampling result;
the operation controller 105 is configured to generate an impedance array of the earphone 108 according to the sampling result output by the signal collector 104, compare the impedance array with a reference impedance array set, and determine an optimization parameter of the earphone 108 according to the comparison result; the data structure of the impedance array corresponds to the data structure of a preset earphone type reference impedance array;
the filter gain device 107 is configured to receive the optimized parameter adjustment audio signal output by the calculation controller 105, and drive the earphone 108 with the adjusted audio signal.
The method aims to solve the problem that the existing terminal cannot effectively determine the optimization parameters of the current earphone configured by the terminal, so that the matched audio signal is difficult to provide for the earphone according to the preset optimization parameters. The embodiment of the invention provides a method for obtaining optimized parameters of an earphone, which comprises the following steps: when the earphone is inserted into the terminal, the terminal generates an impedance array of the earphone, the terminal traverses a pre-stored reference impedance array set, searches a reference impedance array matched with the impedance array, and determines the current optimization parameters of the earphone according to the reference impedance array; adjusting an audio signal using the optimized parameters of the headset, and driving the headset with the adjusted audio signal.
Because different types of earphones are made of different materials and different cavities, for the same audio signal, the different types of earphones have different impedance values at different frequency points, so that an impedance array can be constructed according to different frequencies and impedance values corresponding to the frequencies, the impedance array can be used as a label of one identity of the earphones, the type of the earphones can be identified by accurately measuring the impedance array of the earphones, and then the optimized parameters corresponding to the earphones are called; firstly, storing a reference impedance array which is measured in advance in a memory to form a reference impedance array set, wherein each reference impedance array corresponds to an optimization parameter; through the impedance array of discernment different grade type earphone, and then transfer different optimization parameters, utilize optimization parameter adjustment audio signal, with the audio signal drive after the adjustment the earphone, and then improve the tone quality of earphone, improve user experience.
Fig. 3 is a flowchart illustrating a method for obtaining optimized parameters of a headset according to an embodiment of the present invention, where the processing steps of the method include:
step S1: generating a sweep frequency audio signal, amplifying the sweep frequency audio signal, and driving an earphone by using the amplified sweep frequency audio signal;
and when the terminal detects that the earphone is inserted, the terminal judges whether the automatic earphone identification function is started or not. If the user does not open the automatic identification function, the system automatically calls the default parameters, and the function is finished. If the user turns on the automatic identification function of the earphone, the signal generator generates a frequency sweep audio signal, amplifies the frequency sweep audio signal and drives the earphone to work by using the amplified frequency sweep audio signal.
Step S2, sampling the speaker end of the earphone, and generating an impedance array of the earphone according to the sampling result, wherein the data structure of the impedance array corresponds to the data structure of a preset earphone type reference impedance array set;
when a constant current flows through the loudspeaker of the earphone, because of the existence of the impedance of the loudspeaker of the earphone, a voltage is generated at two ends of the loudspeaker of the earphone, and the voltage is collected by the signal collector, subjected to digital-to-analog conversion and filtering processing, and then sent back to the operation controller. The operation controller can calculate the impedance value of the loudspeaker of the earphone according to the two physical quantities of the acquired voltage and the current of the constant current source.
Because the impedance value of the loudspeaker of the earphone changes along with the change of the frequency sweeping audio signal, an impedance array can be constructed according to different frequencies and impedance values corresponding to the frequencies. And acquiring impedance values corresponding to different frequency points to form an impedance array. The operation controller can adjust the sampling frequency according to the requirement. Such as may be sampled at 1/12 octaves or 1/24 octaves; the specific sampling frequency interval is determined by the sampling frequency interval of the reference impedance array.
The set of reference impedance arrays is pre-stored before performing step S2. When a reference impedance array set is constructed, the sampling frequency range of the terminal is adjusted according to requirements, and the acquisition mode of the reference impedance array set is the same as that of the earphone reference array.
The specific sampling frequency of the reference array is determined by the data structure of the reference impedance array set, 1/12 octave sampling is adopted when the reference impedance array set is constructed, 1/12 octave sampling is adopted in the impedance array sampling process, and therefore the data structure of the impedance array is ensured to correspond to the data structure of the preset earphone type reference impedance array set.
The signal collector samples the loudspeaker end of the earphone and outputs the sampling result; and the operation controller generates an impedance array of the earphone according to the sampling result output by the signal collector.
Step S3 compares the impedance array with a reference impedance array set, and determines the optimization parameters of the headphone according to the comparison result.
Each reference impedance array corresponds to an optimized parameter, the reference impedance array matched with the current earphone is determined, the optimized parameter of the current earphone can be determined, the audio signal is adjusted by using the optimized parameter of the current earphone, and the adjusted audio signal is used for driving the earphone.
The amplified sweep frequency audio signal is a sweep frequency audio signal subjected to constant current amplification processing.
In this embodiment, the sweep frequency audio signal is processed by using a constant current amplification processing method, that is, a processing procedure of constant current and increasing voltage value, and in addition, the method for amplifying the sweep frequency audio signal further includes a constant voltage amplification processing method, and a mixed method of constant current amplification processing and constant voltage amplification processing. The embodiment of the invention preferentially adopts the constant current amplification processing method to process the frequency sweep audio signal, and because the driving current is very small when the constant current amplification processing method processes the frequency sweep audio signal, the earphone basically has no sound, thereby improving the experience degree of a user; when the sweep frequency audio signal processed by the constant voltage amplification is adopted, the earphone needs to make an audible sound, which affects the user experience.
Example two
The operation controller compares the impedance array with a reference impedance array set, determines the optimization parameters of the earphone according to the comparison result, and in order to ensure the accuracy of the comparison result, the embodiment of the invention shows a variance comparison method; FIG. 4 is a detailed flow chart diagram of S3 according to a preferred embodiment of the present invention; specifically, step S3 in the first embodiment may include the following steps:
step S311 calculates an average value of the impedance values of the impedance array and an average value of the impedance value of each reference impedance array in the reference impedance array set;
firstly, calculating the average value of the impedance values of the impedance arrays, and respectively calculating the average value of the impedance values of each reference impedance array; to increase the comparison rate, the average value of the impedance values of each reference impedance array may be calculated in advance and stored in the reference impedance array set.
Step S312, traversing the reference impedance array set, screening out a reference impedance array of which the difference value between the impedance value average value of the reference impedance array and the impedance value average value of the impedance array is smaller than a first average preset threshold value, and generating a new reference impedance array set;
calculating the difference value between the average value of the impedance values of the reference impedance array and the average value of the impedance values of the impedance array, screening out the reference impedance array of which the difference value between the average value of the impedance values of the reference impedance array and the average value of the impedance values of the impedance array is smaller than a first average preset threshold value, and generating a new reference impedance array set;
step S313, traversing the new reference impedance array set, calculating the variance of the impedance array and each reference impedance array in the new reference impedance array set, and selecting the minimum variance;
the number of the reference impedance arrays in the new reference impedance array set is far less than that of the reference impedance arrays in the reference impedance array set, so that the calculation amount of the terminal can be reduced and the comparison speed can be increased in the process of calculating the variance of each reference impedance array in the impedance array and the new reference impedance array set.
Step S314, judging whether the minimum variance is less than or equal to a variance preset threshold value;
if the minimum variance is less than or equal to the variance preset threshold, step S315 is executed to determine that the optimization parameter corresponding to the reference impedance array with the minimum variance is the optimization parameter of the earphone.
If the minimum variance is smaller than or equal to the variance preset threshold, the impedance array of the earphone is successfully matched with the reference impedance array of the current earphone; and selecting the optimization parameters corresponding to the reference impedance array with the minimum variance as the optimization parameters of the current earphone, adjusting the audio signals by using the optimization parameters of the earphone, and driving the earphone by using the adjusted audio signals.
If the minimum variance is greater than the variance preset threshold, executing step S316 to display a prompt interface for prompting whether to adjust the filter gain parameter;
when the minimum variance is larger than a variance preset threshold, a prompt interface for prompting whether to adjust the filter gain parameter or not is popped up on a display interface of the terminal; the user can select whether to adjust the filter gain parameter according to the requirement.
Step S317, receiving filter gain parameter adjustment feedback information acquired from the prompt interface;
when the filter gain parameter adjustment feedback information is an adjustment filter gain parameter, step S318 is executed to determine the adjusted filter gain parameter as an optimized parameter of the earphone, and the impedance array of the current earphone is stored in the impedance array set.
Further, in order to reduce the calculation amount of the terminal, the embodiment of the invention shows a variance characteristic frequency point comparison method; FIG. 5 is a detailed flow chart of S313 according to another preferred embodiment of the present invention; specifically, step S313 in the second embodiment may include the following steps:
step S3131 selecting a characteristic frequency point;
in the matching process, all frequency points can be selected according to the operational capability of the operational controller, and part of the frequency points with characteristics can be selected according to conditions, wherein the characteristic frequency points can be selected to be impedance values near the maximum value of the impedance values in the impedance array and impedance values near the minimum value of the impedance values; FIG. 6 is an impedance curve constructed from an impedance array of the HIFIMan HE56, wherein the abscissa is frequency and the ordinate is impedance value; it can be seen that the frequency corresponding to the maximum value of the HIFIMan HE56 impedance array is 800Hz, and we can select a frequency point near 800Hz as a characteristic frequency point.
Another method for selecting characteristic frequency points is to select frequency points at two ends of linear audio line number frequency as characteristic frequency points, and select characteristic frequency points at a middle frequency point according to a certain rule; as shown in fig. 7, an impedance curve constructed according to a Vsonic VSD3s impedance array shows that the scanning frequency range of the sweep audio signal is 10Hz to 20kHz, and the difference between the maximum value and the minimum value of the Vsonic VSD3s impedance value is not obvious, in this case, we select frequency points at two ends, 10Hz and 20kHz as characteristic frequency points, respectively select 100Hz, 1000Hz and 10000Hz as characteristic frequency points in the middle, and select the characteristic frequency points, so that the speed of increasing and comparing the calculated amount of the terminal can be reduced.
Step S3132, traversing the new reference impedance array set, and calculating an impedance difference value between the impedance array and the corresponding characteristic frequency point in the new reference impedance array to generate an impedance difference array;
step S3133 calculates a variance of the impedance difference group.
Screening out the impedance value corresponding to the characteristic frequency point in the impedance array and the current earphone, simultaneously screening out the impedance value corresponding to the characteristic frequency point in each reference impedance array, respectively calculating the impedance difference value corresponding to the characteristic frequency point of each reference impedance array in the impedance array and the new reference impedance array set, and generating an impedance difference array; calculating the variance of the impedance difference array, and selecting the minimum variance; and determining the optimized parameters corresponding to the reference impedance array with the minimum variance as the optimized parameters of the earphone.
EXAMPLE III
In order to reduce the calculation amount of the terminal, another embodiment of the present invention shows an average value comparison method; as shown in fig. 8; specifically, step S3 in the first embodiment may include the following steps:
step S321 calculates an average value of the impedance values of the impedance array and an average value of the impedance value of each reference impedance array in the reference impedance array set;
step S322, traversing the reference impedance array set, screening out a reference impedance array of which the difference value between the impedance value average value of the reference impedance array and the impedance value average value of the impedance array is smaller than a first average preset threshold value, and generating a new reference impedance array set;
step S323, traversing the new reference impedance array set, calculating an average value of the difference values of the impedance array and each reference impedance array in the new reference impedance array set, and selecting a minimum average value;
step S324 determines whether the minimum average value is less than or equal to a second average value preset threshold;
if the minimum average value is less than or equal to a second preset average value threshold, step 325 is executed to determine that the optimized parameter corresponding to the reference impedance array with the minimum average value is the optimized parameter of the earphone.
In the embodiment of the invention, in order to reduce the calculation amount of the terminal and improve the comparison speed, the impedance value corresponding to each frequency point in the impedance array is respectively differenced with the impedance value corresponding to each frequency point in each reference impedance array in the new reference impedance array set; then calculating the average value of the difference values; selecting a minimum average value; and judging whether the minimum average value is less than or equal to a second average value preset threshold value, and if the minimum average value is less than or equal to the second average value preset threshold value, determining that the optimization parameters corresponding to the reference impedance array of the minimum average value are selected as the optimization parameters of the earphone.
In order to further reduce the calculation amount of the terminal, the embodiment of the present invention shows an average characteristic frequency point comparison method, which is shown in fig. 9; specifically, the step S323 in the third embodiment may include the following steps:
step 3231, selecting characteristic frequency points;
step 3232, traversing the new reference impedance array set, calculating an impedance difference value between the impedance array and a characteristic frequency point in the new reference impedance array, and generating an impedance difference array;
step 3233 calculates the average of the array of impedance differences.
Screening out the impedance value corresponding to the current earphone by the characteristic frequency point in the impedance array, screening out the impedance value corresponding to the characteristic frequency point in each reference impedance array, calculating the impedance difference value corresponding to the characteristic frequency point in the impedance array and the new reference impedance array, and generating an impedance difference array; calculating the average value of the impedance difference array, and selecting the minimum average value; and judging whether the minimum average value is less than or equal to a second average value preset threshold value, and if the minimum average value is less than or equal to the second average value preset threshold value, determining that the optimization parameters corresponding to the reference impedance array of the minimum average value are selected as the optimization parameters of the earphone.
Fig. 10 is a block diagram of a structure of an apparatus for obtaining optimized parameters of an earphone according to an embodiment of the present invention, where the apparatus shown in fig. 10 includes a memory 101 storing a reference impedance array set, an operation controller 105 connected to the memory 101, a signal generator 102 connected to the operation controller 105, a driving amplifier 103 connected to the signal generator 102, and a signal collector 104 connected to the operation controller 105; wherein:
the signal generator 102 is configured to generate a frequency sweep audio signal according to the control signal of the operation controller 105;
the driving amplifier 103 is configured to amplify the frequency sweep audio signal, and output the amplified frequency sweep audio signal to drive the earphone 108;
the signal collector 104 is configured to sample a speaker end of the earphone 108 and output a sampling result;
the operation controller 105 is configured to generate an impedance array of the earphone 108 according to the sampling result output by the signal collector 104, compare the impedance array with a reference impedance array set, and determine an optimization parameter of the earphone 108 according to the comparison result; wherein the data structure of the impedance array corresponds to the data structure of the preset earphone 108 type reference impedance array.
The device executing component for obtaining the earphone optimization parameters shown in fig. 10 executes the above method, and the specific implementation process is not described again with reference to the above embodiments.
Fig. 11 is a flowchart of an audio providing method according to an embodiment of the present invention, where the method includes the following steps:
step S11, generating a sweep frequency audio signal, amplifying the sweep frequency audio signal, and driving the earphone by the amplified sweep frequency audio signal;
step S12, sampling the speaker end of the earphone, and generating an impedance array of the earphone according to the sampling result, wherein the data structure of the impedance array corresponds to the data structure of a preset earphone type reference impedance array set;
step S13, comparing the impedance array with a reference impedance array set, and determining the optimization parameters of the earphone according to the comparison result;
step S14 adjusts the audio signal using the optimized parameters of the headphone, and drives the headphone with the adjusted audio signal.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for apparatus or system embodiments, since they are substantially similar to method embodiments, they are described in relative terms, as long as they are described in partial descriptions of method embodiments. The above-described apparatus and system embodiments are merely illustrative, in that separate components may or may not be physically separate. Some or all of the components can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
One of ordinary skill in the art can understand and implement it without inventive effort. The foregoing is merely a detailed description of the invention, and it should be noted that modifications and adaptations by those skilled in the art may be made without departing from the principles of the invention, and should be considered as within the scope of the invention.

Claims (9)

1. A method for obtaining optimized parameters of a headset, comprising:
generating a sweep frequency audio signal, amplifying the sweep frequency audio signal, and driving an earphone by using the amplified sweep frequency audio signal;
sampling a loudspeaker end of the earphone, and generating an impedance array of the earphone according to the sampling result, wherein the data structure of the impedance array corresponds to the data structure of a preset earphone type reference impedance array set; the sampling frequency interval of the sampling is preset;
comparing the impedance array with a reference impedance array set, and determining the optimization parameters of the earphone according to the comparison result;
the step of comparing the impedance array with a reference impedance array set and determining the optimization parameters of the earphone according to the comparison result comprises:
calculating the average value of the impedance values of the impedance arrays and the average value of the impedance values of each reference impedance array in the reference impedance array set;
traversing the reference impedance array set, screening out a reference impedance array of which the difference value between the impedance value average value of the reference impedance array and the impedance value average value of the impedance array is smaller than a first average value preset threshold value, and generating a new reference impedance array set;
traversing the new reference impedance array set, calculating the variance of each reference impedance array in the impedance array and the new reference impedance array set, and selecting the minimum variance;
judging whether the minimum variance is smaller than or equal to a variance preset threshold value;
and if the minimum variance is smaller than or equal to the preset variance threshold, determining to select the optimization parameter corresponding to the reference impedance array with the minimum variance as the optimization parameter of the earphone.
2. The method of claim 1, wherein traversing the new set of reference impedance arrays, the step of calculating the variance of the impedance array and each reference impedance array in the new set of reference impedance arrays comprises:
selecting characteristic frequency points;
traversing the new reference impedance array set, and calculating the impedance difference value corresponding to the characteristic frequency point in the impedance array and the new reference impedance array to generate an impedance difference array;
calculating a variance of the array of impedance differences.
3. The method of claim 1, wherein the comparing the impedance array to a set of reference impedance arrays, and wherein determining the optimal parameters of the headset based on the comparison comprises:
calculating the average value of the impedance values of the impedance arrays and the average value of the impedance values of each reference impedance array in the reference impedance array set;
traversing the reference impedance array set, screening out a reference impedance array of which the difference value between the impedance value average value of the reference impedance array and the impedance value average value of the impedance array is smaller than a first average value preset threshold value, and generating a new reference impedance array set;
traversing the new reference impedance array set, calculating an average value of the difference values of the impedance array and each reference impedance array in the new reference impedance array set, and selecting a minimum average value;
judging whether the minimum average value is less than or equal to a second average value preset threshold value or not;
and if the minimum average value is less than or equal to the second average value preset threshold value, determining the optimization parameter corresponding to the reference impedance array with the minimum average value as the optimization parameter of the earphone.
4. The method of claim 3, wherein traversing the new set of reference impedance arrays, the step of averaging the difference values of the impedance array and each of the new set of reference impedance arrays comprises:
selecting characteristic frequency points;
traversing the new reference impedance array set, and calculating the impedance difference value corresponding to the characteristic frequency point in the impedance array and the new reference impedance array to generate an impedance difference array;
and calculating the average value of the impedance difference array.
5. The method of claim 1, further comprising;
if the minimum variance is larger than a variance preset threshold, displaying a prompt interface for prompting whether to adjust the filter gain parameter;
receiving filter gain parameter adjustment feedback information acquired from the prompt interface;
and when the filter gain parameter adjustment feedback information is the adjustment filter gain parameter, determining the adjusted filter gain parameter as the optimization parameter of the earphone, and storing the current impedance array of the earphone in the impedance array set.
6. The method of claim 1, wherein the amplified swept-frequency audio signal is a swept-frequency audio signal subjected to constant current amplification.
7. The device for acquiring the optimized parameters of the earphone is characterized by comprising a memory, an operation controller, a signal generator, a driving amplifier and a signal collector, wherein the memory stores a reference impedance array set; wherein:
the signal generator is used for generating a sweep frequency audio signal according to the control signal of the operation controller;
the drive amplifier is used for amplifying the sweep frequency audio signal and outputting the amplified sweep frequency audio signal to drive the earphone;
the signal collector is used for sampling the loudspeaker end of the earphone and outputting a sampling result; the sampling frequency interval of the sampling is preset;
the operation controller is used for generating an impedance array of the earphone according to the sampling result output by the signal collector, comparing the impedance array with a reference impedance array set, and determining the optimization parameters of the earphone according to the comparison result; the data structure of the impedance array corresponds to the data structure of a preset earphone type reference impedance array;
the operation controller is further used for calculating the impedance value average value of the impedance array and the impedance value average value of each reference impedance array in the reference impedance array set;
traversing the reference impedance array set, screening out a reference impedance array of which the difference value between the impedance value average value of the reference impedance array and the impedance value average value of the impedance array is smaller than a first average value preset threshold value, and generating a new reference impedance array set;
traversing the new reference impedance array set, calculating the variance of each reference impedance array in the impedance array and the new reference impedance array set, and selecting the minimum variance;
judging whether the minimum variance is smaller than or equal to a variance preset threshold value;
and if the minimum variance is smaller than or equal to the preset variance threshold, determining to select the optimization parameter corresponding to the reference impedance array with the minimum variance as the optimization parameter of the earphone.
8. An audio providing method, comprising:
generating a sweep frequency audio signal, amplifying the sweep frequency audio signal, and driving an earphone by using the amplified sweep frequency audio signal;
sampling a loudspeaker end of the earphone, and generating an impedance array of the earphone according to the sampling result, wherein the data structure of the impedance array corresponds to the data structure of a preset earphone type reference impedance array set; the sampling frequency interval of the sampling is preset;
comparing the impedance array with a reference impedance array set, and determining the optimization parameters of the earphone according to the comparison result;
adjusting an audio signal using the optimized parameters of the headset, and driving the headset with the adjusted audio signal;
the step of comparing the impedance array with a reference impedance array set and determining the optimization parameters of the headset according to the comparison result comprises:
calculating the average value of the impedance values of the impedance arrays and the average value of the impedance values of each reference impedance array in the reference impedance array set;
traversing the reference impedance array set, screening out a reference impedance array of which the difference value between the impedance value average value of the reference impedance array and the impedance value average value of the impedance array is smaller than a first average value preset threshold value, and generating a new reference impedance array set;
traversing the new reference impedance array set, calculating the variance of each reference impedance array in the impedance array and the new reference impedance array set, and selecting the minimum variance;
judging whether the minimum variance is smaller than or equal to a variance preset threshold value;
and if the minimum variance is smaller than or equal to the preset variance threshold, determining to select the optimization parameter corresponding to the reference impedance array with the minimum variance as the optimization parameter of the earphone.
9. An audio providing system comprising an audio signal decoding apparatus, and a filter gain apparatus connected to the audio signal decoding apparatus and a headphone connected to the filter gain apparatus, characterized by further comprising:
the device comprises a memory, an operation controller, a signal generator, a driving amplifier and a signal collector, wherein the memory stores a reference impedance array set, the operation controller is connected with the memory, the signal generator is connected with the operation controller, the driving amplifier is connected with the signal generator, and the signal collector is connected with the operation controller; wherein:
the signal generator is used for generating a sweep frequency audio signal according to the control signal of the operation controller;
the drive amplifier is used for amplifying the sweep frequency audio signal and outputting the amplified sweep frequency audio signal to drive the earphone;
the signal collector is used for sampling the loudspeaker end of the earphone and outputting a sampling result; the sampling frequency interval of the sampling is preset;
the operation controller is used for generating an impedance array of the earphone according to the sampling result output by the signal collector, comparing the impedance array with a reference impedance array set, and determining the optimization parameters of the earphone according to the comparison result; the data structure of the impedance array corresponds to the data structure of a preset earphone type reference impedance array;
the filtering gain device is used for receiving the optimized parameter adjustment audio signal output by the operation controller and driving the earphone by the adjusted audio signal;
the operation controller is further used for calculating the impedance value average value of the impedance array and the impedance value average value of each reference impedance array in the reference impedance array set;
traversing the reference impedance array set, screening out a reference impedance array of which the difference value between the impedance value average value of the reference impedance array and the impedance value average value of the impedance array is smaller than a first average value preset threshold value, and generating a new reference impedance array set;
traversing the new reference impedance array set, calculating the variance of each reference impedance array in the impedance array and the new reference impedance array set, and selecting the minimum variance;
judging whether the minimum variance is smaller than or equal to a variance preset threshold value;
and if the minimum variance is smaller than or equal to the preset variance threshold, determining to select the optimization parameter corresponding to the reference impedance array with the minimum variance as the optimization parameter of the earphone.
CN201611076230.1A 2016-11-29 2016-11-29 Method and device for obtaining earphone optimization parameters and audio providing method and system Active CN106775558B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611076230.1A CN106775558B (en) 2016-11-29 2016-11-29 Method and device for obtaining earphone optimization parameters and audio providing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611076230.1A CN106775558B (en) 2016-11-29 2016-11-29 Method and device for obtaining earphone optimization parameters and audio providing method and system

Publications (2)

Publication Number Publication Date
CN106775558A CN106775558A (en) 2017-05-31
CN106775558B true CN106775558B (en) 2020-03-06

Family

ID=58901023

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611076230.1A Active CN106775558B (en) 2016-11-29 2016-11-29 Method and device for obtaining earphone optimization parameters and audio providing method and system

Country Status (1)

Country Link
CN (1) CN106775558B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107205188A (en) * 2017-06-27 2017-09-26 上海与德科技有限公司 A kind of method of earphone, mobile terminal and earphone work
CN107484081A (en) * 2017-07-27 2017-12-15 努比亚技术有限公司 A kind of method of adjustment of audio signal, device, terminal and computer-readable recording medium
CN107885480A (en) * 2017-10-12 2018-04-06 Tcl通力电子(惠州)有限公司 Interface detects circuit and audio frequency apparatus
CN107948790A (en) * 2017-11-30 2018-04-20 北京松果电子有限公司 Earphone recognition methods and device
CN108307284A (en) * 2017-12-29 2018-07-20 青岛海信移动通信技术股份有限公司 A kind of method, device and mobile terminal of automatic detection loud speaker

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546852A (en) * 2012-07-09 2014-01-29 马克西姆综合产品公司 System and method for optimized playback of audio signals through headphones
CN103702253A (en) * 2013-12-16 2014-04-02 联想(北京)有限公司 Information processing method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9084035B2 (en) * 2013-02-20 2015-07-14 Qualcomm Incorporated System and method of detecting a plug-in type based on impedance comparison

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103546852A (en) * 2012-07-09 2014-01-29 马克西姆综合产品公司 System and method for optimized playback of audio signals through headphones
CN103702253A (en) * 2013-12-16 2014-04-02 联想(北京)有限公司 Information processing method and electronic equipment

Also Published As

Publication number Publication date
CN106775558A (en) 2017-05-31

Similar Documents

Publication Publication Date Title
CN106775558B (en) Method and device for obtaining earphone optimization parameters and audio providing method and system
US8369549B2 (en) Hearing aid system adapted to selectively amplify audio signals
EP2494792B1 (en) Speech enhancement method and system
CN102124758B (en) Hearing aid, hearing aid system, walking detection method, and hearing aid method
CN108737948B (en) Loudspeaker position detection system, device and method
EP3048779B1 (en) Sound volume adjusting method and device
CN112929807B (en) Method, system, test terminal and storage medium for automatically correcting filter coefficients
CN106340305B (en) Self-calibration far-field voice interaction device and far-field voice self-calibration method
EP3337190B1 (en) A method of reducing noise in an audio processing device
US9179224B2 (en) Hearing device with adaptive feedback-path estimation
US9374646B2 (en) Binaural enhancement of tone language for hearing assistance devices
JP6612310B2 (en) Hearing aid operation
EP3235265A1 (en) Method of operating a hearing aid system and a hearing aid system
CN108882115A (en) loudness adjusting method, device and terminal
CN112019987A (en) Speaker device and speaker output adjustment method
JP2018207480A (en) Hearing devices based on speech intelligibility and related methods
KR100925022B1 (en) Audio quality correction sound output device based on hearing level
CN110611862A (en) Microphone gain adjusting method, device, system and storage medium
US7760869B2 (en) Method and apparatus for controlling the transmit volume level of a speakerphone
US20240281202A1 (en) Electronic Device Audio Adjustment
US8914281B2 (en) Method and apparatus for processing audio signal in a mobile communication terminal
JP4737758B2 (en) Audio signal processing method and playback apparatus
JPH06327088A (en) Acoustic system design/operation supporting device and adaptive control type equalizer
CN110958554A (en) Debugging method and debugging system for hall audio-visual system
KR102175254B1 (en) Automatic tone control speaker and automatic tone control method using the same

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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd.

Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11

Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd.