CN113709614A - Volume adjusting method and device and computer readable storage medium - Google Patents

Volume adjusting method and device and computer readable storage medium Download PDF

Info

Publication number
CN113709614A
CN113709614A CN202110892146.1A CN202110892146A CN113709614A CN 113709614 A CN113709614 A CN 113709614A CN 202110892146 A CN202110892146 A CN 202110892146A CN 113709614 A CN113709614 A CN 113709614A
Authority
CN
China
Prior art keywords
ear canal
earphone
sound pressure
characteristic information
current
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
CN202110892146.1A
Other languages
Chinese (zh)
Other versions
CN113709614B (en
Inventor
李应伟
宋肃
杨乐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202110892146.1A priority Critical patent/CN113709614B/en
Publication of CN113709614A publication Critical patent/CN113709614A/en
Application granted granted Critical
Publication of CN113709614B publication Critical patent/CN113709614B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Circuit For Audible Band Transducer (AREA)
  • Headphones And Earphones (AREA)

Abstract

The embodiment of the application discloses a volume adjusting method, a volume adjusting device and a computer readable storage medium, which can automatically adjust to the optimal playing volume according to the mode that a user wears an earphone, and the method can comprise the following steps: when the earphone is in a wearing state and audio is played through the earphone, current ear canal characteristic information generated during audio playing is obtained through the earphone, and a current sound pressure value is obtained through a sound pressure sensor arranged on the earphone; when the corresponding relation between the ear canal characteristic information and the sound pressure value is detected, determining a reference sound pressure value corresponding to the current ear canal characteristic information from the corresponding relation between the ear canal characteristic information and the sound pressure value, wherein the corresponding relation represents the ear canal characteristic information and the sound pressure value acquired when the earphone is worn in at least one wearing mode; and adjusting the volume of the played audio based on the reference sound pressure value.

Description

Volume adjusting method and device and computer readable storage medium
Description of the cases
The present application is proposed based on the chinese patent application with application number 201910620694.1, application date of 2019, month 07 and 10, entitled "a volume adjustment method and apparatus, computer readable storage medium", which proposes a divisional case within the scope described in the chinese patent application, and the entire contents of the chinese patent application are incorporated herein by reference again.
Technical Field
The present application relates to the field of software engineering, and in particular, to a method and an apparatus for adjusting volume, and a computer-readable storage medium.
Background
At present, a method for automatically adjusting a playing volume of a terminal is commonly implemented by setting a microphone on an earphone, detecting a current playing volume of the earphone by the microphone, and generating an alarm instruction and sending alarm information by an intelligent terminal when the current volume is greater than a preset threshold. Meanwhile, the intelligent terminal obtains the sound leakage variable quantity of the user in the process of wearing the earphone; and adjusting the output volume of the earphone according to the leakage variable quantity of the sound. However, the volume can be adjusted only by detecting the volume of the current playing and the leakage amount during wearing, and the situation that the volume is too large or too small is adjusted, so that the intelligent adjustment is not enough.
Disclosure of Invention
The application provides a volume adjusting method and device and a computer readable storage medium, which can automatically adjust to the optimal playing volume according to the using mode of an earphone, thereby improving the intelligence of personalized earphone use.
The technical scheme of the application is realized as follows:
the embodiment of the application provides a volume adjusting method, which comprises the following steps:
when an earphone is in a wearing state and audio is played through the earphone, current ear canal characteristic information generated when the audio is played is obtained through the earphone, and a current sound pressure value is obtained through a sound pressure sensor arranged on the earphone;
when the corresponding relation between the ear canal characteristic information and the sound pressure value is detected, determining a reference sound pressure value corresponding to the current ear canal characteristic information from the corresponding relation between the ear canal characteristic information and the sound pressure value, wherein the corresponding relation represents the ear canal characteristic information and the sound pressure value acquired when the earphone is worn by adopting at least one wearing mode;
and adjusting the volume of the played audio based on the reference sound pressure value.
The embodiment of the application provides a volume control device, the device includes: the device comprises an acquisition unit, a determination unit and a control unit; wherein the content of the first and second substances,
the acquisition unit is used for acquiring current ear canal characteristic information generated during audio playing through the earphone when the earphone is in a wearing state and the audio is played through the earphone, and acquiring a current sound pressure value through a sound pressure sensor arranged on the earphone;
the determining unit is configured to determine a reference sound pressure value corresponding to the current ear canal feature information from a correspondence between the ear canal feature information and a sound pressure value when it is detected that the correspondence between the ear canal feature information and the sound pressure value exists, where the correspondence represents ear canal feature information and a sound pressure value acquired when the earphone is worn in at least one wearing manner;
the control unit is used for adjusting the volume of the audio based on the reference sound pressure value.
The embodiment of the application provides a volume adjustment device, volume adjustment device includes: a processor, a memory and a communication bus, the memory communicating with the processor through the communication bus, the memory storing one or more programs executable by the processor, the processor performing any of the volume adjustment methods described above when the one or more programs are executed.
Embodiments of the present application provide a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement any of the volume adjustment methods described above.
The embodiment of the application provides a volume adjusting method and device and a computer readable storage medium, wherein the method comprises the following steps: when the earphone is in a wearing state and audio is played through the earphone, current ear canal characteristic information generated during audio playing is obtained through the earphone, and a current sound pressure value is obtained through a sound pressure sensor arranged on the earphone; when the corresponding relation between the ear canal characteristic information and the sound pressure value is detected, determining a reference sound pressure value corresponding to the current ear canal characteristic information from the corresponding relation between the ear canal characteristic information and the sound pressure value, wherein the corresponding relation represents the ear canal characteristic information and the sound pressure value acquired when the earphone is worn in each of at least one wearing mode; and adjusting the volume of the played audio based on the reference sound pressure value. By adopting the method, when the earphone is in a wearing state and plays audio, the volume adjusting device detects the current ear canal characteristic information in real time, determines the reference sound pressure value corresponding to the current ear canal characteristic information from the corresponding relation between the ear canal characteristic information acquired in each wearing mode which is recorded and stored in advance and the optimal sound pressure value correspondingly adjusted by the user, and finally adjusts the volume of the playing volume according to the reference sound pressure value, so that the automatic adjustment to the optimal playing volume according to the using mode of the earphone is realized, and the intelligence of the personalized earphone is improved.
Drawings
Fig. 1 is a first flowchart of a volume adjustment method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of an earphone according to an embodiment of the present disclosure;
fig. 3 is a flowchart of a volume adjustment method according to an embodiment of the present application;
fig. 4 is a flow chart of a volume adjustment method provided in the embodiment of the present application;
fig. 5 is a first schematic structural diagram of a volume adjustment device according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a volume adjustment device according to an embodiment of the present application.
Detailed Description
In order to more clearly illustrate the embodiments of the present application or technical solutions in the prior art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
An embodiment of the present application provides a volume adjustment method, as shown in fig. 1, the method may include:
s101, when the earphone is in a wearing state and audio is played through the earphone, current ear canal characteristic information generated during audio playing is obtained through the earphone, and a current sound pressure value is obtained through a sound pressure sensor arranged on the earphone.
The volume adjusting method provided by the embodiment of the application is suitable for a scene of volume adjustment of the earphone, such as a scene of automatic adjustment of the earphone volume by a mobile phone and a scene of automatic adjustment of the earphone volume by other playing devices.
In the embodiment of the application, the volume adjusting device detects whether the earphone is in a wearing state after communicating with the earphone, and when the earphone is detected to be in the wearing state and the audio is played through the earphone, the volume adjusting device can acquire the current ear canal characteristic information of the earphone.
In this application embodiment, when the earphone is worn in the auricle different positions, there is a difference in the cavity characteristics that the duct and the earphone constitute, so the ear canal characteristic information in this application embodiment means that the user puts the earphone into the auricle with different modes and wears the characteristics of the cavity that constitutes between user's ear canal and the earphone. The volume adjusting device takes the characteristics of a cavity formed between the ear canal of the current user and the earphone as the characteristic information of the current ear canal.
In the embodiment of the application, when different users use the earphones, due to different ear structures of different people, even if the different users wear the earphones in the same wearing mode, cavities formed between the ear canals and the earphones are different, namely when the different users use the earphones, the ear canal characteristic information corresponding to each user is different; in addition, when the same user wears the earphones in different wearing manners, for example, the difference of the cavity formed between the ear canal and the earphone may be caused by an unworn manner, a normal wearing manner, a tight wearing manner, a loose wearing manner, an arbitrary wearing manner, or the like. Therefore, the ear canal characteristic information can represent each different earphone wearing mode of each different user, and the current ear canal characteristic information represents the current earphone wearing mode of the current user.
In some embodiments, the volume adjustment device may further perform S1011 to S1013 to determine whether the earphone is in the wearing state before the volume adjustment device acquires, through the earphone, the current ear canal characteristic information generated when the audio is played and acquires the current sound pressure value through the sound pressure sensor provided on the earphone, as follows:
s1011, when the audio is played through the earphone, the initial ear canal characteristic information generated during the audio playing is obtained through the earphone.
When audio is played through the earphone, the sound volume adjusting device acquires the ear canal characteristic information generated during audio playing through the earphone and uses the ear canal characteristic information as initial ear canal characteristic information.
In the embodiment of the application, when a user listens to songs and watches videos by using the earphone, the earphone can play corresponding audio, the user can wear the earphone into the auricle at the moment, the user can listen to the corresponding audio normally, and the user can start playing the audio without wearing the earphone. Therefore, the volume adjusting device needs to determine the wearing state of the earphone first. Because the cavity formed between the earphone and the auditory canal does not exist when the earphone is not worn and is in a free placement state, the characteristic information of the auditory canal respectively corresponding to the earphone when the earphone is in a wearing state and the earphone is not worn is inevitably different. The volume adjusting device can judge whether the earphone is in a wearing state or not by acquiring the initial ear canal characteristic information generated when the earphone plays audio.
In the embodiment of the application, the initial ear canal feature information may be the first ear canal feature information collected by the volume control device when the audio is played through the earphone, or the ear canal feature information collected by the volume control device at a predetermined time interval during the audio playing process through the earphone.
And S1012, calculating a second matching degree of the initial ear canal characteristic information and the preset ear canal characteristic information.
In the embodiment of the application, the volume adjusting device can first preset and store the ear canal characteristic information corresponding to the earphone not worn, and the ear canal characteristic information is preset.
In the embodiment of the application, on the premise that the preset ear canal feature information exists, after the volume adjusting device acquires the initial ear canal feature information, the initial ear canal feature information and the preset ear canal feature information representing the state that the earphone is not worn can be compared and matched, and whether the current earphone is in the wearing state or not is judged.
In this application embodiment, volume adjustment device can calculate initial duct characteristic information and predetermine the second matching degree of duct characteristic information to the standard of judging is regarded as to the second matching degree.
And S1013, when the second matching degree is larger than a preset second matching degree threshold value, generating an alarm prompt for representing that the earphone is not worn.
After the volume adjusting device calculates the second matching degree of the initial ear canal characteristic information and the preset ear canal characteristic information, if the second matching degree is larger than the preset second matching degree threshold value, the initial ear canal characteristic information is very close to the preset ear canal characteristic information, namely, the ear canal characteristic information collected in the unworn state, and therefore the volume adjusting device can consider that the current earphone is in the unworn state.
After the volume adjusting device judges that the earphone is not worn, the volume adjusting device generates an alarm prompt representing that the earphone is not worn because the volume adjusting device does not adjust the volume when the earphone is not worn, and the method flow is ended.
In some embodiments, the warning prompt may be a prompt that the volume adjustment device performs a corresponding prompt on a terminal display interface to prompt the user that the earphone is not worn, or a warning sound is used to prompt the user that the earphone is not worn, which is specifically implemented according to an actual situation, and the embodiments of the present application are not limited.
In the embodiment of the application, after the volume adjusting device judges that the earphone is in a wearing state, when the earphone plays audio, the volume adjusting device acquires current ear canal characteristic information generated when the audio is played through the earphone.
In some embodiments, the current ear canal characteristic information includes current impedance information; the method for the volume adjustment device to acquire the current ear canal characteristic information generated when the audio is played through the earphone may include: when the audio is played through the earphone, a voltage signal and a current signal generated when the audio is played are detected based on a digital-to-analog conversion circuit in the earphone; and generating current impedance information based on the voltage signal and the current signal according to the earphone.
The method comprises the steps that when the volume adjusting device determines that the earphone is in a wearing state and plays audio through the earphone, an impedance detection instruction is sent to the earphone, the earphone responds to the impedance detection instruction, a voltage digital-to-analog conversion circuit and a current digital-to-analog conversion circuit which are arranged in left and right sound channels of the earphone are used for detecting voltage signals and current signals which are generated when the audio is played, the impedance value of an ear canal is calculated, and an impedance curve, namely current impedance information, is generated by the impedance value of the ear canal and the frequency in the played audio; wherein the audio may be a sweep tone.
Illustratively, the earphone is in a wearing state, a 20HZ to 20KHZ sweep frequency sound source is played through the earphone, audio is played at different frequencies, the volume adjustment device detects a current signal generated when the audio is played by using a current digital-to-analog converter in the earphone and detects a voltage signal generated when the audio is played by using a voltage digital-to-analog converter, and different current signals and voltage signals detected at different audio frequencies within the audio playing frequency range of 20HZ to 20KHZ are obtained. The volume adjusting device calculates different ear canal impedance values corresponding to different frequencies according to voltage signals and current signals measured under different sound source frequencies, and generates an impedance curve according to different ear canal impedance values corresponding to different frequencies, wherein each point in the curve is the ear canal impedance value calculated under each audio frequency. And the volume adjusting device takes the finally generated impedance curve as the current impedance information, and takes the current impedance information as the current ear canal characteristic information.
It should be noted that, when the cavity formed between the earphone and the ear canal is different, the voltage signal and the current signal detected under the same audio frequency are different, so the current impedance information calculated according to the voltage signal and the current signal is also different, and because different users wear the earphone or the same user wears the earphone in different wearing manners, the cavity is different, so the current impedance information can be used to distinguish different users or different wearing manners of the same user.
In some embodiments, the current ear canal characteristic information comprises current ultrasound information; the method for the volume adjustment device to acquire the current ear canal characteristic information generated when the audio is played through the earphone may include: controlling the earphone to send out a first ultrasonic signal and receiving a second ultrasonic signal reflected by the first ultrasonic signal; the volume adjusting device generates current ultrasonic information based on the first ultrasonic signal and the second ultrasonic signal according to the earphone.
The volume adjusting device sends an acoustic detection instruction to the earphone when determining that the earphone is in a wearing state and playing audio through the earphone, the earphone responds to the acoustic detection instruction, controls the ultrasonic transmitter to transmit a first ultrasonic signal, and receives a second ultrasonic signal reflected by the first ultrasonic signal through the ultrasonic receiver; the volume adjusting device generates ultrasonic information, namely current ultrasonic information, according to the first ultrasonic signal and the second ultrasonic signal, and the volume adjusting device takes the current ultrasonic information as current ear canal characteristic information.
Illustratively, the volume adjusting device plays an ultrasonic sound source with the frequency of 30KHz-40KHz through an earphone, the volume condition device controls the ultrasonic transmitter to transmit a first ultrasonic signal and records the transmitting time, and the volume adjusting device receives a second ultrasonic signal reflected back when the first ultrasonic signal is transmitted to the auricle or the ear canal and records the receiving time; the volume adjusting device calculates a total time difference T from the transmitting time to the receiving time directly, and generates current ultrasonic information according to the total time difference T.
It should be noted that when the cavities formed by the ear canal and the earphone are different, the total time difference T corresponding to different cavities is different, so that the ultrasonic information generated by the volume adjusting device according to the total time difference T is also different, and different users can use the ultrasonic information to distinguish different wearing modes of different users or the same user because different users wear the earphone in different wearing modes; in addition, the ultrasonic wave exceeds the range of the auditory frequency of the human ear, so that the user cannot perceive the ultrasonic wave, and the process of acquiring the ultrasonic information cannot influence the user to receive the audio frequency within the range of the auditory frequency of the human ear from the earphone.
In the embodiment of the application, after the volume adjusting device judges that the earphone is in a wearing state, when the earphone plays audio, the volume adjusting device can also acquire the current sound pressure value through the sound pressure sensor arranged on the earphone.
It should be noted that the sound pressure sensor may be installed at any position of the front cavity or the rear cavity of the earphone, referring to fig. 2, the earphone 2 includes the sound generating unit 20, the space inside the earphone 2 is divided into the front cavity 21 and the rear cavity 22 by the sound generating unit 20, and the sound pressure sensor may be installed at the upper position 211 or the lower position 212 of the front cavity 21, or may be installed at the upper position 221 or the lower position 222 of the rear cavity 22.
In the embodiment of the application, the volume adjusting device acquires the current output sound pressure value of the earphone detected by the sound pressure sensor in real time through the sound pressure sensor, and the current output sound pressure value is used as the current sound pressure value.
In the embodiment of the application, the sound pressure value represents the playing volume, the higher the sound pressure value is, the larger the corresponding playing volume is, and on the contrary, the lower the sound pressure value is, the smaller the corresponding playing volume is.
S102, when the corresponding relation between the ear canal characteristic information and the sound pressure value is detected, determining a reference sound pressure value corresponding to the current ear canal characteristic information from the corresponding relation between the ear canal characteristic information and the sound pressure value, wherein the corresponding relation represents the ear canal characteristic information and the sound pressure value acquired when the earphone is worn in each of at least one wearing mode.
In the embodiment of the application, after the volume adjusting device acquires the current ear canal characteristic information and the current sound pressure value of the earphone, the volume adjusting device can detect whether the corresponding relation between the ear canal characteristic information and the sound pressure value exists.
In the embodiment of the application, the correspondence between the ear canal characteristic information and the sound pressure value may be acquired by the volume adjusting device in advance in a specific learning scene and stored in the volume adjusting device, or acquired by the volume adjusting device in the process of normally using the earphone by the user every time. The sound volume adjusting device can acquire and record the ear canal characteristic information and the sound pressure value of different users and different wearing modes, and the ear canal characteristic information and the sound pressure value corresponding to each user and each wearing mode are stored as corresponding relations.
In some embodiments, the volume adjustment device acquires the correspondence between the ear canal characteristic information and the sound pressure value in a preset learning scene. The terminal enters a specific learning interface, the volume adjusting device prompts a user to wear the earphones in different modes on the pre-learning interface, then the volume adjusting device plays the sweep frequency sound source in each different wearing mode, and gives a prompt to enable the user to adjust to the playing volume which feels the most appropriate in the wearing mode; the sound volume adjusting device collects different ear canal characteristic information corresponding to each different wearing mode in real time, collects a sound pressure value corresponding to the most appropriate playing volume after being adjusted by a user through the sound pressure sensor, and finally stores the ear canal characteristic information and the sound pressure value in each wearing mode as a corresponding relation. When different users use the earphones, the users can also learn in a preset learning scene, corresponding ear canal characteristic information and sound pressure values are collected when each user wears the earphones in different modes, and the ear canal characteristic information and the sound pressure values of each different user in each different wearing mode are used as corresponding relations of the ear canal characteristic information and the sound pressure values to be recorded and stored.
In some embodiments, the volume adjustment device may also record the ear canal characteristic information and the sound pressure value in the background during normal use of the user, and generate the corresponding relationship between the ear canal characteristic information and the sound pressure value according to the accumulated data of the ear canal characteristic information and the sound pressure value after the user uses the earphone for a period of time.
In the embodiment of the application, when the volume adjusting device pre-stores and records the corresponding relationship between the ear canal characteristic information and the sound pressure value, the volume adjusting device can detect that the corresponding relationship between the ear canal characteristic information and the sound pressure value exists, and then the volume adjusting device can determine the reference sound pressure value corresponding to the current ear canal characteristic information from the pre-stored corresponding relationship between the ear canal characteristic information and the sound pressure value.
In some embodiments, when it is detected that there is a correspondence relationship between the ear canal characteristic information and the sound pressure value, the determining, by the volume adjusting apparatus, a reference sound pressure value corresponding to the current ear canal characteristic information from the correspondence relationship between the ear canal characteristic information and the sound pressure value may include S1021 to S1022, as follows:
and S1021, according to the current ear canal characteristic information, finding the ear canal characteristic information which is most matched with the current ear canal characteristic information from the corresponding relation between the ear canal characteristic information and the sound pressure value, and determining the ear canal characteristic information as the reference ear canal characteristic information.
After the volume adjustment device obtains the current ear canal characteristic information, if there is a corresponding relationship between the ear canal characteristic information and the sound pressure value, the volume adjustment device needs to find the ear canal characteristic information that is most matched with the current ear canal characteristic information from the corresponding relationship between the ear canal characteristic information and the sound pressure value. Wherein the most matched ear canal characteristic information represents ear canal characteristic information which is most similar to the current ear canal characteristic information in the corresponding relation between the ear canal characteristic information and the sound pressure value which are recorded and stored in advance,
in some embodiments, the volume adjustment device may calculate at least one matching degree between the current ear canal characteristic information and each ear canal characteristic information in the corresponding relationship, and determine the highest matching degree, for example, the volume adjustment device may determine the highest matching degree from the calculated at least one matching degree by a ranking method or a comparison method. And the sound volume adjusting device determines the ear canal characteristic information corresponding to the highest matching degree as the reference ear canal characteristic information.
In some embodiments, the correspondence between the ear canal characteristic information and the sound pressure value stores ear canal characteristic information E collected when the user a wears the earphone in a relatively tight mannerAAnd sound pressure value VAEar canal characteristic information E collected when the user B wears the earphone in a relatively tight mannerBAnd sound pressure value VBAnd ear canal characteristic information E acquired when the user A wears the earphone in a relatively loose mannerA1And sound pressure value VA1Ear canal characteristic information E collected when user B wears the earphone in a relatively loose mannerB1And sound pressure value VB1. After the volume adjusting device acquires the current ear canal characteristic information E, matching the current ear canal characteristic information E with the ear canal characteristic information in the corresponding relation between the ear canal characteristic information and the sound pressure value, and calculating by the volume adjusting device to obtain the current ear canal characteristic information E and the ear canal characteristic information EA1The matching degree between the ear canal characteristic information E and the ear canal characteristic information E is the highest, which indicates that the ear canal characteristic information E is the closest to the current ear canal characteristic information E in all the ear canal characteristic informationA1. The sound volume adjusting device transmits the ear canal characteristic information EA1As reference ear canal characteristic information.
And S1022, determining the sound pressure value corresponding to the reference auditory canal characteristic information as a reference sound pressure value according to the corresponding relation between the auditory canal characteristic information and the sound pressure value.
After the reference ear canal feature information is determined, the sound pressure value corresponding to the reference ear canal feature information can be determined as the reference sound pressure value by the volume adjusting device according to the corresponding relation between the ear canal feature information and the sound pressure value.
In some embodiments, the volume adjustment device uses ear canal characteristic information EA1After the characteristic information of the reference auditory canal is determined, the sound volume adjusting device adjusts the characteristic information E of the auditory canal according to the corresponding relation between the characteristic information of the auditory canal and the sound pressure valueA1Corresponding sound pressure value VA1As a reference sound pressure value.
And S103, adjusting the volume of the played audio based on the reference sound pressure value and the current sound pressure value.
In the embodiment of the application, after the volume adjusting device determines the reference sound pressure value, the volume adjusting device adjusts the volume of the currently played audio based on the reference sound pressure value.
In the embodiment of the present application, the correspondence between the ear canal feature information and the sound pressure value recorded and stored by the volume adjustment device represents the sound pressure value suitable for playing by each different user in each different earphone wearing manner, so the volume adjustment device finds out the reference sound pressure value from the correspondence according to the current ear canal feature information, and represents the sound pressure value suitable for playing in the wearing manner corresponding to the current ear canal feature information, and therefore the volume adjustment device can determine the most suitable volume for playing in the current wearing manner according to the reference sound pressure value, and based on the reference sound pressure value, the volume adjustment device can perform S1031 to S1032 for adjusting the volume of playing audio, as follows:
and S1031, when the error between the current ear canal characteristic information and the reference ear canal characteristic information is less than or equal to a preset error threshold value, adjusting the volume of the played audio by using the reference sound pressure value.
After the volume adjusting device obtains the reference ear canal characteristic information and the reference sound pressure value, the volume adjusting device calculates an error between the current ear canal characteristic information and the reference ear canal characteristic information, compares the error with a preset error threshold value, and when the error is smaller than or equal to the preset error threshold value, the current ear canal characteristic information is very close to the reference ear canal characteristic information.
In the embodiment of the application, the preset error threshold represents the maximum difference between the reference ear canal characteristic information and the current ear canal characteristic information, and the specific value of the preset error threshold can be selected according to the actual situation, which is not limited in the embodiment of the application.
In some embodiments, the volume adjustment device is determining EA1For reference to ear canal characteristic information, and VA1After referring to the sound pressure value, the volume adjustment device calculates the current ear canal characteristicsInformation E and reference ear canal characteristic information EA1When the error is less than or equal to the preset error threshold value, the current ear canal characteristic information E is very close to the reference ear canal characteristic information E stored beforeA1And the representation of the wearing mode of the current user is the wearing mode of the user collected before, so that the volume adjusting device directly uses the corresponding reference sound pressure value VA1The volume of the played audio is adjusted due to VA1Is that the user was in the previous acquisition process EA1The sound pressure value collected when the optimal playing volume is adjusted in the wearing mode, so that the reference sound pressure value V is used by the volume adjusting deviceA1The volume of the played audio can be matched with the playing volume which is most suitable for the user under the current wearing mode.
S1032, when the error between the current auditory canal characteristic information and the reference auditory canal characteristic information is larger than a preset error threshold value, adjusting the reference sound pressure value, and adjusting the volume of the played audio by using the adjusted reference sound pressure value.
When the volume adjusting device judges that the error between the current ear canal characteristic information and the reference ear canal characteristic information exceeds a preset error threshold, the volume adjusting device performs certain compensation or attenuation on the reference sound pressure value according to the direct ratio or inverse ratio relation between the ear canal characteristic information and the sound pressure value, and the volume adjusting device adjusts the volume of playing audio by using the compensated or attenuated reference sound pressure value.
In the embodiment of the application, there is a direct ratio or an inverse ratio relationship between different ear canal characteristic information and a sound pressure value, for example, when the ear canal characteristic information is impedance information, there is an inverse ratio relationship between the ear canal characteristic information and the sound pressure value, and the impedance is larger and the sound pressure value is smaller. Therefore, when the error between the current ear canal feature information and the reference ear canal feature information exceeds a preset error threshold, it is indicated that the difference between the current ear canal feature information and the reference ear canal feature information exceeds the limit of the maximum difference, that is, the current ear canal feature information is not close to the reference ear canal feature information enough, and the reference sound pressure value cannot be directly used for adjusting the volume of the played audio. The volume adjusting device can continuously judge whether the current ear canal characteristic information exceeds the upper limit or the lower limit of the preset error threshold range of the reference ear canal characteristic information, when the current ear canal characteristic information exceeds the upper limit of the preset error threshold range of the reference ear canal characteristic information, the volume adjusting device performs certain attenuation on the reference sound pressure value due to the fact that the impedance information and the sound pressure value are in an inverse proportion relation, and the volume adjusting device adjusts the volume of the played audio by using the attenuated reference sound pressure value; similarly, when the current ear canal characteristic information exceeds the lower limit of the preset error threshold range of the reference ear canal characteristic information, the volume adjusting device performs certain compensation on the reference sound pressure value due to the fact that the impedance information and the sound pressure value are in an inverse proportion relation, and the volume adjusting device adjusts the volume of the played audio by using the compensated reference sound pressure value. The compensation or attenuation range is selected according to actual conditions, and the embodiment of the application is not limited.
In the embodiment of the application, the upper limit of the preset error threshold range is a preset error threshold which floats upwards based on the reference ear canal characteristic information, and the lower limit of the preset error threshold range is a preset error threshold which floats downwards based on the reference ear canal characteristic information.
In some embodiments, the volume adjustment device is determining EA1For reference to ear canal characteristic information, and VA1After the reference sound pressure value is obtained, the volume adjusting device calculates the current ear canal characteristic information E and the reference ear canal characteristic information EA1When the error is larger than the preset error threshold value, the reference ear canal characteristic information E is illustratedA1Although the most similar one of the acquired ear canal characteristic information is the current ear canal characteristic information E, the similarity between the acquired ear canal characteristic information and the current ear canal characteristic information is not high enough, and the ear canal characteristic information cannot be directly output as the reference sound pressure value, but the ear canal characteristic information is output after being correspondingly attenuated or compensated on the basis of the reference sound pressure value. The volume adjustment device may preset an error threshold range for the reference ear canal characteristic information, for example, when the ear canal characteristic information is impedance information, the volume adjustment device may preset a preset error threshold range of ± 5 for the reference ear canal characteristic information, and when the current ear canal characteristic information E exceeds the reference ear canal characteristic information EA1+5 upper limit, the current wearing style will be described as being more resistant than the wearing style corresponding to the reference ear canal characteristic informationThe impedance is larger, and the target sound volume value is lower than the reference sound pressure value according to the inverse relation of the impedance information and the sound pressure value, so that the sound volume adjusting device can adjust the reference sound pressure value VA1Performing certain attenuation; similarly, when the current ear canal characteristic information E exceeds the reference ear canal characteristic information EA1When the lower limit is-5, the volume adjusting device adjusts the reference sound pressure value V according to the inverse relation between the impedance information and the sound pressure valueA1And performing certain compensation to play a role in intelligently adjusting the audio playing volume according to the reference sound pressure value.
It can be understood that the volume adjusting device records and stores the corresponding relationship between the ear canal characteristic information and the sound pressure value in advance, so as to obtain the most suitable sound pressure value for playing under each different wearing mode. By using the method provided by the embodiment of the application, the most suitable volume value for playing can be automatically matched according to different earphone wearing modes, and the intelligence of personalized earphone usage is improved.
In some embodiments of the present application, after step S101, embodiments of the present application further provide a volume adjusting method, as shown in fig. 3, the method may include steps S301 to S307, as follows:
s301, when the corresponding relation between the ear canal characteristic information and the sound pressure value does not exist, whether at least one corresponding data exists or not is detected, and the at least one corresponding data represents the ear canal characteristic information and the sound pressure value acquired when the earphone is worn in each mode of at least one wearing mode.
In this embodiment of the application, when the volume adjustment device obtains the current ear canal feature information and the current sound pressure value, but detects that there is no correspondence between the ear canal feature information and the sound pressure value, the volume adjustment device needs to detect whether there is at least one acquired data corresponding to the ear canal feature information and the sound pressure value.
In the embodiment of the application, the corresponding relation between the ear canal characteristic information and the sound pressure value can be acquired and recorded in a preset learning scene, and also can be acquired and recorded in a scene that a user uses an earphone in daily life. Therefore, when the volume adjusting device detects that the corresponding relation between the ear canal characteristic information and the sound pressure value does not exist, whether the corresponding data are stored or not can be detected again.
In the embodiment of the application, the corresponding data represents ear canal characteristic information and a sound pressure value collected by the volume adjusting device when each user of the at least one user wears the earphone by using each mode of the at least one wearing mode.
S302, when at least one corresponding data is detected and stored, calculating a first matching degree between the current ear canal characteristic information and each ear canal characteristic information in the at least one corresponding data.
In the embodiment of the application, when the volume adjustment device detects that at least one corresponding datum is stored, it is described that at least one ear canal feature information and a sound pressure value are accumulated before the volume adjustment device, the volume adjustment device needs to judge whether the currently acquired current ear canal feature information is repeated with the previously accumulated ear canal feature information, and if the currently acquired current ear canal feature information is the repeated ear canal feature information, the currently acquired current ear canal feature information is stored before, and then the currently acquired current ear canal feature information does not need to be accumulated continuously.
In some embodiments, in order to ensure representativeness and validity of collected data in a scenario where the volume adjustment device collects and records a correspondence between ear canal feature information and a sound pressure value when a user uses an earphone daily, the volume adjustment device needs to verify current ear canal feature information collected each time, compare the current ear canal feature information with each ear canal feature information in at least one corresponding data, and if there is ear canal feature information with a higher similarity to the current ear canal feature information, it indicates that data in the corresponding wearing mode has been stored without repeated storage.
In some embodiments, in a scenario where a user acquires and records a correspondence between ear canal feature information and a sound pressure value in a preset learning scenario, after the user is prompted by the volume adjustment device to wear the earphone in different manners on a learning interface, due to uncontrollable performance of actual operation of the user, the volume adjustment device still needs to verify current ear canal feature information acquired each time, compare the current ear canal feature information with each ear canal feature information in at least one piece of corresponding data, and if there is ear canal feature information with a higher similarity to the current ear canal feature information, it is indicated that data in the corresponding wearing manner has been stored, and does not need to be repeatedly stored.
In the embodiment of the application, after the current ear canal characteristic information acquired by the volume adjusting device at this time is compared with the ear canal characteristic information in the corresponding data, if the ear canal characteristic information in the corresponding data does not have the ear canal characteristic information similar to the current ear canal characteristic information, it is described that the current ear canal characteristic information represents another different wearing mode, and the current ear canal characteristic information can be continuously recorded and stored as the corresponding data.
In the embodiment of the application, the volume adjusting device may compare the current ear canal characteristic information with the ear canal characteristic information in the corresponding data by calculating a matching degree between the current ear canal characteristic information and each ear canal characteristic information in the at least one corresponding data, and the volume adjusting device may use the calculated matching degree between the current ear canal characteristic information and each ear canal characteristic information in the at least one corresponding data as the at least one first matching degree.
S303, determining the maximum first matching degree from the first matching degrees.
In this embodiment, after the volume adjustment device calculates the at least one first matching degree, the volume adjustment device may determine the maximum first matching degree among the at least one first matching degree.
In some embodiments, the mode of determining the maximum first matching degree by the volume adjustment device may use a ranking method, a comparison method, and the like, which are specifically selected according to the actual situation, and the embodiments of the present application are not limited.
In the embodiment of the application, the ear canal characteristic information corresponding to the maximum first matching degree represents the ear canal characteristic information most similar to the current ear canal characteristic information in the corresponding data.
And S304, when the maximum first matching degree is smaller than a preset first matching degree threshold value, taking the current ear canal characteristic information and the current sound pressure value as corresponding data and storing the corresponding data.
In the embodiment of the application, after the volume adjusting device obtains the maximum first matching degree, the maximum first matching degree is compared with the preset first matching degree threshold, and when the maximum first matching degree is smaller than the preset first matching degree threshold, it is described that the difference between the ear canal characteristic information corresponding to the maximum first matching degree and the current ear canal characteristic information is small enough, that is, the current ear canal characteristic information is representative, and the repetition with the stored corresponding data cannot be caused, so that the volume adjusting device takes the current ear canal characteristic information and the current sound pressure value as corresponding data and stores the corresponding data.
In the embodiment of the application, a first preset matching degree threshold value represents the lowest matching degree between the current ear canal characteristic information and the ear canal characteristic information in the corresponding data, and if the first preset matching degree threshold value is smaller than the lowest matching degree, the difference between the current ear canal characteristic information and the ear canal characteristic information in the corresponding data is small enough. The specific value can be selected according to actual conditions, and the embodiment of the application is not limited.
In some embodiments, when the volume adjustment device detects that there is no correspondence between the ear canal characteristic information and the sound pressure value, but five pieces of corresponding data are stored, the volume adjustment device matches the current ear canal characteristic information with the ear canal characteristic information in the five pieces of corresponding data, calculates a first matching degree between the current ear canal characteristic information and the ear canal characteristic information in each piece of corresponding data, and then determines a first matching degree with the highest matching degree from the first matching degree, and when the highest first matching degree is smaller than a preset first matching degree threshold, it indicates that the matching degree between the current ear canal characteristic information and each piece of ear canal characteristic information in the five pieces of corresponding data is not high, that is, the difference is large, and a different wearing manner can be represented, so that the volume adjustment device stores the current ear canal characteristic information and the current sound pressure value as a sixth piece of corresponding data.
In the embodiment of the application, when the maximum first matching degree is greater than or equal to the preset first matching degree threshold, the volume adjusting device does not store the current ear canal feature information and the current sound pressure value as corresponding data, and the volume adjusting device continues to acquire the current ear canal feature information and the current sound pressure value and executes steps S101 to S301.
S305, counting the total number of the stored corresponding data.
In the embodiment of the present application, after the volume adjusting device saves the corresponding data, the volume adjusting device counts the total number of the saved corresponding data.
In the embodiment of the present application, a corresponding data includes an ear canal characteristic information and a corresponding sound pressure value.
And S306, when the total number is larger than or equal to the preset number threshold, generating the corresponding relation between the ear canal characteristic information and the sound pressure value according to the stored corresponding data.
In the embodiment of the present application, when the total number of the corresponding data counted by the volume adjusting device is greater than or equal to the preset number threshold, the volume adjusting device generates the corresponding relationship according to the stored corresponding data.
In the embodiment of the application, when the total number is smaller than the preset number threshold, the volume adjusting device does not generate the corresponding relationship between the ear canal characteristic information and the sound pressure value, and continues to accumulate the corresponding data.
Illustratively, the preset number threshold is 10, the volume adjustment device collects and records corresponding data of the ear canal characteristic information and the sound pressure value, counts and accumulates the number of the corresponding data of the recorded ear canal characteristic information and the sound pressure value, and when the volume adjustment device counts that 10 pieces of corresponding data of the ear canal characteristic information and the sound pressure value are stored, the volume adjustment device may generate a corresponding relationship between the 10 pieces of ear canal characteristic information and the sound pressure value according to the stored 10 pieces of corresponding data.
In the embodiment of the present application, the preset number threshold may be selected according to an actual situation, and the embodiment of the present application is not specifically limited.
In some embodiments, after step S301, the method provided in the embodiment of the present application may further include step S307:
s307, when the at least one corresponding data is detected to be absent, the current ear canal feature information and the current sound pressure value are used as one corresponding data and stored.
In some embodiments, when the volume adjustment device detects that there is no corresponding data stored, it indicates that the current ear canal characteristic information and the current sound pressure value collected by the volume adjustment device at this time are the first corresponding data, so that the volume adjustment device directly uses the current ear canal characteristic information and the current sound pressure value as the first corresponding data and stores them.
It can be understood that, in the embodiment of the present application, when the volume adjustment device detects that there is a corresponding relationship between the ear canal characteristic information and the sound pressure value, the volume adjustment device may generate corresponding data according to the current ear canal characteristic information and the current sound pressure value, and perform screening and recording on the subsequently acquired current ear canal characteristic information and the current sound pressure value according to the corresponding data, retain the current ear canal characteristic information representing different wearing manners with high degree of distinction, and record and store the current sound pressure value corresponding thereto as corresponding data of the ear canal characteristic information and the sound pressure value, and finally, when the number of the corresponding data satisfies a preset number threshold, the volume adjustment device generates a corresponding relationship between the ear canal characteristic information and the sound pressure value according to the corresponding data. By the method provided by the embodiment of the application, the sound volume adjusting device can identify and record the ear canal characteristic information and the sound pressure value in different wearing modes and store the ear canal characteristic information and the sound pressure value as the corresponding relation, so that when the earphone is used, the sound volume adjusting device can obtain the reference ear canal characteristic information and the reference sound pressure value from the corresponding relation.
Illustratively, a volume adjustment method as shown in fig. 4, when a correspondence relationship between ear canal characteristic information and a sound pressure value is stored in the volume adjustment device, the volume adjustment method includes:
s401, judging whether the earphone is normally worn.
In the embodiment of the application, the sound volume adjusting device can preserve the ear canal characteristic information collected when the earphone is not worn as the preset ear canal characteristic information in advance, before the sound volume adjusting device acquires the current ear canal characteristic information and the current sound pressure value generated when the audio is played, the sound volume adjusting device firstly acquires the initial ear canal characteristic information generated when the audio is played through the earphone, then the sound volume adjusting device calculates the second matching degree of the initial ear canal characteristic information and the preset ear canal characteristic information, and when the second matching degree is smaller than the preset second matching degree threshold value, the earphone is in a wearing state at the moment.
S402, when the earphone is worn normally and the audio is played through the earphone, the sound pressure sensor is started to detect the sound pressure in real time, and the current sound pressure value is obtained.
In the embodiment of the application, the volume adjusting device is detecting that the earphone is normally worn, and when the audio is played through the earphone, the volume adjusting device opens the sound pressure sensor, and the sound pressure value collected in real time is used as the current sound pressure value.
And S403, acquiring current impedance information generated when the earphone plays audio in real time.
In the embodiment of the application, when the volume adjusting device detects that the earphone is in a normal wearing state and plays audio through the earphone, the volume adjusting device can acquire current impedance information generated by the earphone when the audio is played in real time through voltage and current digital-to-analog conversion current arranged on left and right sound channels of the earphone, and the current impedance information represents a current mode of wearing the earphone by a user who uses the earphone at present.
In the embodiment of the present application, a method for acquiring, by a volume adjustment device, current impedance information generated when an earphone plays audio in real time is the same as the method in S101, and details are not repeated here.
S404, generating a corresponding relation between the ear canal characteristic information and the sound pressure value according to the current sound pressure value and the current impedance information.
In the embodiment of the application, after the volume adjusting device obtains the current sound pressure value and the current impedance information, the volume adjusting device generates the corresponding relation between the ear canal characteristic information and the sound pressure value according to the current sound pressure value and the current impedance information.
In the embodiment of the present application, a method for generating a corresponding relationship between ear canal characteristic information and a sound pressure value by a volume adjustment device according to a current sound pressure value and current impedance information is the same as the method in S301 to S307, and is not described herein again.
In this application embodiment, through S401 to S404, the volume control device can accomplish the process of generating the corresponding relation between the ear canal characteristic information and the sound pressure value, and next, in the process of normally using the earphone by the user, the volume control device can determine the volume suitable for playing based on the current impedance information acquired in real time and the corresponding relation between the ear canal characteristic information and the sound pressure value.
S405, when the earphone is in a wearing state and the audio is played through the earphone, whether the corresponding relation between the ear canal characteristic information and the sound pressure value exists or not is detected.
In this embodiment of the present application, when the user normally uses the headset, the volume control device needs to determine whether the headset is in a wearing state, and in this embodiment of the present application, a method for determining whether the headset is in the wearing state by the volume control device is the same as S401, which is not described herein again.
In the embodiment of the application, the volume adjusting device is used for detecting whether the corresponding relation between the ear canal characteristic information and the sound pressure value stored before exists or not when the earphone is in a wearing state and passes through the process of playing audio by the earphone.
S406, when the corresponding relation between the ear canal characteristic information and the sound pressure value exists, according to the current impedance information, determining a reference sound pressure value corresponding to the current impedance information from the corresponding relation between the ear canal characteristic information and the sound pressure value.
In the embodiment of the application, when the volume adjusting device detects that the corresponding relationship between the ear canal characteristic information and the sound pressure value exists, the volume adjusting device compares the current impedance information acquired in real time with the ear canal characteristic information in the corresponding relationship between the ear canal characteristic information and the sound pressure value, finds the ear canal characteristic information which is most matched with the current impedance information of the earphone from the corresponding relationship between the ear canal characteristic information and the sound pressure value, and uses the ear canal characteristic information as reference ear canal characteristic information, and obtains the sound pressure value corresponding to the reference ear canal characteristic information according to the corresponding relationship between the ear canal characteristic information and the sound pressure value, and uses the sound pressure value as reference sound pressure value. In the embodiment of the present application, the method for determining the reference sound pressure value corresponding to the current impedance information by the volume adjusting device according to the current impedance information from the correspondence between the ear canal characteristic information and the sound pressure value is the same as the method in S102, and details are not repeated here.
And S407, dynamically adjusting the audio volume according to the reference sound pressure value.
In the embodiment of the application, after the volume adjusting device obtains the reference sound pressure value, the volume adjusting device dynamically outputs the sound pressure value of the earphone according to the reference sound pressure value and the current sound pressure value.
In the embodiment of the present application, a method for dynamically adjusting the audio volume by the volume adjusting device according to the reference sound pressure value is the same as the method in steps S1031 to S1032, and details are not repeated here.
And S408, when the earphone is not worn, generating an alarm to prompt the user to wear the earphone.
In the embodiment of the application, when the volume adjusting device judges that the earphone is not worn, the next processing is not performed, an alarm is directly generated, a user is prompted to wear the earphone, and then the method flow is ended.
In the embodiment of the present application, the method for generating the alarm by the volume adjustment device to prompt the user to wear the earphone is the same as the method in S1013, and details are not described here.
In the embodiment of the present application, the method of S408 is performed after S401 in parallel with the methods of S401 to S407.
It can be understood that the volume adjusting device in the embodiment of the present application can automatically determine the wearing state of the earphone according to the collected initial ear canal characteristic information, and when the earphone is not worn, the volume adjusting device can prompt the user; when the earphone is in a wearing state, the volume adjusting device can also detect the current sound pressure value and the current ear canal characteristic information in real time, the recorded sound pressure value suitable for playing is used as a reference sound pressure value under the wearing mode characterized by the current ear canal characteristic information and the pre-stored ear canal characteristic information and sound pressure value which are matched, so that the volume adjusting device can adjust the volume of playing audio according to the reference sound pressure value, the purpose that the playing volume is automatically adjusted to the most suitable playing volume according to the using mode of the earphone is achieved, and the intelligence of using the earphone in a personalized mode is improved.
The embodiment of the application provides a volume adjusting device 1, which corresponds to a volume adjusting method; fig. 5 is a schematic structural diagram of a volume adjustment device according to an embodiment of the present disclosure, as shown in fig. 5, the volume adjustment device 5 includes:
an acquisition unit 51, a determination unit 52, and a control unit 53; wherein the content of the first and second substances,
the acquiring unit 51 is configured to acquire, by an earphone when the earphone is in a wearing state and an audio is played through the earphone, current ear canal feature information generated when the audio is played through the earphone, and acquire a current sound pressure value through a sound pressure sensor provided on the earphone;
the determining unit 52 is configured to determine, when it is detected that there is a correspondence between ear canal feature information and a sound pressure value, a reference sound pressure value corresponding to the current ear canal feature information from the correspondence between the ear canal feature information and the sound pressure value, where the correspondence represents ear canal feature information and a sound pressure value acquired when the earphone is worn in at least one wearing manner;
and a control unit 53, configured to adjust a volume of playing the audio based on the reference sound pressure value.
In some embodiments, the volume adjusting device 5 further includes: a detection unit 54 and a matching unit 55;
the detecting unit 54 is configured to detect whether there is at least one corresponding data after the current ear canal feature information generated when the audio is played is acquired through the earphone and the current sound pressure value is acquired through a sound pressure sensor arranged on the earphone, where the at least one corresponding data represents the ear canal feature information and the sound pressure value acquired when the earphone is worn in each of the at least one wearing manner;
the matching unit 55 is configured to calculate a first matching degree between the current ear canal feature information and each ear canal feature information in the at least one corresponding data when the at least one corresponding data is detected and stored; and determining a maximum first degree of match from the first degrees of match;
the storing unit 56 is configured to, when the maximum first matching degree is smaller than a preset first matching degree threshold, use the current ear canal feature information and the current sound pressure value as a corresponding data and store the data;
the control unit 53 is further configured to count the total number of the stored corresponding data; and when the total number is greater than or equal to a preset number threshold, generating the corresponding relation between the ear canal characteristic information and the sound pressure value according to the stored corresponding data.
In some embodiments, the storing unit 56 is further configured to, after detecting whether there is at least one corresponding datum when there is no corresponding relationship between the ear canal characteristic information and the sound pressure value, when it is detected that there is no corresponding datum, take the current ear canal characteristic information and the current sound pressure value as a corresponding datum, and store the corresponding datum.
In some embodiments, the current ear canal characteristic information comprises current impedance information;
the obtaining unit 51 is specifically configured to detect a voltage signal and a current signal generated when the audio is played based on a digital-to-analog conversion circuit in the earphone when the audio is played through the earphone; and generating the current impedance information according to the earphone based on the voltage signal and the current signal.
In some embodiments, the current ear canal characteristic information comprises current ultrasound information;
the acquiring unit 51 is specifically configured to control the earphone to emit a first ultrasonic signal and receive a second ultrasonic signal reflected by the first ultrasonic signal; generating the current ultrasound information based on the first ultrasound signal and the second ultrasound signal according to the headset.
In some embodiments, the determining unit 52 is further configured to find, according to the current ear canal characteristic information, ear canal characteristic information that is most matched with the current ear canal characteristic information from the correspondence between the ear canal characteristic information and the sound pressure value, and determine the ear canal characteristic information as reference ear canal characteristic information;
the determining unit 52 is further configured to determine, according to the correspondence between the ear canal characteristic information and the sound pressure value, the sound pressure value corresponding to the reference ear canal characteristic information as the reference sound pressure value.
In some embodiments, the control unit 53 is further configured to adjust a volume of playing the audio using the reference sound pressure value when an error between the current ear canal characteristic information and the reference ear canal characteristic information is less than or equal to a preset error threshold; when the error between the current ear canal characteristic information and the reference ear canal characteristic information is larger than the preset error threshold value, the reference sound pressure value is adjusted, and the volume of the audio is adjusted and played by using the adjusted reference sound pressure value.
In some embodiments, the volume adjusting device 5 further includes: a matching unit 55;
the obtaining unit 51 is further configured to obtain, by the earphone, current ear canal feature information generated when the audio is played, and obtain, by the earphone, initial ear canal feature information generated when the audio is played before obtaining a current sound pressure value by a sound pressure sensor provided on the earphone;
the matching unit 55 is further configured to calculate a second matching degree between the initial ear canal feature information and preset ear canal feature information, where the preset ear canal feature information is ear canal feature information acquired when the earphone is not worn;
the control unit 53 is further configured to generate an alarm prompt representing that the earphone is in an unworn state when the second matching degree is greater than a preset second matching degree threshold.
In practical applications, the obtaining Unit 51, the determining Unit 52 and the control Unit 53 may be implemented by a processor 64 located on the information Processing apparatus 5, specifically, implemented by a Central Processing Unit (CPU), a Microprocessor Unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
The embodiment of the application provides a volume adjusting device, which corresponds to a volume adjusting method; fig. 6 is a schematic structural diagram of a volume adjustment device according to an embodiment of the present application, where as shown in fig. 6, the volume adjustment device 6 includes: a processor 64, a memory 65 and a communication bus 66, the memory 65 communicating with the processor 64 through the communication bus 66, the memory 65 storing one or more programs executable by the processor 64, the one or more programs, when executed, performing any one of the information processing methods according to the foregoing embodiments by the processor 64.
The present embodiment provides a computer-readable storage medium, which stores one or more programs, where the one or more programs are executable by one or more processors 64, and when the program is executed by the processor 64, the method for adjusting volume according to the present embodiment is implemented.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (12)

1. A method of volume adjustment, the method comprising:
when an earphone is in a wearing state and audio is played through the earphone, current ear canal characteristic information generated when the audio is played is obtained through the earphone, and a current sound pressure value is obtained through a sound pressure sensor arranged on the earphone;
when the corresponding relation between the ear canal characteristic information and the sound pressure value does not exist, detecting whether at least one corresponding datum exists, wherein the corresponding relation represents the ear canal characteristic information and the sound pressure value acquired when the earphone is worn by adopting the at least one wearing mode, and the at least one corresponding datum represents the ear canal characteristic information and the sound pressure value acquired when the earphone is worn by adopting each mode of the at least one wearing mode;
when the at least one corresponding data is detected to be absent, taking the current ear canal characteristic information and the current sound pressure value as a corresponding data and storing the corresponding data;
counting the total number of the stored corresponding data;
when the total number is greater than or equal to a preset number threshold, generating a corresponding relation between the ear canal characteristic information and a sound pressure value according to the stored corresponding data;
determining a reference sound pressure value corresponding to the current ear canal characteristic information from the corresponding relation between the ear canal characteristic information and the sound pressure value;
and adjusting the volume of playing the audio based on the reference sound pressure value.
2. The method of claim 1, wherein before counting the total number of the corresponding data stored, the method further comprises:
when the at least one corresponding data is detected and stored, calculating a first matching degree between the current ear canal characteristic information and each ear canal characteristic information in the at least one corresponding data;
determining a maximum first degree of matching from the first degrees of matching;
and when the maximum first matching degree is smaller than a preset first matching degree threshold value, taking the current ear canal characteristic information and the current sound pressure value as corresponding data and storing the corresponding data.
3. The method of claim 1, wherein the current ear canal characteristic information comprises current impedance information; the obtaining, by the earphone, current ear canal feature information generated when the audio is played includes:
when the audio is played through the earphone, detecting a voltage signal and a current signal generated when the audio is played based on a digital-to-analog conversion circuit in the earphone;
and generating the current impedance information according to the earphone based on the voltage signal and the current signal.
4. The method of claim 1, wherein the current ear canal characteristic information comprises current ultrasound information; the obtaining, by the earphone, current ear canal feature information generated when the audio is played includes:
controlling the earphone to send out a first ultrasonic signal and receive a second ultrasonic signal reflected by the first ultrasonic signal;
generating the current ultrasound information based on the first ultrasound signal and the second ultrasound signal according to the headset.
5. The method of claim 1, wherein before the obtaining, by the earphone, current ear canal characteristic information generated while the audio is played and obtaining, by a sound pressure sensor provided on the earphone, a current sound pressure value, the method comprises:
when the audio is played through the earphone, acquiring initial ear canal characteristic information generated when the audio is played through the earphone;
calculating a second matching degree of the initial ear canal characteristic information and preset ear canal characteristic information, wherein the preset ear canal characteristic information is acquired when an earphone is not worn;
and when the second matching degree is greater than a preset second matching degree threshold value, generating an alarm prompt for representing that the earphone is not worn.
6. A volume adjustment device, characterized in that the device comprises: the device comprises an acquisition unit, a detection unit, a determination unit, a storage unit and a control unit; wherein the content of the first and second substances,
the acquisition unit is used for acquiring current ear canal characteristic information generated during audio playing through the earphone when the earphone is in a wearing state and the audio is played through the earphone, and acquiring a current sound pressure value through a sound pressure sensor arranged on the earphone;
the detecting unit is configured to detect whether there is at least one corresponding data after the current ear canal feature information generated when the audio is played is acquired through the earphone and the current sound pressure value is acquired through a sound pressure sensor arranged on the earphone, where the corresponding relationship represents the ear canal feature information and the sound pressure value acquired when the earphone is worn in the at least one wearing manner, and the at least one corresponding data represents the ear canal feature information and the sound pressure value acquired when the earphone is worn in each of the at least one wearing manner;
the storage unit is configured to, after detecting whether there is at least one corresponding data when there is no correspondence between ear canal feature information and a sound pressure value, regard the current ear canal feature information and the current sound pressure value as one corresponding data and store the data when it is detected that there is no corresponding data;
the control unit is used for counting the total number of the stored corresponding data; when the total number is greater than or equal to a preset number threshold, generating a corresponding relation between the ear canal characteristic information and a sound pressure value according to the stored corresponding data;
the determining unit is configured to determine a reference sound pressure value corresponding to the current ear canal feature information from a correspondence between the ear canal feature information and a sound pressure value;
the control unit is further configured to adjust a volume of playing the audio based on the reference sound pressure value.
7. The apparatus of claim 6, further comprising: a matching unit;
the matching unit is used for calculating a first matching degree between the current ear canal characteristic information and each ear canal characteristic information in the at least one corresponding data when the at least one corresponding data is detected and stored; and determining a maximum first degree of match from the first degrees of match;
and the storage unit is further used for taking the current ear canal characteristic information and the current sound pressure value as corresponding data and storing the data when the maximum first matching degree is smaller than a preset first matching degree threshold value.
8. The apparatus of claim 6, wherein the current ear canal characteristic information comprises current impedance information;
the acquisition unit is specifically configured to detect a voltage signal and a current signal generated when the audio is played based on a digital-to-analog conversion circuit in the earphone when the audio is played through the earphone; and generating the current impedance information according to the earphone based on the voltage signal and the current signal.
9. The apparatus of claim 6, wherein the current ear canal characteristic information comprises current ultrasound information;
the acquisition unit is specifically configured to control the earphone to emit a first ultrasonic signal and receive a second ultrasonic signal reflected by the first ultrasonic signal; generating the current ultrasound information based on the first ultrasound signal and the second ultrasound signal according to the headset.
10. The apparatus of claim 7,
the acquiring unit is further configured to acquire, by the earphone, current ear canal feature information generated when the audio is played, and acquire, by the earphone, initial ear canal feature information generated when the audio is played before acquiring a current sound pressure value by a sound pressure sensor provided on the earphone;
the matching unit is further used for calculating a second matching degree of the initial ear canal characteristic information and preset ear canal characteristic information, wherein the preset ear canal characteristic information is acquired when an earphone is not worn;
the control unit is further configured to generate an alarm prompt representing that the headset is in an unworn state when the second matching degree is greater than a preset second matching degree threshold.
11. A volume adjustment device, characterized by comprising: a processor, a memory, and a communication bus, the memory in communication with the processor through the communication bus, the memory storing one or more programs executable by the processor, the processor performing the method of any of claims 1-5 when the one or more programs are executed.
12. A computer-readable storage medium, having one or more programs stored thereon, the one or more programs being executable by one or more processors to perform the method of any of claims 1-5.
CN202110892146.1A 2019-07-10 2019-07-10 Volume adjustment method and device and computer readable storage medium Active CN113709614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110892146.1A CN113709614B (en) 2019-07-10 2019-07-10 Volume adjustment method and device and computer readable storage medium

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910620694.1A CN110418232B (en) 2019-07-10 2019-07-10 Volume adjusting method and device and computer readable storage medium
CN202110892146.1A CN113709614B (en) 2019-07-10 2019-07-10 Volume adjustment method and device and computer readable storage medium

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201910620694.1A Division CN110418232B (en) 2019-07-10 2019-07-10 Volume adjusting method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113709614A true CN113709614A (en) 2021-11-26
CN113709614B CN113709614B (en) 2024-04-30

Family

ID=68360919

Family Applications (3)

Application Number Title Priority Date Filing Date
CN202110887668.2A Pending CN113709613A (en) 2019-07-10 2019-07-10 Volume adjusting method and device and computer readable storage medium
CN201910620694.1A Active CN110418232B (en) 2019-07-10 2019-07-10 Volume adjusting method and device and computer readable storage medium
CN202110892146.1A Active CN113709614B (en) 2019-07-10 2019-07-10 Volume adjustment method and device and computer readable storage medium

Family Applications Before (2)

Application Number Title Priority Date Filing Date
CN202110887668.2A Pending CN113709613A (en) 2019-07-10 2019-07-10 Volume adjusting method and device and computer readable storage medium
CN201910620694.1A Active CN110418232B (en) 2019-07-10 2019-07-10 Volume adjusting method and device and computer readable storage medium

Country Status (2)

Country Link
CN (3) CN113709613A (en)
WO (1) WO2021004334A1 (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709613A (en) * 2019-07-10 2021-11-26 Oppo广东移动通信有限公司 Volume adjusting method and device and computer readable storage medium
CN113099336B (en) * 2020-01-08 2023-07-25 北京小米移动软件有限公司 Method and device for adjusting earphone audio parameters, earphone and storage medium
CN113099335A (en) * 2020-01-08 2021-07-09 北京小米移动软件有限公司 Method and device for adjusting audio parameters of earphone, electronic equipment and earphone
CN111464911B (en) * 2020-05-18 2021-12-28 歌尔智能科技有限公司 Earphone left and right volume adjusting method, earphone and storage medium
CN112086106B (en) * 2020-08-11 2024-03-22 北京声智科技有限公司 Test scene alignment method, device, medium and equipment
US11653138B2 (en) * 2020-09-10 2023-05-16 David Patrick Warner Acoustic reflex detection
CN112449269B (en) * 2020-10-13 2023-03-24 安克创新科技股份有限公司 Earphone and tone quality optimization method thereof
CN112532787B (en) * 2020-11-30 2022-08-09 宜宾市天珑通讯有限公司 Earphone audio data processing method, mobile terminal and computer readable storage medium
CN112804607B (en) * 2020-12-24 2023-02-07 歌尔科技有限公司 Tone quality adjusting method and device and tone quality adjustable earphone
CN113010139B (en) * 2021-03-10 2023-09-05 北京奇艺世纪科技有限公司 Screen projection method and device and electronic equipment
CN113613122B (en) * 2021-03-18 2023-10-20 深圳市冠旭电子股份有限公司 Volume adjusting method, volume adjusting device, earphone and storage medium
CN113301473A (en) * 2021-06-10 2021-08-24 元心信息科技集团有限公司 Method, device, equipment and storage medium for adjusting volume of earphone equipment
CN114469082A (en) * 2021-12-30 2022-05-13 联想(北京)有限公司 Wearable device and control method
CN114388001A (en) * 2021-12-31 2022-04-22 北京梧桐车联科技有限责任公司 Multimedia file playing method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873974A (en) * 2014-03-05 2014-06-18 宇龙计算机通信科技(深圳)有限公司 Method for protecting hearing of human ears, earphone and mobile terminal
CN108540900A (en) * 2018-03-30 2018-09-14 广东欧珀移动通信有限公司 Volume adjusting method and related product
CN109413555A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Audio-frequency inputting method, device, earphone and electronic equipment

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104661153B (en) * 2014-12-31 2018-02-02 歌尔股份有限公司 A kind of compensation method of earphone audio, device and earphone
CN105049977A (en) * 2015-07-30 2015-11-11 努比亚技术有限公司 Automatic earphone volume adjusting method and device
CN205160755U (en) * 2015-12-07 2016-04-13 京东方科技集团股份有限公司 Headphone structure device, earphone and wearable equipment
US20170289328A1 (en) * 2015-12-14 2017-10-05 Tridimensional Innovations, Inc Automatic Detection of Ear Tip Type
CN106101408A (en) * 2016-06-08 2016-11-09 维沃移动通信有限公司 A kind of mobile terminal and method for regulation of sound volume thereof
CN105939421A (en) * 2016-06-14 2016-09-14 努比亚技术有限公司 Terminal parameter adjusting device and method
CN106921904B (en) * 2017-04-27 2019-03-05 维沃移动通信有限公司 A kind of sound quality adjusting method and terminal of earphone
CN108551631A (en) * 2018-04-28 2018-09-18 维沃移动通信有限公司 A kind of sound quality compensation method and mobile terminal
CN108966080A (en) * 2018-06-26 2018-12-07 Oppo广东移动通信有限公司 volume adjusting method, device, storage medium and terminal device
CN109348366B (en) * 2018-11-12 2022-07-29 维沃移动通信有限公司 Method for adjusting volume by using electrical parameters and mobile terminal
CN109413537A (en) * 2018-12-20 2019-03-01 歌尔科技有限公司 Audio signal playback method, device and earphone
CN109765784A (en) * 2019-01-11 2019-05-17 深圳市迷购网络科技有限公司 Headset control method, earphone and computer readable storage medium
CN113709613A (en) * 2019-07-10 2021-11-26 Oppo广东移动通信有限公司 Volume adjusting method and device and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103873974A (en) * 2014-03-05 2014-06-18 宇龙计算机通信科技(深圳)有限公司 Method for protecting hearing of human ears, earphone and mobile terminal
CN108540900A (en) * 2018-03-30 2018-09-14 广东欧珀移动通信有限公司 Volume adjusting method and related product
CN109413555A (en) * 2018-09-30 2019-03-01 Oppo广东移动通信有限公司 Audio-frequency inputting method, device, earphone and electronic equipment

Also Published As

Publication number Publication date
CN110418232A (en) 2019-11-05
CN113709614B (en) 2024-04-30
CN113709613A (en) 2021-11-26
WO2021004334A1 (en) 2021-01-14
CN110418232B (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN110418232B (en) Volume adjusting method and device and computer readable storage medium
US11632621B2 (en) Method for controlling volume of wireless headset, and computer-readable storage medium
CN110972014B (en) Parameter adjustment method and device for active noise reduction earphone and wireless earphone
JP6096993B1 (en) Earphone sound effect compensation method, apparatus, and earphone
EP2214554B1 (en) Aural heart monitoring apparatus and method
CN108810717A (en) A kind of left and right acoustic channels degree of balance adjusting method, device, control chip and earphone
EP1781063A2 (en) Method and apparatus for reproducing music file
EP3310075B1 (en) Audio system with concealed space detection or calibration
CN104978166A (en) Volume adjusting method and device
CN110267144B (en) Information processing method and apparatus, and storage medium
WO2011152724A3 (en) Hearing system and method as well as ear-level device and control device applied therein
CN105898650A (en) Volume reminding method and system for intelligent device
CN104754462A (en) Automatic regulating device and method for volume and earphone
CN113596657A (en) Earphone in-ear detection method, terminal and computer readable storage medium
WO2015026859A1 (en) Audio apparatus and methods
CN113613157B (en) Earphone and wearing state detection method and device thereof and storage medium
CN117319870B (en) Earphone wearing state detection method and device, earphone and storage medium
CN113099336A (en) Method and device for adjusting audio parameters of earphone, earphone and storage medium
CN108810787B (en) Foreign matter detection method and device based on audio equipment and terminal
WO2023197474A1 (en) Method for determining parameter corresponding to earphone mode, and earphone, terminal and system
CN113824838B (en) Sounding control method and device, electronic equipment and storage medium
CN112291689B (en) Sound playing method, wearable device and readable storage medium
CN115243183A (en) Audio detection method, device and storage medium
US20230421974A1 (en) Systems and methods for own voice detection in a hearing system
WO2016000297A1 (en) Audio adjustment method and apparatus

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