CN113495713A - Method and device for adjusting audio parameters of earphone, earphone and storage medium - Google Patents

Method and device for adjusting audio parameters of earphone, earphone and storage medium Download PDF

Info

Publication number
CN113495713A
CN113495713A CN202010202967.3A CN202010202967A CN113495713A CN 113495713 A CN113495713 A CN 113495713A CN 202010202967 A CN202010202967 A CN 202010202967A CN 113495713 A CN113495713 A CN 113495713A
Authority
CN
China
Prior art keywords
earphone
level
audio
comparison result
phase difference
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010202967.3A
Other languages
Chinese (zh)
Other versions
CN113495713B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202010202967.3A priority Critical patent/CN113495713B/en
Publication of CN113495713A publication Critical patent/CN113495713A/en
Application granted granted Critical
Publication of CN113495713B publication Critical patent/CN113495713B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/165Management of the audio stream, e.g. setting of volume, audio stream path
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computing Systems (AREA)
  • Medical Informatics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Headphones And Earphones (AREA)

Abstract

The disclosure relates to a method and a device for adjusting audio parameters of a headset, the headset and a storage medium. The method comprises the following steps: responding to a trigger operation of adjusting audio parameters of the first earphone, and acquiring ear canal data pre-stored in an account of a user who wants to wear the first earphone from a cloud end; determining an audio level corresponding to the user's ear based on the ear canal data; and when the audio grade is a grade other than the target grade, adjusting the audio grade of the first earphone to the target grade to enable the audio grade of the first earphone to be matched with the audio grade corresponding to the ear. In the embodiment, a voice data transmitting device and an echo receiving device do not need to be arranged in the first earphone, so that the volume and the production cost of the first earphone are reduced; and, through the audio frequency parameter of adjustment earphone, can make the amplitude and the phase place and the ear phase-match of the sound wave that this earphone sent, reach the same audio frequency and have the same effect of listening to different users, can promote user experience.

Description

Method and device for adjusting audio parameters of earphone, earphone and storage medium
Technical Field
The present disclosure relates to the field of audio technologies, and in particular, to a method and an apparatus for adjusting an audio parameter of an earphone, and a storage medium.
Background
Currently, many users prefer to wear earphones in public places or during sports, and listen to music or talk using the earphones. Typically, the configuration of the headset is fixed, i.e. the configuration parameters of the same model of headset are the same for each user. However, each user's ear is different and has different hearing perceptions for the same audio, e.g., some users sound just, some users feel louder, and some users feel louder, thus reducing the user experience.
Disclosure of Invention
The present disclosure provides a method and apparatus for adjusting audio parameters of a headset, and a storage medium, so as to solve the deficiencies of the related art.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for adjusting headphone audio parameters, including:
responding to a trigger operation of adjusting audio parameters of the first earphone, and acquiring ear canal data pre-stored in an account of a user who wants to wear the first earphone from a cloud end;
determining an audio level corresponding to the user's ear based on the ear canal data;
and when the audio grade is a grade other than the target grade, adjusting the audio grade of the first earphone to the target grade to enable the audio grade of the first earphone to be matched with the audio grade corresponding to the ear.
Optionally, determining an audio level corresponding to the ear of the user based on the ear canal data comprises:
acquiring a preset amplitude difference threshold value and a preset phase difference threshold value;
comparing an amplitude difference in the ear canal data with the amplitude difference threshold to obtain a first comparison result, and comparing a phase difference in the ear canal data with the phase difference threshold to obtain a second comparison result;
obtaining an audio level of the ear according to the first comparison result and the second comparison result.
Optionally, before comparing the amplitude difference in the ear canal data with the amplitude difference threshold to obtain a first comparison result, the method further includes:
acquiring the models of a second earphone and a first earphone; the second earphone is used for acquiring the ear canal data and uploading the ear canal data to the cloud end;
when the models of the second earphone and the first earphone are different, acquiring compensation data of the first earphone relative to the second earphone; the compensation data comprises phase compensation data and amplitude compensation data;
compensating the phase difference according to the phase compensation data, and compensating the amplitude difference according to the amplitude compensation data.
Optionally, obtaining the audio level of the ear according to the first comparison result and the second comparison result includes:
determining the audio level as 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; alternatively, the first and second electrodes may be,
determining the audio level as a second level when the first comparison result indicates that the magnitude difference is greater than the magnitude difference threshold and the second comparison result indicates that the phase difference is less than the phase difference threshold, or the first comparison result indicates that the magnitude difference is less than the magnitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold; alternatively, the first and second electrodes may be,
determining the audio level as 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.
Optionally, adjusting the audio level of the first headphone to a target level comprises:
when the audio level is a first level, adjusting the cavity structure of the earphone so as to change the audio level of the first earphone from the first level to a second level;
and when the audio level is a second level, adjusting the frequency response characteristics of the loudspeakers in the earphones so as to change the audio level of the first earphone from the second level to a third level, wherein the third level is a target level.
Optionally, adjusting the cavity structure of the earphone includes:
moving a movable element within the earpiece to a target position that increases or decreases the volume of the cavity.
According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for adjusting headphone audio parameters, including:
the ear canal data acquisition module is used for responding to the triggering operation of adjusting the audio parameters of the first earphone and acquiring ear canal data pre-stored in an account of a user who wants to wear the first earphone from the cloud end;
the audio grade acquisition module is used for determining the audio grade corresponding to the ear of the user based on the ear canal data;
and the audio level adjusting module is used for adjusting the audio level of the first earphone to the target level when the audio level is a level other than the target level, so that the audio level of the first earphone is matched with the audio level corresponding to the ear.
Optionally, the audio level obtaining module includes:
the threshold value obtaining unit is used for obtaining a preset amplitude difference threshold value and a preset phase difference threshold value;
the ear canal data comparison unit is used for comparing the amplitude difference in the ear canal data with the amplitude difference threshold value to obtain a first comparison result, and comparing the phase difference in the ear canal data with the phase difference threshold value to obtain a second comparison result;
an audio level obtaining unit, configured to obtain an audio level of the ear according to the first comparison result and the second comparison result.
Optionally, the audio level obtaining module further includes:
the earphone model acquisition unit is used for acquiring the models of the second earphone and the first earphone; the second earphone is used for acquiring the ear canal data and uploading the ear canal data to the cloud end;
the compensation data acquisition unit is used for acquiring compensation data of the first earphone relative to the second earphone when the models of the second earphone and the first earphone are different; the compensation data comprises phase compensation data and amplitude compensation data;
an ear canal data compensation unit for compensating the phase difference according to the phase compensation data and compensating the amplitude difference according to the amplitude compensation data.
Optionally, the audio level obtaining unit includes:
a first determining subunit, 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; alternatively, the first and second electrodes may be,
a second determining subunit, 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 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; alternatively, the first and second electrodes may be,
a third determining subunit, 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.
Optionally, the audio level adjustment module includes:
the cavity adjusting unit is used for adjusting the cavity structure of the earphone when the audio frequency grade is a first grade, so that the audio frequency grade of the first earphone is changed from the first grade to a second grade;
and the parameter adjusting unit is used for adjusting the frequency response characteristic of the loudspeaker in the earphone when the audio level is a second level so as to change the audio level of the first earphone from the second level to a third level, wherein the third level is a target level.
Optionally, the cavity adjusting unit includes:
and the moving subunit is used for moving the movable device in the earphone to a target position, and the space of the cavity can be increased or reduced after the movable device is moved to the target position.
According to a third aspect of embodiments of the present disclosure, there is provided a headset comprising:
a communication module for acquiring ear canal data;
a movable device disposed within a cavity of the earpiece; the movable device is used for adjusting the size of the cavity;
a processor electrically connected to the movable device;
a memory storing the processor executable program;
the processor executes the executable program to implement the steps of any of the methods described above.
According to a fourth aspect of embodiments of the present disclosure, there is provided a readable storage medium having stored thereon an executable program which, when executed, performs the steps of any of the methods described above.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
as can be seen from the above embodiments, in the embodiments of the present disclosure, when a trigger operation for adjusting an audio parameter of a first earphone is detected, ear canal data pre-stored in an account of a user who wants to wear the first earphone is acquired from a cloud; then, determining an audio level corresponding to the ear of the user based on the ear canal data; and then, when the audio level is a level other than the target level, adjusting the audio level of the first earphone to the target level to enable the audio level of the first earphone to be matched with the audio level corresponding to the ear. Like this, in this embodiment, through obtaining the ear canal data from the high in the clouds, need not to set up voice data transmitting device and echo receiving device in first earphone, be favorable to reducing the volume and the manufacturing cost of first earphone. Moreover, in the embodiment, by adjusting the audio parameters of the earphone, the amplitude and the phase of the sound waves emitted by the earphone can be matched with the ear, the effect that the audio level of the ear is matched with the target level is achieved, namely the same audio has the same listening effect on different users, and the user experience can be improved.
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
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 disclosure.
FIG. 1 is a diagram illustrating an application scenario in accordance with an exemplary embodiment.
Fig. 2 is a flow chart illustrating a method of adjusting headphone audio parameters according to an exemplary embodiment.
FIG. 3 is a flow chart illustrating obtaining an amplitude difference and a phase difference according to an example embodiment.
FIG. 4 is a flow diagram illustrating obtaining audio levels according to an example embodiment.
FIG. 5 is a flow chart illustrating an audio adjustment according to an example embodiment.
FIG. 6 is a flow chart illustrating another audio adjustment according to an example embodiment.
Fig. 7 is a structural diagram illustrating a headset according to an exemplary embodiment.
FIG. 8 is a flow diagram illustrating adjusting audio parameters according to an example embodiment.
Fig. 9 to 12 are block diagrams illustrating an apparatus for adjusting an audio parameter of a headphone according to an exemplary embodiment.
FIG. 13 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Rather, they are merely examples of devices consistent with certain aspects of the present disclosure as recited in the claims below.
Currently, many users prefer to wear earphones in public places or during sports, and listen to music or talk using the earphones. Typically, the configuration of the headset is fixed, i.e. the configuration parameters of the same model of headset are the same for each user. However, each user's ear is different and has different hearing perceptions for the same audio, e.g., some users sound just, some users feel louder, and some users feel louder, thus reducing the user experience.
To solve the above technical problem, an embodiment of the present disclosure provides a method for adjusting an audio parameter of an earphone, which may be applied to the application scenario shown in fig. 1. Referring to fig. 1, the second earpiece 20 may be a standard test earpiece in an off-line experience store, or a smart earpiece for other users. Using the standard to detect the earphone as an example, on the one hand, the user can experience this standard and detect the earphone, obtains using experience, and on the other hand, the user can utilize this standard to detect the earphone and obtain above-mentioned duct data, obtains duct data back, and the user can select to upload duct data, and the second earphone or the electronic equipment who is connected with the second earphone can show the landing page this moment, can log in the high in the clouds 30 after input account and password, with duct data storage to this high in the clouds 30 simultaneously.
When the user takes another headset (i.e. the first headset 10), the first headset 10 can be connected to the cloud 30 and log in the account; at this time, pre-stored ear canal data may be downloaded from the cloud 30. The audio parameters of the first earpiece 10 may be adjusted based on the ear canal data to match the audio parameters to the user's ear.
It should be noted that the first earphone 10 and the second earphone 20 may be wired earphones, wireless earphones, digital earphones, analog earphones, or a combination thereof. The cloud 30 may be a server, a server cluster, a smart phone, a smart band, a vehicle-mounted device, a smart home, or other electronic devices. The electronic device may select a combination according to a specific scenario, which is not limited herein. It can be understood that at least one storage space may be included in the cloud 30, each storage space may correspond to an account, and the corresponding storage space may be accessed through the account and the password, and read and write data and ear canal data. In one example, the cloud 30 is a dedicated storage device that stores ear canal data, which can be read directly after logging in.
Fig. 2 is a flow chart illustrating a method of adjusting audio parameters of a headset according to an exemplary embodiment, which may be applied to an electronic device or a first headset, followed by describing embodiments for the first headset as an executing device. Referring to fig. 2, a method for adjusting audio parameters of a headphone includes steps 21 to 23, where:
in step 21, in response to a trigger operation for adjusting an audio parameter of the first earphone, ear canal data pre-stored in an account of a user who wants to wear the first earphone is acquired from the cloud.
In this embodiment, after the user takes the first earphone 10, the user can connect to the cloud 30 through the interactive page displayed on the display screen of the first earphone 10, or connect the first earphone 10 to an electronic device such as a smart phone, and then connect to the cloud 30. Taking the first headset 10 connected to the cloud 30 through the smart phone as an example, the user may set the first headset 10 through an interactive page or an application APP on the smart phone, for example, adjust an audio parameter of the headset.
After detecting the trigger operation indicating that the audio parameter is adjusted, the first earphone 10 may obtain ear canal data pre-stored in an account of a user who wants to wear the first earphone 10 from the cloud 30; alternatively, the electronic device first obtains the ear canal data from the cloud 30 and stores the data locally, and then the first earphone 10 obtains the ear canal data from the local of the electronic device.
In the present embodiment, the ear canal data may include an amplitude difference and a phase difference, which may be acquired by the second earpiece 20 shown in fig. 3. Referring to fig. 3, after the user wears the second earphone 20 to the ear 40, the processor in the second earphone 20 can play the set audio, and the speaker emits sound waves, and the sound wave signals radiate to the surroundings: a portion of the sound waves will directly enter the echo receiving device 22 (e.g., microphone) in the second earpiece 20, i.e., the sound wave signals that are not reflected; a part of the sound waves will propagate to the ear canal and eardrum 41 of the ear and will be reflected back into the echo receiving device 22 in the second earpiece 20, i.e. the echo receiving device 22 can receive the sound waves 211 and the sound waves 212 reflected back through the ear canal and/or eardrum 41 of the ear to obtain an audio signal.
In this embodiment, the processor of the second earphone 20 may process the audio signal to separate the first audio signal and the second audio signal. The processor can acquire the original waveform of the currently played audio data of the earphone, and the relation between the original waveform and the first audio signal waveform can be pre-established in consideration of the fact that the original waveform possibly has a certain attenuation to the first audio signal, so that the attenuation amplitude and the delay of the original waveform are obtained. Then, based on the above-described relationship, the second headphone 20 may extract the first audio signal from the audio signal with the original waveform known. Then, the second headphone 20 may obtain a difference waveform between the actual waveform and the original waveform of the audio signal, and use the difference waveform as the waveform of the second audio signal, so as to obtain the second audio signal.
It should be noted that, other related technologies may also be referred to in the processing procedure of the audio signal, and in the case that the first audio signal and the second audio signal can be separated, the corresponding scheme falls within the protection scope of the present disclosure.
In this embodiment, the second headphone 20 may acquire the amplitude difference and the phase difference between the first audio signal and the second audio signal. The amplitude difference is used for representing the amplitude attenuation degree of the ear canal to the first audio signal, and the phase difference is used for representing the time delay degree of the eardrum depth to the first audio signal. For example, the first audio signal is Asin (wt + a) and the second audio signal is Bsin (wt + B), the amplitude difference may be-20 log (B/A) and the phase difference may be B-a.
In this embodiment, after the amplitude difference and the phase difference are obtained, at this time, the second earphone 20 or the electronic device connected to the second earphone 20 may display a login page of the cloud 30, the user may login to the cloud 30 after inputting an account and a password, and the second earphone 20 uploads the amplitude difference and the phase difference to the cloud 30 as ear canal data. The cloud 30 stores the ear canal data in a storage area corresponding to the account.
It should be noted that the account may be information such as a character string, a mobile phone number, a mailbox, and the like, and may also be biological information such as a fingerprint, an iris, an auricle, a face, and the like. For example, when the account is a fingerprint, and needs to log in the cloud 30, the electronic device may scan the fingerprint of the user and directly enter the storage space corresponding to the fingerprint.
In practical applications, the second earphone 20 may also upload other parameters such as its model as a part of the ear canal data to the cloud 30 at the same time, which may be implemented as well, and is not limited herein.
In step 22, an audio level corresponding to the user's ear is determined based on the ear canal data.
In practice, the second earphone 20 and the first earphone 10 may be of different models, for example, the second earphone 20 is an external earphone and the first earphone 10 is an in-ear earphone. Thus, the processor of the first earpiece 10 may compensate for the downloaded ear canal data, see fig. 4:
in step 41, the processor of the first earpiece 10 may obtain the model of the second earpiece 20 and the first earpiece 10. The model is related to parameters of the earphone, and may include earphone hardware parameters such as the shape of the earphone, the installation position of each device in the earphone, and earphone software parameters such as audio parameters related to the earphone in software. In step 42, when the models of the second earphone 20 and the first earphone 10 are different, if any one of the parameters of the first earphone 10 and the second earphone is different, that is, the models are different, the compensation data of the first earphone 10 relative to the second earphone 20 is obtained; the compensation data includes phase compensation data and amplitude compensation data. The phase compensation data may be phase differences caused by different models of the two earphones when the same audio signal propagates in the ear canal, and the phase differences are differences between a first phase difference and a second phase difference, where the first phase difference is a first phase difference that can be determined by the first audio signal and the second audio signal detected after the same audio signal is transmitted by the first earphone; the second phase difference is a second phase difference that can be determined by the first audio signal and the second audio signal detected after being transmitted by the second headphone. It should be noted that the compensation data may be obtained through a large number of experimental data experiments, or may be obtained through artificial intelligence algorithm calculation such as deep learning and neural network after training, which is not limited herein. The amplitude compensation data is obtained in the same manner as the phase compensation data, and will not be described herein again. In step 43, the phase difference is compensated according to the phase compensation data, the amplitude difference is compensated according to the amplitude compensation data, and the compensated ear canal data is used as the ear canal data of the first earphone 10. In this embodiment, by compensating the ear channel data, the deviation caused by the model difference between the first earphone 10 and the second earphone 20 can be eliminated, which is beneficial to improving the accuracy of the subsequent audio level calculation.
In this embodiment, the first earphone 10 may determine the audio level corresponding to the ear of the user who wants to wear the first earphone 10 based on the ear canal data, referring to fig. 5, the processor of the first earphone 10 may obtain a preset amplitude difference threshold and a preset phase difference threshold (corresponding to step 51). The amplitude difference threshold and the phase difference threshold can be obtained by statistics in a big data mode, for example, the amplitude difference threshold can be a proportion value of 20%, and the phase difference can be 5-10 degrees. Of course, a large number of tests can be used to confirm the amplitude difference and/or the phase difference, for example, a certain number of volunteers (for example, 1000 volunteers) can be selected, ear canal data is collected once for each volunteer, and the amplitude difference and the phase difference in the ear canal data can be determined according to the feedback of the volunteer on the audio effect. Then, counting the amplitude difference and the phase difference of the same feedback type, and acquiring the average value of the amplitude difference and the average value of the phase difference, or the maximum value of the amplitude difference and the maximum value of the phase difference; the average, or maximum weighted (e.g., multiplied by a fraction) value is then used as the magnitude difference threshold and the phase difference threshold. Technicians can set an amplitude difference threshold and a phase difference threshold according to specific scenes, and the corresponding scheme falls into the protection scope of the disclosure.
With continued reference to fig. 5, the processor may compare the magnitude difference to a magnitude difference threshold and the phase difference to a phase difference threshold to obtain first and second comparison results, respectively (corresponding to step 52). Wherein the first comparison result comprises that the amplitude difference is greater than an amplitude difference threshold value, or the amplitude difference is smaller than the amplitude difference threshold value; the second comparison result includes the phase difference being less than the phase difference threshold or the phase difference being greater than the phase difference threshold.
With continued reference to fig. 5, the processor may obtain an audio level of an ear wearing the headset according to the first comparison result and the second comparison result (corresponding to step 53), which may include:
and when the first comparison result indicates that the amplitude difference is larger than the amplitude difference threshold value and the second comparison result indicates that the phase difference is larger than the phase difference threshold value, determining the audio level as a first level.
And when the first comparison result indicates that the amplitude difference is larger than the amplitude difference threshold value and the second comparison result indicates that the phase difference is smaller than the phase difference threshold value, determining the audio level as a second level.
And determining the audio level as a second 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 larger than the phase difference threshold.
And determining the audio level as 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.
It should be noted that, the above embodiment only illustrates a case where there are 3 audio levels, and a technician may increase corresponding levels according to a specific scene, at this time, the number of the amplitude difference threshold and the phase difference threshold may be increased, for example, when the amplitude difference threshold and the phase difference threshold are respectively 2, the audio levels may be increased to 9. The corresponding solutions fall within the scope of protection of the present disclosure.
In step 23, when the audio level is a level other than the target level, the audio level of the first earphone is adjusted to the target level, so that the audio level of the first earphone matches with the audio level corresponding to the ear.
In this embodiment, the third level may be taken as a target level, the processor determines whether the current audio level is the third level, and when the current audio level is the third level, the processor may not adjust the audio parameter of the earphone, and returns to step 21; when the current audio level is a level other than the third level, such as the first level or the second level, the processor determines to adjust the audio level of the headphones.
Referring to fig. 6, in step 61, when the audio level is the first level, the cavity structure of the first earphone 10 is adjusted to change the audio level of the first earphone from the first level to the second level. For example, referring to fig. 7, the processor may adjust the cavity configuration of the first earpiece 10 in the audio level of the first level in such a way that the processor sends a control signal to the movable device to move the movable device to the target position.
It should be noted that when the movable device moves close to the eardrum, the cavity structure of the earphone becomes smaller, and in this case, the high-frequency effect of the output sound wave becomes better, and the earphone is suitable for an ear which is not sensitive to the high-frequency component in the sound wave, for example, a scene of short ear canal caused by shallow eardrum. When the movable device moves away from the eardrum, the cavity structure of the earphone is enlarged, the low-frequency effect of the output sound wave is improved, and the earphone is suitable for the ear which is insensitive to low-frequency components in the sound wave, such as a scene with a long auditory canal caused by the depth of the eardrum.
With continued reference to fig. 6, at step 62, when the audio level is the second level, the processor may adjust the frequency response characteristics of the speakers in the headphones to change the audio level of the first headphone from the second level to a third level, which is the target level. For example, with continued reference to fig. 7, when the audio level is the second level, the audio parameter of the headphone is adjusted in a manner of eq (equal) and drc (dynamic Range control), and after the audio level is determined, the adjustment target value of the audio parameter may be determined, and at this time, the adjustment target value is directly adjusted. Of course, the processor may also adjust the audio parameters according to the set step size, at which time the user may listen to the audio signal, and stop the adjustment when sensing that the listening effect is best, at which time the adjustment to the target level is determined.
It should be noted that, when the audio level is the first level, the processor needs to execute step 61 and step 62. When the audio level is the second level, the processor needs to perform step 62. When the audio level is a third level, the processor determines not to adjust the audio level.
Therefore, in the embodiment of the present disclosure, when a trigger operation for adjusting an audio parameter of a first earphone is detected, ear canal data pre-stored in an account of a user who wants to wear the first earphone is acquired from a cloud; then, determining an audio level corresponding to the ear of the user based on the ear canal data; and then, when the audio level is a level other than the target level, adjusting the audio level of the first earphone to the target level. Like this, in this embodiment, through obtaining the ear canal data from the high in the clouds, need not to set up voice data transmitting device and echo receiving device in first earphone, be favorable to reducing the volume and the manufacturing cost of first earphone. Moreover, in the embodiment, by adjusting the audio parameters of the earphone, the amplitude and the phase of the sound waves emitted by the earphone can be matched with the ear, the effect that the audio level of the ear is matched with the target level is achieved, namely the same audio has the same listening effect on different users, and the user experience can be improved.
The embodiment of the present disclosure also provides an apparatus for adjusting audio parameters of a headphone, and fig. 8 is a block diagram illustrating an apparatus for adjusting audio parameters of a headphone according to an exemplary embodiment. Referring to fig. 8, an apparatus for adjusting an audio parameter of a headphone includes:
the ear canal data acquisition module 81 is used for responding to the triggering operation of adjusting the audio parameters of the first earphone and acquiring ear canal data pre-stored in an account of a user who wants to wear the first earphone from the cloud end;
an audio level obtaining module 82, configured to determine an audio level corresponding to the ear of the user based on the ear canal data;
and an audio level adjusting module 83, configured to adjust the audio level of the first earphone to a target level when the audio level is a level other than the target level, so that the audio level of the first earphone matches with the audio level corresponding to the ear.
In one embodiment, referring to fig. 9, the audio level obtaining module 82 includes:
a threshold obtaining unit 91, configured to obtain a preset amplitude difference threshold and a preset phase difference threshold;
an ear canal data comparing unit 92, configured to compare an amplitude difference in the ear canal data with the amplitude difference threshold to obtain a first comparison result, and compare a phase difference in the ear canal data with the phase difference threshold to obtain a second comparison result;
an audio level obtaining unit 93, configured to obtain an audio level of the ear according to the first comparison result and the second comparison result.
In one embodiment, referring to fig. 10, the audio level obtaining module 82 further includes:
an earphone model acquisition unit 101 configured to acquire models of a second earphone and a first earphone; the second earphone is used for acquiring the ear canal data and uploading the ear canal data to the cloud end;
a compensation data obtaining unit 102, configured to obtain compensation data of the first earphone relative to the second earphone when the models of the second earphone and the first earphone are different; the compensation data comprises phase compensation data and amplitude compensation data;
an ear canal data compensation unit 103 for compensating the phase difference according to the phase compensation data and compensating the amplitude difference according to the amplitude compensation data.
In one embodiment, referring to fig. 11, the audio level obtaining unit 93 includes:
a first determining subunit 111, 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; alternatively, the first and second electrodes may be,
a second determining subunit 112, 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 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; alternatively, the first and second electrodes may be,
a third determining subunit 113, 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.
In one embodiment, referring to fig. 12, the audio level adjustment module 83 includes:
the cavity adjusting unit 121 is configured to adjust a cavity structure of the earphone when the audio level is a first level, so that the audio level of the first earphone is changed from the first level to a second level;
a parameter adjusting unit 122, configured to, when the audio level is a second level, adjust a frequency response characteristic of a speaker in the headset, so that the audio level of the first headset changes from the second level to a third level, where the third level is a target level.
In one embodiment, the cavity adjusting unit 121 includes:
and the moving subunit is used for moving the movable device in the earphone to a target position, and the space of the cavity can be increased or reduced after the movable device is moved to the target position.
It can be understood that the apparatus provided in the embodiment of the present disclosure corresponds to the content of the above method embodiments, and specific content may refer to the content of each method embodiment, which is not described herein again.
FIG. 13 is a block diagram illustrating an electronic device in accordance with an example embodiment. For example, the electronic device 1300 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., that includes a transmitting coil, a first magnetic sensor, and a second magnetic sensor in a device that adjusts audio parameters of an earpiece.
Referring to fig. 13, electronic device 1300 may include one or more of the following components: a processing component 1302, a memory 1304, a power component 1306, a multimedia component 1308, an audio component 1310, an input/output (I/O) interface 1312, a sensor component 1314, a communication component 1316, and an image acquisition component 1318.
The processing component 1302 generally operates the entirety of the electronic device 1300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1302 may include one or more processors 1320 to execute executable programs. Further, the processing component 1302 can include one or more modules that facilitate interaction between the processing component 1302 and other components. For example, the processing component 1302 may include a multimedia module to facilitate interaction between the multimedia component 1308 and the processing component 1302.
The memory 1304 is configured to store various types of data to support operation at the electronic device 1300. Examples of such data include instructions for any application or method operating on the electronic device 1300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 1304 may be implemented by any type or combination of volatile or non-volatile memory devices 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 or optical disks.
The power supply component 1306 provides power to the various components of the electronic device 1300. Power components 1306 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for electronic device 1300.
The multimedia component 1308 includes a screen between the electronic device 1300 and the target object that provides an output interface. 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 an input signal from a 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 boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The audio component 1310 is configured to output and/or input audio signals. For example, the audio component 1310 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 1300 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1304 or transmitted via the communication component 1316. In some embodiments, the audio component 1310 also includes a speaker for outputting audio signals. In addition, the audio component 1310 may also be a headset as shown in fig. 1, and the processor MCU in the headset may implement the steps of the above method.
The I/O interface 1312 provides an interface between the processing component 1302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc.
The sensor assembly 1314 includes one or more sensors for providing various aspects of state assessment for the electronic device 1300. For example, the sensor assembly 1314 may detect an open/closed state of the electronic device 1300, the relative positioning of components, such as a display and keypad of the electronic device 1300, the sensor assembly 1314 may also detect a change in the position of the electronic device 1300 or one of the components, the presence or absence of a target object in contact with the electronic device 1300, orientation or acceleration/deceleration of the electronic device 1300, and a change in the temperature of the electronic device 1300.
The communication component 1316 is configured to facilitate communications between the electronic device 1300 and other devices in a wired or wireless manner. The electronic device 1300 may 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 1316 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1316 also includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 1300 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, micro-controllers, microprocessors, or other electronic components.
In an exemplary embodiment, there is also provided a headset, including:
a communication module for acquiring ear canal data;
a movable device disposed within a cavity of the earpiece; the movable device is used for adjusting the size of the cavity;
a processor electrically connected to the movable device;
a memory storing the processor executable program;
the processor executes the above executable program to implement the steps of the above method.
It should be noted that the communication module may be a wireless module (such as a WIFI module, a bluetooth module, etc.), and may also be a data interface such as a USB, which is not limited herein.
In an exemplary embodiment, a non-transitory readable storage medium, such as a memory including a program, is also provided that includes an executable program that is executable by a processor within an audio component. The readable storage medium may be, among others, ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosed solution following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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 (14)

1. A method of adjusting headphone audio parameters, comprising:
responding to a trigger operation of adjusting audio parameters of the first earphone, and acquiring ear canal data pre-stored in an account of a user who wants to wear the first earphone from a cloud end;
determining an audio level corresponding to the user's ear based on the ear canal data;
and when the audio grade is a grade other than the target grade, adjusting the audio grade of the first earphone to the target grade to enable the audio grade of the first earphone to be matched with the audio grade corresponding to the ear.
2. The method of claim 1, wherein determining the audio level corresponding to the user's ear based on the ear canal data comprises:
acquiring a preset amplitude difference threshold value and a preset phase difference threshold value;
comparing an amplitude difference in the ear canal data with the amplitude difference threshold to obtain a first comparison result, and comparing a phase difference in the ear canal data with the phase difference threshold to obtain a second comparison result;
obtaining an audio level of the ear according to the first comparison result and the second comparison result.
3. The method of claim 2, wherein before comparing the amplitude difference in the ear canal data to the amplitude difference threshold to obtain a first comparison result, the method further comprises:
acquiring the models of a second earphone and a first earphone; the second earphone is used for acquiring the ear canal data and uploading the ear canal data to the cloud end;
when the models of the second earphone and the first earphone are different, acquiring compensation data of the first earphone relative to the second earphone; the compensation data comprises phase compensation data and amplitude compensation data;
compensating the phase difference according to the phase compensation data, and compensating the amplitude difference according to the amplitude compensation data.
4. The method of claim 2, wherein obtaining the audio level of the ear from the first comparison result and the second comparison result comprises:
determining the audio level as 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; alternatively, the first and second electrodes may be,
determining the audio level as a second level when the first comparison result indicates that the magnitude difference is greater than the magnitude difference threshold and the second comparison result indicates that the phase difference is less than the phase difference threshold, or the first comparison result indicates that the magnitude difference is less than the magnitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold; alternatively, the first and second electrodes may be,
determining the audio level as 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.
5. The method of claim 4, wherein adjusting the audio level of the first earpiece to a target level comprises:
when the audio level is a first level, adjusting the cavity structure of the earphone so as to change the audio level of the first earphone from the first level to a second level;
and when the audio level is a second level, adjusting the frequency response characteristics of the loudspeakers in the earphones so as to change the audio level of the first earphone from the second level to a third level, wherein the third level is a target level.
6. The method of claim 5, wherein adjusting the cavity structure of the earpiece comprises:
moving a movable element within the earpiece to a target position that increases or decreases the volume of the cavity.
7. An apparatus for adjusting audio parameters of headphones, comprising:
the ear canal data acquisition module is used for responding to the triggering operation of adjusting the audio parameters of the first earphone and acquiring ear canal data pre-stored in an account of a user who wants to wear the first earphone from the cloud end;
the audio grade acquisition module is used for determining the audio grade corresponding to the ear of the user based on the ear canal data;
and the audio level adjusting module is used for adjusting the audio level of the first earphone to the target level when the audio level is a level other than the target level, so that the audio level of the first earphone is matched with the audio level corresponding to the ear.
8. The apparatus of claim 7, wherein the audio level obtaining module comprises:
the threshold value obtaining unit is used for obtaining a preset amplitude difference threshold value and a preset phase difference threshold value;
the ear canal data comparison unit is used for comparing the amplitude difference in the ear canal data with the amplitude difference threshold value to obtain a first comparison result, and comparing the phase difference in the ear canal data with the phase difference threshold value to obtain a second comparison result;
an audio level obtaining unit, configured to obtain an audio level of the ear according to the first comparison result and the second comparison result.
9. The apparatus of claim 8, wherein the audio level acquisition module further comprises:
the earphone model acquisition unit is used for acquiring the models of the second earphone and the first earphone; the second earphone is used for acquiring the ear canal data and uploading the ear canal data to the cloud end;
the compensation data acquisition unit is used for acquiring compensation data of the first earphone relative to the second earphone when the models of the second earphone and the first earphone are different; the compensation data comprises phase compensation data and amplitude compensation data;
an ear canal data compensation unit for compensating the phase difference according to the phase compensation data and compensating the amplitude difference according to the amplitude compensation data.
10. The apparatus according to claim 8, wherein the audio level acquisition unit comprises:
a first determining subunit, 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; alternatively, the first and second electrodes may be,
a second determining subunit, 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 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; alternatively, the first and second electrodes may be,
a third determining subunit, 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 apparatus of claim 10, wherein the audio level adjustment module comprises:
the cavity adjusting unit is used for adjusting the cavity structure of the earphone when the audio frequency grade is a first grade, so that the audio frequency grade of the first earphone is changed from the first grade to a second grade;
and the parameter adjusting unit is used for adjusting the frequency response characteristic of the loudspeaker in the earphone when the audio level is a second level so as to change the audio level of the first earphone from the second level to a third level, wherein the third level is a target level.
12. The apparatus of claim 11, wherein the cavity adjustment unit comprises:
and the moving subunit is used for moving the movable device in the earphone to a target position, and the space of the cavity can be increased or reduced after the movable device is moved to the target position.
13. An earphone, comprising:
a communication module for acquiring ear canal data;
a movable device disposed within a cavity of the earpiece; the movable device is used for adjusting the size of the cavity;
a processor electrically connected to the movable device;
a memory storing the processor executable program;
the processor executes the executable program to realize the steps of the method of any one of claims 1 to 6.
14. A readable storage medium having stored thereon an executable program, wherein the executable program when executed performs the steps of the method of any one of claims 1 to 6.
CN202010202967.3A 2020-03-20 2020-03-20 Method and device for adjusting earphone audio parameters, earphone and storage medium Active CN113495713B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010202967.3A CN113495713B (en) 2020-03-20 2020-03-20 Method and device for adjusting earphone audio parameters, earphone and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010202967.3A CN113495713B (en) 2020-03-20 2020-03-20 Method and device for adjusting earphone audio parameters, earphone and storage medium

Publications (2)

Publication Number Publication Date
CN113495713A true CN113495713A (en) 2021-10-12
CN113495713B CN113495713B (en) 2024-03-22

Family

ID=77993804

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010202967.3A Active CN113495713B (en) 2020-03-20 2020-03-20 Method and device for adjusting earphone audio parameters, earphone and storage medium

Country Status (1)

Country Link
CN (1) CN113495713B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488979A (en) * 2007-09-05 2009-07-22 阿瓦亚公司 Method and apparatus for configuring a handheld audio device using ear biometrics
CN101682815A (en) * 2007-04-13 2010-03-24 高通股份有限公司 Dynamic volume adjusting and band-shifting to compensate for hearing loss
CN104254843A (en) * 2012-02-29 2014-12-31 雷蛇(亚太)私人有限公司 Headset device and a device profile management system and method thereof
CN108900694A (en) * 2018-05-28 2018-11-27 Oppo广东移动通信有限公司 Ear line information acquisition method and device, terminal, earphone and readable storage medium storing program for executing
CN110267144A (en) * 2019-06-28 2019-09-20 Oppo广东移动通信有限公司 Information processing method and device and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682815A (en) * 2007-04-13 2010-03-24 高通股份有限公司 Dynamic volume adjusting and band-shifting to compensate for hearing loss
CN101488979A (en) * 2007-09-05 2009-07-22 阿瓦亚公司 Method and apparatus for configuring a handheld audio device using ear biometrics
CN104254843A (en) * 2012-02-29 2014-12-31 雷蛇(亚太)私人有限公司 Headset device and a device profile management system and method thereof
CN110109642A (en) * 2012-02-29 2019-08-09 雷蛇(亚太)私人有限公司 Headphone device and device profile management systems and method
CN108900694A (en) * 2018-05-28 2018-11-27 Oppo广东移动通信有限公司 Ear line information acquisition method and device, terminal, earphone and readable storage medium storing program for executing
CN110267144A (en) * 2019-06-28 2019-09-20 Oppo广东移动通信有限公司 Information processing method and device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
KYUNG, G ET AL.: "Versatile Wearable Computer for Drivers", DESIGN, USER EXPERIENCE, AND USABILITY: THEORY, METHODS, TOOLS AND PRACTICE,PT 2, vol. 6770 *
陈飞;: "低功耗智能蓝牙云交互耳机的设计与实现", 电脑知识与技术, no. 28 *

Also Published As

Publication number Publication date
CN113495713B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
US20230111715A1 (en) Fitting method and apparatus for hearing earphone
WO2019184399A1 (en) Method for sound effect compensation, non-transitory computer-readable storage medium, and terminal device
JP6505252B2 (en) Method and apparatus for processing audio signals
CN107493500B (en) Multimedia resource playing method and device
CN108540900B (en) Volume adjusting method and related product
US10893352B2 (en) Programmable interactive stereo headphones with tap functionality and network connectivity
CN108391205B (en) Left and right channel switching method and device, readable storage medium and terminal
WO2019033987A1 (en) Prompting method and apparatus, storage medium, and terminal
CN106454644B (en) Audio playing method and device
US20190132666A1 (en) Headset Sound Channel Control Method and System, and Related Device
CN104991754A (en) Recording method and apparatus
CN108845787B (en) Audio adjusting method, device, terminal and storage medium
CN113038337B (en) Audio playing method, wireless earphone and computer readable storage medium
CN113099336B (en) Method and device for adjusting earphone audio parameters, earphone and storage medium
EP4047469A1 (en) Method and apparatus for protecting user hearing, and electronic device
US20190141462A1 (en) System and method for performing an audiometric test and calibrating a hearing aid
CN113076075A (en) Audio signal adjusting method and device, terminal and storage medium
CN108668018B (en) Mobile terminal, volume control method and related product
WO2018058331A1 (en) Method and apparatus for controlling volume
CN108810787B (en) Foreign matter detection method and device based on audio equipment and terminal
CN113495713B (en) Method and device for adjusting earphone audio parameters, earphone and storage medium
CN113824838B (en) Sounding control method and device, electronic equipment and storage medium
CN115065921A (en) Method and device for preventing hearing aid from howling
CN114598970A (en) Audio processing method and device, electronic equipment and storage medium

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