CN115460526B - Method, electronic device and system for determining hearing model - Google Patents
Method, electronic device and system for determining hearing model Download PDFInfo
- Publication number
- CN115460526B CN115460526B CN202211414959.0A CN202211414959A CN115460526B CN 115460526 B CN115460526 B CN 115460526B CN 202211414959 A CN202211414959 A CN 202211414959A CN 115460526 B CN115460526 B CN 115460526B
- Authority
- CN
- China
- Prior art keywords
- loss
- amplitude
- vertical
- test
- user
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 76
- 238000012360 testing method Methods 0.000 claims abstract description 559
- 230000005236 sound signal Effects 0.000 claims abstract description 85
- 230000008447 perception Effects 0.000 claims abstract description 48
- 238000001228 spectrum Methods 0.000 claims abstract description 5
- 238000004891 communication Methods 0.000 claims description 32
- 230000008859 change Effects 0.000 claims description 30
- 208000016354 hearing loss disease Diseases 0.000 claims description 28
- 206010011878 Deafness Diseases 0.000 claims description 26
- 230000010370 hearing loss Effects 0.000 claims description 26
- 231100000888 hearing loss Toxicity 0.000 claims description 26
- 210000005069 ears Anatomy 0.000 claims description 22
- 238000004590 computer program Methods 0.000 claims description 10
- 230000004044 response Effects 0.000 claims description 5
- 238000007726 management method Methods 0.000 description 30
- 230000006870 function Effects 0.000 description 28
- 230000008569 process Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 22
- 238000012549 training Methods 0.000 description 20
- 238000013461 design Methods 0.000 description 18
- 230000007613 environmental effect Effects 0.000 description 17
- 230000000694 effects Effects 0.000 description 16
- 238000012545 processing Methods 0.000 description 14
- 230000003595 spectral effect Effects 0.000 description 13
- 208000032041 Hearing impaired Diseases 0.000 description 11
- 238000001514 detection method Methods 0.000 description 11
- 210000000613 ear canal Anatomy 0.000 description 10
- 238000012074 hearing test Methods 0.000 description 5
- 230000009286 beneficial effect Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 238000013528 artificial neural network Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000002452 interceptive effect Effects 0.000 description 3
- 238000013473 artificial intelligence Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 210000003128 head Anatomy 0.000 description 2
- 230000003862 health status Effects 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 238000005259 measurement Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000009467 reduction Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000003745 diagnosis Methods 0.000 description 1
- 238000007499 fusion processing Methods 0.000 description 1
- 230000001771 impaired effect Effects 0.000 description 1
- 238000009413 insulation Methods 0.000 description 1
- 230000002427 irreversible effect Effects 0.000 description 1
- 230000000873 masking effect Effects 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000013102 re-test Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 210000003454 tympanic membrane Anatomy 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R25/00—Deaf-aid sets, i.e. electro-acoustic or electro-mechanical hearing aids; Electric tinnitus maskers providing an auditory perception
- H04R25/30—Monitoring or testing of hearing aids, e.g. functioning, settings, battery power
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R25/00—Deaf-aid sets, i.e. electro-acoustic or electro-mechanical hearing aids; Electric tinnitus maskers providing an auditory perception
- H04R25/40—Arrangements for obtaining a desired directivity characteristic
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R25/00—Deaf-aid sets, i.e. electro-acoustic or electro-mechanical hearing aids; Electric tinnitus maskers providing an auditory perception
- H04R25/48—Deaf-aid sets, i.e. electro-acoustic or electro-mechanical hearing aids; Electric tinnitus maskers providing an auditory perception using constructional means for obtaining a desired frequency response
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R25/00—Deaf-aid sets, i.e. electro-acoustic or electro-mechanical hearing aids; Electric tinnitus maskers providing an auditory perception
- H04R25/70—Adaptation of deaf aid to hearing loss, e.g. initial electronic fitting
Landscapes
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Otolaryngology (AREA)
- Neurosurgery (AREA)
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
Abstract
一种听力模型的确定方法、电子设备及系统,涉及辅听功能技术领域,可以基于方位测试确定出用户的听力情况,即得到听力模型,从而可以辅助实现听力补偿。其中,播放包括频率和出现的水平方位不同,但幅度相同的多种第一声音信号的水平测试音频,并接收水平测试结果,水平测试结果包括用户对多种第一声音信号的水平感知方位。播放包括幅度和出现的垂直方位不同,但谱信号相同的多种第二声音信号的垂直测试音频,并接收垂直测试结果,垂直测试结果包括用户对多种第二声音信号的垂直感知方位。基于水平测试结果和垂直测试结果得到用户的听力模型,听力模型包括用户可感知到各个频率的声音信号的第一最低幅度。
A method for determining a hearing model, an electronic device, and a system, relating to the technical field of hearing aids, can determine a user's hearing condition based on an orientation test, that is, obtain a hearing model, thereby assisting in realizing hearing compensation. Wherein, playing level test audio including various first sound signals with different frequencies and horizontal orientations but the same amplitude, and receiving level test results, the level test results include the user's level perception orientation of the various first sound signals. Playing vertical test audio of multiple second sound signals with different amplitudes and vertical orientations but the same spectrum signal, and receiving vertical test results, the vertical test results include the user's vertical perception orientation of the multiple second sound signals. Based on the horizontal test result and the vertical test result, the hearing model of the user is obtained, and the hearing model includes the first lowest amplitude of the sound signal of each frequency that the user can perceive.
Description
技术领域technical field
本申请涉及辅听功能技术领域,尤其涉及一种听力模型的确定方法、电子设备及系统。The present application relates to the technical field of hearing aids, and in particular to a method for determining a hearing model, an electronic device and a system.
背景技术Background technique
若长时间处于噪声环境中或者具有不好的用耳习惯,都会导致用户的听力处于受损状态。而且,听力受损是不可逆的。对于听力受损的用户和听力未受损的用户,在使用手机、平板等电子设备的过程中,两者听到的来自电子设备播放的音频效果可能完全不同。也就是说,对于听力受损的用户,其听到的音频效果可能达不到预期的效果。若需要达到预期的效果,电子设备需要对播放的音频进行补偿,例如,调大音频中用户听力受损的频段的幅度。If you stay in a noisy environment for a long time or have bad ear habits, the user's hearing will be damaged. Moreover, hearing loss is irreversible. For hearing-impaired users and non-hearing-impaired users, in the process of using electronic devices such as mobile phones and tablets, the audio effects played by the electronic devices they hear may be completely different. In other words, for hearing-impaired users, the audio effect they hear may not be as expected. To achieve the desired effect, the electronic device needs to compensate the played audio, for example, increase the amplitude of the frequency band in the audio where the user's hearing is impaired.
很显然,电子设备首先需要确定用户的听力情况,明确用户在各个频段可以听到的幅度,然后才能基于此准确的进行补偿。Obviously, the electronic device first needs to determine the hearing condition of the user and the range that the user can hear in each frequency band, and then can accurately compensate based on this.
然而,发明人在实施本申请实施例的过程中发现:现有技术中暂时没有比较简单的用于确定用户的听力情况的方案,从而导致无法在电子设备上准确的实现补偿。However, the inventor found in the process of implementing the embodiments of the present application that there is no relatively simple solution for determining the user's hearing condition in the prior art, which leads to the inability to accurately implement compensation on the electronic device.
发明内容Contents of the invention
有鉴于此,本申请提供了一种听力模型的确定方法、电子设备及系统,可以基于方位测试确定出用户的听力情况,即得到听力模型,从而可以辅助实现听力补偿。In view of this, the present application provides a method for determining a hearing model, an electronic device and a system, which can determine a user's hearing condition based on an orientation test, that is, obtain a hearing model, thereby assisting in realizing hearing compensation.
第一方面,本申请实施例提供一种听力模型的确定方法,应用于电子设备。其中,播放水平测试音频,水平测试音频中包括频率和出现的水平方位不同,但幅度相同的多种第一声音信号。接收用户反馈的水平测试结果,右耳测试序列水平测试结果包括用户对右耳测试序列多种第一声音信号的水平感知方位。由于用户需要依赖ILD来感知水平方位,即幅度会影响用户对水平方位的感知。那么,设置水平测试音频包括幅度相同的多种声音信号,可以避免因幅度不同而影响用户对水平方位的判断。In a first aspect, an embodiment of the present application provides a method for determining a hearing model, which is applied to an electronic device. Wherein, the level test audio is played, and the level test audio includes multiple first sound signals with different frequencies and horizontal orientations but with the same amplitude. The level test result fed back by the user is received, and the level test result of the right ear test sequence includes the user's level perception orientation of various first sound signals of the right ear test sequence. Since the user needs to rely on the ILD to perceive the horizontal orientation, that is, the amplitude will affect the user's perception of the horizontal orientation. Then, setting the horizontal test audio to include multiple sound signals with the same amplitude can avoid affecting the user's judgment of the horizontal orientation due to different amplitudes.
以及,播放垂直测试音频,垂直测试音频中包括幅度和出现的垂直方位不同,但谱信号相同的多种第二声音信号。接收用户反馈的垂直测试结果,右耳测试序列垂直测试结果包括用户对右耳测试序列多种第二声音信号的垂直感知方位。由于用户需要依赖谱信号的变化来感知垂直方位的变化,即谱信号会影响用户对垂直方位的感知。那么,设置垂直测试音频包括普信号相同的声音信号,可以避免因谱信号不同而影响用户对垂直方位的判断。And, the vertical test audio is played, and the vertical test audio includes multiple second sound signals with different amplitudes and vertical orientations but the same spectral signals. The vertical test result fed back by the user is received, and the vertical test result of the right ear test sequence includes the user's vertical perception orientation of various second sound signals of the right ear test sequence. Since the user needs to rely on the change of the spectral signal to perceive the change of the vertical orientation, that is, the spectral signal will affect the user's perception of the vertical orientation. Then, setting the vertical test audio to include the same sound signal as the ordinary signal can avoid affecting the user's judgment of the vertical orientation due to different spectrum signals.
最后,基于水平测试结果和垂直测试结果得到用户的听力模型,听力模型包括用户可感知到各个频率的声音信号的第一最低幅度。也就是说,听力模型可以反映用户对各个频率的声音信号的听力情况。从而可以用于听力补偿。例如,听力模型中频率为1.1KHz对应的最低幅度为40dB,正常用户的听力模型中频率为1.1KHz对应的最低幅度为30dB,即被测用户比正常用户在1.1KHz可以听到的最低幅度差10dB,则电子设备在播放1.1KHz的声音时,可以将幅度增加10dB。这样,可以针对听力受损的用户,个性化的播放音频,使其获得与正常用户相同的音频效果。Finally, the user's hearing model is obtained based on the horizontal test result and the vertical test result, and the hearing model includes the first lowest amplitude of the sound signal of each frequency that the user can perceive. That is to say, the hearing model can reflect the user's hearing status to sound signals of various frequencies. It can thus be used for hearing compensation. For example, the lowest amplitude corresponding to the frequency of 1.1KHz in the hearing model is 40dB, and the lowest amplitude corresponding to the frequency of 1.1KHz in the hearing model of normal users is 30dB, that is, the lowest amplitude that the tested user can hear at 1.1KHz is worse than that of the normal user. 10dB, the electronic device can increase the amplitude by 10dB when playing 1.1KHz sound. In this way, audio can be played personalizedly for hearing-impaired users so that they can obtain the same audio effects as normal users.
在第一方面的一种可能的设计方式中,上述播放水平测试音频,包括:通过耳机播放水平测试音频。上述播放垂直测试音频,包括:通过耳机播放垂直测试音频。In a possible design manner of the first aspect, playing the level test audio includes: playing the level test audio through earphones. The above-mentioned playing the vertical test audio includes: playing the vertical test audio through the earphone.
采用本实施例,使用耳机来播放测试音频,可以减少周围环境对听力测试的影响。By adopting this embodiment, the earphone is used to play the test audio, which can reduce the influence of the surrounding environment on the hearing test.
在第一方面的一种可能的设计方式中,上述方法还包括:获取耳机的左耳塞中前馈麦克风采集的第一前馈信号,以及获取耳机的右耳塞中前馈麦克风采集的第二前馈信号。上述通过耳机播放水平测试音频,以及通过耳机播放垂直测试音频,包括:在第一前馈信号小于第一阈值,且第二前馈信号小于第一阈值的情况下,通过耳机播放水平测试音频,通过耳机播放垂直测试音频。In a possible design of the first aspect, the above method further includes: acquiring the first feedforward signal collected by the feedforward microphone in the left earbud of the earphone, and acquiring the second feedforward signal collected by the feedforward microphone in the right earbud of the earphone. feed signal. The above-mentioned playing the horizontal test audio through the earphones and playing the vertical test audio through the earphones includes: when the first feedforward signal is less than the first threshold and the second feedforward signal is less than the first threshold, playing the horizontal test audio through the earphones, Play vertical test audio through headphones.
采用本实施例,在两只耳塞的前馈信号都很小的情况下,即两只耳塞所处环境的环境噪音较小的情况下,才播放测试音频并测试。从而可以避免环境噪音影响用户对方位的感知。With this embodiment, the test audio is played and tested only when the feedforward signals of the two earplugs are very small, that is, the ambient noise of the environment where the two earplugs are located is relatively small. In this way, environmental noise can be prevented from affecting the user's perception of the orientation.
在第一方面的一种可能的设计方式中,上述方法还包括:获取左耳塞中反馈麦克风采集的第一反馈信号,以及获取右耳塞中反馈麦克风采集的第二反馈信号。上述通过耳机播放水平测试音频,以及通过耳机播放垂直测试音频,包括:在第一前馈信号与第一反馈信号的差值大于第二阈值,且第二前馈信号与第二反馈信号的差值大于第二阈值的情况下,通过耳机播放水平测试音频,以及通过耳机播放垂直测试音频。In a possible design of the first aspect, the above method further includes: acquiring a first feedback signal collected by the feedback microphone in the left earplug, and acquiring a second feedback signal collected by the feedback microphone in the right earplug. The above-mentioned playing horizontal test audio through earphones and playing vertical test audio through earphones includes: the difference between the first feedforward signal and the first feedback signal is greater than the second threshold, and the difference between the second feedforward signal and the second feedback signal When the value is greater than the second threshold, the horizontal test audio is played through the earphone, and the vertical test audio is played through the earphone.
采用本实施例,在两只耳塞中前馈信号和反馈信号的差值都较大的情况下,即左耳塞和右耳塞都与耳朵非常贴合,对外部的环境声音的隔绝效果很好的情况下,才播放测试音频并测试。从而可以避免耳机隔音降噪的效果不好而用户对方位的感知。With this embodiment, when the difference between the feedforward signal and the feedback signal in the two earplugs is large, that is, the left earplug and the right earplug are very close to the ear, and the isolation effect on the external environmental sound is very good In this case, the test audio is played and tested. In this way, it is possible to avoid the user's perception of the orientation due to poor sound insulation and noise reduction effect of the earphone.
在第一方面的一种可能的设计方式中,上述方法还包括:向耳机的左耳塞和右耳塞发送同样的预设音频,预设音频用于测试左耳塞的扬声器和右耳塞的扬声器的硬件差异。获取左耳塞中反馈麦克风采集的第三反馈信号,以及获取右耳塞中反馈麦克风采集的第四反馈信号,第三反馈信号包括左耳塞的扬声器播放预设音频的结果,第四反馈信号包括右耳塞的扬声器播放预设音频的结果。确定使第三反馈信号和第四反馈信号一致的校准系数。向第一耳塞发送校准系数,第一耳塞为左耳塞或者右耳塞。也就是说,校准系数可以屏蔽掉左耳塞中扬声器和右耳塞中扬声器的硬件差异。In a possible design of the first aspect, the above method further includes: sending the same preset audio to the left earplug and the right earplug of the earphone, and the preset audio is used to test the hardware of the speaker of the left earplug and the speaker of the right earplug difference. Obtain the third feedback signal collected by the feedback microphone in the left earbud, and obtain the fourth feedback signal collected by the feedback microphone in the right earbud, the third feedback signal includes the result of the preset audio played by the speaker of the left earbud, and the fourth feedback signal includes the right earbud The speaker plays the preset audio result. Calibration coefficients are determined to align the third feedback signal and the fourth feedback signal. The calibration coefficients are sent to the first earbud, be it the left earbud or the right earbud. That is, the calibration coefficients can mask out hardware differences between the speaker in the left earbud and the speaker in the right earbud.
相应的,上述通过耳机播放水平测试音频,以及通过耳机播放垂直测试音频,包括:通过第一耳塞使用校准系数对水平测试音频校准后播放校准后的水平测试音频,通过第二耳塞播放水平测试音频。以及,通过第一耳塞使用校准系数对垂直测试音频校准后播放校准后的垂直测试音频,通过第二耳塞播放垂直测试音频。其中,第二耳塞是左耳塞和右耳塞中除第一耳塞之外的耳塞。例如,第一耳塞为左耳塞,则第二耳塞为右耳塞;第一耳塞为右耳塞,则第二耳塞为左耳塞。Correspondingly, the above-mentioned playing the horizontal test audio through the earphones and the vertical test audio through the earphones include: using the calibration coefficient to calibrate the horizontal test audio through the first earplug and then playing the calibrated horizontal test audio, and playing the horizontal test audio through the second earplug . And, after the vertical test audio is calibrated by using the calibration coefficient through the first earplug, the calibrated vertical test audio is played, and the vertical test audio is played through the second earplug. Wherein, the second earplug is an earplug other than the first earplug among the left earplug and the right earplug. For example, if the first earplug is the left earplug, then the second earplug is the right earplug; if the first earplug is the right earplug, then the second earplug is the left earplug.
采用本实施例,通过校准系数屏蔽掉左耳塞和右耳塞的硬件差异,从而可以避免硬件差异而影响测试效果。By adopting this embodiment, the hardware difference between the left earplug and the right earplug is shielded by the calibration coefficient, thereby avoiding the influence of the hardware difference on the test effect.
在第一方面的一种可能的设计方式中,上述基于水平测试结果和垂直测试结果得到用户的听力模型,包括:基于水平测试结果确定用户听力的水平角度损失,水平角度损失包括用户对各个频率的声音信号的水平感知方位的角度偏差。基于垂直测试结果确定用户听力的垂直角度损失,垂直角度损失包括用户对各个幅度的声音信号的垂直感知方位的角度偏差。基于水平角度损失和垂直角度损失计算用户的听力模型。In a possible design of the first aspect, the above-mentioned obtaining of the user's hearing model based on the horizontal test result and the vertical test result includes: determining the horizontal angle loss of the user's hearing based on the horizontal test result. The angular deviation of the perceived azimuth of the level of the sound signal. The vertical angle loss of the hearing of the user is determined based on the vertical test result, and the vertical angle loss includes the angular deviation of the user's vertical perception orientation of sound signals of various amplitudes. A hearing model of the user is calculated based on the horizontal angle loss and the vertical angle loss.
在第一方面的一种可能的设计方式中,电子设备中包括第一对应关系和第二对应关系,第一对应关系包括幅度的变化与无听力损失的人群对声音信号的水平感知方位的变化的对应关系,第二对应关系包括频率的变化与无听力损失的人群对声音信号的垂直感知方位的变化的对应关系。上述基于水平角度损失和垂直角度损失计算用户的听力模型,包括:基于第一对应关系,将水平角度损失转换为用户双耳的相对幅度损失,相对幅度损失包括对各个频率的声音信号、用户左耳和右耳感知到的幅度差值。基于第二对应关系,将垂直角度损失转换为用户双耳的频率损失模型,频率损失模型包括用户可感知到各个频率的声音信号的第二最低幅度。基于相对幅度损失修正频率损失模型,得到听力模型。In a possible design of the first aspect, the electronic device includes a first correspondence and a second correspondence, and the first correspondence includes changes in amplitude and changes in the level perception and orientation of sound signals by people without hearing loss The second correspondence includes the correspondence between the change of the frequency and the change of the vertical perception direction of the sound signal by the people without hearing loss. The above-mentioned calculation of the user's hearing model based on the horizontal angle loss and the vertical angle loss includes: based on the first correspondence, converting the horizontal angle loss into the relative amplitude loss of the user's ears, the relative amplitude loss includes sound signals of various frequencies, the user's left The difference in amplitude perceived by the ear and the right ear. Based on the second corresponding relationship, the vertical angle loss is converted into a frequency loss model of the user's ears, and the frequency loss model includes the second lowest amplitude of the sound signal of each frequency that the user can perceive. The hearing model is obtained by modifying the frequency loss model based on the relative amplitude loss.
采用本实施例,可以通过预先得到的第一对应关系将水平方位的角度损失转换为相对幅度损失,以及通过预先得到的第二对应关系将垂直方位的角度损失转换为频率损失模型。也就是说,频率损失模型是在不考虑水平方位的角度损失的基础上,对于各个频率的声音,用户可以听到的最低幅度。因此,进一步基于相对幅度损失,对基础模型进行修正,则可以得到综合水平方位的角度损失和垂直方位的角度损失的听力模型,使得听力模型的结果更合理。Using this embodiment, the angle loss of the horizontal azimuth can be converted into a relative amplitude loss through the first correspondence obtained in advance, and the angle loss of the vertical azimuth can be converted into a frequency loss model through the second correspondence obtained in advance. That is to say, the frequency loss model is the lowest amplitude that the user can hear for sounds of each frequency on the basis of not considering the angular loss of the horizontal orientation. Therefore, further modifying the basic model based on the relative amplitude loss can obtain a hearing model that integrates the angular loss of the horizontal orientation and the angular loss of the vertical orientation, making the result of the hearing model more reasonable.
在第一方面的一种可能的设计方式中,上述基于相对幅度损失修正频率损失模型,得到听力模型,包括:将频率损失模型中第一频率对应的第一最低幅度,加上相对幅度损失中第一频率对应的幅度差值,得到听力模型中第一频率对应的第二最低幅度。其中,第一频率为频率损失模型包括的任一频率。In a possible design of the first aspect, the above-mentioned modification of the frequency loss model based on the relative amplitude loss to obtain the hearing model includes: adding the first lowest amplitude corresponding to the first frequency in the frequency loss model to the relative amplitude loss The amplitude difference corresponding to the first frequency is used to obtain the second lowest amplitude corresponding to the first frequency in the hearing model. Wherein, the first frequency is any frequency included in the frequency loss model.
采用本实施例,则可以得到修正得到对应频率损失模型中每一个频率的最低幅度。By adopting this embodiment, the minimum amplitude of each frequency in the corresponding frequency loss model can be corrected.
在第一方面的一种可能的设计方式中,考虑到用户是听力受损的用户,则听力上的幅度损失可能会干扰垂直方位的测量。因此,在测试垂直方位的角度损失之前,可以先测试得用户双耳的绝对幅度损失,包括左耳的第一绝对幅度损失和右耳的第二绝对幅度损失。然后,在测试垂直方位的角度损失的过程中,将第一绝对幅度损失和第二绝对幅度损失抹平,使垂直方位的测试过程不受幅度损失的干扰。In a possible design manner of the first aspect, considering that the user is a hearing-impaired user, the amplitude loss in hearing may interfere with the measurement of the vertical orientation. Therefore, before testing the angle loss of the vertical orientation, the absolute amplitude loss of both ears of the user may be tested first, including the first absolute amplitude loss of the left ear and the second absolute amplitude loss of the right ear. Then, in the process of testing the angular loss of the vertical azimuth, the first absolute amplitude loss and the second absolute amplitude loss are smoothed, so that the testing process of the vertical azimuth is not disturbed by the amplitude loss.
基于此,上述方法还包括:将垂直测试音频中多种第二声音信号的幅度减去第一绝对幅度损失,得到多种左耳测试信号。多种第二声音信号的幅度减去第二绝对幅度损失,得到多种右耳测试信号,多种左耳测试信号和多种右耳测试信号构成更新后的垂直测试音频。其中,第一绝对幅度损失为预设频段范围内、无听力损失的人群在可听到的最低幅度与用户左耳可听到的最低幅度的差值,第二绝对幅度损失为预设频段范围内、无听力损失的人群在可听到的最低幅度与用户右耳可听到的最低幅度的差值。相应的,上述通过耳机播放垂直测试音频,包括:通过耳机的左耳塞播放多种左耳测试信号,通过耳机的右耳塞播放多种右耳测试信号。Based on this, the above method further includes: subtracting the first absolute amplitude loss from the amplitudes of the various second sound signals in the vertical test audio to obtain various left ear test signals. The amplitudes of the multiple second sound signals are subtracted from the second absolute amplitude loss to obtain multiple right ear test signals, and the multiple left ear test signals and the multiple right ear test signals constitute updated vertical test audio. Among them, the first absolute amplitude loss is the difference between the lowest audible amplitude of people without hearing loss within the preset frequency range and the lowest audible amplitude audible by the user's left ear, and the second absolute amplitude loss is the difference between the preset frequency range The difference between the lowest audible amplitude for people without hearing loss and the lowest audible amplitude for the user's right ear. Correspondingly, playing the vertical test audio through the earphone includes: playing various left-ear test signals through the left earplug of the earphone, and playing various right-ear test signals through the right earplug of the earphone.
采用本实施例,可以避免垂直方位的测试过程受到幅度损失的干扰,提升垂直方位测试的准确性。By adopting this embodiment, it is possible to avoid the interference of the amplitude loss in the testing process of the vertical azimuth, and improve the accuracy of the vertical azimuth testing.
并且,电子设备中也包括第一对应关系和第二对应关系,第一对应关系包括幅度的变化与无听力损失的人群对声音信号的水平感知方位的变化的对应关系,第二对应关系包括频率的变化与无听力损失的人群对声音信号的垂直感知方位的变化的对应关系。Moreover, the electronic device also includes a first corresponding relationship and a second corresponding relationship, the first corresponding relationship includes the corresponding relationship between the change of the amplitude and the change of the horizontal perception direction of the sound signal by people without hearing loss, and the second corresponding relationship includes the frequency The corresponding relationship between the change of the change and the change of the vertical perception orientation of the sound signal in the population without hearing loss.
相应的,在计算听力损失时,则需要将此前抹平的第一绝对幅度损失和第二绝对幅度损失再次补回来。因此,基于水平角度损失和垂直角度损失计算用户的听力模型,包括:基于第一对应关系,将水平角度损失转换为用户双耳的相对幅度损失,相对幅度损失包括对各个频率的声音信号、用户左耳和右耳感知到的幅度差值。基于第一绝对幅度损失和第二绝对幅度损失修正相对幅度损失,得到双耳幅度损失。基于第二对应关系,将垂直角度损失转换为用户双耳的频率损失模型,频率损失模型包括用户可感知到各个频率的声音信号的第二最低幅度。基于双耳幅度损失修正频率损失模型,得到听力模型。Correspondingly, when calculating the hearing loss, it is necessary to make up for the first absolute amplitude loss and the second absolute amplitude loss that have been smoothed out before. Therefore, calculating the hearing model of the user based on the horizontal angle loss and the vertical angle loss includes: based on the first corresponding relationship, converting the horizontal angle loss into the relative amplitude loss of the user's ears, the relative amplitude loss includes the sound signals of each frequency, the user The difference in amplitude perceived by the left and right ears. The relative amplitude loss is corrected based on the first absolute amplitude loss and the second absolute amplitude loss to obtain a binaural amplitude loss. Based on the second corresponding relationship, the vertical angle loss is converted into a frequency loss model of the user's ears, and the frequency loss model includes the second lowest amplitude of the sound signal of each frequency that the user can perceive. The hearing model is obtained by modifying the frequency loss model based on binaural amplitude loss.
采用本实施例,可以在相对幅度损失的基础上,补上此前抹平的第一绝对幅度损失和第二绝对幅度损失,从而可以得到准确的幅度损失。By adopting this embodiment, the first absolute amplitude loss and the second absolute amplitude loss smoothed out before can be supplemented on the basis of the relative amplitude loss, so that accurate amplitude loss can be obtained.
在第一方面的一种可能的设计方式中,上述基于第一绝对幅度损失和第二绝对幅度损失修正相对幅度损失,得到双耳幅度损失,包括:将相对幅度损失中,第二频率对应的第一幅度差值加上第一绝对幅度损失和第二绝对幅度损失的差值,得到双耳幅度损失中第二频率对应的第二幅度差值。In a possible design of the first aspect, the above-mentioned correction of the relative amplitude loss based on the first absolute amplitude loss and the second absolute amplitude loss to obtain the binaural amplitude loss includes: in the relative amplitude loss, the second frequency corresponding to The first amplitude difference is added to the difference between the first absolute amplitude loss and the second absolute amplitude loss to obtain a second amplitude difference corresponding to the second frequency in the binaural amplitude loss.
在第一方面的一种可能的设计方式中,在基于水平测试结果和垂直测试结果得到用户的听力模型之后,上述方法还包括:将待播放音频中第三频率的声音信号提高预设幅度后播放,第三频率为待播放音频包括的声音信号的任一频率,预设幅度为听力模型中第三频率对应的第一最低幅度与无听力损失的人群可听到第三频率的声音信号的第三最低幅度的差值。例如,听力模型中频率为1.1KHz对应的最低幅度为40dB,正常用户的听力模型中频率为1.1KHz对应的最低幅度为30dB,即被测用户比正常用户在1.1KHz可以听到的最低幅度差10dB,则电子设备在播放1.1KHz的声音时,可以将幅度增加10dB。这样,可以针对听力受损的用户,个性化的播放音频,使其获得与正常用户相同的音频效果。In a possible design of the first aspect, after the user's hearing model is obtained based on the horizontal test result and the vertical test result, the above method further includes: after increasing the sound signal of the third frequency in the audio to be played by a preset amplitude Play, the third frequency is any frequency of the sound signal included in the audio to be played, and the preset amplitude is the first lowest amplitude corresponding to the third frequency in the hearing model and the sound signal of the third frequency that people without hearing loss can hear The third lowest magnitude difference. For example, the lowest amplitude corresponding to the frequency of 1.1KHz in the hearing model is 40dB, and the lowest amplitude corresponding to the frequency of 1.1KHz in the hearing model of normal users is 30dB, that is, the lowest amplitude that the tested user can hear at 1.1KHz is worse than that of the normal user. 10dB, the electronic device can increase the amplitude by 10dB when playing 1.1KHz sound. In this way, audio can be played personalizedly for hearing-impaired users so that they can obtain the same audio effects as normal users.
在第一方面的一种可能的设计方式中,水平测试音频包括第一水平测试音频和第二水平测试音频,第一水平测试音频中依次出现的多种第一声音信号对应的多个频率的顺序、与第二水平测试音频中依次出现的多种第一声音信号对应的多个频率的顺序不完全相同。In a possible design of the first aspect, the level test audio includes a first level test audio and a second level test audio, and the first level test audio corresponds to multiple frequencies of multiple first sound signals that appear sequentially. The order, the order of the multiple frequencies corresponding to the multiple first sound signals sequentially appearing in the second level test audio is not completely the same.
采用本实施例,可以测试不同频率顺序下用户的听力情况。从而可以更准确的得到被测用户对各个频率的声音信号的听力情况。By adopting this embodiment, it is possible to test the hearing condition of the user in different frequency sequences. Therefore, the hearing condition of the tested user to the sound signals of each frequency can be obtained more accurately.
在第一方面的一种可能的设计方式中,垂直测试音频包括第一垂直测试音频和第二垂直测试音频,第一垂直测试音频中依次出现的多种第二声音信号对应的多个幅度的顺序、与第二垂直测试音频中依次出现的多种第二声音信号一一对应的多个幅度的顺序不完全相同。In a possible design manner of the first aspect, the vertical test audio includes a first vertical test audio and a second vertical test audio, and multiple amplitudes corresponding to multiple second sound signals appearing sequentially in the first vertical test audio The sequence, the sequence of the multiple amplitudes corresponding to the multiple second sound signals appearing sequentially in the second vertical test audio is not completely the same.
采用本实施例,可以测试不同幅度顺序下用户的听力情况。从而可以更准确的得到被测用户对各个幅度的声音信号的听力情况。By adopting this embodiment, it is possible to test the hearing condition of the user in different amplitude sequences. Therefore, the hearing condition of the user under test for sound signals of various amplitudes can be obtained more accurately.
第二方面,本申请实施例还提供了一种电子设备,所述电子设备包括存储器和一个或多个处理器;所述存储器和所述处理器耦合;所述存储器用于存储计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如第一方面及其任一种可能的设计方式的方法。In the second aspect, the embodiment of the present application also provides an electronic device, the electronic device includes a memory and one or more processors; the memory is coupled to the processor; the memory is used to store computer program codes, The computer program code includes computer instructions. When the computer instructions are executed by the processor, the electronic device executes the method according to the first aspect and any possible design manner thereof.
第三方面,本申请实施例提供一种芯片系统,该芯片系统应用于包括显示屏和存储器的电子设备;所述芯片系统包括一个或多个接口电路和一个或多个处理器;所述接口电路和所述处理器通过线路互联;所述接口电路用于从所述电子设备的存储器接收信号,并向所述处理器发送所述信号,所述信号包括所述存储器中存储的计算机指令;当所述处理器执行所述计算机指令时,所述电子设备执行如第一方面及其任一种可能的设计方式所述的方法。In a third aspect, an embodiment of the present application provides a chip system, which is applied to an electronic device including a display screen and a memory; the chip system includes one or more interface circuits and one or more processors; the interface The circuit and the processor are interconnected by a line; the interface circuit is configured to receive a signal from a memory of the electronic device and send the signal to the processor, the signal including computer instructions stored in the memory; When the processor executes the computer instruction, the electronic device executes the method described in the first aspect and any possible design manner thereof.
第四方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得电子设备执行如第一方面及其任一种可能的设计方式所述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium includes computer instructions, and when the computer instructions are run on an electronic device, the electronic device executes the first aspect and any one thereof. A possible design approach is described.
第五方面,本申请提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如第一方面及其任一种可能的设计方式所述的方法。In a fifth aspect, the present application provides a computer program product. When the computer program product runs on a computer, the computer executes the method described in the first aspect and any possible design manner thereof.
第六方面,本申请提供一种通信系统,所述通信系统包括用于执行如第一方面及其任一种可能的设计方式的方法的电子设备,以及包括用于播放测试音频的耳机。In a sixth aspect, the present application provides a communication system, the communication system includes an electronic device for executing the method according to the first aspect and any possible design manner thereof, and includes an earphone for playing test audio.
可以理解地,上述提供的第二方面所述的电子设备,第三方面所述的芯片系统,第四方面所述的计算机可读存储介质,第五方面所述的计算机产品和第五方面所述的通信系统所能达到的有益效果,可参考第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。It can be understood that the electronic device described in the second aspect provided above, the chip system described in the third aspect, the computer-readable storage medium described in the fourth aspect, the computer product described in the fifth aspect, and the computer product described in the fifth aspect For the beneficial effects that can be achieved by the communication system described above, reference may be made to the beneficial effects in the first aspect and any possible design manner thereof, which will not be repeated here.
附图说明Description of drawings
图1为本申请实施例提供的一种确定听力模型的过程简图;FIG. 1 is a schematic diagram of a process for determining a hearing model provided by an embodiment of the present application;
图2为本申请实施例提供的一种通信系统的结构示意图;FIG. 2 is a schematic structural diagram of a communication system provided by an embodiment of the present application;
图3为本申请实施例提供的一种手机的结构示意图;FIG. 3 is a schematic structural diagram of a mobile phone provided by an embodiment of the present application;
图4为本申请实施例提供的耳机的种类示意图;FIG. 4 is a schematic diagram of the types of earphones provided by the embodiment of the present application;
图5为本申请实施例提供的一种耳机的结构示意图;FIG. 5 is a schematic structural diagram of an earphone provided by an embodiment of the present application;
图6为本申请实施例提供的一种耳机中扬声器和麦克风的结构示意图;FIG. 6 is a schematic structural diagram of a speaker and a microphone in an earphone provided by an embodiment of the present application;
图7为本申请实施例提供的一种实现音频补偿的原理示意图;FIG. 7 is a schematic diagram of the principle of implementing audio compensation provided by the embodiment of the present application;
图8为本申请实施例提供的手机界面的示意图之一;FIG. 8 is one of the schematic diagrams of the mobile phone interface provided by the embodiment of the present application;
图9为本申请实施例提供的一种实现环境检测的原理示意图;FIG. 9 is a schematic diagram of the principle of implementing environment detection provided by the embodiment of the present application;
图10为本申请实施例提供的测试序列的示意图;Figure 10 is a schematic diagram of the test sequence provided by the embodiment of the present application;
图11为本申请实施例提供的确定角度损失的交互流程图;FIG. 11 is an interactive flowchart for determining angle loss provided by the embodiment of the present application;
图12为本申请实施例提供的手机界面的示意图之二;FIG. 12 is the second schematic diagram of the mobile phone interface provided by the embodiment of the present application;
图13为本申请实施例提供的角度损失的曲线示意图;Fig. 13 is a schematic diagram of the angle loss curve provided by the embodiment of the present application;
图14为本申请实施例提供的确定听力模型的原理示意图;Fig. 14 is a schematic diagram of the principle of determining the hearing model provided by the embodiment of the present application;
图15为本申请实施例提供的确定绝对幅度损失的交互流程图;FIG. 15 is an interactive flow chart for determining the absolute amplitude loss provided by the embodiment of the present application;
图16为本申请实施例提供的手机界面的示意图之三;FIG. 16 is the third schematic diagram of the mobile phone interface provided by the embodiment of the present application;
图17为本申请实施例提供的一种绝对幅度损失的结果示意图;Fig. 17 is a schematic diagram of the result of an absolute amplitude loss provided by the embodiment of the present application;
图18为本申请实施例提供的一种结合绝对幅度损失确定角度损失的交互流程图;Fig. 18 is an interactive flowchart for determining angle loss in combination with absolute amplitude loss provided by the embodiment of the present application;
图19为本申请实施例提供的一种结合绝对幅度损失确定听力模型的原理示意图;Fig. 19 is a schematic diagram of the principle of determining a hearing model combined with absolute amplitude loss provided by the embodiment of the present application;
图20为本申请实施例提供的一种芯片系统的结构图。FIG. 20 is a structural diagram of a chip system provided by an embodiment of the present application.
具体实施方式Detailed ways
在常规技术中,确定用户听力的受损情况的方式主要有以下两种:一种是通过播放不同频率的声音,并分别对左右耳做分辨率较粗的频响判断。这种方式通常只能得到频率较为稀疏的结果,无法得到准确的受损情况。另一种是采用复杂的测试信号,并采用密集的主观听音来绘制听力曲线,诊断耗时长,除了需要专业的医护人员之外,而且要依赖医用设备和环境,对专业性要求较高。In the conventional technology, there are mainly two ways to determine the hearing impairment of the user: one is to play sounds of different frequencies, and make frequency response judgments with relatively coarse resolutions on the left and right ears respectively. This method can usually only obtain results with relatively sparse frequencies, and cannot obtain accurate damage conditions. The other is to use complex test signals and intensive subjective listening to draw hearing curves. The diagnosis takes a long time. In addition to professional medical personnel, it also depends on medical equipment and the environment, which requires high professionalism.
由于上述缺陷,使得这些常规技术无法用于电子设备准确确定用户听力的受损情况,并在电子设备播放音频前,对音频进行补偿,使得听力受损的用户也可以获得较好的听觉效果。Due to the above defects, these conventional technologies cannot be used in electronic devices to accurately determine the hearing impairment of the user, and compensate the audio before the electronic device plays the audio, so that the hearing-impaired user can also obtain a better hearing effect.
基于此,本申请实施例提供了一种音频播放方法,参见图1,电子设备可以测试被测用户双耳的听力在水平方位的角度损失和垂直方位的角度损失。其中,水平方位的角度损失指被测用户感知到声源的水平方位与正常用户感知到声源的水平方位的角度偏差。垂直方位的角度损失指被测用户感知到声源的垂直方位与正常用户感知到声源的垂直方位的角度偏差。然后,电子设备基于水平方位的角度损失和垂直方位的角度损失确定被测用户的听力模型。其中,听力模型包括被测用户可以听到不同频率(如图1中听力模型的横坐标f)的声音的最低幅度(如图1中听力模型的纵坐标a)。最后,电子设备在播放音频前,可基于被测用户的听力模型和正常用户的听力模型进行补偿。例如,被测用户的听力模型中频率为1.1KHz对应的最低幅度为40dB,正常用户的听力模型中频率为1.1KHz对应的最低幅度为30dB,即被测用户比正常用户(即无听力损失的人群)在1.1KHz可以听到的最低幅度差10dB,则电子设备在播放1.1KHz的声音时,可以将幅度增加10dB。这样,可以针对听力受损的被测用户,个性化的播放音频,使其获得与正常用户相同的音频效果。Based on this, an embodiment of the present application provides an audio playback method. Referring to FIG. 1 , the electronic device can test the angular loss of the hearing of the user's ears in the horizontal direction and the angular loss in the vertical direction. Wherein, the angular loss of the horizontal orientation refers to the angular deviation between the horizontal orientation of the sound source perceived by the measured user and the horizontal orientation of the sound source perceived by the normal user. The angle loss of the vertical orientation refers to the angular deviation between the vertical orientation of the sound source perceived by the tested user and the vertical orientation of the sound source perceived by the normal user. Then, the electronic device determines the hearing model of the user under test based on the angular loss in the horizontal orientation and the angular loss in the vertical orientation. Wherein, the hearing model includes the lowest amplitude (as shown in the vertical coordinate a of the hearing model in FIG. 1 ) that the user under test can hear at different frequencies (as shown in the abscissa f of the hearing model in FIG. 1 ). Finally, before playing the audio, the electronic device can perform compensation based on the hearing model of the tested user and the hearing model of the normal user. For example, the lowest amplitude corresponding to the frequency of 1.1KHz in the hearing model of the tested user is 40dB, and the lowest amplitude corresponding to the frequency of 1.1KHz in the hearing model of the normal user is 30dB. Crowd) at 1.1KHz can hear the lowest amplitude difference of 10dB, when the electronic equipment plays the sound of 1.1KHz, the amplitude can be increased by 10dB. In this way, the audio can be played personalizedly for the hearing-impaired user under test, so that the user can obtain the same audio effect as the normal user.
综上所述,采用本申请实施例,通过测试水平方位的角度损失和垂直方位的角度损失则可最终得到被测用户的听力模型,水平方位的角度损失和垂直方位的角度损失显然是较容易测到的,因此实现简单。并且,被测用户的听力在水平方位和垂直方位有偏差,基本可以确定就是听力存在损失,因此,基于水平方位的角度损失和垂直方位的角度损失来得到被测用户的听力模型,通常也可以得到较为准确的结果。如此,本申请实施例方案可以很好的用于对音频进行补偿,使得听力受损的用户也可以获得较好的听觉效果。In summary, using the embodiment of this application, the hearing model of the user under test can be finally obtained by testing the angular loss of the horizontal orientation and the angular loss of the vertical orientation. The angular loss of the horizontal orientation and the angular loss of the vertical orientation are obviously easier measured and thus simple to implement. Moreover, the hearing of the user under test deviates between the horizontal and vertical directions, which can basically be determined to be hearing loss. Therefore, it is usually possible to obtain the hearing model of the user under test based on the angle loss of the horizontal direction and the angle loss of the vertical direction. get more accurate results. In this way, the solution of the embodiment of the present application can be well used to compensate audio, so that hearing-impaired users can also obtain better hearing effects.
本申请实施例还提供了一种通信系统,用于实现本申请实施例提供的音频播放方法。参见图2,通信系统包括电子设备(如手机210)和耳机(耳机220)。电子设备和耳机通信连接,例如可以有线连接或者无线连接,用于传输测试音频的相关数据。其中,耳机可播放出现在空间中各个方位的测试音频。应理解,耳机需要支持立体声播放,才能实现播放出现在空间中各个方位的测试音频。例如,耳机需要具有左右声道。被测用户双耳在听到测试音频后,可以反馈测试结果,如反馈水平方位和垂直方位。电子设备可基于测试结果确定被测用户双耳的听力损失(包括水平方位的角度损失和垂直方位的角度损失),得到听力模型,以及完成音频补偿。The embodiment of the present application also provides a communication system, which is used to implement the audio playing method provided in the embodiment of the present application. Referring to FIG. 2 , the communication system includes an electronic device (such as a mobile phone 210 ) and an earphone (earphone 220 ). The communication connection between the electronic device and the earphone can be, for example, a wired connection or a wireless connection, and is used for transmitting related data of the test audio. Wherein, the earphone can play test audio appearing in various directions in the space. It should be understood that the earphone needs to support stereo playback in order to realize the playback of test audio appearing in various directions in the space. For example, headphones need to have left and right channels. After hearing the test audio with both ears of the user under test, the test results can be fed back, such as the horizontal orientation and vertical orientation. The electronic device can determine the hearing loss of both ears of the user under test (including the angular loss in the horizontal direction and the angular loss in the vertical direction) based on the test results, obtain a hearing model, and complete audio compensation.
采用上述通信系统,使用耳机来播放测试音频,可以减少周围环境对听力测试的影响。当然,在另一些实施例中,也可以单独由电子设备来实现本申请实施例提供的音频播放方法。即,播放测试音频也由电子设备来完成。例如,通过电子设备的扬声器播放测试音频。在另一些实施例中,也可以通过部署在电子设备四周的其他音频播放设备来播放测试音频。下文中,主要以采用上述通信系统实现本申请实施例提供的音频播放方法为例来说明。By adopting the above communication system and using earphones to play the test audio, the influence of the surrounding environment on the hearing test can be reduced. Certainly, in some other embodiments, the audio playing method provided by the embodiment of the present application may also be implemented solely by an electronic device. That is, playing the test audio is also completed by the electronic device. For example, play test audio through the speaker of the electronic device. In some other embodiments, the test audio may also be played through other audio playback devices deployed around the electronic device. Hereinafter, the implementation of the audio playing method provided in the embodiment of the present application by using the above-mentioned communication system is mainly used as an example for illustration.
示例性的,本申请实施例中的电子设备可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)\虚拟现实(virtual reality,VR)设备等支持播放音频的电子设备,本申请实施例对该电子设备的具体形态不作特殊限制。下文中,将主要以电子设备是手机为例,来说明本申请方案。Exemplarily, the electronic device in the embodiment of the present application may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook, and a cellular Telephones, personal digital assistants (personal digital assistant, PDA), augmented reality (augmented reality, AR)\virtual reality (virtual reality, VR) equipment and other electronic equipment that supports audio playback, the specific form of the electronic equipment in the embodiment of this application No special restrictions are made. Hereinafter, the solution of the present application will be described mainly by taking the electronic device as a mobile phone as an example.
请参见图3,为本申请实施例提供的一种手机210的硬件结构图。如图3所示,手机210可以包括处理器310,外部存储器接口320,内部存储器321,通用串行总线(universalserial bus,USB)接口330,充电管理模块340,电源管理模块341,电池342,天线1,天线2,移动通信模块350,无线通信模块360,音频模块370,扬声器370A,受话器370B,麦克风370C,耳机接口370D,传感器模块380、按键390,马达391,指示器392,摄像头393,显示屏394,以及用户标识模块(subscriber identification module,SIM)卡接口395等。Please refer to FIG. 3 , which is a hardware structural diagram of a
可以理解的是,本实施例示意的结构并不构成对手机210的具体限定。在另一些实施例中,手机210可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure shown in this embodiment does not constitute a specific limitation on the
处理器310可以包括一个或多个处理单元,例如:处理器310可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对手机210的结构限定。在另一些实施例中,手机210也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules shown in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the
充电管理模块340用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块340可以通过USB接口330接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块340可以通过手机210的无线充电线圈接收无线充电输入。充电管理模块340为电池342充电的同时,还可以通过电源管理模块341为手机210供电。The
电源管理模块341用于连接电池342,充电管理模块340与处理器310。电源管理模块341接收电池342和/或充电管理模块340的输入,为处理器310,内部存储器321,外部存储器,显示屏394,摄像头393,和无线通信模块360等供电。电源管理模块341还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块341也可以设置于处理器310中。在另一些实施例中,电源管理模块341和充电管理模块340也可以设置于同一个器件中。The power management module 341 is used for connecting the battery 342 , the
手机210的无线通信功能可以通过天线1,天线2,移动通信模块350,无线通信模块360,调制解调处理器以及基带处理器等实现。The wireless communication function of the
无线通信模块360可以提供应用在手机210上的包括无线局域网(wireless localarea networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequencymodulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块360可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块360经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器310。无线通信模块360还可以从处理器310接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The
手机210通过GPU,显示屏394,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏394和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器310可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The
手机210可以通过ISP,摄像头393,视频编解码器,GPU,显示屏394以及应用处理器等实现拍摄功能。ISP 用于处理摄像头393反馈的数据。摄像头393用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。在一些实施例中,手机210可以包括1个或N个摄像头393,N为大于1的正整数。The
外部存储器接口320可以用于连接外部存储卡,例如Micro SD卡,实现扩展手机210的存储能力。外部存储卡通过外部存储器接口320与处理器310通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 320 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the
内部存储器321可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器310通过运行存储在内部存储器321的指令,从而执行手机210的各种功能应用以及数据处理。例如,处理器310可以通过执行存储在内部存储器321中的指令,响应于用户展开显示屏394的操作,在显示屏394显示不同的内容。内部存储器321可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储手机210使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器321可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universalflash storage,UFS)等。The internal memory 321 may be used to store computer-executable program code, which includes instructions. The
手机210可以通过音频模块370,扬声器370A,受话器370B,麦克风370C,耳机接口370D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The
按键390包括开机键,音量键等。按键390可以是机械按键。也可以是触摸式按键。手机210可以接收按键输入,产生与手机210的用户设置以及功能控制有关的键信号输入。马达391可以产生振动提示。马达391可以用于来电振动提示,也可以用于触摸振动反馈。指示器392可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口395用于连接SIM卡。SIM卡可以通过插入SIM卡接口395,或从SIM卡接口395拔出,实现和手机210的接触和分离。手机210可以支持1个或N个SIM卡接口,N为大于1的正整数。The keys 390 include a power key, a volume key and the like. The key 390 may be a mechanical key. It can also be a touch button. The
示例性的,本申请实施例中的耳机220可以是有线耳机或者无线耳机。进一步的,参见图4,无线耳机可以包括真无线(True Wireless Stereo,TWS)耳机401、颈戴式无线耳机402或者头戴式无线耳机403。应理解,耳机通常是成对的,如图4所示,TWS耳机401包括左耳机401a和右耳机401b。为了便于区分一对耳机和单只耳机,下文中,将一对耳机称为耳机,将单只耳机称为耳塞,并且与左耳机和右耳机对应,可以分为左耳塞和右耳塞。Exemplarily, the earphone 220 in the embodiment of the present application may be a wired earphone or a wireless earphone. Further, referring to FIG. 4 , the wireless headset may include a true wireless (True Wireless Stereo, TWS)
下面,将主要以单只耳塞为例,来说明耳机的硬件结构。In the following, a single earplug will be used as an example to illustrate the hardware structure of the earphone.
参考图5,其示出本申请实施例提供的一种耳机220的结构示意图。如图5所示,耳塞可以包括处理器510,存储器521,充电管理模块540,电源管理模块541,电池542,无线通信模块560,音频模块570,扬声器570A,麦克风570C,马达591,以及指示器592等。Referring to FIG. 5 , it shows a schematic structural diagram of an earphone 220 provided by an embodiment of the present application. As shown in FIG. 5, the earbud may include a
处理器510可以包括一个或多个处理单元,例如:处理器510可以包括声音信号处理器(image signal processor,ISP),控制器,存储器,数字信号处理器(digital signalprocessor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The
存储器521可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器510通过运行存储在存储器521的指令,从而执行耳机220的各种功能应用以及数据处理。本申请实施例中,处理器510可以通过执行存储在存储器521中的指令,完成测试音频播放,以及听力测试前的校准等处理。The memory 521 may be used to store computer-executable program code including instructions. The
存储器521可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能)等。存储数据区可存储耳机220使用过程中所创建的数据(比如音频数据)等。此外,存储器521可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The memory 521 may include an area for storing programs and an area for storing data. Wherein, the stored program area can store an operating system, an application program required by at least one function (such as a sound playing function), and the like. The storage data area can store data created during use of the earphone 220 (such as audio data) and the like. In addition, the memory 521 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (universal flash storage, UFS) and the like.
充电管理模块540用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块540可以通过充电接口接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块540可以通过耳机220的电极传感器580K接收无线充电输入。充电管理模块540为电池542充电的同时,还可以通过电源管理模块541为电子设备供电。The
电源管理模块541用于连接电池542,充电管理模块540与处理器510。电源管理模块541接收电池542和/或充电管理模块540的输入,为处理器510,内部存储器521等供电。电源管理模块541还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在一些实施例中,电源管理模块541也可以设置于处理器510中。在另一些实施例中,电源管理模块541和充电管理模块540也可以设置于同一个器件中。The
无线耳机的无线通信功能可以通过无线通信560,如蓝牙(bluetooth,BT)模块来实现。通过无线通信模块560,耳机220可以与手机、平板等电子设备建立通信连接,从而可以使用耳机220听音乐、接听电话等。The wireless communication function of the wireless earphone can be realized through the
耳机220可以通过音频模块570,扬声器570A,麦克风570C,以及应用处理器等实现音频功能。The earphone 220 can implement audio functions through an
音频模块570用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块570还可以用于对音频信号编码和解码。在一些实施例中,音频模块570可以设置于处理器510中,或将音频模块570的部分功能模块设置于处理器510中。The
扬声器570A用于播放音频。麦克风570C,也称“话筒”,“传声器”,用于采集周围的声音信号。耳机220中可以设置一个或多个麦克风570C。例如,耳机220中设置多个麦克风570C,则不仅可用于采集声音信号,还可以用于降噪、识别声音来源、定向录音等功能。
参见图6,耳机220中包括一个扬声器570A。在本申请实施例中,扬声器570A可用于播放测试音频。耳机220中还包括反馈麦克风(Feed Back MIC,FB MIC)570C1和前馈麦克风(Feed Forward MIC,FF MIC)570C2共两个麦克风570C。FB MIC 570C1设置于耳机220处于佩戴状态时靠近耳道的位置,用于采集耳道内的声音信号。在扬声器570A工作时,耳道内的声音信号包括扬声器570A播放的音频对应的声音信号。FF MIC 570C2设置于耳机220处于佩戴状态时暴露在外部环境的位置处,用于采集耳朵周围环境中的声音信号。例如,被测用户佩戴耳机坐地铁,则耳朵周围环境中的声音信号可以包括地铁内的环境噪音。Referring to FIG. 6, the headset 220 includes a
马达591可以产生振动提示,从而可以用于来电振动提示,也可以用于触摸/敲击振动反馈。The motor 591 can generate vibration prompts, so it can be used for incoming call vibration prompts, and can also be used for touch/tap vibration feedback.
指示器592可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 592 can be an indicator light, which can be used to indicate the charging status, the change of the battery capacity, and can also be used to indicate messages, missed calls, notifications and so on.
可以理解的是,本实施例示意的手机210和耳机220的结构仅为示例性的。在另一些实施例中,手机210以及耳机220都可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures of the
本申请实施例提供的音频播放方法,可以在由上述手机210和耳机220构成的通信系统中执行。The audio playing method provided in the embodiment of the present application may be executed in the communication system composed of the above-mentioned
通常情况下,被测用户通常依赖双耳幅度差(Interaural Level Difference,ILD)和双耳时间差(Interaural Time Difference,ITD)来感知声源所在的水平方位。以及,被测用户依赖谱信号的变化来感知声源所在的垂直方位。那么,对于听力受损的被测用户,其感知到声源的空间方位(包括水平方位和垂直方位)可能与正常用户感知到声源的空间方位(包括水平方位和垂直方位)有差异。Usually, the tested user usually relies on the Interaural Level Difference (ILD) and the Interaural Time Difference (ITD) to perceive the horizontal position of the sound source. And, the user under test relies on changes in the spectral signal to perceive the vertical orientation of the sound source. Then, for hearing-impaired users, the spatial orientation (including horizontal orientation and vertical orientation) perceived by them may be different from the spatial orientation (including horizontal orientation and vertical orientation) perceived by normal users.
基于此,本申请实施例中,手机可以先测试被测用户双耳在水平方位的角度损失以及垂直方位的角度损失。参见图7,水平方位的角度损失中,横轴为频率f,纵轴为被测用户双耳感知到声源的水平方位与正常用户感知到声源的水平方位的角度偏差△dh。即,水平方位的角度损失可以反映出:被测用户对不同频率的声音,在水平方位的感知偏差。例如,对频率为f1的声音,被测用户在水平方位的感知偏差为△dh1。垂直方位的角度损失中,横轴为幅度a,纵轴为被测用户双耳感知到声源的垂直方位与正常用户感知到声源的垂直方位的角度偏差△dv。即,垂直方位的角度损失可以反映出:被测用户对不同幅度的声音,在垂直方位的感知偏差。例如,对幅度为a1的声音,被测用户在垂直方位的感知偏差为△dv1。Based on this, in the embodiment of the present application, the mobile phone may first test the angular loss of the measured user's ears in the horizontal orientation and the angular loss in the vertical orientation. Referring to Figure 7, in the angular loss of the horizontal orientation, the horizontal axis is the frequency f, and the vertical axis is the angular deviation Δdh between the horizontal orientation of the sound source perceived by the measured user's ears and the horizontal orientation of the sound source perceived by the normal user. That is, the angular loss of the horizontal orientation can reflect: the measured user's perception deviation in the horizontal orientation to sounds of different frequencies. For example, for a sound with frequency f1, the measured user's perception deviation in the horizontal direction is Δdh1. In the angle loss of the vertical orientation, the horizontal axis is the amplitude a, and the vertical axis is the angular deviation Δdv between the vertical orientation of the sound source perceived by the measured user’s ears and the vertical orientation of the sound source perceived by the normal user. That is, the angular loss of the vertical orientation can reflect: the measured user's perception deviation in the vertical orientation to sounds of different amplitudes. For example, for a sound with an amplitude of a1, the measured user's perception deviation in the vertical direction is Δdv1.
在得到水平方位的角度损失和垂直方位的角度损失后,手机可以基于水平方位的角度损失和垂直方位的角度损失确定被测用户的听力模型。例如,手机可以将水平方位的角度损失和垂直方位的角度损失输入至预设人工智能(Artificial Intelligence,AI)模型,该预设AI模型具有根据水平方位的角度损失和垂直方位的角度损失转换得到听力模型的功能。After obtaining the angular loss in the horizontal orientation and the angular loss in the vertical orientation, the mobile phone may determine the hearing model of the user under test based on the angular loss in the horizontal orientation and the angular loss in the vertical orientation. For example, the mobile phone can input the angle loss of the horizontal orientation and the angle loss of the vertical orientation into a preset artificial intelligence (AI) model, and the preset AI model can be obtained by converting the angle loss of the horizontal orientation and the angle loss of the vertical orientation Features of the hearing model.
继续参见图7,听力模型中,点划线为被测用户的听力模型,实线为正常用户的听力模型。并且,横轴为频率f,纵轴为用户(被测用户或者正常用户)在各个频率可以听到的声音的最低幅度a(也可以称为第一最低幅度)。那么,被测用户的听力模型和正常用户的听力模型在各个频率对应的幅度差异,则是被测用户在相应频率的幅度损失。应理解,幅度损失越大,则表明听力损失越严重。幅度损失越小,则表明听力损失越小。Continuing to refer to FIG. 7 , in the hearing model, the dotted line is the hearing model of the tested user, and the solid line is the hearing model of the normal user. In addition, the horizontal axis is the frequency f, and the vertical axis is the lowest amplitude a (also called the first lowest amplitude) of the sound that can be heard by the user (tested user or normal user) at each frequency. Then, the amplitude difference corresponding to each frequency between the hearing model of the tested user and the normal user is the amplitude loss of the tested user at the corresponding frequency. It will be appreciated that greater amplitude loss indicates more severe hearing loss. Smaller amplitude losses indicate less hearing loss.
在得到听力模型后,手机则可以在播放视频前,基于被测用户的听力模型和正常用户的听力模型进行补偿,即基于幅度损失进行补偿。在一种具体的实现方式中,将待播放音频中第三频率的声音信号提高预设幅度后播放,第三频率为待播放音频包括的声音信号的任一频率,预设幅度为听力模型中第三频率对应的第一最低幅度与无听力损失的人群可听到第三频率的声音信号的第三最低幅度的差值。示例性的,图7所示的补偿示例中,频率f2(即第三频率为f2)对应的幅度损失为△a2,那么在播放频率为f2的声音时,可以将幅度提高△a2。以及,频率f3(即第三频率为f3)对应的幅度损失为△a3,那么在播放频率为f3的声音时,可以将幅度提高△a3。After obtaining the hearing model, the mobile phone can perform compensation based on the hearing model of the tested user and the normal user before playing the video, that is, compensation based on amplitude loss. In a specific implementation manner, the sound signal of the third frequency in the audio to be played is increased to a preset amplitude and then played, the third frequency is any frequency of the sound signal included in the audio to be played, and the preset amplitude is the frequency in the hearing model. The difference between the first lowest amplitude corresponding to the third frequency and the third lowest amplitude that people without hearing loss can hear the sound signal of the third frequency. Exemplarily, in the compensation example shown in FIG. 7 , the amplitude loss corresponding to frequency f2 (that is, the third frequency is f2) is Δa2, then when playing the sound with frequency f2, the amplitude can be increased by Δa2. And, the amplitude loss corresponding to the frequency f3 (that is, the third frequency is f3) is Δa3, then when playing the sound with the frequency f3, the amplitude can be increased by Δa3.
在本申请实施例中,需要使用耳机来播放测试音频。但是,若环境噪音较大,如被测用户所处的环境为有大型机器工作的车间,则环境噪音可能会进入到耳道,从而影响被测用户感知测试音频中声音所处的空间方位。或者,若耳机与耳朵不是非常贴合,例如,耳机的耳塞较小,则环境噪音也可能会进入耳道,也会影响被测用户感知测试音频中声音的方位。In this embodiment of the application, it is necessary to use earphones to play the test audio. However, if the ambient noise is high, such as the environment where the tested user is located in a workshop with large machines, the ambient noise may enter the ear canal, thereby affecting the spatial orientation of the tested user's perception of the sound in the test audio. Or, if the earphone does not fit the ear very well, for example, the earplug of the earphone is small, the ambient noise may also enter the ear canal, which will also affect the user under test's perception of the direction of the sound in the test audio.
基于此,在一些实施例中,手机在检测到被测用户开启音频补偿功能的操作后,可以先检测是否满足测试的环境条件。若满足环境条件,则可以进一步使用耳机来播放测试音频,以实现测试水平方位的角度损失和垂直方位的角度损失。若不满足环境条件,则提示被测用户到安静的位置重新检测,或者提示被测用户重新佩戴耳机。Based on this, in some embodiments, after the mobile phone detects that the user under test activates the audio compensation function, it may first detect whether the environmental conditions of the test are met. If the environmental conditions are met, the earphone can be further used to play the test audio, so as to test the angular loss in the horizontal orientation and the angular loss in the vertical orientation. If the environmental conditions are not satisfied, the user under test is prompted to go to a quiet location for re-testing, or the user under test is prompted to wear the earphone again.
其中,音频补偿功能用于在手机播放音频前,基于被测用户的听力损失对音频进行补偿。例如,图7所示针对f1补偿的过程。在手机设置,或者音乐播放器、视频播放器的设置中,可以提供音频补偿功能的开关,用于开启或者关闭音频补偿功能。Wherein, the audio compensation function is used to compensate the audio based on the hearing loss of the tested user before the mobile phone plays the audio. For example, Figure 7 shows the process for f1 compensation. In the settings of the mobile phone, or the settings of the music player and the video player, a switch of the audio compensation function may be provided to enable or disable the audio compensation function.
示例性的,手机可以显示图8所示的界面801,界面801是手机设置中的一个设置界面,界面801中包括音频补偿开关802。手机在检测到被测用户对音频补偿开关802的开启或关闭操作后,可以开启音频补偿功能或者关闭音频补偿功能。手机响应于被测用户对音频补偿开关802的开启操作,即检测到被测用户开启音频补偿功能的操作,可以显示图8所示的界面803。界面803中包括提示“请佩戴好耳机,并连接手机与耳机”,从而提示被测用户对佩戴耳机,并建立手机与耳机的连接,为播放测试音频做准备。Exemplarily, the mobile phone may display the
应理解,在耳机处于佩戴状态、且建立手机与耳机的连接后,耳机可以向手机发送指示信息,以指示耳机已佩戴好。手机在接收指示信息后,则可以确定耳机已佩戴成功并与手机建立连接,则可以开始环境检测。It should be understood that after the earphone is in the wearing state and the connection between the mobile phone and the earphone is established, the earphone may send indication information to the mobile phone to indicate that the earphone has been worn. After the mobile phone receives the instruction information, it can be determined that the headset has been worn successfully and the connection with the mobile phone is established, and then the environment detection can be started.
示例性的,在耳机佩戴并连接成功后,手机可以显示图8所示的界面804,界面804中包括开始环境检测的控件805,用于触发手机开始环境检测。Exemplarily, after the headset is worn and successfully connected, the mobile phone may display an
在环境检测的过程中,手机可以采集左耳塞的FF MIC信号和FB MIC信号,以及采集右耳塞的FF MIC信号和FB MIC信号。其中,FF MIC信号可以反映外部环境的声音情况,FBMIC信号可以反映耳道内的声音情况。基于上述FF MIC信号和FB MIC信号,手机可以检测是否满足环境条件。例如,若左耳塞和右耳塞的FF MIC信号均小于第一阈值λ1,则表明环境噪音较小,满足环境条件。又如,若左耳塞和右耳塞的FB MIC信号均小于第三阈值λ2,则表明耳道内的干扰声音较小,满足环境条件。再如,若左耳塞的FF MIC信号和FB MIC信号的差值大于第二阈值λ3,且右耳塞的FF MIC信号和FB MIC信号的差值大于第二阈值λ3,则表明左耳塞和右耳塞都与耳朵非常贴合,左耳塞和右耳塞对外部的环境声音的隔绝效果很好,满足环境条件。本申请实施例对此不作具体限定。During the environment detection process, the mobile phone may collect the FF MIC signal and the FB MIC signal of the left earbud, and collect the FF MIC signal and the FB MIC signal of the right earbud. Wherein, the FF MIC signal can reflect the sound condition of the external environment, and the FBMIC signal can reflect the sound condition in the ear canal. Based on the above FF MIC signal and FB MIC signal, the mobile phone can detect whether the environmental conditions are satisfied. For example, if the FF MIC signals of the left earplug and the right earplug are both smaller than the first threshold λ1, it indicates that the environmental noise is relatively small and the environmental condition is met. For another example, if the FB MIC signals of the left earplug and the right earplug are both smaller than the third threshold λ2, it indicates that the interference sound in the ear canal is small and the environmental condition is satisfied. For another example, if the difference between the FF MIC signal of the left earplug and the FB MIC signal is greater than the second threshold λ3, and the difference between the FF MIC signal of the right earplug and the FB MIC signal is greater than the second threshold λ3, it indicates that the left earplug and the right earplug Both are very close to the ear, and the left and right earplugs have a good isolation effect on external ambient sound, which meets the environmental conditions. This embodiment of the present application does not specifically limit it.
为了便于说明,可以将左耳塞的FB MIC信号称为第一反馈信号,将右耳塞的FBMIC信号称为第二反馈信号,将左耳塞的FF MIC信号称为第一前馈信号,将右耳塞的FF MIC信号称为第二前馈信号。For ease of description, the FB MIC signal of the left earbud can be called the first feedback signal, the FBMIC signal of the right earbud can be called the second feedback signal, the FF MIC signal of the left earbud can be called the first feedforward signal, and the FF MIC signal of the right earbud can be called the first feedforward signal. The FF MIC signal is called the second feedforward signal.
进一步的,为了避免偶然误差,手机可以采集一段时间(如5s,10s等)内的FF MIC信号和FB MIC信号,然后基于该段时间的FF MIC信号和FB MIC信号来检测是否满足环境条件。Further, in order to avoid accidental errors, the mobile phone can collect FF MIC signals and FB MIC signals within a period of time (such as 5s, 10s, etc.), and then check whether the environmental conditions are met based on the FF MIC signals and FB MIC signals during this period.
示例性的,手机在检测到被测用户对图8所示界面804中开始环境检测的控件805的点击或者长按等操作后,可以显示图8所示的界面806,界面806中包括检测详情提示807,用于提示采集的信号内容。以及,界面806中还包括进度提示808,用于提示采集信号的进度。例如,进度提示808提示当前采集到5秒钟的24%进度。Exemplarily, after the mobile phone detects that the user under test clicks or long-presses the
在一种具体的实现方式中,手机在采集到一段时间内的FF MIC信号和FB MIC信号后,可以针对左耳塞和右耳塞分别计算FF MIC信号的均方根(Root Mean Square,RMS),以及针对左耳塞和右耳塞分别计算FB MIC信号的RMS。然后将计算得到的RMS用于确定是否满足环境条件。In a specific implementation, after the mobile phone collects the FF MIC signal and the FB MIC signal for a period of time, it can calculate the root mean square (Root Mean Square, RMS) of the FF MIC signal for the left earplug and the right earplug respectively, And the RMS of the FB MIC signal is calculated separately for the left and right earbuds. The calculated RMS is then used to determine whether the environmental conditions are met.
示例性的,若计算得到的RMS满足下述关系(1),则确定满足环境条件:Exemplarily, if the calculated RMS satisfies the following relationship (1), it is determined that the environmental condition is satisfied:
关系(1) relationship (1)
其中,为左耳塞的FF MIC信号,为右耳塞的FF MIC信号。即,左 耳塞的FF MIC信号的RMS和右耳塞的FF MIC信号的RMS都小于第一阈值,则确定满足环境条 件。 in, is the FF MIC signal of the left earbud, It is the FF MIC signal of the right earbud. That is, if both the RMS of the FF MIC signal of the left earbud and the RMS of the FF MIC signal of the right earbud are smaller than the first threshold, it is determined that the environmental condition is met.
反之,若不满足上述关系(1),则表明左耳塞和右耳塞所处环境的环境声音较大,确定不满足环境条件。Conversely, if the above relationship (1) is not satisfied, it indicates that the ambient sound of the environment where the left earplug and the right earplug are located is relatively loud, and it is determined that the environmental condition is not satisfied.
又示例性的,进一步的,在满足上述关系式(1)的基础上,若计算得到的RMS满足下述关系(1),才确定满足环境条件:As an example, further, on the basis of satisfying the above relationship (1), if the calculated RMS satisfies the following relationship (1), it is determined that the environmental conditions are met:
关系(2) relationship (2)
其中,为左耳塞的FB MIC信号,为右耳塞的FB MIC信号。即,在左 耳塞的FF MIC信号的RMS和FB MIC信号的RMS的差值大于第二阈值λ3,且右耳塞的FF MIC信 号的RMS和FB MIC信号的RMS的差值大于第二阈值λ3,则确定满足环境条件。 in, is the FB MIC signal of the left earbud, It is the FB MIC signal of the right earbud. That is, the difference between the RMS of the FF MIC signal of the left earplug and the RMS of the FB MIC signal is greater than the second threshold λ3, and the difference between the RMS of the FF MIC signal of the right earplug and the RMS of the FB MIC signal is greater than the second threshold λ3, It is determined that the environmental conditions are met.
另外,由于硬件的差异,有一些耳机的左耳塞和右耳塞的声学结构也存在公差。例如,给左耳塞和右耳塞输入相同的音频信号,但是左耳塞的扬声器和右耳塞的扬声器输出的音频信号却不同。也就是说,即使左耳塞和右耳塞接收到相同的音频信号,也会因为左耳塞和右耳塞的结构差异,导致被测用户左耳耳道听到的声音效果和右耳耳道听到的声音效果存在差异。例如,两只耳朵分别在各自的耳鼓参考点(ear-Drum Reference Point,eDRP)听到的声音是不同的。这样,可能会影响后续测试的准确性。In addition, due to differences in hardware, there are also tolerances in the acoustic structure of the left and right earbuds of some headphones. For example, the same audio signal is input to the left earbud and the right earbud, but the audio signals output from the speaker of the left earbud and the speaker of the right earbud are different. That is to say, even if the left earplug and the right earplug receive the same audio signal, the sound effect heard by the left ear canal of the tested user is different from that heard by the right ear canal due to structural differences between the left earplug and the right earplug. There are differences in sound effects. For example, the sounds heard by the two ears at their respective ear-Drum Reference Points (eDRP) are different. In this way, the accuracy of subsequent tests may be affected.
基于此,在一些实施例,手机还可以对左耳塞和右耳塞进行校准,避免左耳塞和右耳塞硬件上的差异影响后续测试。在耳机佩戴并连接成功后,参见图9,手机可以控制向左耳塞和右耳塞发送同样的音频信号(也可以称为预设音频),如图9中的音频信号a,并采集左耳塞的FB MIC信号(也可以称为第三反馈信号)和右耳塞的FB MIC信号(也可以称为第四反馈信号)。其中,忽略耳道内的生理结构差异,因此,可以将左耳塞的FB MIC信号近似作为左耳的eDRP处听到的声音信号,将右耳塞的FB MIC信号近似作为右耳的eDRP处听到的声音信号。在音频信号a播放结束后,手机可以得到如图9所示包括音频信号a、左耳塞的FB MIC信号和右耳塞的FB MIC信号的变化曲线。该曲线的横轴为频率,纵轴为幅度。Based on this, in some embodiments, the mobile phone can also calibrate the left earplug and the right earplug, so as to prevent the difference in hardware between the left earplug and the right earplug from affecting subsequent tests. After the headset is worn and connected successfully, see Figure 9, the mobile phone can control to send the same audio signal (also called preset audio) to the left and right earbuds, such as audio signal a in Figure 9, and collect the left earbud’s The FB MIC signal (also called the third feedback signal) and the FB MIC signal of the right earbud (also called the fourth feedback signal). Among them, the difference in physiological structure in the ear canal is ignored. Therefore, the FB MIC signal of the left earplug can be approximated as the sound signal heard at the eDRP of the left ear, and the FB MIC signal of the right earplug can be approximated as the sound signal heard at the eDRP of the right ear. sound signal. After the audio signal a is played, the mobile phone can obtain the change curves including the audio signal a, the FB MIC signal of the left earplug, and the FB MIC signal of the right earplug as shown in FIG. 9 . The horizontal axis of the curve is frequency, and the vertical axis is amplitude.
手机分析左耳塞的FB MIC信号和右耳塞的FB MIC信号的变化曲线,确定使REC-LFB(s)/REC-RFB(s)=1的校准系数p。其中,REC-LFB(s) 为左耳塞的FB MIC信号,REC-RFB(s)为右耳塞的FB MIC信号。即,确定使FB MIC信号和FB MIC信号的频率和幅度都一致的校准系数p。该校准系数p用于调节输入至左耳塞中扬声器的输入信号,或者用于调节输入至右左耳塞中扬声器的输入信号。从而屏蔽掉左耳塞中扬声器和右耳塞中扬声器的硬件差异。为了方便说明,可以将校准系数p用于校准的耳塞称为第一耳塞,将除第一耳塞之外的耳塞称为第二耳塞。例如,第一耳塞为左耳塞,则第二耳塞为右耳塞;第一耳塞为右耳塞,则第二耳塞为左耳塞。The mobile phone analyzes the change curve of the FB MIC signal of the left earplug and the FB MIC signal of the right earplug, and determines the calibration coefficient p that makes REC-L FB (s)/REC-R FB (s)=1. Among them, REC-L FB (s) is the FB MIC signal of the left earbud, and REC-R FB (s) is the FB MIC signal of the right earbud. That is, the calibration coefficient p is determined so that both the frequency and the amplitude of the FB MIC signal and the FB MIC signal match. The calibration coefficient p is used to adjust the input signal to the speaker in the left earbud, or to adjust the input signal to the speaker in the right and left earbuds. Thereby masking out the hardware difference between the speaker in the left earbud and the speaker in the right earbud. For convenience of description, the earplugs for which the calibration coefficient p is used for calibration may be referred to as first earplugs, and the earplugs other than the first earplugs may be referred to as second earplugs. For example, if the first earplug is the left earplug, then the second earplug is the right earplug; if the first earplug is the right earplug, then the second earplug is the left earplug.
后续,在测试水平方位的角度损失和垂直方位的角度损失的过程中,手机在向耳机发送测试音频前,可先基于校准系数p校准测试音频。其中,校准包括幅度校准和/或频率校准。Subsequently, in the process of testing the angular loss in the horizontal orientation and the angular loss in the vertical orientation, the mobile phone may first calibrate the test audio based on the calibration coefficient p before sending the test audio to the earphone. Wherein, calibration includes amplitude calibration and/or frequency calibration.
在一种具体的实现方式中,手机可基于校准系数p对输入至左耳塞的测试音频校准,得到校准后的测试音频,然后发送给左耳塞。在本实现方式中,手机可以不用校准发送给右耳塞的测试音频。应理解,在校准发送给左耳塞的测试音频后,则输入至左耳塞中扬声器的输入信号相应会发生改变。如此,则可以实现调节输入至左耳塞中扬声器的输入信号,屏蔽掉左耳塞中扬声器和右耳塞中扬声器的硬件差异。In a specific implementation manner, the mobile phone may calibrate the test audio input to the left earplug based on the calibration coefficient p, obtain the calibrated test audio, and then send it to the left earplug. In this implementation, the mobile phone may send the test audio to the right earbud without calibration. It should be understood that after calibrating the test audio sent to the left earbud, the input signal to the speaker in the left earbud will change accordingly. In this way, the input signal input to the speaker in the left earplug can be adjusted, and the hardware difference between the speaker in the left earplug and the speaker in the right earplug can be shielded.
在另一种具体的实现方式中,手机可基于校准系数p对输入至右耳塞的测试音频校准,得到校准后的测试音频,然后发送给右耳塞。在本实现方式中,手机可以不用校准发送给左耳塞的测试音频。应理解,在校准发送给右耳塞的测试音频后,则输入至左耳塞中扬声器的输入信号相应会发生改变。如此,则可以实现调节输入至右耳塞中扬声器的输入信号,屏蔽掉左耳塞中扬声器和右耳塞中扬声器的硬件差异。In another specific implementation manner, the mobile phone may calibrate the test audio input to the right earplug based on the calibration coefficient p, obtain the calibrated test audio, and then send it to the right earplug. In this implementation, the mobile phone may send the test audio to the left earbud without calibration. It will be appreciated that after calibrating the test audio sent to the right earbud, the input signal to the speaker in the left earbud will change accordingly. In this way, the input signal input to the speaker in the right earplug can be adjusted, and the hardware difference between the speaker in the left earplug and the speaker in the right earplug can be shielded.
前述关于校准的具体实现中,由手机来基于校准系数p对测试音频校准。当然在另一些实现方式中,手机在分析得到校准系数后,也可以将校准系数p发送给左耳塞或者右耳塞。然后由左耳塞或者右耳塞基于校准系数p对测试音频校准。本申请实施例对此不作具体限定。In the aforementioned specific implementation of calibration, the mobile phone calibrates the test audio based on the calibration coefficient p. Of course, in some other implementation manners, after the mobile phone analyzes and obtains the calibration coefficient, it may also send the calibration coefficient p to the left earplug or the right earplug. The test audio is then calibrated by the left or right earbud based on the calibration coefficient p. This embodiment of the present application does not specifically limit it.
在完成上述环境检测和校准后,手机则可以测试水平方位的角度损失和垂直方位的角度损失。当然,在另一些实施例中,也可以省略上述环境检测的过程,或者省略校准的过程。After completing the above environment detection and calibration, the mobile phone can test the angular loss of the horizontal orientation and the angular loss of the vertical orientation. Certainly, in some other embodiments, the above-mentioned process of environment detection, or the process of calibration may also be omitted.
下面介绍测试水平方位的角度损失和垂直方位的角度损失的具体实现:The following describes the specific implementation of testing the angular loss of the horizontal orientation and the angular loss of the vertical orientation:
在测试水平方位的角度损失之前,手机需要确定m组水平测试序列,用于测试水平方向的角度损失。一组水平测试序列中包括n个水平测试样本。由于用户需要依赖ILD来感知水平方位,即幅度会影响用户对水平方位的感知。基于此,可以设置一组水平测试序列包括的n个水平测试样本中,声音的幅度相同。从而避免因幅度不同而影响用户对水平方位的判断。但是,一组水平测试序列包括的n个水平测试样本中,声音的频率以及出现的预设水平方位不同。其中,不同频率可以使用不同物体发出的声音来模拟。例如,各种乐器发出的声音的频率不同,则可以使用多种乐器声来模拟多种不同频率的声音。Before testing the angle loss in the horizontal direction, the mobile phone needs to determine m sets of horizontal test sequences for testing the angle loss in the horizontal direction. A set of level test sequences includes n level test samples. Since the user needs to rely on the ILD to perceive the horizontal orientation, that is, the amplitude will affect the user's perception of the horizontal orientation. Based on this, it can be set that in n horizontal test samples included in a group of horizontal test sequences, the sound amplitudes are the same. In this way, it is avoided that the user's judgment on the horizontal orientation is affected by the difference in amplitude. However, among the n horizontal test samples included in a set of horizontal test sequences, the frequencies of sounds and the preset horizontal orientations appearing are different. Among them, different frequencies can be simulated by using sounds emitted by different objects. For example, sounds produced by various musical instruments have different frequencies, and multiple musical instrument sounds can be used to simulate multiple sounds of different frequencies.
示例性的,参见图10所示的水平方位图及一组水平测试序列,以人头俯视图角度看,人脸正面、且垂直于人脸中心的方位为水平0°,沿逆时针方向,水平方位的角度逐渐增大,如增大到15°、30°、45°……。一组水平测试序列中包括3个水平测试样本,分别为图10所示的水平测试样本①:出现在预设水平方位为23°、幅度为A1的鼓声;水平测试样本②:出现在预设水平方位为83°、幅度为A1的钢琴声;以及,水平测试样本③:出现在预设水平方位为233°、幅度为A1的吉他声。很显然,水平测试样本①、水平测试样本②和水平测试样本③中声音的幅度都为A1,因此幅度相同。以及,水平测试样本①、水平测试样本②和水平测试样本③中分别为鼓、钢琴和吉他的声音,因此频率不同。而且,水平测试样本①、水平测试样本②和水平测试样本③中声音出现的预设水平方位分别为23°、83°和233°,因此预设水平方位不同。For example, refer to the horizontal orientation diagram and a set of horizontal test sequences shown in Figure 10. From the perspective of the top view of the human head, the orientation of the front of the face and perpendicular to the center of the face is horizontal 0°, and the horizontal orientation is counterclockwise. The angle gradually increases, such as increasing to 15°, 30°, 45°... . A set of horizontal test sequences includes three horizontal test samples, which are the horizontal test sample ① shown in Figure 10: the drum sound that appears at the preset horizontal orientation of 23° and the amplitude is A1; the horizontal test sample ②: that appears at the preset Assume a piano sound with a horizontal orientation of 83° and an amplitude of A1; and, level test sample ③: a guitar sound with a preset horizontal orientation of 233° and an amplitude of A1. Obviously, the amplitude of the sound in the level test sample ①, the level test sample ② and the level test sample ③ is A1, so the amplitude is the same. And, the proficiency test sample ①, the proficiency test sample ② and the proficiency test sample ③ are drum, piano and guitar sounds respectively, so the frequencies are different. Moreover, the preset horizontal orientations of the sounds in the horizontal test sample ①, horizontal test sample ② and horizontal test sample ③ are respectively 23°, 83° and 233°, so the preset horizontal orientations are different.
两组水平测试序列包括的频率可以完全不同、部分相同或者完全相同。The frequencies included in the two sets of horizontal test sequences can be completely different, partially or completely the same.
示例性的,一组水平测试序列中包括的3个水平测试样本分别为鼓声、钢琴声和吉他声,另一组水平测试序列中包括的3个水平测试样本分别为小提琴声、口琴声和唢呐声,即两组水平测试序列包括的频率完全不同。Exemplarily, the 3 level test samples included in one set of level test sequences are respectively drum sound, piano sound and guitar sound, and the 3 level test samples included in another group level test sequence are violin sound, harmonica sound and The suona sound, that is, the frequencies included in the two horizontal test sequences are completely different.
又示例性的,一组水平测试序列中包括的3个水平测试样本分别为鼓声、钢琴声和吉他声,另一组水平测试序列中包括的3个水平测试样本分别为钢琴声、吉他声和小提琴声,即两组水平测试序列包括的频率部分相同,相同的为钢琴声和吉他声对应的频率。Also exemplary, the 3 level test samples included in one group of level test sequences are drum sound, piano sound and guitar sound respectively, and the 3 level test samples included in another group level test sequence are respectively piano sound, guitar sound It is the same as the violin sound, that is, the frequency part included in the two sets of horizontal test sequences, and the same is the corresponding frequency of the piano sound and the guitar sound.
再示例性的,一组水平测试序列中包括的3个水平测试样本分别为鼓声、钢琴声和吉他声,另一组水平测试序列中包括的3个水平测试样本分别为鼓声、钢琴声和吉他声,即两组水平测试序列包括的频率完全相同。Exemplarily again, the 3 level test samples included in one group of level test sequences are respectively drum sound, piano sound and guitar sound, and the 3 level test samples included in another group level test sequence are respectively drum sound, piano sound and guitar sound, that is, the two horizontal test sequences consisted of exactly the same frequencies.
在一种具体的实现方式中,若两组水平测试序列中包括的频率完全相同,则可以使频率出现的时序不同(即顺序不同)。如此,可以使两组水平测试序列中包括频率相同、但频率时序不同的n个水平测试样本,用于测试不同频率时序下被测用户的听力情况。从而可以更准确的得到被测用户对各个频率的声音的听力情况。In a specific implementation manner, if the frequencies included in the two sets of horizontal test sequences are completely the same, the timings at which the frequencies appear can be different (that is, the order is different). In this way, the two sets of horizontal test sequences can include n horizontal test samples with the same frequency but different frequency time sequences, which are used to test the hearing conditions of the tested users under different frequency time sequences. Therefore, the hearing status of the tested user to the sound of each frequency can be obtained more accurately.
例如,两组水平测试序列如下表1所示:For example, two sets of horizontal test sequences are shown in Table 1 below:
表1Table 1
应理解,上述表1省略了预设垂直方位和幅度两个参数。It should be understood that the above Table 1 omits the two preset parameters of vertical orientation and amplitude.
很显然,上表1中两组水平测试序列中都包括鼓声、钢琴声和吉他声,即包括的频率相同。但是,第1组水平测试序列包括的3个水平测试样本中,按时序依次为鼓声、钢琴声和吉他声,第2组水平测试序列包括的3个水平测试样本中,按时序依次为鼓声、吉他声和钢琴声。那么,第1组水平测试序列和第2组水平测试序列不仅可以用于测试被测用户对鼓声、钢琴声和吉他声的听力情况;而且,第1组水平测试序列可用于测试吉他声出现在钢琴声之后的情况下,被测用户对吉他声的听力情况;以及,第2组水平测试序列可用于测试吉他声出现在鼓声之后的情况下,被测用户对吉他声的听力情况。Obviously, the two sets of horizontal test sequences in Table 1 above all include the sounds of drums, pianos and guitars, that is, the included frequencies are the same. However, among the 3 proficiency test samples included in the first group of proficiency test sequences, drum sounds, piano sounds and guitar sounds are sequentially chronologically; among the 3 proficiency test samples included in the 2nd group proficiency test sequences, drum voice, guitar and piano. Then, the first group of horizontal test sequences and the second group of horizontal test sequences can not only be used to test the user's hearing of drums, piano sounds and guitar sounds; In the case of the sound of the piano, the user's hearing of the guitar sound; and, the second group of horizontal test sequences can be used to test the user's hearing of the guitar sound when the guitar sound appears after the drum sound.
以及,在测试垂直方位的角度损失之前,手机需要确定q组垂直测试序列,用于测试垂直方向的角度损失。一组垂直测试序列中包括w个垂直测试样本。由于用户需要依赖谱信号的变化来感知垂直方位的变化,即谱信号会影响用户对垂直方位的感知。基于此,可以设置一组垂直测试序列包括的w个垂直测试样本中,声音的谱信号相同。从而避免因谱信号不同而影响用户对垂直方位的判断。但是,一组垂直测试序列包括的n个垂直测试样本中,声音的幅度以及出现的垂直方位不同。其中,相同的谱信号可以用同一首曲子来模拟,例如,一组垂直测试序列包括w个垂直测试样本中的谱信号都为曲a。And, before testing the angle loss in the vertical direction, the mobile phone needs to determine q sets of vertical test sequences for testing the angle loss in the vertical direction. A set of vertical test sequences includes w vertical test samples. Since the user needs to rely on the change of the spectral signal to perceive the change of the vertical orientation, that is, the spectral signal will affect the user's perception of the vertical orientation. Based on this, it can be set that among the w vertical test samples included in a set of vertical test sequences, the spectral signals of the sound are the same. In this way, it is avoided that the user's judgment on the vertical orientation is affected by the different spectral signals. However, among the n vertical test samples included in a set of vertical test sequences, the sound amplitudes and vertical orientations appearing are different. Wherein, the same spectral signal can be simulated by the same piece of music, for example, the spectral signals in a set of vertical test sequences including w vertical test samples are all music a.
示例性的,参见图10中的垂直方位图及一组垂直测试序列,以人头右视图角度看,人脸正面、且垂直于人脸中心的方位为垂直0°,沿逆时针方向,垂直方位的角度逐渐增大,如增大到15°、30°、45°……。一组垂直测试序列中包括3个垂直测试样本,分别为图10所示的垂直测试样本1:出现在预设垂直方位为53°、幅度为A1的曲a;垂直测试样本2:出现在预设垂直方位为188°、幅度为A2的曲a;以及,垂直测试样本3:出现在预设垂直方位为278°、幅度为A3的曲a。很显然,垂直测试样本1、垂直测试样本2和垂直测试样本3中都为曲a,因此谱信号相同。以及,垂直测试样本1、垂直测试样本2和垂直测试样本3中曲a的幅度分别为A1、A2和A3,因此幅度不同。而且,垂直测试样本1、垂直测试样本2和垂直测试样本3中曲a出现的预设垂直方位分别为53°、188°和278°,因此预设垂直方位不同。For example, refer to the vertical orientation diagram and a set of vertical test sequences in Figure 10. From the perspective of the right view of the human head, the orientation of the front of the face and perpendicular to the center of the face is vertical 0°, and the vertical orientation is counterclockwise. The angle gradually increases, such as increasing to 15°, 30°, 45°... . A set of vertical test sequences includes 3 vertical test samples, which are vertical test sample 1 shown in Figure 10: appearing at the preset vertical orientation of 53° and curve a with an amplitude of A1; vertical test sample 2: appearing at the preset Assume a curve a with a vertical orientation of 188° and an amplitude of A2; and, vertical test sample 3: a curve a with a preset vertical orientation of 278° and an amplitude of A3. Obviously, the vertical test sample 1, the vertical test sample 2 and the vertical test sample 3 are all curved a, so the spectral signals are the same. And, the amplitudes of curve a in vertical test sample 1, vertical test sample 2, and vertical test sample 3 are A1, A2, and A3 respectively, so the amplitudes are different. Moreover, the preset vertical orientations where curve a appears in vertical test sample 1, vertical test sample 2, and vertical test sample 3 are 53°, 188°, and 278°, respectively, so the preset vertical orientations are different.
两组垂直测试序列包括的幅度可能完全不同、部分相同或者完全相同。The two sets of vertical test sequences may include completely different, partially or completely identical amplitudes.
示例性的,一组垂直测试序列中包括的3个垂直测试样本中声音的幅度分别为A1、A2和A3,另一组垂直测试序列中包括的3个垂直测试样本中声音的幅度分别为A4、A5和A6,即两组垂直测试序列包括的幅度完全不同。Exemplarily, the amplitudes of the sounds in the 3 vertical test samples included in one set of vertical test sequences are A1, A2 and A3 respectively, and the amplitudes of the sounds in the 3 vertical test samples included in another set of vertical test sequences are A4 respectively , A5 and A6, that is, the amplitudes included in the two sets of vertical test sequences are completely different.
又示例性的,一组垂直测试序列中包括的3个垂直测试样本中声音的幅度分别为A1、A2和A3,另一组垂直测试序列中包括的3个垂直测试样本中声音的幅度分别为A2、A3和A6,即两组垂直测试序列包括的幅度部分相同,相同的为A2和A2。Exemplarily again, the amplitudes of the sounds in the 3 vertical test samples included in one set of vertical test sequences are respectively A1, A2 and A3, and the amplitudes of the sounds in the 3 vertical test samples included in another set of vertical test sequences are respectively A2, A3 and A6, that is, two sets of vertical test sequences include the same amplitude part, and the same ones are A2 and A2.
再示例性的,一组垂直测试序列中包括的3个垂直测试样本中声音的幅度分别为A1、A2和A3,另一组垂直测试序列中包括的3个垂直测试样本中声音的幅度分别为A1、A2和A3,即两组垂直测试序列包括的幅度完全相同。Exemplarily again, the amplitudes of the sounds in the 3 vertical test samples included in one set of vertical test sequences are respectively A1, A2 and A3, and the amplitudes of the sounds in the 3 vertical test samples included in another set of vertical test sequences are respectively A1, A2 and A3, that is, two sets of vertical test sequences include exactly the same amplitude.
在一种具体的实现方式中,若两组垂直测试序列中包括的幅度完全相同,则可以使幅度出现的时序不同(即顺序不同)。如此,可以使两组垂直测试序列中包括频率相同、但幅度时序不同的w个垂直测试样本,用于测试不同幅度时序下被测用户的听力情况。从而可以更准确的得到被测用户对各个幅度的声音的听力情况。其原理与前文关于水平测试序列中,频率相同、但是频率时序不同的原理类似,具体可参见前文相关部分(如表1前后关联的内容)的说明,此处不再赘述。In a specific implementation manner, if the amplitudes included in the two sets of vertical test sequences are completely the same, the timings at which the amplitudes appear can be different (that is, the order is different). In this way, the two vertical test sequences can include w vertical test samples with the same frequency but different amplitude timings, which are used to test the hearing condition of the tested user under different amplitude timings. Therefore, the hearing status of the tested user to sounds of various amplitudes can be obtained more accurately. Its principle is similar to the above-mentioned principle of the same frequency but different frequency timing in the level test sequence. For details, please refer to the description of the relevant part above (such as the related content in Table 1), and will not repeat it here.
至此,则确定出了用于测试水平方位的角度损失的m组水平测试序列,即水平测试序列有多组。多组水平测试序列则可以模拟大量可能的频率组合。以及,确定出了用于测试垂直方位的角度损失的q组垂直测试序列,即垂直测试序列也有多组。多组垂直测试序列则可以模拟大量可能的幅度组合。但是,在实际实施时,水平测试序列和垂直测试序列均可以仅有一组。即用一组水平测试序列来确定水平方位的角度损失,以及用一组垂直测试序列来确定垂直方位的角度损失。本申请实施例对此不作具体限定。下文主要以m组水平测试序列和q组垂直测试序列为例来说明。So far, m sets of horizontal test sequences for testing the angle loss of the horizontal orientation have been determined, that is, there are multiple sets of horizontal test sequences. Multiple sets of horizontal test sequences can simulate a large number of possible frequency combinations. And, q sets of vertical test sequences for testing the angle loss of the vertical orientation are determined, that is, there are also multiple sets of vertical test sequences. Multiple vertical test sequences can simulate a large number of possible amplitude combinations. However, in actual implementation, there may be only one set of horizontal test sequences and vertical test sequences. That is, a set of horizontal test sequences is used to determine the angular loss of horizontal azimuth, and a set of vertical test sequences is used to determine the angular loss of vertical azimuth. This embodiment of the present application does not specifically limit it. The following mainly takes m groups of horizontal test sequences and q groups of vertical test sequences as examples for illustration.
手机在确定出m组水平测试序列和q组垂直测试序列后,则可测试水平方位的角度损失和垂直方位的角度损失。参见图11,测试水平方位的角度损失和垂直方位的角度损失的过程包括:After the mobile phone determines m sets of horizontal test sequences and q sets of vertical test sequences, it can test the angle loss of the horizontal orientation and the angle loss of the vertical orientation. Referring to Figure 11, the process of testing the angular loss of the horizontal orientation and the angular loss of the vertical orientation includes:
S1101、手机向耳机发送第k组目标测试序列,第k组目标测试序列为m组水平测试序列和q组垂直测试序列中的任一组测试序列,k从1,2,3……m+q中依次取值。S1101. The mobile phone sends the kth group of target test sequences to the earphone. The kth group of target test sequences is any group of test sequences in the m group of horizontal test sequences and the q group of vertical test sequences, and k ranges from 1, 2, 3...m+ The values in q are taken sequentially.
以m=q=10为例,手机可以先向耳机依次发送10组水平测试序列对应的测试音频,然后向耳机依次发送10组垂直测试序列对应的测试音频。Taking m=q=10 as an example, the mobile phone can first send 10 sets of test audio corresponding to the horizontal test sequence to the earphone in sequence, and then send the test audio corresponding to 10 sets of vertical test sequences to the earphone in turn.
其中,若第k组目标测试序列为一组水平测试序列,则第k组目标测试序列中包括多个预设水平方位分别出现的幅度相同、频率不同(如不同乐器)的声音(可以称为多种第一声音信号)。以第k组目标测试序列是前述图10所示的一组水平测试序列为例,则第k组目标测试序列应该包括依次在水平方位23°出现的鼓声、在83°出现的钢琴声以及在233°出现的吉他声。Among them, if the kth group of target test sequences is a set of horizontal test sequences, then the kth group of target test sequences includes sounds with the same amplitude and different frequencies (such as different musical instruments) that appear in multiple preset horizontal orientations (which can be called various first sound signals). Take the kth group of target test sequences as an example of a group of horizontal test sequences shown in the aforementioned Figure 10, then the kth group of target test sequences should include the sound of drums appearing at 23° in the horizontal direction, the sound of piano appearing at 83° and The guitar sound that appears at 233°.
以及,若第k组目标测试序列为一组垂直测试序列,则第k组目标测试序列中包括多个预设垂直方位分别出现的谱信号相同(如同一首曲子)、幅度不同的声音(可以称为多种第二声音信号)。以第k组目标测试序列是前述图10所示的一组垂直测试序列为例,则第k组目标测试序列应该包括依次在垂直方位53°出现的幅度为A1的曲a、在188°出现的幅度为A2的曲a以及在278°出现的幅度为A3的曲a。And, if the kth group of target test sequences is a group of vertical test sequences, then the kth group of target test sequences includes sounds with the same spectrum signal (like the same piece of music) and different amplitudes (can be called multiple second sound signals). Taking the kth group of target test sequences as an example of the group of vertical test sequences shown in Figure 10 above, the kth group of target test sequences should include the curve a with the amplitude A1 appearing at 53° in the vertical direction, and the curve a at 188° The curve a with the amplitude of A2 and the curve a with the amplitude of A3 appearing at 278°.
示例性的,在完成环境检测和校准之后,手机可以显示图12所示的界面1201,界面1201中包括提示“耳机已准备就绪,是否开始检测听力损失”,用于提示开始检测听力损失。以及,界面1201中还包括“是”和“否”两个选项,用于被测用户选择是否检测听力损失。手机在检测到被测用户对界面1201中“是”选项的选择操作后,可以开始向耳机发送第1组目标测试序列,如第1组水平测试序列。Exemplarily, after the environment detection and calibration are completed, the mobile phone may display the
需要在此说明的是,手机向耳机发送第k组目标测试序列,具体可以是:手机向耳机的左耳塞和右耳塞分别发送第k组目标测试序列;或者,手机向耳机的一只耳塞发送第k组目标测试序列,然后由该只耳塞向另一只耳塞同步第k组目标测试序列。本申请实施例对此不作具体限定。What needs to be explained here is that the mobile phone sends the k-th group of target test sequences to the earphone, specifically, the mobile phone sends the k-th group of target test sequences to the left earplug and the right earplug of the headset respectively; The k-th group of target test sequences, and then the k-th group of target test sequences is synchronized from the earplug to the other earplug. This embodiment of the present application does not specifically limit it.
S1102、耳机播放第k组目标测试序列对应的测试音频k。S1102. The earphone plays the test audio k corresponding to the kth group of target test sequences.
为了便于说明,可以将水平测试序列对应的测试音频k称为水平测试音频,以及将垂直测试序列对应的测试音频k称为垂直测试音频。For ease of description, the test audio k corresponding to the horizontal test sequence may be referred to as the horizontal test audio, and the test audio k corresponding to the vertical test sequence may be referred to as the vertical test audio.
耳机的两只耳塞在接收到第k组目标测试序列后,可以从扬声器播放第k组目标测试序列对应的测试音频。这样,声音信号可以传输到被测用户的双耳。应理解,只要耳机是立体声耳机,则可以达到在预设水平方位以及预设垂直方位播放对应的声音的效果。即,实现立体播放。After receiving the k-th group of target test sequences, the two earplugs of the earphone can play the test audio corresponding to the k-th group of target test sequences from the speaker. In this way, sound signals can be transmitted to both ears of the user under test. It should be understood that as long as the earphone is a stereo earphone, the effect of playing the corresponding sound at the preset horizontal orientation and the preset vertical orientation can be achieved. That is, stereoscopic playback is realized.
被测用户可以基于双耳听到的效果,反馈对第k组目标测试序列中多个预设水平方位或者多个预设垂直方位出现的声音的感知方位,即反馈感知结果k。Based on the effect of binaural hearing, the user under test can give feedback on the perceived orientation of the sounds appearing in multiple preset horizontal orientations or multiple preset vertical orientations in the k-th group of target test sequences, that is, the feedback perception result k.
以第k组目标测试序列是水平测试序列为例,手机在检测到被测用户对图12所示界面1201中“是”选项的选择操作后,可以显示图12所示的界面1202,界面1202中包括水平方位图,用于选择感知方位。以及,界面1202中还包括提示“在耳机开始播放测试音频后,请在上述水平方位图中选择声音所在的方位”,用于提示选择感知方位。例如,在耳机播放完第k组目标测试序列水平方位23°出现的鼓声后,被测用户点击图12所示界面1203中水平方位图中30°-45°的区域,如点击38°,则测试结果k中包括:被测用户对第k组目标测试序列中水平方位23°出现的鼓声的感知方位为38°。Taking the k-th group of target test sequences as an example, the mobile phone may display the
S1103、手机接收测试结果k,测试结果k中包括被测用户对第k组目标测试序列中多种声音对应的多个感知方位。S1103. The mobile phone receives the test result k, which includes multiple perception orientations of the tested user corresponding to multiple sounds in the kth group of target test sequences.
为了便于说明,可以将针对水平测试序列对应的测试音频k反馈的测试结果k称为水平测试结果,以及将针对垂直测试序列对应的测试音频k反馈的测试结果k称为垂直测试结果。For ease of description, the test result k fed back for the test audio k corresponding to the horizontal test sequence may be referred to as the horizontal test result, and the test result k fed back for the test audio k corresponding to the vertical test sequence may be referred to as the vertical test result.
其中,第k组目标测试序列为一组水平测试序列,则多种声音是指多种频率的声音。第k组目标测试序列为一组垂直测试序列,则多种声音是指多种幅度的声音。Wherein, the kth group of target test sequences is a set of horizontal test sequences, and multiple sounds refer to sounds of multiple frequencies. The kth group of target test sequences is a set of vertical test sequences, and multiple sounds refer to sounds with multiple amplitudes.
示例性的,以第k组目标测试序列为图10所示的一组水平测试序列(记为第1组水平测试序列)为例,则一个完整的测试结果k可以如下表2所示:Exemplarily, taking the k-th group of target test sequences as a group of horizontal test sequences shown in Figure 10 (denoted as the first group of horizontal test sequences) as an example, a complete test result k can be shown in Table 2 below:
表2Table 2
上述表2可以反映出,第1组水平测试序列对应的测试结果k包括:被测用户对第1组水平测试序列中鼓声的感知方位为38°;对第1组水平测试序列中钢琴声的感知方位为83°;以及,对第1组水平测试序列中吉他声的感知方位为263°。The above Table 2 can reflect that the test results k corresponding to the first group of horizontal test sequences include: the measured user's perception of the drum sound in the first group of horizontal test sequences is 38°; The perceptual orientation of 83°; and, the perceived orientation of the guitar sound in the group 1 horizontal test sequence is 263°.
S1104、手机根据测试结果k计算被测用户对第k组目标测试序列中多种声音的感知方位的角度偏差。S1104. According to the test result k, the mobile phone calculates the angular deviation of the user's perceived orientation to the multiple sounds in the kth group of target test sequences.
在一些实施例中,手机还可以对正常用户测试,例如采用上述S1101-S1103对正常用户测试,得到正常用户对第k组目标测试序列对应的感知结果k’。In some embodiments, the mobile phone can also test normal users, for example, use the above S1101-S1103 to test normal users, and obtain the normal user's perception result k' corresponding to the k-th group of target test sequences.
以第k组目标测试序列为图10所示的一组水平测试序列(记为第1组水平测试序列)为例,则一个完整的测试结果k’可以如下表3所示:Taking the k-th group of target test sequences as a group of horizontal test sequences shown in Figure 10 (denoted as the first group of horizontal test sequences) as an example, a complete test result k' can be shown in Table 3 below:
表3table 3
上述表2可以反映出,第1组水平测试序列对应的测试结果k’包括:被测用户对第1组水平测试序列中鼓声的感知方位为30°;对第1组水平测试序列中钢琴声的感知方位为85°;以及,对第1组水平测试序列中吉他声的感知方位为275°。The above Table 2 can reflect that the test results k' corresponding to the first group of horizontal test sequences include: the user's perception of the drum sound in the first group of horizontal test sequences is 30°; The perceived orientation of the sound is 85°; and, the perceived orientation of the guitar sound in the Group 1 horizontal test sequence is 275°.
在本实施例中,针对第k组目标测试序列中任一种声音,将测试结果k中该声音的感知方位减去测试结果k’中该声音的感知方位,得到被测用户对该声音的感知方位的角度偏差。In this embodiment, for any sound in the kth group of target test sequences, the perceived orientation of the sound in the test result k is subtracted from the perceived orientation of the sound in the test result k' to obtain the user's perception of the sound. The angular bias of the perceived bearing.
示例性的,测试结果k和测试结果k’分别如上述表2和表3所示,则可以计算得到被测用户对图10所示的一组水平测试序列(记为第1组水平测试序列)中,鼓声的感知方位的角度偏差为38°-30°=8°,钢琴声的感知方位的角度偏差为83°-85°=-2°,吉他声的感知方位的角度偏差为263°-250°=13°。并且, 鼓声、钢琴声和吉他声分别对应不同的频率,如f1、f2和f3,若f1<f2<f3,那么,基于被测用户对鼓声、钢琴声和吉他声分别的角度偏差8°、-2°和13°,可以得到如图13所示第1组水平测试序列对应的一组水平方位的角度损失(如第1组水平方位的角度损失)。Exemplarily, the test result k and the test result k' are shown in the above-mentioned Table 2 and Table 3 respectively, then it can be calculated that the user under test has a set of horizontal test sequences shown in Figure 10 (denoted as the first group of horizontal test sequences ), the angular deviation of the perceived orientation of the drum sound is 38°-30°=8°, the angular deviation of the perceived orientation of the piano sound is 83°-85°=-2°, and the angular deviation of the perceived orientation of the guitar sound is 263 °-250°=13°. In addition, the drum sound, piano sound and guitar sound correspond to different frequencies, such as f1, f2 and f3. If f1<f2<f3, then, based on the angular deviation of the measured user to the drum sound, piano sound and guitar sound8 °, -2° and 13°, the angular loss of a group of horizontal azimuths corresponding to the first group of horizontal test sequences as shown in Figure 13 can be obtained (such as the angular loss of the first group of horizontal azimuths).
采用本实施例,以正常用户的感知方位作为标准方位,来计算被测用户的感知方位的角度偏差。With this embodiment, the perceived orientation of the normal user is used as the standard orientation to calculate the angular deviation of the perceived orientation of the measured user.
当然,在另一些实施例中,手机也可以第k组目标测试序列中的多个预设水平方位或者多个垂直方位为标准方位来计算被测用户的感知方位的角度偏差。在本实施例中,只要以预设水平方位或者预设垂直方位替代前述实施例中正常用户的感知方位即可,此处不再赘述。Of course, in some other embodiments, the mobile phone may also use multiple preset horizontal orientations or multiple vertical orientations in the k-th group of target test sequences as standard orientations to calculate the angular deviation of the perceived orientation of the user under test. In this embodiment, it is only necessary to replace the perceived orientation of the normal user in the foregoing embodiments with the preset horizontal orientation or the preset vertical orientation, which will not be repeated here.
需要注意的是,上述关于S1104的说明中,主要以水平测试序列来说明。实际中,针对垂直测试序列也同理,下面仅以一个示例来说明。It should be noted that, in the above description about S1104, the horizontal test sequence is mainly used for description. In practice, the same is true for the vertical test sequence, and an example is used below to illustrate.
示例性的,第k组目标测试序列为图10所示的一组垂直测试序列(记为第1组垂直测试序列),则一个完整的测试结果k可以如下表4所示:Exemplarily, the kth group of target test sequences is a group of vertical test sequences shown in Figure 10 (denoted as the first group of vertical test sequences), then a complete test result k can be shown in the following table 4:
表4Table 4
上述表4可以反映出,第1组垂直测试序列对应的测试结果k包括:被测用户对第1组垂直测试序列中幅度A1的声音的感知方位为300°;对第1组垂直测试序列中幅度A2的声音的感知方位为32°;以及,对第1组垂直测试序列中幅度A3的声音的感知方位为229°。The above table 4 can reflect that the test result k corresponding to the first group of vertical test sequences includes: the measured user's perception of the sound with amplitude A1 in the first group of vertical test sequences is 300°; The perceived orientation of the sound of amplitude A2 is 32°; and, the perceived orientation of the sound of amplitude A3 in the set 1 vertical test sequence is 229°.
同样的,第k组目标测试序列为图10所示的一组垂直测试序列(记为第1组垂直测试序列),对应的一个完整的测试结果k’可以如下表5所示:Similarly, the k-th group of target test sequences is a group of vertical test sequences shown in Figure 10 (denoted as the first group of vertical test sequences), and a corresponding complete test result k' can be shown in Table 5 below:
表5table 5
上述表5可以反映出,第1组垂直测试序列对应的测试结果k’包括:被测用户对第1组垂直测试序列中幅度A1的声音的感知方位为280°;对第1组垂直测试序列中幅度A2的声音的感知方位为50°;以及,对第1组垂直测试序列中幅度A3的声音的感知方位为200°。The above table 5 can reflect that the test result k' corresponding to the first group of vertical test sequences includes: the measured user's perception of the sound with amplitude A1 in the first group of vertical test sequences is 280°; for the first group of vertical test sequences The perceived orientation of the sound of the medium amplitude A2 is 50°; and the perceived orientation of the sound of the amplitude A3 in the first set of vertical test sequences is 200°.
基于上述表4和表5,可以计算得到被测用户对图10所示的一组垂直测试序列(记为第1组水平测试序列)中,幅度A1的声音的感知方位的角度偏差为300°-280°=20°,幅度A2的声音的感知方位的角度偏差为32°-50°=-18°,幅度A1的声音的感知方位的角度偏差为229°-200°=29°。若A1<A2<A3,那么,基于被测用户对幅度A1、A2和A3的声音分别的角度偏差20°、-18°和29°,可以得到如图13所示第1组垂直测试序列对应的一组垂直方位的角度损失(如第1组垂直方位的角度损失)。Based on the above Table 4 and Table 5, it can be calculated that the angular deviation of the perceived orientation of the sound with amplitude A1 in the group of vertical test sequences shown in Figure 10 (denoted as the first group of horizontal test sequences) by the tested user is 300° -280°=20°, the angular deviation of the perceived orientation of the sound with amplitude A2 is 32°-50°=-18°, and the angular deviation of the perceived orientation of the sound with amplitude A1 is 229°-200°=29°. If A1<A2<A3, then, based on the angular deviations of the measured users to the sounds with amplitudes A1, A2 and A3 of 20°, -18° and 29° respectively, the first group of vertical test sequence correspondences as shown in Figure 13 can be obtained The angular loss of a group of vertical orientations (such as the angular loss of the vertical orientation of group 1).
当然,水平方位的角度损失和垂直方位的角度损失也可以采用表格或者文字的形式来表示,本申请实施例对此不作具体限定。Of course, the angular loss in the horizontal orientation and the angular loss in the vertical orientation may also be expressed in the form of a table or text, which is not specifically limited in this embodiment of the present application.
上述关于S1101-S1104的说明中,仅说明了针对一组目标测试序列完成测试的具体实现。实际中,在针对m组水平测试序列和q组垂直测试序列都完成测试后,则可以得到m组水平测试序列对应的m组水平方位的角度损失,以及得到q组垂直测试序列对应的q组垂直方位的角度损失。In the above description about S1101-S1104, only the specific implementation of completing the test for a group of target test sequences is described. In practice, after the tests are completed for m groups of horizontal test sequences and q groups of vertical test sequences, the angular loss of m groups of horizontal orientations corresponding to m groups of horizontal test sequences can be obtained, and q groups corresponding to q groups of vertical test sequences can be obtained Angular loss in vertical orientation.
至此,则通过耳机播放测试音频,手机获得测试结果并对测试结果进行分析计算,最终可以得到m组水平方位的角度损失和q组垂直方位的角度损失。At this point, the test audio is played through the earphones, the mobile phone obtains the test results and analyzes and calculates the test results, and finally the angle loss of the m group of horizontal orientations and the angle loss of the q group of vertical orientations can be obtained.
后续,手机可以使用m组水平方位的角度损失和q组垂直方位的角度损失来确定用户的听力模型。Subsequently, the mobile phone may use m sets of angular losses in horizontal orientations and q sets of angular losses in vertical orientations to determine the hearing model of the user.
在一些实施例中,参见图14,手机可以将m组水平方位的角度损失作为输入,运行标准方位模型,得到被测用户听力的相对幅度损失,相对幅度损失是指对于各个频率的声音、被测用户左耳和右耳感知到的幅度差值(也可以称为幅度变化)。以及,手机可以将q组垂直方位的角度损失作为输入,运行标准方位模型,得到被测用户听力的基础模型。其中,基础模型是在不考虑相对幅度损失的基础上,对于各个频率的声音,被测用户可以听到的最低幅度。然后,手机可以基于相对幅度损失,对基础模型进行修正,得到被测用户的听力模型。即,在考虑相对幅度损失的基础上,对于各个频率的声音,被测用户可以听到的最低幅度。例如,将基础模型中每一个频率(也可以称为第一频率,如图14所示基础模型中的f1)对应的幅度(即第一最低幅度,如图14所示基础模型中的a1)加上相对幅度损失中该频率(如图14所示相对幅度损失中的f1)对应的幅度偏差(如图14所示相对幅度损失中的△a1),得到听力模型中该频率(如图14所示听力模型中的f1)对应的幅度(也可以称为第二最低幅度,如图14所示听力模型中的a1+△a1)。In some embodiments, referring to FIG. 14 , the mobile phone can use m groups of angular losses in horizontal orientation as input, run the standard orientation model, and obtain the relative amplitude loss of the hearing of the user under test. The relative amplitude loss refers to the sound of each frequency, the Measure the amplitude difference (also called amplitude change) perceived by the user's left ear and right ear. And, the mobile phone can use the angular loss of q groups of vertical orientations as input, run the standard orientation model, and obtain the basic model of the user's hearing ability under test. Among them, the basic model is the lowest amplitude that the tested user can hear for the sound of each frequency without considering the relative amplitude loss. Then, the mobile phone can correct the basic model based on the relative amplitude loss to obtain the hearing model of the user under test. That is, the lowest amplitude that can be heard by the user under test for the sound of each frequency on the basis of considering the relative amplitude loss. For example, the amplitude corresponding to each frequency in the basic model (also called the first frequency, as shown in Figure 14, f1 in the basic model) (that is, the first lowest amplitude, as shown in Figure 14, a1 in the basic model) Add the amplitude deviation corresponding to the frequency in the relative amplitude loss (f1 in the relative amplitude loss shown in Figure 14) (△a1 in the relative amplitude loss shown in Figure 14), and get the frequency in the hearing model (Figure 14 The amplitude corresponding to f1) in the hearing model shown (also can be called the second lowest amplitude, such as a1+△a1 in the hearing model shown in Figure 14).
在一种具体的实现方式中,手机先对m组水平方位的角度损失进行融合处理,得到随频率的变化,水平方位的角度偏差随之变化的对应关系1。如图13所示,一组水平方位的角度损失中包括各个频率的角度偏差。示例性的,标准方位模型可以对m组水平方位的角度损失中,同一频率对应的多个角度偏差求平均值,得到相应频率的声音的角度偏差均值。例如,第1组、第2组和第3组水平方位的角度损失中,被测用户对f1的声音的角度偏差依次为△dh11、△dh12和△dh13。那么,手机可以求得被测用户对f1的声音的角度偏差均值△dh11=(△dh11+△dh12+△dh13)/3。在得到上述对应关系1后,手机可以将对应关系1输入至标准方位模型,标准方位模型则可以输出相对幅度损失。In a specific implementation manner, the mobile phone first performs fusion processing on the angular losses of m groups of horizontal azimuths, and obtains a corresponding relationship 1 in which the angular deviation of the horizontal azimuth changes with frequency changes. As shown in FIG. 13 , the angle loss of a group of horizontal orientations includes the angle deviation of each frequency. Exemplarily, the standard azimuth model may average multiple angle deviations corresponding to the same frequency among m groups of angle losses of horizontal azimuths to obtain an average value of angle deviations of sounds of corresponding frequencies. For example, in the angular loss of the horizontal orientation in the first group, the second group and the third group, the angular deviation of the measured user's voice to f1 is △dh11, △dh12 and △dh13 in turn. Then, the mobile phone can obtain the average angle deviation △dh11=(△dh11+△dh12+△dh13)/3 of the measured user's voice to f1. After obtaining the above correspondence 1, the mobile phone can input the correspondence 1 into the standard azimuth model, and the standard azimuth model can output the relative amplitude loss.
至此需要说明的是,若仅使用一组水平测试序列确定水平方位的角度损失,则只会得到一组水平方位的角度损失,那么,该组水平方位的角度损失则可以被视为对应关系1。也就是说,若仅使用一组水平测试序列得到一组水平方位的角度损失,则可以省略对m组水平方位的角度损失进行融合处理的步骤。What needs to be explained so far is that if only one set of horizontal test sequences is used to determine the angular loss of horizontal orientation, only one set of angular loss of horizontal orientation will be obtained. Then, the angular loss of this set of horizontal orientation can be regarded as the corresponding relationship 1 . That is to say, if only one set of horizontal test sequences is used to obtain a set of angular losses of horizontal azimuths, the step of fusing m sets of angular losses of horizontal azimuths can be omitted.
示例性的,标准方位模型可以通过如下方式训练得到:Exemplarily, the standard orientation model can be trained as follows:
收集多组水平训练样本,用于对正常用户进行听力测试,得到随声音的幅度的变化,正常用户感知到水平方位随之变化的拟合模型。示例性的,多组水平训练样本为前述m组水平测试样本。关于多组水平训练样本,可参见前文关于m组水平测试序列的相关说明,此处不再赘述。Collect multiple sets of horizontal training samples for hearing tests on normal users, and obtain a fitting model in which normal users perceive changes in horizontal orientation as the amplitude of the sound changes. Exemplarily, the multiple sets of level training samples are the aforementioned m sets of level test samples. Regarding the multiple sets of horizontal training samples, please refer to the relevant explanations about the m sets of horizontal test sequences above, and will not repeat them here.
针对任一组水平训练样本,通过播放该水平训练样本对应的水平训练音频,然后接收正常用户反馈的水平方位的感知方位,从而确定正常用户对初始的一定频率和幅度的声音的初始水平感知方位。接着,可多次调节该组水平训练样本中的幅度,并在每次调节后播放调整后的水平训练音频,然后接收正常用户反馈的水平方位的感知方位,从而确定正常用户对一定频率和调节后的幅度的声音的水平感知方位。如此,通过对多组水平训练样本的大量训练,可以拟合得到随着声音的幅度的变化,正常用户的水平感知方位随之变化的对应关系2(也可以称为第一对应关系)。例如,对应关系2中包括幅度变化△a0,水平感知方位的角度偏差为△dh1。For any set of level training samples, by playing the level training audio corresponding to the level training samples, and then receiving the perception orientation of the horizontal orientation fed back by the normal user, the initial horizontal perception orientation of the normal user to the initial sound of a certain frequency and amplitude is determined . Then, the amplitude in the group of horizontal training samples can be adjusted multiple times, and the adjusted horizontal training audio can be played after each adjustment, and then the perceived orientation of the horizontal orientation fed back by normal users can be received, so as to determine the normal user's perception of a certain frequency and adjustment. After the magnitude of the sound's horizontal perceived orientation. In this way, through a large amount of training on multiple sets of horizontal training samples, the corresponding relationship 2 (also called the first corresponding relationship) in which the normal user's horizontal perception orientation changes with the change of the sound amplitude can be obtained by fitting. For example, the correspondence 2 includes the amplitude change Δa0, and the angular deviation of the horizontal perception azimuth is Δdh1.
在得到上述对应关系2后,手机将对应关系1输入至标准方位模型,手机可以基于对应关系1中各个频率对应的角度偏差,在对应关系2中确定对应的幅度变化。从而可以得到对应关系1中各个频率对应的幅度变化,即相对幅度损失。After obtaining the above correspondence 2, the mobile phone inputs the correspondence 1 into the standard azimuth model, and the mobile phone can determine the corresponding amplitude change in the correspondence 2 based on the angle deviation corresponding to each frequency in the correspondence 1. Therefore, the amplitude change corresponding to each frequency in the correspondence relationship 1, that is, the relative amplitude loss can be obtained.
在一种具体的实现方式中,手机先对q组垂直方位的角度损失进行融合处理,得到随幅度的变化,垂直方位的角度偏差随之变化的对应关系3。如图13所示,一组垂直方位的角度损失中包括各个幅度的角度偏差。示例性的,标准方位模型可以对q组垂直方位的角度损失中,同一幅度对应的多个角度偏差求加权平均值,得到相应幅度的声音的角度偏差均值。在计算加权平均值过程中,可以基于每一组垂直测试序列中采用的谱信号的频率来确定权值。In a specific implementation manner, the mobile phone first fuses the angle losses of q groups of vertical azimuths to obtain a corresponding relationship 3 in which the angle deviation of the vertical azimuth changes with the change of the amplitude. As shown in FIG. 13 , a set of angular losses in vertical orientations includes angular deviations of various magnitudes. Exemplarily, the standard azimuth model may calculate a weighted average of multiple angular deviations corresponding to the same magnitude in the angular losses of q groups of vertical azimuths, to obtain the mean value of the angular deviations of sounds of corresponding magnitudes. In the process of calculating the weighted average value, the weight value can be determined based on the frequencies of the spectral signals used in each group of vertical test sequences.
例如,第1组、第2组和第3组垂直测试序列中,依次使用的是频率为f1、f2和f3的谱信号,并且f2和f3位于人耳听力敏感的中频范围,即1.1KHz-3.8KHz之间,而f1低于1.1KHz。那么,可以为第2组和第3组垂直方位的角度损失设置较高的权重,为第1组垂直方位的角度损失设置较低的权重。若第1组、第2组和第3组垂直测试序列中,被测用户对幅度A1的声音的角度偏差依次为△dv11、△dv12和△dv13。那么,手机可以求得被测用户对幅度A1的声音的角度偏差均值△dv11=△dh11*k1+△dh12*k2+△dh13*k3,k2和k3大于k1。在得到上述对应关系3后,手机可以将对应关系3输入至标准方位模型,标准方位模型则可以输出基础模型(也可以称为频率损失模型)。For example, in the vertical test sequences of Group 1, Group 2 and Group 3, spectral signals with frequencies f1, f2 and f3 are used in turn, and f2 and f3 are located in the middle frequency range to which the human ear is sensitive, that is, 1.1KHz- 3.8KHz, while f1 is lower than 1.1KHz. Then, you can set a higher weight for the angular loss of the 2nd and 3rd vertical orientations, and set a lower weight for the angular loss of the 1st vertical orientation. If in the vertical test sequences of Group 1, Group 2 and Group 3, the angular deviation of the measured user to the sound of amplitude A1 is △dv11, △dv12 and △dv13 in sequence. Then, the mobile phone can obtain the average angle deviation △dv11=△dh11*k1+△dh12*k2+△dh13*k3 of the measured user to the sound of amplitude A1, where k2 and k3 are greater than k1. After obtaining the above correspondence 3, the mobile phone can input the correspondence 3 into the standard azimuth model, and the standard azimuth model can output the basic model (also called the frequency loss model).
至此需要说明的是,若仅使用一组垂直测试序列确定垂直方位的角度损失,则只会得到一组垂直方位的角度损失,那么,该组垂直方位的角度损失则可以被视为对应关系3。也就是说,若仅使用一组垂直测试序列得到一组垂直方位的角度损失,则可以省略对q组垂直方位的角度损失进行融合处理的步骤。示例性的,标准方位模型可以通过如下方式训练得到:What needs to be explained so far is that if only one set of vertical test sequences is used to determine the angle loss of vertical orientation, only one set of angle loss of vertical orientation will be obtained, then the angle loss of this set of vertical orientation can be regarded as the corresponding relationship 3 . That is to say, if only one set of vertical test sequences is used to obtain a set of angle losses of vertical orientations, the step of fusing the angle losses of q sets of vertical orientations can be omitted. Exemplarily, the standard orientation model can be trained as follows:
收集多组垂直训练样本,用于对正常用户进行听力测试,得到随声音的频率的变化,正常用户感知到垂直方位随之变化的拟合模型。示例性的,多组垂直训练样本为前述q组垂直测试样本。关于多组垂直训练样本,可参见前文关于q组垂直测试序列的相关说明,此处不再赘述。Collect multiple sets of vertical training samples for hearing tests on normal users, and obtain a fitting model in which normal users perceive changes in vertical orientation as the frequency of the sound changes. Exemplarily, the multiple sets of vertical training samples are the aforementioned q sets of vertical test samples. For multiple sets of vertical training samples, please refer to the relevant description about q sets of vertical test sequences above, and will not repeat them here.
针对任一组垂直训练样本,通过播放该垂直训练样本对应的垂直训练音频,然后接收正常用户反馈的垂直方位的感知方位,从而确定正常用户对初始的一定频率和幅度的声音的初始垂直感知方位。接着,可多次调节该组垂直训练样本谱信号的频率,并在每次调节后播放调整后的训练音频,然后接收正常用户反馈的垂直方位的感知方位,从而确定正常用户对一定频率和调节后的频率的声音的水平感知方位。如此,通过对多组垂直训练样本的大量训练,可以拟合得到随着声音的频率的变化,正常用户的垂直感知方位随之变化的对应关系4(也可以称为第二对应关系)。例如,对应关系4中包括频率变化△f,如变化到f0+△f,垂直感知方位的角度偏差为△dv1。For any set of vertical training samples, by playing the vertical training audio corresponding to the vertical training samples, and then receiving the perception orientation of the vertical orientation fed back by the normal user, the initial vertical perception orientation of the normal user to the initial sound of a certain frequency and amplitude is determined . Then, the frequency of the group of vertical training sample spectrum signals can be adjusted multiple times, and the adjusted training audio is played after each adjustment, and then the perception orientation of the vertical orientation fed back by the normal user is received, so as to determine the normal user's perception of a certain frequency and adjustment. Perceived orientation after the level of the frequency of the sound. In this way, through a large amount of training on multiple sets of vertical training samples, the corresponding relationship 4 (also called the second corresponding relationship) in which the normal user's vertical perception orientation changes with the frequency of the sound can be fitted by fitting. For example, the correspondence 4 includes the frequency change Δf, such as changing to f0+Δf, the angular deviation of the vertical perception azimuth is Δdv1.
在得到上述对应关系4后,手机将对应关系3输入至标准方位模型,手机可以基于对应关系3中各个幅度对应的角度偏差,在对应关系4中确定对应的频率。从而可以得到对应关系3中各个幅度的频率。即,得到包括用户可感知到各个频率的声音的第二最低幅度的基础模型。After obtaining the above correspondence 4, the mobile phone inputs the correspondence 3 into the standard azimuth model, and the mobile phone can determine the corresponding frequency in the correspondence 4 based on the angle deviation corresponding to each amplitude in the correspondence 3. Thus, the frequency of each amplitude in the corresponding relationship 3 can be obtained. That is, a basic model including the second lowest amplitude of sound of each frequency that the user can perceive is obtained.
当前测试被测用户可能是听力受损的用户,而听力上的幅度损失可能会干扰垂直方位的角度损失的测量。基于此,在一些实施例中,在测试垂直方位的角度损失之前,如图11所示的S1101之前,可以先测试得到被测用户双耳的绝对幅度损失,包括被测用户左耳的第一绝对幅度损失和右耳的第二绝对幅度损失。然后,在测试垂直方位的角度损失的过程中,可以将第一绝对幅度损失和第二绝对幅度损失抹平,使垂直方位的角度测试的过程不受幅度损失的干扰。The user under test in the current test may be a hearing-impaired user, and the amplitude loss in hearing may interfere with the measurement of the angular loss in the vertical orientation. Based on this, in some embodiments, before testing the angle loss of the vertical orientation, before S1101 shown in FIG. Absolute amplitude loss and second absolute amplitude loss in the right ear. Then, in the process of testing the angle loss of the vertical azimuth, the first absolute amplitude loss and the second absolute amplitude loss can be smoothed out, so that the process of testing the angle of the vertical azimuth will not be disturbed by the amplitude loss.
参见图15,测试第一绝对幅度损失的过程包括:Referring to Figure 15, the process of testing the first absolute magnitude loss includes:
S1501、手机确定基准幅度。S1501. The mobile phone determines a reference range.
其中,基准幅度是测试第一绝对幅度损失的起始幅度。Wherein, the reference amplitude is the initial amplitude for testing the first absolute amplitude loss.
可以测试正常用户对预设频段范围内不同幅度的声音的听力情况,确定出正常用户在预设频段范围内可听见的最低幅度。手机可以将正常用户在预设频段范围内可听见的最低幅度作为基准幅度。It can test the normal user's hearing of sounds with different amplitudes within the preset frequency range, and determine the lowest audible range of the normal user within the preset frequency range. The mobile phone can use the lowest audible amplitude of a normal user within the preset frequency range as the reference amplitude.
示例性的,由于人耳最为敏感的为1.1KHz-3.8KHz的中频信号,则可将预设频段范围设置为1.1KHz到3.8KHz内。Exemplarily, since the human ear is most sensitive to intermediate frequency signals of 1.1KHz-3.8KHz, the preset frequency range can be set within 1.1KHz to 3.8KHz.
S1502、手机向左耳塞发送预设频段范围内、幅度为j的测试信号,j从基准幅度逐渐增大。S1502. The mobile phone sends a test signal within a preset frequency range and an amplitude j to the left earbud, and j gradually increases from the reference amplitude.
示例性的,基准幅度为A0,手机第一次则先向左耳塞发送预设频段范围内、幅度为A0的测试信号;手机第二次则向左耳塞发送预设频段范围内、幅度为A0+1的测试信号。Exemplarily, the reference amplitude is A0, the mobile phone first sends a test signal within the preset frequency range and the amplitude is A0 to the left earbud for the first time; the second time the mobile phone sends a test signal within the preset frequency range and the amplitude is A0 +1 for the test signal.
S1503、左耳塞播放测试信号对应的音频。S1503. The left earplug plays the audio corresponding to the test signal.
S1504、手机接收被测用户的听力反馈,听力反馈包括能听到和不能听到两种。S1504. The mobile phone receives hearing feedback from the user under test, and the hearing feedback includes two types of hearing feedback and hearing feedback.
左耳塞播放测试信号对应的音频后,被测用户若能听到,则可以反馈能听到;若不能听到,则可以反馈不能听到。例如,手机在检测到被测用户对图16所示界面1601中“是”选项的选择操作后,手机则可以开始测试绝对损失,并在每发送一次测试信号后,则可以显示图16所示的界面1602,界面1602中包括提示 “您是否听到左耳塞播放的声音”,用于提示被测用户输入听力反馈。以及,界面1602中还包括“能听到”和“不能听到”两个选项,用于选择听力反馈结果。After the left earbud plays the audio corresponding to the test signal, if the user under test can hear it, he can report that he can hear it; if he can’t hear it, he can feedback that he can’t hear it. For example, after the mobile phone detects that the user under test selects the "Yes" option in the
S1505、手机基于听力反馈确定左耳是否可以听到幅度为j的声音。若不能,则继续执行S1502;若能,则执行S1506。S1505. The mobile phone determines whether the left ear can hear the sound with amplitude j based on the hearing feedback. If not, continue to execute S1502; if yes, execute S1506.
若不能听到,则表明被测用户对当前幅度j的声音有听力损失,需要继续执行S1502及其后续步骤,针对幅度j为j+1的测试信号继续测试,直至确定出被测用户可以听到的幅度。若能听到,则表明被测用户对当前幅度j的声音没有力损失,则执行S1506,以确定出第一绝对幅度损失。If it cannot be heard, it means that the user under test has hearing loss to the sound of the current amplitude j, and needs to continue to perform S1502 and its subsequent steps, and continue testing for the test signal whose amplitude j is j+1 until it is determined that the user under test can hear the sound. to the extent. If it can be heard, it means that the user under test has no force loss to the sound of the current amplitude j, and then execute S1506 to determine the first absolute amplitude loss.
S1506、手机将基准幅度和j的差值确定为第一绝对幅度损失。S1506. The mobile phone determines the difference between the reference amplitude and j as the first absolute amplitude loss.
示例性的,基准幅度为A0,当前j=A0+2,则可以确定出第一绝对幅度损失为-2dB。Exemplarily, the reference amplitude is A0, and the current j=A0+2, then it can be determined that the first absolute amplitude loss is -2dB.
前述仅说明了确定第一绝对幅度损失的具体实现,实际中,确定第二绝对幅度损失的过程也同理。唯一需要注意的是:在确定第二绝对幅度损失的过程中,手机需要向右耳塞发送测试信号,以及由右耳塞播放测试信号。The foregoing only illustrates the specific implementation of determining the first absolute amplitude loss, and the same is true for the process of determining the second absolute amplitude loss in practice. The only caveat: During the process of determining the second absolute amplitude loss, the phone needs to send a test signal to the right earbud and play the test signal from the right earbud.
示例性的,采用上述图15所示的方式测试第一绝对幅度损失的过程中,被测用户的听力反馈如图17中“测试被测用户的左耳”列所示。即,左耳可以听到的最低幅度比基准幅度高2dB。换言之,左耳听力比正常用户差2dB,第一绝对幅度损失为-2dB。以及,采用上述图15类似的方式测试第二绝对幅度损失的过程中,被测用户的听力反馈如图17中“测试被测用户的右耳”列所示。即,右耳可以听到的最低幅度比基准幅度高3dB。换言之,右耳听力比正常用户差3dB,第二绝对幅度损失为-3dB。Exemplarily, in the process of testing the first absolute amplitude loss in the manner shown in FIG. 15 above, the hearing feedback of the user under test is shown in the column “Test the left ear of the user under test” in FIG. 17 . That is, the lowest amplitude that can be heard by the left ear is 2dB higher than the reference amplitude. In other words, the hearing of the left ear is 2dB worse than that of normal users, and the first absolute amplitude loss is -2dB. And, in the process of testing the second absolute amplitude loss in a manner similar to that shown in FIG. 15 above, the hearing feedback of the user under test is shown in the column “Testing the right ear of the user under test” in FIG. 17 . That is, the lowest amplitude that can be heard by the right ear is 3dB higher than the reference amplitude. In other words, the right ear hearing is 3dB worse than normal users, and the second absolute magnitude loss is -3dB.
在得到第一绝对幅度损失和第二绝对幅度损失后,参见图18,在前文图11所示的S1101之前,还包括:After obtaining the first absolute amplitude loss and the second absolute amplitude loss, see FIG. 18, before S1101 shown in FIG. 11 above, it also includes:
S1801、手机基于第一绝对幅度损失和第二绝对幅度损失更新q组垂直测试序列,得到更新后的q组垂直测试序列,更新后的每组垂直测试序列中包括左耳测试序列和右耳测试序列。S1801. The mobile phone updates q sets of vertical test sequences based on the first absolute amplitude loss and the second absolute amplitude loss to obtain updated q sets of vertical test sequences. Each updated set of vertical test sequences includes a left ear test sequence and a right ear test sequence.
针对任一组垂直测试序列,手机可以将该组垂直测试序列中包括的多个垂直测试样本的幅度减去第一绝对幅度损失,得到用于测试左耳的一组垂直测试序列(包括多种左耳测试信号);以及,将组垂直测试序列中包括的多个垂直测试样本的幅度减去第二绝对幅度损失,得到用于测试右耳的另一组垂直测试序列(包括多种右耳测试信号)。即,一组垂直测试序列,可以更新得到分别用于左耳和右耳测试的两组垂直测试序列(可以称为一组左耳测试序列和一组右耳测试序列)。即,更新后的一组垂直测试序列包括两个子测试序列。For any set of vertical test sequences, the mobile phone can subtract the first absolute amplitude loss from the amplitudes of multiple vertical test samples included in the set of vertical test sequences to obtain a set of vertical test sequences (including a variety of left ear test signal); and, subtracting the second absolute amplitude loss from the amplitudes of a plurality of vertical test samples included in the set of vertical test sequences to obtain another set of vertical test sequences for testing the right ear (including a variety of right ear test signal). That is, a set of vertical test sequences can be updated to obtain two sets of vertical test sequences for left ear and right ear tests respectively (which can be referred to as a set of left ear test sequences and a set of right ear test sequences). That is, the updated set of vertical test sequences includes two sub-test sequences.
示例性的,第1组垂直测试序列中依次包括幅度为A1、A2以及A3的垂直测试样本,并且第一绝对幅度损失为-2dB,第二绝对幅度损失为-3dB,则得到的第1组垂直测试序列对包括如下两组子测试序列:Exemplarily, the first group of vertical test sequences sequentially includes vertical test samples with amplitudes A1, A2 and A3, and the first absolute amplitude loss is -2dB, and the second absolute amplitude loss is -3dB, then the obtained first group The vertical test sequence pair includes the following two sub-test sequences:
左耳测试序列,依次包括幅度为A1+2dB、A2+2 dB以及A3+2 dB的垂直测试样本;Left ear test sequence, including vertical test samples with amplitudes A1+2dB, A2+2 dB and A3+2 dB in turn;
右耳测试序列,依次包括幅度为A1+3dB、A2+3 dB以及A3+3 dB的垂直测试样本。Right ear test sequence, including vertical test samples with amplitudes A1+3dB, A2+3dB and A3+3dB in sequence.
经过S1801,对应q组垂直测试序列,则可以得到更新后的q组垂直左测试序列,并且,更新后的每组垂直测试序列中都包括两组子测试序列。After S1801, corresponding to q sets of vertical test sequences, q sets of updated vertical left test sequences can be obtained, and each updated set of vertical test sequences includes two sub-test sequences.
继续参见图18,图11所示的S1101具体为:Continue to refer to Figure 18, S1101 shown in Figure 11 is specifically:
S1101’、 手机向耳机发送第k组目标测试序列,第k组目标测试序列为m组水平测试序列和更新后的q组垂直测试序列中的任一组测试序列,k从1,2,3……m+q中依次取值。S1101', the mobile phone sends the kth group of target test sequences to the earphone, the kth group of target test sequences is any group of test sequences in the m group of horizontal test sequences and the updated q group of vertical test sequences, and k is from 1, 2, 3 ...... The values in m+q are taken sequentially.
与前文S1101不同的是,若第k组目标测试序列为更新后的一组垂直测试序列,则第k组目标测试序列中包括左耳测试序列和右耳测试序列。那么,若第k组目标测试序列为更新后的一组垂直测试序列,耳机则需要向左耳塞发送第k组目标测试序列包括的左耳测试序列,向右耳塞发送第k组目标测试序列包括的右耳测试序列。Different from the above S1101, if the kth group of target test sequences is an updated set of vertical test sequences, then the kth group of target test sequences includes left ear test sequences and right ear test sequences. Then, if the k-th group of target test sequences is an updated set of vertical test sequences, the earphone needs to send the left ear test sequence included in the k-th group of target test sequences to the left earbud, and send the k-th group of target test sequences to the right earbud. right ear test sequence.
继续参见图18,图11所示的S1102具体为:Continue to refer to Figure 18, S1102 shown in Figure 11 is specifically:
S1102’、耳机播放第k组目标测试序列对应的测试音频k;其中,若第k组目标测试序列为更新后的一组垂直测试序列,则左耳塞播放左耳测试序列对应的测试音频k1,右耳塞播放右耳测试序列对应的测试音频k2。S1102', the earphone plays the test audio k corresponding to the k-th group of target test sequences; wherein, if the k-th group of target test sequences is an updated set of vertical test sequences, the left earplug plays the test audio k1 corresponding to the left ear test sequence, The right earbud plays the test audio k2 corresponding to the right ear test sequence.
如此,手机可以将两只耳朵的幅度绝对损失抹平,避免对垂直测试造成干扰。In this way, the mobile phone can smooth out the absolute loss of the amplitude of the two ears to avoid interference with the vertical test.
进一步的,在本实施例中,由于在垂直测试的过程中,将双耳的幅度绝对损失抹平了。那么,在后续确定听力模型的过程中,则需要将幅度绝对损失补上,以提高确定的听力模型的准确性。示例性的,与前文图14所示确定听力模型的过程不同的不是:参见图19(不同之处主要在图19中的加粗矩形框内),在本实施例中,手机在基于标准方位模型得到相对幅度损失后,可以结合第一绝对幅度损失和第二绝对幅度损失修正相对幅度损失。示例性的,可以计算左耳和右耳的绝对幅度损失的差值,并将相对幅度损失中各个频率(也可以称为第二频率)对应的幅度差值(也可以称为第一幅度差值)加上绝对幅度损失的差值,得到双耳幅度损失中相应频率(即第二频率)对应的幅度差值(也可以称为第二幅度差值)。例如,第一绝对幅度损失为-2dB,第二绝对幅度损失为-3dB,则绝对幅度损失的差值为-2-(-3)dB=1dB,相对幅度损失中频率f1对应的幅度差值为△a1,那么将△a1加1则可以得到双耳幅度损失中频率f1对应的幅度差值,即△a1+1。后续,在融合得到听力模型时,则是将双耳幅度损失与基础模型融合,而不是将相对幅度损失与基础模型融合。例如,图19所示听力模型中,频率f1对应的幅度为基础模型中频率f1对应的幅度a1与双耳幅度损失中频率f1对应的幅度损失△a1+1之和,即a1+△a1+1。Furthermore, in this embodiment, since the absolute loss of the amplitude of both ears is smoothed out during the vertical test. Then, in the subsequent process of determining the hearing model, it is necessary to make up for the absolute loss of amplitude, so as to improve the accuracy of the determined hearing model. Exemplarily, the difference from the process of determining the hearing model shown in Figure 14 above is not: see Figure 19 (the difference is mainly in the bold rectangle box in Figure 19), in this embodiment, the mobile phone is based on the standard orientation After the relative magnitude loss is obtained by the model, the relative magnitude loss can be corrected by combining the first absolute magnitude loss and the second absolute magnitude loss. Exemplarily, the difference between the absolute amplitude loss of the left ear and the right ear can be calculated, and the amplitude difference corresponding to each frequency (also called the second frequency) in the relative amplitude loss (also called the first amplitude difference value) plus the difference of the absolute amplitude loss to obtain the amplitude difference (also called the second amplitude difference) corresponding to the corresponding frequency (ie, the second frequency) in the binaural amplitude loss. For example, the first absolute amplitude loss is -2dB, and the second absolute amplitude loss is -3dB, then the difference of absolute amplitude loss is -2-(-3)dB=1dB, and the amplitude difference corresponding to frequency f1 in relative amplitude loss is △a1, then adding 1 to △a1 can get the amplitude difference corresponding to frequency f1 in binaural amplitude loss, that is, △a1+1. Subsequently, when the hearing model is fused, the binaural amplitude loss is fused with the basic model instead of the relative amplitude loss and the basic model. For example, in the hearing model shown in Figure 19, the amplitude corresponding to the frequency f1 is the sum of the amplitude a1 corresponding to the frequency f1 in the basic model and the amplitude loss △a1+1 corresponding to the frequency f1 in the binaural amplitude loss, that is, a1+△a1+1 .
本申请实施例还提供了一种电子设备,该电子设备可以包括:存储器和一个或多个处理器。存储器和处理器耦合。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中手机执行的各个功能或者步骤。The embodiment of the present application also provides an electronic device, and the electronic device may include: a memory and one or more processors. The memory and processor are coupled. The memory is used to store computer program code comprising computer instructions. When the processor executes the computer instructions, the electronic device can execute various functions or steps performed by the mobile phone in the foregoing method embodiments.
本申请实施例还提供一种芯片系统,如图20所示,该芯片系统2000包括至少一个处理器2001和至少一个接口电路2002。处理器2001和接口电路2002可通过线路互联。例如,接口电路2002可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路2002可用于向其它装置(例如处理器2001)发送信号。示例性的,接口电路2002可读取存储器中存储的指令,并将该指令发送给处理器2001。当所述指令被处理器2001执行时,可使得电子设备执行上述实施例中手机执行的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。The embodiment of the present application also provides a chip system, as shown in FIG. 20 , the
本实施例还提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机指令,当该计算机指令在电子设备上运行时,使得电子设备执行上述方法实施例中手机执行的各个功能或者步骤。This embodiment also provides a computer-readable storage medium, where computer instructions are stored in the computer-readable storage medium, and when the computer instructions are run on the electronic device, the electronic device is made to perform the various functions performed by the mobile phone in the above method embodiments or steps.
本实施例还提供了一种计算机程序产品,当该计算机程序产品在计算机上运行时,使得计算机执行上述方法实施例中手机执行的各个功能或者步骤。This embodiment also provides a computer program product. When the computer program product is run on a computer, the computer is made to execute various functions or steps performed by the mobile phone in the above method embodiments.
另外,本申请的实施例还提供一种装置,这个装置具体可以是芯片,组件或模块,该装置可包括相连的处理器和存储器;其中,存储器用于存储计算机执行指令,当装置运行时,处理器可执行存储器存储的计算机执行指令,以使芯片执行上述方法实施例中手表执行的各个功能或者步骤,实现估计体能年龄。In addition, an embodiment of the present application also provides a device, which may specifically be a chip, a component or a module, and the device may include a connected processor and a memory; wherein the memory is used to store computer-executable instructions, and when the device is running, The processor can execute the computer-executable instructions stored in the memory, so that the chip executes various functions or steps performed by the wristwatch in the above-mentioned method embodiments, so as to realize the estimation of physical age.
其中,本实施例提供的电子设备、通信系统、计算机可读存储介质、计算机程序产品或芯片均用于执行上文所提供的对应的方法,因此,其所能达到的有益效果可参考上文所提供的对应的方法中的有益效果,此处不再赘述。Among them, the electronic equipment, communication system, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding method provided above, therefore, the beneficial effects it can achieve can refer to the above The beneficial effects of the provided corresponding method will not be repeated here.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。Through the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be allocated according to needs It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,该模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined Or it can be integrated into another device, or some features can be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
该作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The unit described as a separate component may or may not be physically separated, and a component displayed as a unit may be one physical unit or multiple physical units, that is, it may be located in one place, or may be distributed to multiple different places. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
该集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the software product is stored in a storage medium Among them, several instructions are included to make a device (which may be a single-chip microcomputer, a chip, etc.) or a processor (processor) execute all or part of the steps of the methods in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes. .
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application without limitation. Although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present application can be Make modifications or equivalent replacements without departing from the spirit and scope of the technical solutions of the present application.
Claims (17)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211414959.0A CN115460526B (en) | 2022-11-11 | 2022-11-11 | Method, electronic device and system for determining hearing model |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211414959.0A CN115460526B (en) | 2022-11-11 | 2022-11-11 | Method, electronic device and system for determining hearing model |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115460526A CN115460526A (en) | 2022-12-09 |
CN115460526B true CN115460526B (en) | 2023-03-28 |
Family
ID=84295446
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211414959.0A Active CN115460526B (en) | 2022-11-11 | 2022-11-11 | Method, electronic device and system for determining hearing model |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115460526B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105100413A (en) * | 2015-05-27 | 2015-11-25 | 努比亚技术有限公司 | Information processing method, device and terminal |
CN112690782A (en) * | 2020-12-22 | 2021-04-23 | 惠州Tcl移动通信有限公司 | Hearing compensation test method, intelligent terminal and computer readable storage medium |
CN113827227A (en) * | 2021-08-10 | 2021-12-24 | 北京塞宾科技有限公司 | Hearing test signal generation method, hearing test method, storage medium, and device |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100730297B1 (en) * | 2005-05-31 | 2007-06-19 | 한국과학기술원 | Method of Estimating Sound Source Location Using Head Transfer Function Database |
US9363602B2 (en) * | 2012-01-06 | 2016-06-07 | Bit Cauldron Corporation | Method and apparatus for providing virtualized audio files via headphones |
JP6596896B2 (en) * | 2015-04-13 | 2019-10-30 | 株式会社Jvcケンウッド | Head-related transfer function selection device, head-related transfer function selection method, head-related transfer function selection program, sound reproduction device |
DE102018201605A1 (en) * | 2018-02-02 | 2019-08-08 | Continental Teves Ag & Co. Ohg | Method and device for locating and tracking acoustic active sources |
TWI693926B (en) * | 2019-03-27 | 2020-05-21 | 美律實業股份有限公司 | Hearing test system and setting method thereof |
CN110544532B (en) * | 2019-07-27 | 2023-07-18 | 华南理工大学 | An APP-based sound source spatial localization ability detection system |
JP7358010B2 (en) * | 2019-07-29 | 2023-10-10 | アルパイン株式会社 | Head-related transfer function estimation model generation device, head-related transfer function estimating device, and head-related transfer function estimation program |
CN113317781B (en) * | 2021-04-12 | 2023-07-21 | 中国人民解放军总医院第六医学中心 | Audiometric system and method for testing sound source positioning capability |
CN113520377B (en) * | 2021-06-03 | 2023-07-04 | 广州大学 | Virtual sound source positioning capability detection method, system, device and storage medium |
-
2022
- 2022-11-11 CN CN202211414959.0A patent/CN115460526B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105100413A (en) * | 2015-05-27 | 2015-11-25 | 努比亚技术有限公司 | Information processing method, device and terminal |
CN112690782A (en) * | 2020-12-22 | 2021-04-23 | 惠州Tcl移动通信有限公司 | Hearing compensation test method, intelligent terminal and computer readable storage medium |
CN113827227A (en) * | 2021-08-10 | 2021-12-24 | 北京塞宾科技有限公司 | Hearing test signal generation method, hearing test method, storage medium, and device |
Also Published As
Publication number | Publication date |
---|---|
CN115460526A (en) | 2022-12-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12245002B2 (en) | Fitting method and apparatus for hearing earphone | |
JP5894634B2 (en) | Determination of HRTF for each individual | |
EP2202998B1 (en) | A device for and a method of processing audio data | |
US20040196991A1 (en) | Sound image localizer | |
US7957549B2 (en) | Acoustic apparatus and method of controlling an acoustic apparatus | |
CN110012406A (en) | Acoustic signal processing method, device, processor and ossiphone | |
US20190320268A1 (en) | Systems, devices and methods for executing a digital audiogram | |
US12041438B2 (en) | Location based audio signal message processing | |
KR101659410B1 (en) | Sound optimization device and method about combination of personal smart device and earphones | |
TW201814691A (en) | Audio system and control method | |
CN112954563B (en) | Signal processing method, electronic device, apparatus, and storage medium | |
WO2019086298A1 (en) | Method for determining a response function of a noise cancellation enabled audio device | |
CN108076400A (en) | A kind of calibration and optimization method for 3D audio Headphone reproducings | |
US20230209300A1 (en) | Method and device for processing spatialized audio signals | |
EP2822301B1 (en) | Determination of individual HRTFs | |
WO2023160286A1 (en) | Noise reduction parameter adaptation method and apparatus | |
CN115460526B (en) | Method, electronic device and system for determining hearing model | |
CN116744169B (en) | Earphone device, sound signal processing method and wearing fit testing method | |
EP4462822A1 (en) | Acoustic image calibration method and apparatus | |
CN114979923B (en) | Method, device and storage medium for determining hearing loss curve | |
US20230109140A1 (en) | Method for determining a head related transfer function and hearing device | |
CN113613121B (en) | Method, device and earphone for obtaining earphone sound pressure level | |
CN114630223B (en) | Method for optimizing functions of hearing-wearing device and hearing-wearing device | |
CN115086851A (en) | Human ear bone conduction transfer function measuring method, device, terminal equipment and medium | |
US20220377449A1 (en) | Dynamic seal testing and feedback for audio wearable devices |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |