Method and device for adjusting earphone audio parameters, electronic device, and earphone

By calculating the amplitude and phase difference of the ultrasonic signal reflected inside and outside the headphones and adjusting the headphone audio parameters, the user experience problem caused by fixed headphone audio configuration is solved, dynamic matching of audio parameters is achieved, and user experience is improved.

CN113099335BActive Publication Date: 2024-11-05BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202010017446.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-01-08
Publication Date
2024-11-05
Estimated Expiration
2040-01-08

AI Technical Summary

Technical Problem

The audio configuration of existing headphones is fixed, which cannot adapt to the ear differences between different users, resulting in a reduced user experience.

Method used

By obtaining the ultrasonic signal reflected from inside and outside the headphones, calculating the amplitude difference and phase difference, adjusting the headphone audio parameters to match the user's ear audio level, and dynamic adjustment of the audio parameters is achieved.

Benefits of technology

Ensure that the same audio has the same listening effect for different users, improve the user experience, and synchronize the audio parameters when users listen to the audio, without affecting use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113099335B_ABST
    Figure CN113099335B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method and device for adjusting the audio parameters of headphones, an electronic device, and headphones. The method includes: obtaining an original audio signal; filtering out the sound signal in the original audio signal to obtain an ultrasonic signal; the ultrasonic signal includes a first audio signal that has not been reflected and a second audio signal that has been reflected; obtaining the amplitude difference and phase difference between the first audio signal and the second audio signal; obtaining the audio level corresponding to the ear where the headphone is located based on the amplitude difference and the phase difference; when the audio level is a level other than the target level, adjusting the audio parameters of the headphone based on the audio level until the audio level obtained later becomes the target level. By adjusting the audio parameters of the headphones, this embodiment can achieve the same listening effect for different users for the same audio, which can improve the user experience. In addition, the audio parameters of the headphones can be adjusted synchronously when the user listens to the audio, which does not affect the user's use, and can further improve the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of audio technology, and in particular to a method and device for adjusting audio parameters of headphones, an electronic device, and a headphone. Background Art

[0002] Currently, many users like to wear headphones in public places or when exercising, and use them to listen to music or make calls. Usually, the configuration of headphones is fixed, that is, for each user, the configuration parameters of the same model of headphones are the same. However, each user's ears are different, and they have different auditory perceptions of the same audio. For example, some users may think the sound is just right, some users may think it is loud, and some users may think it is soft, which reduces the user experience. Summary of the invention

[0003] The present disclosure provides a method and device for adjusting earphone audio parameters, an electronic device, and an earphone to solve the deficiencies of the related art.

[0004] According to a first aspect of an embodiment of the present disclosure, a method for adjusting earphone audio parameters is provided, which is applicable to an electronic device and includes:

[0005] Acquire an original audio signal; the original audio signal includes an ultrasonic signal and a sound signal;

[0006] Filtering the sound signal in the original audio signal to obtain the ultrasonic signal; the ultrasonic signal includes the unreflected first audio signal and the reflected second audio signal;

[0007] Acquire an amplitude difference and a phase difference between the first audio signal and the second audio signal;

[0008] Acquire an audio level corresponding to the ear where the earphone is located based on the amplitude difference and the phase difference;

[0009] When the audio level is a level other than the target level, an audio parameter of the headset is adjusted based on the audio level until the audio level acquired subsequently becomes the target level.

[0010] Optionally, obtaining an amplitude difference and a phase difference between the first audio signal and the second audio signal includes:

[0011] Obtaining the original waveform of the ultrasonic data played by the earphone;

[0012] Based on the pre-established relationship between the original waveform and the first audio signal, extract the first audio signal from the ultrasonic signal, obtain a difference waveform between an actual waveform of the audio signal and the original waveform, and use the difference waveform as the second audio signal;

[0013] The amplitude difference and phase difference between the first audio signal and the second audio signal are obtained; the amplitude difference is used to indicate the attenuation degree of the amplitude of the first audio signal caused by the ear canal, and the phase difference is used to indicate the delay degree of the depth of the middle eardrum of the ear to the first audio signal.

[0014] Optionally, acquiring the audio level corresponding to the ear where the earphone is located based on the amplitude difference and the phase difference includes:

[0015] Obtaining a preset amplitude difference threshold and a preset phase difference threshold;

[0016] Comparing the amplitude difference with the amplitude difference threshold and the phase difference with the phase difference threshold, to obtain a first comparison result and a second comparison result respectively;

[0017] The audio level of the ear wearing the headset is obtained according to the first comparison result and the second comparison result.

[0018] Optionally, obtaining the audio level of the ear wearing the headset according to the first comparison result and the second comparison result includes:

[0019] When the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold, determining that the audio level is the first level; or,

[0020] When the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is less than the phase difference threshold, or when the first comparison result indicates that the amplitude difference is less than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold, determining that the audio level is the second level; or

[0021] When the first comparison result indicates that the amplitude difference is smaller than the amplitude difference threshold and the second comparison result indicates that the phase difference is smaller than the phase difference threshold, the audio level is determined to be the third level.

[0022] Optionally, adjusting the audio parameters of the headset based on the audio level until the subsequently acquired audio level becomes a target level includes:

[0023] When the audio level is the first level, a control signal is sent to the earphone, and the earphone adjusts the cavity structure of the earphone in response to the control signal, so that the audio level obtained subsequently changes from the first level to the second level.

[0024] Optionally, adjusting the cavity structure of the earphone includes:

[0025] The movable device in the earphone is moved to a target position, and the movable device increases or decreases the space of the cavity after reaching the target position.

[0026] Optionally, adjusting the audio parameters of the headset based on the audio level until the subsequently acquired audio level becomes a target level includes:

[0027] When the audio level is at the second level, the frequency response characteristic is adjusted to adjust the amplitude and balance the frequency of the sound waves emitted by the speaker until the audio level obtained thereafter changes from the second level to the third level, and the third level is the target level.

[0028] Optionally, adjusting the audio parameters of the headset based on the audio level until the subsequently acquired audio level becomes a target level includes:

[0029] Obtaining a list of historical users who have used the headset; the list of historical users includes an amplitude difference, a phase difference, an audio level, and audio parameters corresponding to a target level corresponding to the ear;

[0030] Acquire a target level and a corresponding audio parameter according to the audio level, the amplitude difference and the phase difference;

[0031] The audio parameters of the earphone are adjusted to the audio parameters corresponding to the target level, so that the audio level obtained later becomes the target level.

[0032] Optionally, before acquiring the amplitude difference and the phase difference between the first audio signal and the second audio signal, the method further includes:

[0033] If the amplitude of the second audio signal is less than a preset amplitude threshold, it is determined that there is no need to adjust the audio parameters of the headset; if the amplitude of the second audio signal is greater than the preset amplitude threshold, the step of obtaining the amplitude difference and phase difference between the first audio signal and the second audio signal is continued.

[0034] According to a second aspect of an embodiment of the present disclosure, a device for adjusting earphone audio parameters is provided, which is applicable to an electronic device and includes:

[0035] The original signal acquisition module is used to acquire the original audio signal; the original audio signal includes an ultrasonic signal and a sound signal;

[0036] An audio signal acquisition module, used to filter out the sound signal in the original audio signal to obtain the ultrasonic signal; the ultrasonic signal includes a first audio signal that has not been reflected and a second audio signal that has been reflected;

[0037] an amplitude-phase difference acquisition module, configured to acquire an amplitude difference and a phase difference between the first audio signal and the second audio signal;

[0038] An audio level acquisition module, used for acquiring the audio level corresponding to the ear where the earphone is located based on the amplitude difference and the phase difference;

[0039] The audio parameter adjustment module is used to adjust the audio parameters of the headset based on the audio level when the audio level is a level other than the target level, until the audio level obtained later becomes the target level.

[0040] Optionally, the amplitude-phase difference acquisition module includes:

[0041] An original waveform acquisition unit, used to acquire the original waveform of the ultrasonic data played by the earphone;

[0042] an audio signal acquisition unit, configured to extract the first audio signal from the ultrasonic signal based on a pre-established relationship between the original waveform and the first audio signal, and to acquire a difference waveform between an actual waveform of the audio signal and the original waveform, and use the difference waveform as the second audio signal;

[0043] An amplitude-phase difference acquisition unit is used to acquire the amplitude difference and phase difference between the first audio signal and the second audio signal; the amplitude difference is used to indicate the degree of attenuation of the amplitude of the first audio signal by the ear canal, and the phase difference is used to indicate the degree of delay of the first audio signal by the depth of the middle eardrum.

[0044] Optionally, the audio level acquisition module includes:

[0045] An amplitude-phase threshold acquisition unit, used to acquire a preset amplitude difference threshold and a preset phase difference threshold;

[0046] a comparison result acquisition unit, used for comparing the amplitude difference with the amplitude difference threshold value and the phase difference with the phase difference threshold value, to obtain a first comparison result and a second comparison result respectively;

[0047] An audio level determining unit is used to obtain an audio level of an ear wearing the headset according to the first comparison result and the second comparison result.

[0048] Optionally, the audio level determination unit includes:

[0049] a first determining unit, configured to determine that the audio level is a first level when the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold; or

[0050] a second determining unit, configured to determine that the audio level is a second level when the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is less than the phase difference threshold, or when the first comparison result indicates that the amplitude difference is less than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold; or

[0051] The third determining unit is configured to determine that the audio level is a third level when the first comparison result indicates that the amplitude difference is smaller than the amplitude difference threshold and the second comparison result indicates that the phase difference is smaller than the phase difference threshold.

[0052] Optionally, the audio parameter adjustment module includes:

[0053] A control signal sending unit is used to send a control signal to the earphone when the audio level is the first level, and the earphone adjusts the cavity structure of the earphone in response to the control signal so that the audio level obtained subsequently changes from the first level to the second level.

[0054] Optionally, the audio parameter adjustment module includes:

[0055] The parameter adjustment unit is used to adjust the frequency response characteristics when the audio level is the second level, so as to adjust the amplitude and balance the frequency of the sound waves emitted by the speaker until the audio level obtained thereafter changes from the second level to the third level, and the third level is the target level.

[0056] Optionally, adjusting the audio parameters of the headset based on the audio level until the subsequently acquired audio level becomes a target level includes:

[0057] A history list acquisition unit, used to acquire a history user list of using the headset; the history user list includes the amplitude difference, phase difference, audio level and audio parameters corresponding to the target level corresponding to the ear;

[0058] an audio parameter acquisition unit, configured to acquire a target level and corresponding audio parameters according to the audio level, the amplitude difference and the phase difference;

[0059] The audio parameter adjustment unit is used to adjust the audio parameters of the earphone to the audio parameters corresponding to the target level, so that the audio level obtained later becomes the target level.

[0060] Optionally, the device also includes an acquisition module, which is used to determine that there is no need to adjust the audio parameters of the headphones when the amplitude of the second audio signal is less than a preset amplitude threshold, and send a trigger signal to the audio signal acquisition module; and send a trigger signal to the amplitude-phase difference acquisition module when the amplitude of the second audio signal is greater than the preset amplitude threshold.

[0061] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising a processor, an audio module, a superimposed circuit and an ultrasonic transmitter; the processor is electrically connected to the superimposed circuit, the ultrasonic transmitter and the audio module respectively; the audio module is electrically connected to the superimposed circuit;

[0062] The processor is used to enable the ultrasonic transmitter after the earphone is paired with the electronic device, so that the ultrasonic drive signal emitted by the ultrasonic transmitter is sent to the earphone through the superposition circuit;

[0063] The audio module is used to output audio data to the superposition circuit in response to an enable signal of the processor;

[0064] The superposition circuit is used to superimpose the ultrasonic drive signal and the audio data to output a mixed signal.

[0065] According to a fourth aspect of an embodiment of the present disclosure, there is provided an earphone, comprising:

[0066] A speaker, the speaker is used to emit ultrasonic waves and sound waves;

[0067] A movable device disposed in the cavity of the earphone; the movable device is used to adjust the size of the cavity;

[0068] An ultrasonic receiver is provided in each channel respectively; the ultrasonic receiver is used to obtain the original audio signal of the channel and output it to the electronic device, wherein the original audio signal includes an ultrasonic signal and a sound signal;

[0069] A processor electrically connected to the movable device; the processor is used to adjust the cavity structure of the earphone in response to a control signal from the electronic device so that the audio level obtained thereafter changes from the first level to the second level.

[0070] According to a fifth aspect of an embodiment of the present disclosure, a readable storage medium is provided, on which executable instructions are stored. When the executable instructions are executed by a processor, the steps of any one of the methods described in the first aspect are implemented.

[0071] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0072] As can be seen from the above embodiments, in the embodiments of the present disclosure, an ultrasonic signal can be obtained by filtering out the sound signal in the original audio signal; the ultrasonic signal includes a first audio signal that has not been reflected and a second audio signal that has been reflected; then, the amplitude difference and phase difference between the first audio signal and the second audio signal are obtained; then, based on the amplitude difference and phase difference, the audio level corresponding to the ear where the earphone is located can be obtained; finally, when the audio level is a level other than the target level, the audio parameters of the earphone are adjusted based on the audio level until the audio level obtained later becomes the target level. In this embodiment, by adjusting the audio parameters of the earphone, the amplitude and phase of the sound emitted by the earphone can be matched with the ear, so as to achieve the effect of matching the audio level of the ear with the target level, that is, the same audio has the same listening effect for different users, which can improve the user experience. Moreover, in this embodiment, the audio parameters of the earphone can be adjusted synchronously when the user listens to the audio, which does not affect the user's use, and can further improve the user experience.

[0073] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.

[0075] Figure 1 It is a schematic diagram of an application scenario according to an exemplary embodiment.

[0076] Figure 2 The figure shows the structure of an electronic device and an earphone according to an exemplary embodiment.

[0077] Figure 3 The figure is a flow chart of a method for adjusting earphone audio parameters according to an exemplary embodiment.

[0078] Figure 4 is a flow chart of obtaining amplitude difference and phase difference according to an exemplary embodiment.

[0079] Figure 5 The figure is a flowchart of obtaining an audio level according to an exemplary embodiment.

[0080] Figure 6 The figure is a flowchart of audio adjustment according to an exemplary embodiment.

[0081] Figure 7 The figure is a flowchart of another audio adjustment according to an exemplary embodiment.

[0082] Figure 8The figure is a flowchart of adjusting audio parameters according to an exemplary embodiment.

[0083] Figures 9 to 14 The invention is a block diagram showing a device for adjusting audio parameters of an earphone according to an exemplary embodiment.

[0084] Fig.15 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0085] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present disclosure. Instead, they are merely examples of devices consistent with some aspects of the present disclosure as detailed in the appended claims.

[0086] Currently, many users like to wear headphones in public places or when exercising, and use them to listen to music or make calls. Usually, the configuration of headphones is fixed, that is, for each user, the configuration parameters of the same model of headphones are the same. However, each user's ears are different, and they have different auditory perceptions of the same audio. For example, some users may think the sound is just right, some users may think it is loud, and some users may think it is soft, which reduces the user experience.

[0087] To solve the above technical problems, the present disclosure provides a method for adjusting earphone audio parameters. Figure 1, the inventive concept is that, by setting an ultrasonic receiver 12 on the earphone 10, after the earphone is worn on the ear, the echo receiving device 12 can receive the ultrasonic wave 111 emitted by the speaker 11 in the earphone and the ultrasonic wave 112 reflected after passing through the ear canal and / or the eardrum, as well as the sound wave signal, to obtain the original audio signal. The audio module in the electronic device can obtain the above-mentioned original audio signal, and the ultrasonic signal can be obtained by filtering the sound signal in the original audio signal. Then, the first audio signal and the second audio signal are separated from the ultrasonic signal, and the amplitude difference and phase difference between the first audio signal and the second audio signal are obtained; and the audio level corresponding to the ear where the earphone is located can be determined according to the amplitude difference and the phase difference. Finally, the audio module can adjust the audio parameters of the earphone based on the audio level, so that the audio level obtained later is adjusted to the target level. In this embodiment, by adjusting the audio parameters of the earphone, the amplitude and phase of the sound emitted by the earphone can be matched with the ear, so as to achieve the effect of matching the audio level of the ear with the target level, that is, the same audio has the same listening effect for different users, which can improve the user experience. Furthermore, in this embodiment, the audio parameters of the earphones can be adjusted synchronously when the user is listening to audio, which does not affect the user's use and can further improve the user experience.

[0088] It should be noted that in order to better receive ultrasonic signals, continue to refer to Figure 1 In this embodiment, the ultrasonic receiver 12 can be arranged on the side of the earphone 10 that emits ultrasonic waves, so that the unreflected ultrasonic waves and the reflected ultrasonic waves can be better received.

[0089] It should be noted that the earphone may include at least one of the following: a wired earphone, a wireless earphone, or a digital earphone, an analog earphone, a headphone or an earbud earphone, or a combination thereof, and the technician may select one according to the specific scenario, which is not limited here. In each embodiment of the present disclosure, an earbud earphone is used as an example to describe the solution.

[0090] In order to realize the above-mentioned inventive concept, in one embodiment of the present disclosure, corresponding improvements are made to the electronic device and the earphone respectively. Figure 2 ,in:

[0091] For the earphone, each sound channel of the earphone is provided with a speaker, an ultrasonic receiver and a movable device;

[0092] After the earphones are paired with the electronic device, where pairing can be understood as wireless connection or wired connection, that is, an audio data transmission channel is established. The ultrasonic receiver can be electrically connected to the audio module in the electronic device to sense the ultrasonic waves from the speaker and the ultrasonic waves reflected by the ear canal and eardrum, as well as the sound from the speaker playing the audio data, and convert the ultrasonic waves and sounds into original audio signals in the form of electrical signals, and output them to the audio module in the electronic device.

[0093] The movable device can be electrically connected to the audio module path in the electronic device, and is used to adjust the cavity structure of the earphone in response to the control instruction of the audio module to achieve the effect of adjusting the audio level. The speaker can be electrically connected to the audio module path and the ultrasonic transmitter channel to emit ultrasonic waves and play audio at the same time.

[0094] For electronic devices, an audio module, a superimposition circuit and an ultrasonic transmitter are provided in the electronic device. Among them, the processor is electrically connected to the superimposition circuit, the ultrasonic transmitter and the audio module respectively; the audio module is electrically connected to the superimposition circuit; the processor is used to enable the ultrasonic transmitter after the earphone is paired with the electronic device, so that the ultrasonic drive signal emitted by the ultrasonic transmitter is sent to the superimposition circuit; the audio module is used to output audio data to the superimposition circuit in response to the enable signal of the processor; the superimposition circuit is used to superimpose the ultrasonic drive signal and the audio data, and send the superimposed ultrasonic drive signal and audio data to the earphone. In addition, the audio module can obtain the original audio signal sent by the earphone and use it as a processor for adjusting the audio parameters of the earphone, that is, the audio module can read executable instructions from the storage medium to execute the steps of a method for adjusting the audio parameters of the earphone.

[0095] Figure 2 The structure shown is applicable to head-mounted headphones or earbud-type headphones, especially earbud-type headphones, which can reduce the volume of the headphones and reduce their production costs. It should be noted that in actual applications, when the headphones are head-mounted headphones, the headphones can also be provided with an audio module, a superimposed circuit and an ultrasonic transmitter, and the solution of the embodiment of the present disclosure can also be implemented. Figure 2 The structure shown is described.

[0096] A method for adjusting earphone audio parameters provided by this embodiment is further described below in conjunction with an embodiment.

[0097] Figure 3 is a flow chart showing a method for adjusting earphone audio parameters according to an exemplary embodiment. Figure 3 , a method for adjusting earphone audio parameters, applicable to electronic devices, comprising steps 301 to 305, wherein:

[0098] In step 301, an original audio signal is acquired; the original audio signal includes an ultrasonic signal and a sound signal.

[0099] In this embodiment, continue to refer to Figure 2 , the user can pair the headset with the electronic device to establish a communication link between the headset and the electronic device, such as Bluetooth, WIFI, etc., which are not limited here. After pairing, the processor in the electronic device enables the ultrasonic transmitter, so that the ultrasonic transmitter and the superimposed circuit will form an ultrasonic output path, and output the ultrasonic drive signal output by the ultrasonic transmitter to the headset. The speaker in the headset can emit ultrasonic waves according to the ultrasonic drive signal and radiate to the surroundings. Similarly, the processor enables the audio module, and the audio module and the superimposed circuit will form an audio data output path to output the audio data drive signal to the headset. The speaker in the headset can emit sound according to the audio data drive signal and radiate to the surroundings.

[0100] It should be noted that in the above embodiments, ultrasound and sound are described separately. In actual applications, an adder can be set in the superposition circuit, and the adder adds the ultrasound drive signal and the audio data drive signal to obtain a mixed signal. The specific implementation form of the adder can refer to the relevant technology and will not be described here. Of course, the technician can also choose a solution with mixed two-way audio signals to realize the function of the superposition circuit, and the corresponding solution falls within the protection scope of the present disclosure.

[0101] After the user wears the earphone on the ear, part of the ultrasonic wave directly enters the ultrasonic receiver (i.e. without reflection), and the other part propagates into the earphone, and then enters the ultrasonic receiver after reflection by the ear canal and eardrum (i.e. after reflection). The ultrasonic receiver converts the received ultrasonic signal into mechanical energy and electrical energy, and can obtain an ultrasonic audio signal in the form of an electrical signal. It is understandable that the converted ultrasonic audio signal can include a first audio signal without reflection and a second audio signal after reflection. It is understandable that the propagation path of the sound signal can refer to the propagation path of the ultrasonic wave, which will not be repeated here.

[0102] Finally, the ultrasonic receiver in the earphone can sense the ultrasonic wave and sound, and the original audio signal can be obtained through the conversion of mechanical energy into electrical energy.

[0103] In step 302, the sound signal in the original audio signal is filtered out to obtain the ultrasonic signal; the ultrasonic signal includes the unreflected first audio signal and the reflected second audio signal.

[0104] In this embodiment, according to the frequencies of the sound signal and the ultrasonic signal, the audio module can use a preset filter to filter out the sound signal in the original audio signal to obtain the ultrasonic signal. The filter can be a high-pass filter or a band-pass filter in the related art. If the ultrasonic signal can be selected, each solution falls within the protection scope of the present disclosure.

[0105] In step 303, the amplitude difference and phase difference between the first audio signal and the second audio signal are obtained.

[0106] See also Figure 4 , the audio module can obtain the original waveform of the ultrasonic data played by the headset (corresponding to step 401). Considering that there may be a certain attenuation from the original waveform of the ultrasonic wave to the first audio signal, the relationship between the waveforms of the original waveform and the first audio signal can be established in advance to obtain the attenuation amplitude and delay of the original waveform. In this way, the audio module can directly obtain the waveform of the first audio signal when the original waveform is known. Then, the audio module can obtain the actual waveform according to the ultrasonic audio signal, and can directly extract the first audio signal from the actual waveform, and then subtract the waveform of the first audio signal from the actual waveform to obtain the waveform of the second audio signal (corresponding to step 402).

[0107] It should be noted that the processing process of the audio signal may also refer to other related technologies. When the first audio signal and the second audio signal can be separated, the corresponding solution falls within the protection scope of the present disclosure.

[0108] Continue to see Figure 4 , the audio module can obtain the amplitude difference and phase difference between the first audio signal and the second audio signal (corresponding to step 403). The amplitude difference is used to indicate the attenuation degree of the amplitude of the first audio signal by the ear canal, and the phase difference is used to indicate the delay degree of the eardrum depth to the first audio signal. For example, if the first audio signal is Asin(wt+a) and the second audio signal is Bsin(wt+b), the amplitude difference can be -20log(B / A) and the phase difference can be ba.

[0109] It should be noted that, in one embodiment, the audio module can determine the amplitude of the second audio signal, and compare the amplitude with a preset amplitude threshold (adjustable). When the amplitude is less than the amplitude threshold, it means that the ultrasonic receiver has not received the reflected ultrasonic wave, and it is determined that there is no need to adjust the audio parameters of the headset. When the amplitude is greater than the amplitude threshold, step 303 can be continued, so that it can be obtained whether the user is wearing headphones, and the audio parameters can be adjusted after the user wears the headphones, which can reduce the amount of calculation.

[0110] In step 304, the audio level corresponding to the ear where the earphone is located is obtained based on the amplitude difference and the phase difference.

[0111] In this embodiment, the audio module can obtain the audio level corresponding to the ear where the earphone is located according to the amplitude difference and the phase difference. Figure 5 , the audio module can obtain a preset amplitude difference threshold and a preset phase difference threshold (corresponding to step 501). Among them, the amplitude difference threshold and the phase difference threshold can be obtained by statistics in a big data manner, such as the amplitude difference threshold can be a proportional value of 20%, and the phase difference can be 5 to 10 degrees. Of course, a large number of experiments can also be used to confirm the amplitude difference and / or phase difference change when the ear can feel the reception effect is deteriorating, and the amplitude difference and phase difference corresponding to the deterioration of the reception effect are used as the amplitude difference threshold and the phase difference threshold respectively. The technicians can set the amplitude difference threshold and the phase difference threshold according to the specific scenario, and the corresponding scheme falls within the protection scope of the present disclosure.

[0112] Continue to see Figure 5 , the audio module can compare the amplitude difference and the amplitude difference threshold and the phase difference and the phase difference threshold to obtain a first comparison result and a second comparison result (corresponding to step 502). The first comparison result includes that the amplitude difference is greater than the amplitude difference threshold, or the amplitude difference is less than the amplitude difference threshold; the second comparison result includes that the phase difference is less than the phase difference threshold, or the phase difference is greater than the phase difference threshold.

[0113] Continue to see Figure 5 The audio module may obtain the audio level of the ear wearing the headset according to the first comparison result and the second comparison result (corresponding to step 503), which may include:

[0114] When the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold, the audio level is determined to be the first level.

[0115] When the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is less than the phase difference threshold, the audio level is determined to be the second level.

[0116] When the first comparison result indicates that the amplitude difference is smaller than the amplitude difference threshold and the second comparison result indicates that the phase difference is larger than the phase difference threshold, the audio level is determined to be the second level.

[0117] When the first comparison result indicates that the amplitude difference is smaller than the amplitude difference threshold and the second comparison result indicates that the phase difference is smaller than the phase difference threshold, the audio level is determined to be the third level.

[0118] It should be noted that the above embodiment only illustrates the case where there are three audio levels. The technicians can increase the corresponding levels according to the specific scenario. At this time, the number of amplitude difference thresholds and phase difference thresholds can be increased. For example, when the amplitude difference threshold and the phase difference threshold are 2 respectively, the audio level can be increased to 9. The corresponding scheme falls within the protection scope of the present disclosure.

[0119] In step 305, when the audio level is a level other than the target level, the audio parameters of the headset are adjusted based on the audio level until the audio level obtained later becomes the target level.

[0120] In this embodiment, the third level can be used as the target level, and the audio module determines whether the current audio level is the third level. When the current audio level is the third level, the audio module may not adjust the audio parameters of the headphones and return to step 301; when the current audio level is a level other than the third level, such as the first level or the second level, the audio module determines to adjust the audio level of the headphones.

[0121] See also Figure 6 When the audio level is the first level, a control signal is sent to the earphone (corresponding to step 601). After receiving the control signal, the earphone can adjust the cavity structure of the earphone in response to the control signal so that the audio level obtained later changes from the first level to the second level.

[0122] For example, when the audio level corresponding to the ear is the first level, the audio module continues to send a control signal to the earphone, so that the earphone adjusts the cavity structure of the earphone after receiving the control signal once, until the audio module stops sending the control signal after determining that the audio level is the second level. Among them, the earphone adjusting the cavity structure may include controlling a preset moving length according to the control signal to move the movable device in the earphone to the target position, and the movable device will increase or decrease the space of the cavity after reaching the target position. The target position can be the position reached after the movable device moves once or the position that should be reached in the end, which can be set according to the specific scenario and is not limited here.

[0123] For example, when the audio module determines that the audio level is the first level, it sends a control signal to the earphone. After receiving the control signal, the earphone can move the movable device according to a preset length to adjust the cavity structure of the earphone, and the audio module obtains the audio level again until the audio module determines that the audio level is the second level and then sends a control signal to the earphone. At this time, the earphone stops adjusting the cavity structure.

[0124] It should be noted that when the movable device moves closer to the eardrum (after the earphones are worn), the earphone cavity structure becomes smaller. In this case, the high-frequency effect of the ultrasonic wave output will be better, which is suitable for ears that are insensitive to the high-frequency components of ultrasonic waves, such as the short ear canal caused by a shallow eardrum. When the movable device moves away from the eardrum, the earphone cavity structure becomes larger, and the low-frequency effect of the ultrasonic wave output will be better, which is suitable for ears that are insensitive to the low-frequency components of ultrasonic waves, such as the long ear canal caused by a deep eardrum.

[0125] Continue to see Figure 6 , when the audio level is the second level, the audio module can adjust the frequency response characteristics of the speaker to adjust the amplitude and frequency balance of the sound waves emitted by the speaker until the audio level obtained later changes from the second level to the third level, and the third level is the target level (corresponding to step 602). For example, when the audio level is the second level, the audio module adjusts the audio parameters of the speaker driver (that is, the audio module itself), and the adjustment method can be EQ (Equaliser) and DRC (Dynamic Range Control), so that the waveform of the sound wave output by the speaker can be adjusted, and then steps 301 to 304 are repeated to obtain the audio level obtained later. If the audio level obtained later is still the second level, continue to adjust the audio parameters until the audio level obtained later becomes the third level and stop adjusting the audio parameters of the headphones.

[0126] It should be noted that when the audio level is the first level, the audio module needs to execute step 601 and step 602. When the audio level is the second level, the audio module needs to execute step 602. When the audio level is the third level, the audio module may determine not to adjust the audio level.

[0127] Considering the situation that multiple users share one headset, a historical user list may be stored in the electronic device or the headset, and the historical user list may include the amplitude difference, phase difference, audio level and audio parameters corresponding to the target level corresponding to the ear. Figure 7 , the audio module can obtain a list of historical users who have used the headset (corresponding to step 701). The audio module can read from the local storage, and can also read from the headset, and can be selected according to the storage location, which is not determined here. Then, the audio module can obtain the audio parameters corresponding to the target level according to the audio level, amplitude difference, phase difference, and audio level (corresponding to step 702). Afterwards, the audio module can adjust the audio parameters of the headset to the audio parameters corresponding to the target level, so that the audio level obtained later becomes the target level (corresponding to step 703). In this way, in this embodiment, users who have used the headset can be identified, and the target level can be reached through one adjustment, which can shorten the adjustment time and improve the user experience.

[0128] So far, in the embodiment of the present disclosure, an ultrasonic signal can be obtained by obtaining and filtering the sound signal in the original audio signal; the ultrasonic signal includes a first audio signal that has not been reflected and a second audio signal that has been reflected; then, the amplitude difference and phase difference between the first audio signal and the second audio signal are obtained; then, the audio level corresponding to the ear where the earphone is located can be obtained based on the amplitude difference and phase difference; finally, when the audio level is a level other than the target level, the audio parameters of the earphone are adjusted based on the audio level until the audio level obtained later becomes the target level. In this embodiment, by adjusting the audio parameters of the earphone, the amplitude and phase of the sound emitted by the earphone can be matched with the ear, so that the audio level of the ear can be matched with the target level, that is, the same audio has the same listening effect for different users, which can improve the user experience. In addition, in this embodiment, the audio parameters of the earphone can be adjusted synchronously when the user listens to the audio, which does not affect the user's use, and can further improve the user experience.

[0129] The following describes the method for adjusting the headphone audio parameters in conjunction with a scenario. Figure 8 After the earphones receive the audio data, they will control the left and right channels to emit ultrasonic waves. Perform the same operation on the left and right channels, taking the left channel as an example:

[0130] 1. When the user pairs the earphones, the processor in the electronic device enables the ultrasonic transmitter, forms a path for the ultrasonic transmitter, and outputs an ultrasonic drive signal to the superposition circuit. At the same time, the audio module outputs audio data to the superposition circuit. The superposition circuit outputs a mixed signal.

[0131] 2. The speaker responds to the mixed information by emitting ultrasonic waves and sounds at the same time. The ultrasonic waves are reflected by the ear canal and eardrum.

[0132] 3. The speaker receiver of the left channel receives the ultrasonic surface emission signal 1 reflected from the ear canal and the ultrasonic signal 2 directly transmitted from the speaker to the ultrasonic receiver, and converts the ultrasonic signal 1 and the ultrasonic signal 2 into an electrical signal 1 (i.e., a second audio signal) and an electrical signal 2 (i.e., a first audio signal). At the same time, the speaker receiver of the left channel can also receive the sound signal reflected from the ear canal and the sound signal directly transmitted to the ultrasonic receiver. Finally, the speaker receiver outputs the original audio signal.

[0133] 4. The audio module in the electronic device first filters out the sound signal in the original audio signal to obtain the ultrasonic signal. Then the audio module obtains the electrical signal 1 and the electrical signal 2 in the ultrasonic signal. The audio module obtains the amplitude difference and phase difference between the electrical signal 1 and the electrical signal 2, so as to confirm the ear canal length and eardrum position, and the audio level (A, B, C).

[0134] 5. If the audio level is A, the first level of regulation is required, and the audio module sends a control signal to the earphone. The movable device in the earphone moves to adjust the cavity structure, so that the cavity gradually changes from small to large, or from large to small. Then repeat the process of 1-4 until the audio level is B.

[0135] 6. If the audio level is B, the audio module implements the second level of regulation, that is, adjusting EQ and DRC. Repeat the process of 1-4 until the adjustment level is C.

[0136] In steps 5 and 6, the adjustment goal is to make the waveform of the ultrasonic wave transmitted to the audio module after being reflected by the ear reach the expected ideal waveform, and to change the shape of the waveform by adjusting audio parameters such as EQ and DRC until the expected waveform is achieved.

[0137] 7. If the audio level is C, it means the frequency response matches the user and the adjustment is complete.

[0138] The disclosed embodiment also provides a device for adjusting earphone audio parameters. Fig. 9 is a block diagram of a device for adjusting earphone audio parameters according to an exemplary embodiment. Fig. 9 , a device for adjusting earphone audio parameters, comprising:

[0139] The original signal acquisition module 901 is used to acquire the original audio signal; the original audio signal includes an ultrasonic signal and a sound signal;

[0140] The audio signal acquisition module 902 is used to filter out the sound signal in the original audio signal to obtain the ultrasonic signal; the ultrasonic signal includes the first audio signal that has not been reflected and the second audio signal that has been reflected;

[0141] An amplitude-phase difference acquisition module 903, configured to acquire an amplitude difference and a phase difference between the first audio signal and the second audio signal;

[0142] An audio level acquisition module 904, configured to acquire an audio level corresponding to the ear where the earphone is located based on the amplitude difference and the phase difference;

[0143] The audio parameter adjustment module 905 is configured to adjust the audio parameters of the headset based on the audio level when the audio level is outside the target level, until the audio level obtained later becomes the target level.

[0144] In one embodiment, see Fig.10 , the amplitude-phase difference acquisition module 902 includes:

[0145] The original waveform acquisition unit 1001 is used to acquire the original waveform of the ultrasonic data played by the earphone;

[0146] The audio signal acquisition unit 1002 is used to extract the first audio signal from the ultrasonic signal based on the pre-established relationship between the original waveform and the first audio signal, and to acquire a difference waveform between an actual waveform of the audio signal and the original waveform, and use the difference waveform as the second audio signal;

[0147] The amplitude-phase difference acquisition unit 1003 is used to acquire the amplitude difference and phase difference between the first audio signal and the second audio signal; the amplitude difference is used to indicate the attenuation degree of the amplitude of the first audio signal caused by the ear canal, and the phase difference is used to indicate the delay degree of the middle eardrum depth caused by the first audio signal.

[0148] In one embodiment, see Fig.11 , the audio level acquisition module 904 includes:

[0149] An amplitude-phase threshold acquisition unit 1101 is used to acquire a preset amplitude difference threshold and a preset phase difference threshold;

[0150] A comparison result obtaining unit 1102 is used to compare the amplitude difference with the amplitude difference threshold and the phase difference with the phase difference threshold to obtain a first comparison result and a second comparison result respectively;

[0151] The audio level determining unit 1103 is configured to obtain the audio level of the ear wearing the headset according to the first comparison result and the second comparison result.

[0152] In one embodiment, see Fig.12 , the audio level determination unit 1103 includes:

[0153] A first determining unit 1201 is configured to determine that the audio level is a first level when the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold; or

[0154] The second determining unit 1202 is configured to determine that the audio level is a second level when the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is less than the phase difference threshold, or when the first comparison result indicates that the amplitude difference is less than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold; or

[0155] A third determining unit 1203, configured to determine that the audio level is a third level when the first comparison result indicates that the amplitude difference is less than the amplitude difference threshold and the second comparison result indicates that the phase difference is less than the phase difference threshold;

[0156] In one embodiment, see Fig.13 , the audio parameter adjustment module 905 includes:

[0157] A control signal sending unit 1301 is used to send a control signal to the earphone when the audio level is the first level, and the earphone adjusts the cavity structure of the earphone in response to the control signal so that the audio level obtained later changes from the first level to the second level;

[0158] Also includes:

[0159] The parameter adjustment unit 1302 is used to adjust the frequency response characteristics of the speaker in the headset when the audio level is the second level, so as to adjust the amplitude and frequency of the sound waves emitted by the speaker until the audio level obtained thereafter changes from the second level to the third level, and the third level is the target level.

[0160] In one embodiment, see Fig.14 , the audio parameter adjustment module 905 includes:

[0161] A history list acquisition unit 1401 is used to acquire a history user list of using the headset; the history user list includes the amplitude difference, phase difference, audio level and audio parameters corresponding to the target level corresponding to the ear;

[0162] An audio parameter acquisition unit 1402, configured to acquire a target level and corresponding audio parameters according to the audio level, the amplitude difference and the phase difference;

[0163] The audio parameter adjustment unit 1403 is configured to adjust the audio parameters of the earphone to the audio parameters corresponding to the target level, so that the audio level obtained later becomes the target level.

[0164] In one embodiment, before obtaining the amplitude difference and phase difference between the first audio signal and the second audio signal, the device also includes a detection module, wherein the detection module is used to determine that there is no need to adjust the audio parameters of the headset when the amplitude of the second audio signal is less than a preset amplitude threshold, and send a trigger signal to the audio signal acquisition module; and when the amplitude of the second audio signal is greater than the preset amplitude threshold, send a trigger signal to the amplitude and phase difference acquisition module.

[0165] It is understandable that the device provided in the embodiment of the present disclosure corresponds to the content of the above-mentioned method embodiment. The specific content can refer to the content of each method embodiment, which will not be repeated here.

[0166] So far, in the embodiment of the present disclosure, an ultrasonic signal can be obtained by filtering out the sound signal in the original audio signal; the ultrasonic signal includes a first audio signal that has not been reflected and a second audio signal that has been reflected; then, the amplitude difference and phase difference between the first audio signal and the second audio signal are obtained; then, based on the amplitude difference and phase difference, the audio level corresponding to the ear where the earphone is located can be obtained; finally, when the audio level is a level other than the target level, the audio parameters of the earphone are adjusted based on the audio level until the audio level obtained later becomes the target level. In this embodiment, by adjusting the audio parameters of the earphone, the amplitude and phase of the sound emitted by the earphone can be matched with the ear, so that the audio level of the ear can be matched with the target level, that is, the same audio has the same listening effect for different users, which can improve the user experience. Moreover, in this embodiment, the audio parameters of the earphone can be adjusted synchronously when the user listens to the audio, which does not affect the user's use, and can further improve the user experience.

[0167] Fig.15 1 is a block diagram of an electronic device according to an exemplary embodiment. For example, the electronic device 1500 may be a smart phone, a computer, a digital broadcast terminal, a tablet device, a medical device, a fitness device, a personal digital assistant, etc., which includes a transmitting coil, a first magnetic sensor, and a second magnetic sensor in a device for adjusting audio parameters of headphones.

[0168] Reference Fig.15 , the electronic device 1500 may include one or more of the following components: a processing component 1502, a memory 1504, a power component 1506, a multimedia component 1508, an audio component 1510, an input / output (I / O) interface 1512, a sensor component 1514, a communication component 1516, and an image acquisition component 1518.

[0169] The processing component 1502 generally controls the overall operation of the electronic device 1500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1502 may include one or more processors 1520 to execute instructions. In addition, the processing component 1502 may include one or more modules to facilitate interaction between the processing component 1502 and other components. For example, the processing component 1502 may include a multimedia module to facilitate interaction between the multimedia component 1508 and the processing component 1502.

[0170] The memory 1504 is configured to store various types of data to support operations on the electronic device 1500. Examples of such data include instructions for any application or method operating on the electronic device 1500, contact data, phone book data, messages, pictures, videos, etc. The memory 1504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0171] The power supply component 1506 provides power to the various components of the electronic device 1500. The power supply component 1506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 1500.

[0172] The multimedia component 1508 includes a screen that provides an output interface between the electronic device 1500 and the target object. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the target object. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.

[0173] The audio component 1510 is configured to output and / or input audio signals. For example, the audio component 1510 includes a microphone (MIC), and when the electronic device 1500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1504 or sent via the communication component 1516. In some embodiments, the audio component 1510 also includes a speaker for outputting audio signals. In addition, the audio component 1510 can also Figure 1 The earphone shown in the figure, the processor MCU in the earphone can implement the steps of the above method.

[0174] The I / O interface 1512 provides an interface between the processing component 1502 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc.

[0175] The sensor assembly 1514 includes one or more sensors for providing various aspects of status assessment for the electronic device 1500. For example, the sensor assembly 1514 can detect the open / closed state of the electronic device 1500, the relative positioning of components, such as the display screen and keypad of the electronic device 1500, and the sensor assembly 1514 can also detect the position change of the electronic device 1500 or a component, the presence or absence of contact between the target object and the electronic device 1500, the orientation or acceleration / deceleration of the electronic device 1500, and the temperature change of the electronic device 1500.

[0176] The communication component 1516 is configured to facilitate wired or wireless communication between the electronic device 1500 and other devices. The electronic device 1500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1516 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0177] In an exemplary embodiment, the electronic device 1500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components.

[0178] In an exemplary embodiment, there is also provided a headset, comprising:

[0179] A speaker, the speaker is used to emit ultrasonic waves and sound waves;

[0180] A movable device disposed in the cavity of the earphone; the movable device is used to adjust the size of the cavity;

[0181] An ultrasonic receiver is provided in each channel respectively; the ultrasonic receiver is used to obtain the original audio signal of the channel and output it to the electronic device, wherein the original audio signal includes an ultrasonic signal and a sound signal;

[0182] A processor electrically connected to the movable device; the processor is used to adjust the cavity structure of the earphone in response to a control signal from the electronic device so that the audio level obtained thereafter changes from the first level to the second level.

[0183] It should be noted that the movable device may include an active device and a power device, wherein the active device is fixed on the power device. The power device may be a spring or a stepper motor. Taking the stepper motor as an example, the stepper motor may be electrically connected to the processor of the headset, and drive the active device to move closer to or away from the eardrum (when the headset is worn) according to the control signal of the processor.

[0184] In an exemplary embodiment, a non-transitory readable storage medium including executable instructions is also provided, such as a memory 1504 including instructions, and the above executable instructions can be executed by a processor in the audio component. The readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0185] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the schemes disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the disclosed schemes, which follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The description and examples are to be regarded as exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0186] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A method for adjusting earphone audio parameters, characterized in that: Adapted to an electronic device, the electronic device includes an audio module path, the audio module path is electrically connected to a movable device in an earphone; the method includes: Acquire an original audio signal; the original audio signal includes an ultrasonic signal and a sound signal; Filtering the sound signal in the original audio signal to obtain the ultrasonic signal; the ultrasonic signal includes the unreflected first audio signal and the reflected second audio signal; Acquire an amplitude difference and a phase difference between the first audio signal and the second audio signal; Based on the amplitude difference and the phase difference, an audio level corresponding to the ear where the earphone is located is obtained; the audio level includes a first level, a second level and a third level; the third level is a target level; When the audio level is a level other than the target level, adjusting the audio parameters of the headset based on the audio level until the audio level obtained later becomes the target level; wherein adjusting the audio parameters of the headset based on the audio level includes: When the audio level is the first level, a control signal is sent to the earphone, and the earphone moves the movable device in the earphone to a target position in response to the control signal, and the movable device increases or decreases the space of the cavity after moving to the target position, so that the audio level obtained thereafter changes from the first level to the second level; When the audio level is the second level, the frequency response characteristic is adjusted to adjust the amplitude and balance the frequency of the sound waves emitted by the speaker until the audio level obtained thereafter changes from the second level to the third level, and the third level is the target level.

2. The method according to claim 1, characterized in that Acquiring an amplitude difference and a phase difference between the first audio signal and the second audio signal, comprising: Obtaining the original waveform of the ultrasonic data played by the earphone; Based on the pre-established relationship between the original waveform and the first audio signal, extract the first audio signal from the ultrasonic signal, obtain a difference waveform between an actual waveform of the audio signal and the original waveform, and use the difference waveform as the second audio signal; The amplitude difference and phase difference between the first audio signal and the second audio signal are obtained; the amplitude difference is used to indicate the attenuation degree of the amplitude of the first audio signal caused by the ear canal, and the phase difference is used to indicate the delay degree of the depth of the middle eardrum of the ear to the first audio signal.

3. The method according to claim 1, characterized in that Acquiring an audio level corresponding to the ear where the earphone is located based on the amplitude difference and the phase difference includes: Obtaining a preset amplitude difference threshold and a preset phase difference threshold; Comparing the amplitude difference with the amplitude difference threshold and the phase difference with the phase difference threshold, to obtain a first comparison result and a second comparison result respectively; The audio level of the ear wearing the headset is obtained according to the first comparison result and the second comparison result.

4. The method according to claim 3, characterized in that: Obtaining the audio level of the ear wearing the headset according to the first comparison result and the second comparison result includes: When the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold, determining that the audio level is the first level; or, When the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is less than the phase difference threshold, or when the first comparison result indicates that the amplitude difference is less than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold, determining that the audio level is the second level; or When the first comparison result indicates that the amplitude difference is smaller than the amplitude difference threshold and the second comparison result indicates that the phase difference is smaller than the phase difference threshold, the audio level is determined to be the third level.

5. The method according to claim 1, characterized in that Adjusting the audio parameters of the headset based on the audio level until the subsequently acquired audio level becomes a target level includes: Obtaining a list of historical users who have used the headset; the list of historical users includes an amplitude difference, a phase difference, an audio level, and audio parameters corresponding to a target level corresponding to the ear; Acquire a target level and a corresponding audio parameter according to the audio level, the amplitude difference and the phase difference; The audio parameters of the earphone are adjusted to the audio parameters corresponding to the target level, so that the audio level obtained later becomes the target level.

6. The method according to claim 1, characterized in that Before acquiring the amplitude difference and the phase difference between the first audio signal and the second audio signal, the method further includes: If the amplitude of the second audio signal is less than a preset amplitude threshold, it is determined that there is no need to adjust the audio parameters of the headset; if the amplitude of the second audio signal is greater than the preset amplitude threshold, the step of obtaining the amplitude difference and phase difference between the first audio signal and the second audio signal is continued.

7. A device for adjusting earphone audio parameters, characterized in that: Adapted to an electronic device, the electronic device includes an audio module path, the audio module path is electrically connected to a movable device in an earphone; the device includes: The original signal acquisition module is used to acquire the original audio signal; the original audio signal includes an ultrasonic signal and a sound signal; An audio signal acquisition module, used to filter out the sound signal in the original audio signal to obtain the ultrasonic signal; the ultrasonic signal includes a first audio signal that has not been reflected and a second audio signal that has been reflected; an amplitude-phase difference acquisition module, configured to acquire an amplitude difference and a phase difference between the first audio signal and the second audio signal; An audio level acquisition module, used for acquiring the audio level corresponding to the ear where the earphone is located based on the amplitude difference and the phase difference; the audio level includes a first level, a second level and a third level; the third level is a target level; an audio parameter adjustment module, configured to adjust the audio parameters of the headset based on the audio level when the audio level is a level other than the target level, until the audio level obtained thereafter becomes the target level; The audio parameter adjustment module comprises: a control signal sending unit, configured to send a control signal to the earphone when the audio level is the first level, and the earphone moves the movable device in the earphone to a target position in response to the control signal, and the movable device increases or decreases the space of the cavity after moving to the target position, so that the audio level obtained thereafter changes from the first level to the second level; The parameter adjustment unit is used to adjust the frequency response characteristics when the audio level is the second level, so as to adjust the amplitude and balance the frequency of the sound waves emitted by the speaker until the audio level obtained thereafter changes from the second level to the third level, and the third level is the target level.

8. The device according to claim 7, characterized in that The amplitude-phase difference acquisition module comprises: An original waveform acquisition unit, used to acquire the original waveform of the ultrasonic data played by the earphone; an audio signal acquisition unit, configured to extract the first audio signal from the ultrasonic signal based on a pre-established relationship between the original waveform and the first audio signal, and to acquire a difference waveform between an actual waveform of the audio signal and the original waveform, and use the difference waveform as the second audio signal; An amplitude-phase difference acquisition unit is used to acquire the amplitude difference and phase difference between the first audio signal and the second audio signal; the amplitude difference is used to indicate the degree of attenuation of the amplitude of the first audio signal by the ear canal, and the phase difference is used to indicate the degree of delay of the first audio signal by the depth of the middle eardrum.

9. The device according to claim 7, characterized in that The audio level acquisition module includes: An amplitude-phase threshold acquisition unit, used to acquire a preset amplitude difference threshold and a preset phase difference threshold; a comparison result acquisition unit, used for comparing the amplitude difference with the amplitude difference threshold value and the phase difference with the phase difference threshold value, to obtain a first comparison result and a second comparison result respectively; An audio level determining unit is used to obtain an audio level of an ear wearing the headset according to the first comparison result and the second comparison result.

10. The device according to claim 9, characterized in that The audio level determination unit comprises: a first determining unit, configured to determine that the audio level is a first level when the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold; or a second determining unit, configured to determine that the audio level is a second level when the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is less than the phase difference threshold, or when the first comparison result indicates that the amplitude difference is less than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold; or The third determining unit is configured to determine that the audio level is a third level when the first comparison result indicates that the amplitude difference is smaller than the amplitude difference threshold and the second comparison result indicates that the phase difference is smaller than the phase difference threshold.

11. The device according to claim 7, characterized in that Adjusting the audio parameters of the headset based on the audio level until the subsequently acquired audio level becomes a target level includes: A history list acquisition unit, used to acquire a history user list of using the headset; the history user list includes the amplitude difference, phase difference, audio level and audio parameters corresponding to the target level corresponding to the ear; an audio parameter acquisition unit, configured to acquire a target level and corresponding audio parameters according to the audio level, the amplitude difference and the phase difference; The audio parameter adjustment unit is used to adjust the audio parameters of the earphone to the audio parameters corresponding to the target level, so that the audio level obtained later becomes the target level.

12. The device according to claim 7, characterized in that The device also includes an acquisition module, which is used to determine that there is no need to adjust the audio parameters of the headset when the amplitude of the second audio signal is less than a preset amplitude threshold, and send a trigger signal to the audio signal acquisition module; and send a trigger signal to the amplitude-phase difference acquisition module when the amplitude of the second audio signal is greater than the preset amplitude threshold.

13. An electronic device, characterized in that: It includes a processor, an audio module, a superimposed circuit and an ultrasonic transmitter; the processor is electrically connected to the superimposed circuit, the ultrasonic transmitter and the audio module respectively; the audio module is electrically connected to the superimposed circuit; the audio module path where the audio module is located is electrically connected to the movable device in the earphone; The processor is used to enable the ultrasonic transmitter after the earphone is paired with the electronic device, so that the ultrasonic drive signal emitted by the ultrasonic transmitter is sent to the earphone through the superposition circuit; The audio module is used to output audio data to the superposition circuit in response to the enable signal of the processor, and is also used to obtain an original audio signal; the original audio signal includes an ultrasonic signal and a sound signal; the sound signal in the original audio signal is filtered out to obtain the ultrasonic signal; the ultrasonic signal includes a first audio signal that has not been reflected and a second audio signal that has been reflected; the amplitude difference and phase difference between the first audio signal and the second audio signal are obtained; based on the amplitude difference and phase difference, an audio level corresponding to the ear where the earphone is located is obtained; the audio level includes a first level, a second level and a third level; the third level is a target level; when the audio level is a level other than the target level, the audio parameters of the earphone are adjusted based on the audio level until the audio level obtained later becomes the target level; The superposition circuit is used to superimpose the ultrasonic drive signal and the audio data to output a mixed signal; Wherein, adjusting the audio parameters of the headset based on the audio level includes: When the audio level is the first level, a control signal is sent to the earphone, and the earphone moves the movable device in the earphone to a target position in response to the control signal, and the movable device increases or decreases the space of the cavity after moving to the target position, so that the audio level obtained thereafter changes from the first level to the second level; When the audio level is the second level, the frequency response characteristic is adjusted to adjust the amplitude and balance the frequency of the sound waves emitted by the speaker until the audio level obtained thereafter changes from the second level to the third level, and the third level is the target level.

14. A headset, characterized in that: include: A speaker, the speaker is used to emit ultrasonic waves and sound waves; A movable device is arranged in the cavity of the earphone; the movable device is used to adjust the size of the cavity and is electrically connected to the audio module path in the electronic device; An ultrasonic receiver is provided in each channel respectively; the ultrasonic receiver is used to obtain the original audio signal of the channel and output it to the electronic device, wherein the original audio signal includes an ultrasonic signal and a sound signal; a processor electrically connected to the movable device; the processor being used to adjust the movable device in the earphone to move toward or away from the eardrum in response to a control signal from the electronic device so as to adjust the audio parameters of the earphone by changing the size of the cavity structure of the earphone, so that the audio level obtained thereafter changes from the first level to the second level; When the audio level is a level other than the target level, adjusting the audio parameters of the headset based on the audio level until the audio level obtained later becomes the target level; wherein adjusting the audio parameters of the headset based on the audio level includes: When the audio level is the first level, a control signal is sent to the earphone, and the earphone moves the movable device in the earphone to a target position in response to the control signal, and the movable device increases or decreases the space of the cavity after moving to the target position, so that the audio level obtained thereafter changes from the first level to the second level; When the audio level is the second level, the frequency response characteristic is adjusted to adjust the amplitude and balance the frequency of the sound waves emitted by the speaker until the audio level obtained thereafter changes from the second level to the third level, and the third level is the target level.

15. A readable storage medium having executable instructions stored thereon, characterized in that: When the executable instruction is executed by a processor, the steps of the method described in any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • An audio signal output device and method of processing an audio signal

    CN104429096A

  • Physical noise reduction device and method based on snuffle valve and application

    CN110351625A

  • Volume adjusting method and device and computer readable storage medium

    CN110418232A

  • Personalization of auditory stimulus

    US20180324516A1