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

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

Info

Publication number
CN113495713B
CN113495713B CN202010202967.3A CN202010202967A CN113495713B CN 113495713 B CN113495713 B CN 113495713B CN 202010202967 A CN202010202967 A CN 202010202967A CN 113495713 B CN113495713 B CN 113495713B
Authority
CN
China
Prior art keywords
earphone
grade
audio
comparison result
ear
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010202967.3A
Other languages
Chinese (zh)
Other versions
CN113495713A (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

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 triggering operation of adjusting audio parameters of the first earphone, and acquiring pre-stored ear canal data in an account of a user who wants to wear the first earphone from a cloud; determining an audio level corresponding to an ear of the user 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, so that the audio grade of the first earphone is matched with the audio grade corresponding to the ear. In the embodiment, a voice data transmitting device and an echo receiving device are not required to be arranged in the first earphone, so that the volume and the production cost of the first earphone are reduced; and through adjusting the audio frequency parameter of the earphone, the amplitude and the phase of the sound wave sent by the earphone can be matched with the ear, so that the same audio frequency has the same listening effect for different users, and the user experience can be improved.

Description

Method and device for adjusting earphone audio parameters, earphone and storage medium
Technical Field
The disclosure relates to the technical field of audio, and in particular relates to a method and device for adjusting audio parameters of headphones, headphones and a storage medium.
Background
Currently, many users prefer to wear headphones in public places or during sports, and use headphones to listen to music or talk. 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, having a different auditory perception for the same audio, e.g., some users sound just like, some users feel loud, and some users feel soft, thus reducing the user experience.
Disclosure of Invention
The disclosure provides a method and a device for adjusting an audio parameter of an earphone, the earphone and a storage medium, so as to solve the defects of the related art.
According to a first aspect of embodiments of the present disclosure, there is provided a method of adjusting an audio parameter of a headset, including:
responding to triggering operation of adjusting audio parameters of the first earphone, and acquiring pre-stored ear canal data in an account of a user who wants to wear the first earphone from a cloud;
determining an audio level corresponding to an ear of the user 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, so that the audio grade of the first earphone is 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 includes:
acquiring a preset amplitude difference threshold value and a preset phase difference threshold value;
comparing the amplitude difference in the ear canal data with the amplitude difference threshold to obtain a first comparison result, and comparing the phase difference in the ear canal data with the phase difference threshold to obtain a second comparison result;
and obtaining the audio grade 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 comprises:
obtaining the model numbers of the second earphone and the first earphone; the second earphone is used for acquiring the auditory canal data and uploading the auditory canal data to the cloud;
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;
And 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 grade of the ear according to the first comparison result and the second comparison result includes:
determining 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,
determining 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; or,
and when the first comparison result indicates that the amplitude difference is smaller 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 that the audio grade is a third grade.
Optionally, adjusting the audio level of the first earphone to a target level includes:
When the audio grade is the first grade, adjusting the cavity structure of the earphone so as to change the audio grade of the first earphone from the first grade to the second grade;
and when the audio grade is the second grade, adjusting the frequency response characteristic of the loudspeaker in the earphone so as to change the audio grade of the first earphone from the second grade to a third grade, wherein the third grade is the target grade.
Optionally, adjusting a cavity structure of the earphone includes:
moving the movable device in the earphone to a target position increases or decreases the space of the cavity after the movable device reaches the target position.
According to a second aspect of embodiments of the present disclosure, there is provided an apparatus for adjusting an audio parameter of a headset, 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 the ear canal data prestored in the account of the user who wants to wear the first earphone from the cloud;
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 grade adjusting module is used for adjusting the audio grade of the first earphone to the target grade when the audio grade is the grade beyond the target grade, so that the audio grade of the first earphone is matched with the audio grade corresponding to the ear.
Optionally, the audio level acquisition module includes:
the threshold value acquisition unit is used for acquiring a preset amplitude value difference threshold value and a preset phase difference threshold value;
the auditory canal data comparison unit is used for comparing the amplitude difference in the auditory canal data with the amplitude difference threshold value to obtain a first comparison result, and comparing the phase difference in the auditory canal data with the phase difference threshold value to obtain a second comparison result;
and the audio grade acquisition unit is used for acquiring the audio grade of the ear according to the first comparison result and the second comparison result.
Optionally, the audio level acquisition module further includes:
the earphone model obtaining unit is used for obtaining models of the second earphone and the first earphone; the second earphone is used for acquiring the auditory canal data and uploading the auditory canal data to the cloud;
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;
and the auditory canal data compensation unit is used 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 acquisition unit includes:
a first determining subunit, configured to determine 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; or,
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; or,
and 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 grade is the first grade so as to change the audio grade of the first earphone from the first grade to the second grade;
And the parameter adjusting unit is used for adjusting the frequency response characteristic of the loudspeaker in the earphone when the audio grade is the second grade so as to change the audio grade of the first earphone from the second grade to the third grade, wherein the third grade is the target grade.
Optionally, the cavity adjustment 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 is increased or decreased after the movable device reaches the target position.
According to a third aspect of embodiments of the present disclosure, there is provided an earphone comprising:
a communication module for acquiring ear canal data;
a movable device disposed within a cavity of the earphone; 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 the method of any of the 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 comprise the following beneficial effects:
as can be seen from the above embodiments, in the embodiments of the present disclosure, when a triggering operation of adjusting an audio parameter of a first earphone is detected, ear canal data stored in advance in an account of a user who wants to wear the first earphone is obtained from a cloud; then, determining an audio level corresponding to the ear of the user 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, so that the audio grade of the first earphone is matched with the audio grade corresponding to the ear. In this way, in this embodiment, by acquiring the ear canal data from the cloud, there is no need to set a voice data transmitting device and an echo receiving device in the first earphone, which is beneficial to reducing the volume and the production cost of the first earphone. In addition, in the embodiment, by adjusting the audio parameters of the earphone, the amplitude and the phase of the sound waves sent by the earphone can be matched with the ear, so that the effect that the audio grade of the ear is matched with the target grade 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 disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic diagram of an application scenario, according to an example embodiment.
Fig. 2 is a flowchart illustrating a method of adjusting headphone audio parameters according to an exemplary embodiment.
FIG. 3 is a flow chart illustrating the acquisition of amplitude and phase differences according to an exemplary embodiment.
Fig. 4 is a flowchart illustrating the acquisition of audio levels according to an exemplary embodiment.
Fig. 5 is a flow chart illustrating an audio adjustment according to an exemplary embodiment.
Fig. 6 is a flow chart illustrating another audio adjustment according to an exemplary embodiment.
Fig. 7 is a structural diagram of an earphone according to an exemplary embodiment.
Fig. 8 is a flowchart illustrating adjusting audio parameters according to an exemplary 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 of an electronic device, according to an example embodiment.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. Not all embodiments consistent with the present disclosure are represented in the following exemplary embodiments. Rather, they are merely examples of apparatus consistent with some aspects of the disclosure as detailed in the accompanying claims.
Currently, many users prefer to wear headphones in public places or during sports, and use headphones to listen to music or talk. 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, having a different auditory perception for the same audio, e.g., some users sound just like, some users feel loud, and some users feel soft, thus reducing the user experience.
In order to solve the above technical problems, the embodiments of the present disclosure provide a method for adjusting an audio parameter of an earphone, which may be suitable for an application scenario shown in fig. 1. Referring to fig. 1, the second headset 20 may be a standard detection headset within an off-line experience store, or a smart headset of another user. Taking a standard detection earphone as an example, on one hand, a user can experience the standard detection earphone to obtain the use experience, on the other hand, the user can utilize the standard detection earphone to obtain the ear canal data, after the ear canal data is obtained, the user can select to upload the ear canal data, at the moment, a second earphone or an electronic device connected with the second earphone can display a login page, and after an account and a password are input, the user can log in the cloud 30, and meanwhile, the ear canal data is stored in the cloud 30.
When the user takes another earphone (i.e., the first earphone 10), the first earphone 10 can be connected to the cloud end 30 and log in to the account; at this time, the ear canal data stored in advance may be downloaded from the cloud 30. The audio parameters of the first earphone 10 may be adjusted based on the ear canal data so that the audio parameters match the user's ears.
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 end 30 may be a server, a server cluster, a smart phone, a smart bracelet, a vehicle-mounted device, a smart home, or other electronic device. The electronic device may select a combination according to a specific scenario, which is not limited herein. It is understood that the cloud end 30 may include at least one storage space, each storage space may correspond to an account, and the corresponding storage space may be accessed through the account and the password, and data and ear canal data may be read and written. In one example, the cloud 30 is a dedicated storage device that stores ear canal data that can be read directly after login.
Fig. 2 is a flowchart 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, for which embodiments are described later as an executing device. Referring to fig. 2, a method for adjusting an audio parameter of an earphone includes steps 21 to 23, wherein:
In step 21, in response to a triggering operation of adjusting the audio parameters of the first earphone, ear canal data pre-stored in an account of a user who wants to wear the first earphone is obtained from the cloud.
In this embodiment, after the user takes the first earphone 10, the user may connect to the cloud terminal 30 through the interaction page displayed on the display screen in 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 terminal 30. Taking the example that the first earphone 10 is connected to the cloud end 30 through a smart phone, a user may set the first earphone 10 through an interaction page or application software APP on the smart phone, for example, adjust audio parameters of the earphone.
After the first earphone 10 detects the triggering operation for adjusting the audio parameters, the first earphone 10 can acquire the pre-stored ear canal data in the account of the 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 end 30 and stores the ear canal data locally, and then the first earphone 10 obtains the ear canal data from the local area of the electronic device.
In this embodiment, the ear canal data may include an amplitude difference and a phase difference, and may be acquired using the second earphone 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 may 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 unreflected sound wave signal; a part of the sound waves will propagate to the ear canal and the eardrum 41 of the ear and enter the echo receiving device 22 of the second earphone 20 after being reflected, i.e. the echo receiving device 22 may receive the sound waves 211 and the sound waves 212 after being reflected by the ear canal and/or the eardrum 41, and an audio signal is obtained.
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. Because the processor can acquire the original waveform of the audio data currently played by the earphone and consider that certain attenuation exists from the original waveform to the first audio signal, the relation between the original waveform and the waveform of the first audio signal can be established in advance, 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 can extract the first audio signal from the audio signal given the original waveform. Then, the second earphone 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, in the processing process of the audio signal, reference may also be made to other related technologies, and in the case that the first audio signal and the second audio signal can be separated, the corresponding schemes fall within the protection scope of the disclosure.
In this embodiment, the second earphone 20 may acquire the amplitude difference and the phase difference of both 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 delay degree of the depth of the eardrum 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 with the second earphone 20 may display a login page of the cloud end 30, the user may log in to the cloud end 30 after inputting an account and a password, and the second earphone 20 uploads the amplitude difference and the phase difference as ear canal data to the cloud end 30. The cloud 30 stores the ear canal data in a storage area corresponding to the account.
The account may be a character string, a mobile phone number, a mailbox, or biological information such as a fingerprint, an iris, an auricle, and a face. In the case of taking a fingerprint as an example, when the user needs to log onto 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 own model number as a part of the ear canal data to the cloud end 30 at the same time, which 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 practical applications, the models of the second earphone 20 and the first earphone 10 may be different, 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 earphone 10 may obtain the model numbers of the second earphone 20 and the first earphone 10. Wherein the model is related to parameters of the earphone, which may include earphone hardware parameters such as the shape of the earphone, the installation position of each device in the earphone, etc., and earphone software parameters such as audio parameters in the software about the earphone, etc. In step 42, when the models of the second earphone 20 and the first earphone 10 are different, if any parameter of the first earphone 10 and the second earphone is different, that is, the models are different, 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 a difference of phases caused when the same audio signal propagates in the ear canal due to different models of the two headphones, where the difference of phases is a difference 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 a first audio signal and a second audio signal detected after the same audio signal is transmitted by the first headphone; the second phase difference refers to 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 earphone. The compensation data may be obtained through a large amount of experimental data experiments, or may be obtained through calculation through artificial intelligence algorithms such as deep learning after training, neural networks, and the like, which is not limited herein. The method for acquiring the amplitude compensation data is the same as the method for acquiring the phase compensation data, and will not be described here 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 canal data, the deviation caused by the model difference of the first earphone 10 and the second earphone 20 can be eliminated, which is beneficial to improving the accuracy of the subsequent calculation of the audio level.
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, and referring to fig. 5, the processor of the first earphone 10 may obtain the preset amplitude difference threshold and the preset phase difference threshold (corresponding to step 51). The amplitude difference threshold and the phase difference threshold can be obtained through 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 may be used to confirm the amplitude difference and/or the phase difference, for example, a certain number of volunteers (e.g. 1000) may be selected, ear canal data may be collected once for each volunteer, and the amplitude difference and the phase difference according to the ear canal data may be determined according to feedback of the volunteer on the audio effect. Then, the amplitude differences and the phase differences of the same feedback type are counted, and the average value of the amplitude differences and the average value of the phase differences, or the maximum value of the amplitude differences and the maximum value of the phase differences are obtained; the average, or maximum weighted (e.g., multiplied by a fraction) value is then used as the magnitude and phase difference thresholds. The technician can set the amplitude difference threshold and the 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 a first comparison result and a second comparison result, respectively (corresponding to step 52). The first comparison result comprises that the amplitude difference is larger 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 based on the first comparison result and the second comparison result (corresponding to step 53), and 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 grade as a first grade.
And when the first comparison result shows that the amplitude difference is larger than the amplitude difference threshold value and the second comparison result shows that the phase difference is smaller than the phase difference threshold value, determining that the audio grade is a second grade.
And when the first comparison result shows that the amplitude difference is smaller than the amplitude difference threshold value and the second comparison result shows that the phase difference is larger than the phase difference threshold value, determining that the audio grade is a second grade.
And when the first comparison result shows that the amplitude difference is smaller than the amplitude difference threshold value and the second comparison result shows that the phase difference is smaller than the phase difference threshold value, determining that the audio grade is a third grade.
It should be noted that, in the above embodiment, only the case that the audio level has 3 levels is illustrated, and a technician may increase the corresponding level according to a specific scene, and 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 level may be increased to 9. Corresponding schemes fall within the protection scope 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 the 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 parameters 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 so that the audio level of the first earphone is changed from the first level to the second level. For example, referring to fig. 7, the processor adjusts the cavity structure of the first earphone 10 in a first audio level, in a manner that the processor sends a control signal to the movable device to move the movable device to the target position.
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 the ear insensitive to the high-frequency component in the sound wave, such as the short-ear-canal scene caused by the shallow eardrum. When the movable device moves away from the eardrum, the cavity structure of the earphone becomes large, the low-frequency effect of the output sound wave can be improved, and the earphone is suitable for ears insensitive to low-frequency components in the sound wave, such as scenes with long auditory canal caused by deep eardrum.
With continued reference to fig. 6, in 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, the processor adjusts the audio parameters of the headphones in the second level of the audio level, where the adjustment may be EQ (equalliser) and DRC (Dynamic Range Control), and after the audio level is determined, an adjustment target value of the audio parameters may be determined, and then the audio parameters may be directly adjusted to the adjustment target value. 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 adjusting when the listening effect is best, at which time it is determined to adjust to the target level.
It should be noted that, when the audio level is the first level, the processor needs to perform 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 the third level, the processor determines not to adjust the audio level.
So far, in the embodiment of the present disclosure, when the triggering operation of adjusting the audio parameter of the first earphone is detected, the ear canal data pre-stored in the account of the user who wants to wear the first earphone is obtained from the cloud; then, determining an audio level corresponding to the ear of the user based on the ear canal data; and then, when the audio grade is a grade other than the target grade, adjusting the audio grade of the first earphone to the target grade. In this way, in this embodiment, by acquiring the ear canal data from the cloud, there is no need to set a voice data transmitting device and an echo receiving device in the first earphone, which is beneficial to reducing the volume and the production cost of the first earphone. In addition, in the embodiment, by adjusting the audio parameters of the earphone, the amplitude and the phase of the sound waves sent by the earphone can be matched with the ear, so that the effect that the audio grade of the ear is matched with the target grade 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 disclosure also provides a device for adjusting the audio parameters of the earphone, and fig. 8 is a block diagram of a device for adjusting the audio parameters of the earphone according to an exemplary embodiment. Referring to fig. 8, an apparatus for adjusting an audio parameter of a headset includes:
the ear canal data obtaining module 81 is configured to obtain, from the cloud, ear canal data stored in advance in an account of a user who wants to wear the first earphone, in response to a triggering operation for adjusting an audio parameter of the first earphone;
an audio level acquisition module 82, configured to determine an audio level corresponding to an ear of the user based on the ear canal data;
and the audio level adjustment module 83 is configured to adjust 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 matches with the audio level corresponding to the ear.
In one embodiment, referring to fig. 9, the audio level acquisition module 82 includes:
a threshold value obtaining unit 91, configured to obtain a preset amplitude difference threshold value and a preset phase difference threshold value;
an ear canal data comparing unit 92 for comparing the amplitude difference in the ear canal data with the amplitude difference threshold to obtain a first comparison result, and comparing the 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 acquisition module 82 further includes:
an earphone model obtaining unit 101 configured to obtain models of the second earphone and the first earphone; the second earphone is used for acquiring the auditory canal data and uploading the auditory canal data to the cloud;
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 an embodiment, referring to fig. 11, the audio level obtaining unit 93 includes:
a first determining subunit 111, configured to determine 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; or,
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; or,
a third determining subunit 113, configured to determine the audio level as 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:
a cavity adjusting unit 121, 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;
and a parameter adjusting unit 122, configured to adjust the frequency response characteristic of the speaker in the earphone when the audio level is the second level, so that the audio level of the first earphone changes from the second level to a third level, and the third level is the target level.
In an embodiment, the cavity adjustment 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 is increased or decreased after the movable device reaches the target position.
It can be understood that the apparatus provided in the embodiments of the present disclosure corresponds to the content of the embodiments of the method, and specific content may refer to the content of each embodiment of the method, which is not described herein again.
Fig. 13 is a block diagram of an electronic device, according to 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, an exercise device, a personal digital assistant, etc., that includes a transmit coil, a first magnetic sensor, and a second magnetic sensor in a device that adjusts the audio parameters of the headset.
Referring to fig. 13, an 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 overall with the electronic device 1300, such as operations associated with display, telephone call, data communication, camera operation, and recording operation. The processing component 1302 can include one or more processors 1320 to execute executable programs. Further, the processing component 1302 can include one or more modules that facilitate interactions 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 operations 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 nonvolatile 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 disk.
The power supply assembly 1306 provides power to the various components of the electronic device 1300. The power components 1306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the 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 input signals from a target object. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also 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 be further 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 method described above.
The I/O interface 1312 provides an interface between the processing component 1302 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc.
The sensor assembly 1314 includes one or more sensors for providing status assessment of various aspects of the electronic device 1300. For example, the sensor assembly 1314 may detect an on/off state of the electronic device 1300, a relative positioning of the components, such as a display and keypad of the electronic device 1300, a change in 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, an orientation or acceleration/deceleration of the electronic device 1300, and a change in temperature of the electronic device 1300.
The communication component 1316 is configured to facilitate communication between the electronic device 1300 and other devices, either wired or wireless. 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 one 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 communication component 1316 further includes a Near Field Communication (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, microcontrollers, microprocessors, or other electronic elements.
In an exemplary embodiment, there is also provided an earphone including:
a communication module for acquiring ear canal data;
a movable device disposed within a cavity of the earphone; 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 the method described above.
The communication module may be a wireless module (such as a WIFI module, a bluetooth module, etc.), or may be a data interface such as a USB, etc., which is not limited herein.
In an exemplary embodiment, a non-transitory readable storage medium is also provided, such as a memory including a program, including an executable program executable by a processor within the audio component. The readable storage medium may be, among other things, ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosed embodiments 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 is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1. A method of adjusting an audio parameter of a headset, comprising:
responding to triggering operation of adjusting audio parameters of the first earphone, and acquiring pre-stored ear canal data in an account of a user who wants to wear the first earphone from a cloud;
determining an audio level corresponding to an ear of the user based on the ear canal data;
when the audio grade of the first earphone is a grade other than the target grade, adjusting the audio grade of the first earphone to the target grade, so that the audio grade of the first earphone is matched with the audio grade corresponding to the ear;
determining an audio level corresponding to an ear of the user based on the ear canal data, comprising:
acquiring a preset amplitude difference threshold value and a preset phase difference threshold value;
comparing the amplitude difference in the ear canal data with the amplitude difference threshold to obtain a first comparison result, and comparing the phase difference in the ear canal data with the phase difference threshold to obtain a second comparison result;
And obtaining the audio grade of the ear according to the first comparison result and the second comparison result.
2. The method of claim 1, wherein prior to comparing the magnitude difference in the ear canal data to the magnitude difference threshold to obtain a first comparison result, the method further comprises:
obtaining the model numbers of the second earphone and the first earphone; the second earphone is used for acquiring the auditory canal data and uploading the auditory canal data to the cloud;
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;
and compensating the phase difference according to the phase compensation data, and compensating the amplitude difference according to the amplitude compensation data.
3. The method of claim 1, wherein obtaining the audio rating of the ear based on the first comparison and the second comparison comprises:
determining that the audio level of the ear 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,
Determining that the audio level of the ear 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; or,
and when the first comparison result indicates that the amplitude difference is smaller 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 that the audio frequency grade of the ear is a third grade.
4. The method of claim 3, wherein adjusting the audio level of the first earpiece to the target level comprises:
when the audio grade of the first earphone is a first grade, adjusting the cavity structure of the earphone so as to change the audio grade of the first earphone from the first grade to a second grade;
and when the audio grade of the first earphone is the second grade, adjusting the frequency response characteristic of the loudspeaker in the earphone so as to change the audio grade of the first earphone from the second grade to a third grade, wherein the third grade is the target grade.
5. The method of claim 4, wherein adjusting the cavity structure of the earphone comprises:
moving the movable device in the earphone to a target position increases or decreases the space of the cavity after the movable device reaches the target position.
6. An apparatus for adjusting an audio parameter of a headset, 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 the ear canal data prestored in the account of the user who wants to wear the first earphone from the cloud;
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;
the audio grade adjusting module is used for adjusting the audio grade of the first earphone to the target grade when the audio grade of the first earphone is a grade other than the target grade, so that the audio grade of the first earphone is matched with the audio grade corresponding to the ear;
the audio grade acquisition module comprises:
the threshold value acquisition unit is used for acquiring a preset amplitude value difference threshold value and a preset phase difference threshold value;
the auditory canal data comparison unit is used for comparing the amplitude difference in the auditory canal data with the amplitude difference threshold value to obtain a first comparison result, and comparing the phase difference in the auditory canal data with the phase difference threshold value to obtain a second comparison result;
And the audio grade acquisition unit is used for acquiring the audio grade of the ear according to the first comparison result and the second comparison result.
7. The apparatus of claim 6, wherein the audio level acquisition module further comprises:
the earphone model obtaining unit is used for obtaining models of the second earphone and the first earphone; the second earphone is used for acquiring the auditory canal data and uploading the auditory canal data to the cloud;
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;
and the auditory canal data compensation unit is used for compensating the phase difference according to the phase compensation data and compensating the amplitude difference according to the amplitude compensation data.
8. The apparatus of claim 6, wherein the audio level acquisition unit comprises:
a first determining subunit, configured to determine, 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, an audio level of the ear to be a first level; or,
A second determining subunit configured to determine, 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, that the audio level of the ear is a second level; or,
and the third determining subunit is used for determining the audio frequency grade of the ear to be a third grade when the first comparison result indicates that the amplitude difference is smaller than the amplitude difference threshold value and the second comparison result indicates that the phase difference is smaller than the phase difference threshold value.
9. The apparatus of claim 8, wherein the audio level adjustment module comprises:
the cavity adjusting unit is used for adjusting the cavity structure of the earphone when the audio grade of the first earphone is a first grade, so that the audio 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 grade of the first earphone is the second grade so as to change the audio grade of the first earphone from the second grade to the third grade, wherein the third grade is the target grade.
10. The apparatus of claim 9, 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 is increased or decreased after the movable device reaches the target position.
11. An earphone, comprising:
a communication module for acquiring ear canal data;
a movable device disposed within a cavity of the earphone; 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 the method of any one of claims 1 to 5.
12. A readable storage medium having stored thereon an executable program, wherein the executable program when executed performs the steps of the method of any of claims 1 to 5.
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 CN113495713A (en) 2021-10-12
CN113495713B true 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.2012,第6770卷全文. *
低功耗智能蓝牙云交互耳机的设计与实现;陈飞;;电脑知识与技术(28);全文 *

Also Published As

Publication number Publication date
CN113495713A (en) 2021-10-12

Similar Documents

Publication Publication Date Title
US10609483B2 (en) Method for sound effect compensation, non-transitory computer-readable storage medium, and terminal device
US20230111715A1 (en) Fitting method and apparatus for hearing earphone
US11251763B2 (en) Audio signal adjustment method, storage medium, and terminal
CN107493500B (en) Multimedia resource playing method and device
CN113099336B (en) Method and device for adjusting earphone audio parameters, earphone and storage medium
US10805708B2 (en) Headset sound channel control method and system, and related device
US20180132027A1 (en) Programmable interactive stereo headphones with tap functionality and network connectivity
WO2019033987A1 (en) Prompting method and apparatus, storage medium, and terminal
CN106454644B (en) Audio playing method and device
CN108845787B (en) Audio adjusting method, device, terminal and storage medium
US10121491B2 (en) Intelligent volume control interface
CN107135452B (en) Hearing aid fitting method and device
CN114125639B (en) Audio signal processing method and device and electronic equipment
CN107547732A (en) A kind of media play volume adjusting method, device, terminal and storage medium
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
CN113495713B (en) Method and device for adjusting earphone audio parameters, earphone and storage medium
CN111736798A (en) Volume adjusting method, volume adjusting device and computer readable storage medium
CN113824838B (en) Sounding control method and device, electronic equipment and storage medium
CN115185479A (en) Volume adjusting method, device, equipment and storage medium
CN115065921A (en) Method and device for preventing hearing aid from howling
CN113099335A (en) Method and device for adjusting audio parameters of earphone, electronic equipment and earphone
CN107493376A (en) A kind of ringing volume adjusting method and device
CN115412632A (en) Audio data processing method, device, terminal 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