CN113099335A - Method and device for adjusting audio parameters of earphone, electronic equipment and earphone - Google Patents
Method and device for adjusting audio parameters of earphone, electronic equipment and earphone Download PDFInfo
- Publication number
- CN113099335A CN113099335A CN202010017446.0A CN202010017446A CN113099335A CN 113099335 A CN113099335 A CN 113099335A CN 202010017446 A CN202010017446 A CN 202010017446A CN 113099335 A CN113099335 A CN 113099335A
- Authority
- CN
- China
- Prior art keywords
- audio
- level
- earphone
- signal
- amplitude
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000005236 sound signal Effects 0.000 claims abstract description 213
- 238000001914 filtration Methods 0.000 claims abstract description 7
- 230000004044 response Effects 0.000 claims description 21
- 210000003454 tympanic membrane Anatomy 0.000 claims description 16
- 210000000613 ear canal Anatomy 0.000 claims description 14
- 230000003247 decreasing effect Effects 0.000 claims description 3
- 230000000694 effects Effects 0.000 abstract description 13
- 238000004891 communication Methods 0.000 description 11
- 238000012545 processing Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000008859 change Effects 0.000 description 3
- 210000005069 ears Anatomy 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 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
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1041—Mechanical or electronic switches, or control elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R1/00—Details of transducers, loudspeakers or microphones
- H04R1/10—Earpieces; Attachments therefor ; Earphones; Monophonic headphones
- H04R1/1091—Details not provided for in groups H04R1/1008 - H04R1/1083
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R3/00—Circuits for transducers, loudspeakers or microphones
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2201/00—Details of transducers, loudspeakers or microphones covered by H04R1/00 but not provided for in any of its subgroups
- H04R2201/10—Details of earpieces, attachments therefor, earphones or monophonic headphones covered by H04R1/10 but not provided for in any of its subgroups
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Headphones And Earphones (AREA)
Abstract
Description
技术领域technical field
本公开涉及音频技术领域,尤其涉及一种调整耳机音频参数的方法及装置、电子设备、耳机。The present disclosure relates to the field of audio technology, and in particular, to a method and device for adjusting audio parameters of an earphone, an electronic device, and an earphone.
背景技术Background technique
目前,很多用户喜欢在公共场合或者运动的时候佩带耳机,使用耳机听音乐或者通话。通常情况下,耳机的配置是固定的,即对于每个用户而言,同一型号的耳机的配置参数是相同。然而,每个用户的耳部是有差异的,对于相同的音频具有不同的听觉感受,例如,有的用户听起来刚好,有的用户会觉得声音大,有的用户会觉得声音小,从而降低用户体验。At present, many users like to wear headphones in public places or when exercising, and use the headphones to listen to music or make calls. Usually, the configuration of the earphones is fixed, that is, for each user, the configuration parameters of the earphones of the same model are the same. However, each user's ears are different, and they have different hearing experience for the same audio. For example, some users sound just right, some users think the sound is loud, and some users think the sound is small, thus reducing the sound. user experience.
发明内容SUMMARY OF THE INVENTION
本公开提供一种调整耳机音频参数的方法及装置、电子设备、耳机,以解决相关技术的不足。The present disclosure provides a method and device for adjusting audio parameters of an earphone, an electronic device, and an earphone, so as to solve the deficiencies of the related art.
根据本公开实施例的第一方面,提供一种调整耳机音频参数的方法,适应于电子设备,包括:According to a first aspect of the embodiments of the present disclosure, there is provided a method for adjusting audio parameters of an earphone, suitable for electronic equipment, including:
获取原始音频信号;所述原始音频信号包括超声波信号和声音信号;Acquiring original audio signals; the original audio signals include ultrasonic signals and sound signals;
滤除所述原始音频信号中的声音信号,得到所述超声波信号;所述超声波信号包括未经反射的第一音频信号和经过反射后的第二音频信号;Filtering out the sound signal in the original audio signal to obtain the ultrasonic signal; the ultrasonic signal includes the unreflected first audio signal and the reflected second audio signal;
获取所述第一音频信号和所述第二音频信号两者的幅值差和相位差;acquiring the amplitude difference and phase difference between the first audio signal and the second audio signal;
基于所述幅值差和相位差获取所述耳机所在耳部对应的音频等级;Obtain the audio level corresponding to the ear where the earphone is located based on the amplitude difference and the phase difference;
在所述音频等级为目标等级之外的等级时,基于所述音频等级调整所述耳机的音频参数,直至之后获取的音频等级变为目标等级。When the audio level is a level other than the target level, the audio parameters of the earphone are adjusted based on the audio level until the acquired audio level becomes the target level.
可选地,获取所述第一音频信号和所述第二音频信号两者的幅值差和相位差,包括:Optionally, acquiring the amplitude difference and phase difference between the first audio signal and the second audio signal includes:
获取所述耳机所播放超声波数据的原始波形;obtaining the original waveform of the ultrasonic data played by the earphone;
基于预先建立的原始波形和第一音频信号的关系,从所述超声波信号中提取出所述第一音频信号,以及获取所述音频信号的实际波形和所述原始波形的差值波形,将所述差值波形作为所述第二音频信号;Based on the pre-established relationship between the original waveform and the first audio signal, the first audio signal is extracted from the ultrasonic signal, and the difference waveform between the actual waveform of the audio signal and the original waveform is obtained, and the using the difference waveform as the second audio signal;
获取所述第一音频信号和所述第二音频信号的幅值差和相位差;所述幅值差用于表示耳部耳道对第一音频信号的幅值衰减程度,所述相位差用于表示耳部中耳膜深度对所述第一音频信号的延时程度。Obtain the amplitude difference and phase difference of the first audio signal and the second audio signal; the amplitude difference is used to represent the amplitude attenuation degree of the ear canal to the first audio signal, and the phase difference is used is used to represent the degree of delay of the first audio signal by the depth of the eardrum in the ear.
可选地,基于所述幅值差和相位差获取所述耳机所在耳部对应的音频等级包括:Optionally, acquiring the audio level corresponding to the ear where the earphone is located based on the amplitude difference and the phase difference includes:
获取预设的幅值差阈值和预设的相位差阈值;Obtain a preset amplitude difference threshold and a preset phase difference threshold;
对比所述幅值差和所述幅值差阈值以及所述相位差和所述相位差阈值,分别获得第一对比结果和第二对比结果;Comparing the amplitude difference with the amplitude difference threshold and the phase difference with the phase difference threshold, respectively obtaining a first comparison result and a second comparison result;
根据所述第一对比结果和所述第二对比结果获得佩戴所述耳机的耳部的音频等级。The audio level of the ear wearing the earphone is obtained according to the first comparison result and the second comparison result.
可选地,根据所述第一对比结果和所述第二对比结果获得佩戴所述耳机的耳部的音频等级包括:Optionally, obtaining the audio level of the ear wearing the earphone according to the first comparison result and the second comparison result includes:
在所述第一对比结果表示所述幅值差大于所述幅值差阈值且所述第二对比结果表示所述相位差大于所述相位差阈值时,确定所述音频等级为第一等级;或者,When the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold, determining that the audio level is the first level; or,
在所述第一对比结果表示所述幅值差大于所述幅值差阈值且所述第二对比结果表示所述相位差小于所述相位差阈值,或者,所述第一对比结果表示所述幅值差小于所述幅值差阈值且所述第二对比结果表示所述相位差大于所述相位差阈值时,确定所述音频等级为第二等级;或者,When the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is smaller than the phase difference threshold, or the first comparison result indicates that the When the amplitude difference is less than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold, it is determined that the audio level is the second level; or,
在所述第一对比结果表示所述幅值差小于所述幅值差阈值且所述第二对比结果表示所述相位差小于所述相位差阈值时,确定所述音频等级为第三等级。When the first comparison result indicates that the amplitude difference is smaller than the amplitude difference threshold and the second comparison result indicates that the phase difference is smaller than the phase difference threshold, the audio level is determined to be a third level.
可选地,基于所述音频等级调整所述耳机的音频参数,直至之后获取的音频等级变为目标等级,包括:Optionally, adjusting the audio parameters of the headset based on the audio level, until the audio level acquired thereafter becomes the target level, including:
在所述音频等级为第一等级时,向所述耳机发送控制信号,所述耳机响应于所述控制信号调整所述耳机的腔体结构,以使之后获取的音频等级从第一等级变为第二等级。When the audio level is the first level, a control signal is sent to the earphone, and the earphone adjusts the cavity structure of the earphone in response to the control signal, so that the subsequently acquired audio level changes from the first level to second level.
可选地,调整所述耳机的腔体结构包括:Optionally, adjusting the cavity structure of the earphone includes:
移动所述耳机内的可移动器件至目标位置,所述可移动器件至所述目标位置后会增大或者减小所述腔体的空间。The movable device in the earphone is moved to a target position, and the space of the cavity is increased or decreased after the movable device reaches the target position.
可选地,基于所述音频等级调整所述耳机的音频参数,直至之后获取的音频等级变为目标等级,包括:Optionally, adjusting the audio parameters of the headset based on the audio level, until the audio level acquired thereafter becomes the target level, including:
在所述音频等级为第二等级时,调整频率响应特性,以对所述扬声器所发出的声波进行幅值调整和频率均衡,直至之后获取的音频等级从第二等级变为第三等级,所述第三等级即是目标等级。When the audio level is the second level, the frequency response characteristics are adjusted to perform amplitude adjustment and frequency equalization on the sound waves emitted by the speaker, until the acquired audio level changes from the second level to the third level. The third level is the target level.
可选地,基于所述音频等级调整所述耳机的音频参数,直至之后获取的音频等级变为目标等级,包括:Optionally, adjusting the audio parameters of the headset based on the audio level, until the audio level acquired thereafter becomes the target level, including:
获取使用所述耳机的历史用户列表;所述历史用户列表包括耳部对应的幅值差、相位差、音频等级和目标等级对应的音频参数;Obtain a list of historical users who use the headset; the historical user list includes the corresponding amplitude difference, phase difference, audio level and audio parameters corresponding to the target level of the ear;
根据所述音频等级、所述幅值差和所述相位差获取目标等级和对应的音频参数;Obtain a target level and corresponding audio parameters according to the audio level, the amplitude difference and the phase difference;
将所述耳机的音频参数调整至所述目标等级对应的音频参数,以使之后获取的音频等级变为目标等级。The audio parameters of the earphones are adjusted to the audio parameters corresponding to the target level, so that the audio level acquired later becomes the target level.
可选地,获取所述第一音频信号和所述第二音频信号两者的幅值差和相位差之前,所述方法还包括:Optionally, before acquiring the amplitude difference and phase difference between the first audio signal and the second audio signal, the method further includes:
若所述第二音频信号的幅度小于预设的幅度阈值,则确定无需调整所述耳机的音频参数;若所述第二音频信号的幅度大于所述预设的幅度阈值,则继续执行获取所述第一音频信号和所述第二音频信号两者的幅值差和相位差的步骤。If the amplitude of the second audio signal is less than the preset amplitude threshold, it is determined that the audio parameters of the earphone do not need to be adjusted; if the amplitude of the second audio signal is greater than the preset amplitude threshold, continue to execute the acquisition of the The step of the amplitude difference and the phase difference between the first audio signal and the second audio signal.
根据本公开实施例的第二方面,提供一种调整耳机音频参数的装置,适应于电子设备,包括:According to a second aspect of the embodiments of the present disclosure, there is provided an apparatus for adjusting audio parameters of an earphone, suitable for electronic equipment, including:
原始信号获取模块,用于获取原始音频信号;所述原始音频信号包括超声波信号和声音信号;an original signal acquisition module for acquiring an original audio signal; the original audio signal includes an ultrasonic signal and a sound signal;
音频信号获取模块,用于滤除所述原始音频信号中的声音信号,得到所述超声波信号;所述超声波信号包括未经反射的第一音频信号和经过反射后的第二音频信号;an audio signal acquisition module, configured to filter out the sound signal in the original audio signal to obtain the ultrasonic signal; the ultrasonic signal includes the unreflected first audio signal and the reflected second audio signal;
幅相差获取模块,用于获取所述第一音频信号和所述第二音频信号两者的幅值差和相位差;an amplitude difference obtaining module, configured to obtain the amplitude difference and phase difference between the first audio signal and the second audio signal;
音频等级获取模块,用于基于所述幅值差和相位差获取所述耳机所在耳部对应的音频等级;an audio level acquisition module, configured to acquire the audio level corresponding to the ear where the earphone is located based on the amplitude difference and the phase difference;
音频参数调整模块,用于在所述音频等级为目标等级之外的等级时,基于所述音频等级调整所述耳机的音频参数,直至之后获取的音频等级变为目标等级。An audio parameter adjustment module, configured to adjust the audio parameters of the earphone based on the audio level when the audio level is a level other than the target level, until the audio level acquired thereafter becomes the target level.
可选地,所述幅相差获取模块包括:Optionally, the amplitude difference acquisition module includes:
原始波形获取单元,用于获取所述耳机所播放超声波数据的原始波形;an original waveform acquisition unit for acquiring the original waveform of the ultrasonic data played by the earphone;
音频信号获取单元,用于基于预先建立的原始波形和第一音频信号的关系,从所述超声波信号中提取出所述第一音频信号,以及获取所述音频信号的实际波形和所述原始波形的差值波形,将所述差值波形作为所述第二音频信号;An audio signal acquiring unit, configured to extract the first audio signal from the ultrasonic signal based on the relationship between the original waveform and the first audio signal established in advance, and acquire the actual waveform and the original waveform of the audio signal The difference waveform of , using the difference waveform as the second audio signal;
幅相差获取单元,用于获取所述第一音频信号和所述第二音频信号的幅值差和相位差;所述幅值差用于表示耳部耳道对第一音频信号的幅值衰减程度,所述相位差用于表示耳部中耳膜深度对所述第一音频信号的延时程度。an amplitude difference acquiring unit, configured to acquire the amplitude difference and phase difference of the first audio signal and the second audio signal; the amplitude difference is used to represent the amplitude attenuation of the first audio signal by the ear canal degree, the phase difference is used to represent the degree of delay of the first audio signal by the depth of the eardrum in the ear.
可选地,所述音频等级获取模块包括:Optionally, the audio level acquisition module includes:
幅相阈值获取单元,用于获取预设的幅值差阈值和预设的相位差阈值;an amplitude-phase threshold acquisition unit, configured to acquire a preset amplitude difference threshold and a preset phase difference threshold;
对比结果获取单元,用于对比所述幅值差和所述幅值差阈值以及所述相位差和所述相位差阈值,分别获得第一对比结果和第二对比结果;a comparison result obtaining unit, configured to compare the amplitude difference with the amplitude difference threshold and the phase difference with the phase difference threshold, to obtain a first comparison result and a second comparison result respectively;
音频等级确定单元,用于根据所述第一对比结果和所述第二对比结果获得佩戴所述耳机的耳部的音频等级。An audio level determination unit, configured to obtain the audio level of the ear wearing the earphone according to the first comparison result and the second comparison result.
可选地,所述音频等级确定单元包括:Optionally, the audio level determination unit includes:
第一确定单元,用于在所述第一对比结果表示所述幅值差大于所述幅值差阈值且所述第二对比结果表示所述相位差大于所述相位差阈值时,确定所述音频等级为第一等级;或者,a first determining unit, configured to determine the The audio level is Level 1; or,
第二确定单元,用于在所述第一对比结果表示所述幅值差大于所述幅值差阈值且所述第二对比结果表示所述相位差小于所述相位差阈值,或者,所述第一对比结果表示所述幅值差小于所述幅值差阈值且所述第二对比结果表示所述相位差大于所述相位差阈值时,确定所述音频等级为第二等级;或者,a second determining unit, configured to: when the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is smaller than the phase difference threshold, or, the When the first comparison result indicates that the amplitude difference is less than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold, the audio level is determined to be the second level; or,
第三确定单元,用于在所述第一对比结果表示所述幅值差小于所述幅值差阈值且所述第二对比结果表示所述相位差小于所述相位差阈值时,确定所述音频等级为第三等级。a third determining unit, configured to determine the The audio level is the third level.
可选地,所述音频参数调整模块包括:Optionally, the audio parameter adjustment module includes:
控制信号发送单元,用于在所述音频等级为第一等级时,向所述耳机发送控制信号,所述耳机响应于所述控制信号调整所述耳机的腔体结构,以使之后获取的音频等级从第一等级变为第二等级。a control signal sending unit, configured to send a control signal to the earphone when the audio level is the first level, and the earphone adjusts the cavity structure of the earphone in response to the control signal, so that the audio frequency acquired later The level changes from the first level to the second level.
可选地,所述音频参数调整模块包括:Optionally, the audio parameter adjustment module includes:
参数调整单元,用于在所述音频等级为第二等级时,调整频率响应特性,以对所述扬声器所发出的声波进行幅值调整和频率均衡,直至之后获取的音频等级从第二等级变为第三等级,所述第三等级即是目标等级。The parameter adjustment unit is used to adjust the frequency response characteristics when the audio level is the second level, so as to perform amplitude adjustment and frequency equalization on the sound waves emitted by the speaker, until the audio level obtained after that changes from the second level to the second level. is the third level, and the third level is the target level.
可选地,基于所述音频等级调整所述耳机的音频参数,直至之后获取的音频等级变为目标等级,包括:Optionally, adjusting the audio parameters of the headset based on the audio level, until the audio level acquired thereafter becomes the target level, including:
历史列表获取单元,用于获取使用所述耳机的历史用户列表;所述历史用户列表包括耳部对应的幅值差、相位差、音频等级和目标等级对应的音频参数;A history list obtaining unit, used for obtaining the history user list using the headset; the history user list includes the corresponding amplitude difference, phase difference, audio level and audio parameters corresponding to the target level of the ear;
音频参数获取单元,用于根据所述音频等级、所述幅值差和所述相位差获取目标等级和对应的音频参数;an audio parameter acquiring unit, configured to acquire a target level and corresponding audio parameters according to the audio level, the amplitude difference and the phase difference;
音频参数调整单元,用于将所述耳机的音频参数调整至所述目标等级对应的音频参数,以使之后获取的音频等级变为目标等级。The audio parameter adjustment unit is configured to adjust the audio parameter of the earphone to the audio parameter corresponding to the target level, so that the audio level obtained later becomes the target level.
可选地,所述装置还包括获取模块,所述获取模块用于在所述第二音频信号的幅度小于预设的幅度阈值,确定无需调整所述耳机的音频参数,并向所述音频信号获取模块发送触发信号;以及在所述第二音频信号的幅度大于所述预设的幅度阈值时,向所述幅相差获取模块发送触发信号。Optionally, the device further includes an acquisition module, which is configured to determine that the audio parameters of the earphone do not need to be adjusted when the amplitude of the second audio signal is less than a preset amplitude threshold, and send the audio signal to the audio signal. The acquisition module sends a trigger signal; and when the amplitude of the second audio signal is greater than the preset amplitude threshold, sends a trigger signal to the amplitude difference acquisition module.
根据本公开实施例的第三方面,提供一种电子设备,包括处理器、音频模组、叠加电路和超声波发射器;所述处理器分别与所述叠加电路、所述超声波发射器和所述音频模组电连接;所述音频模组和所述叠加电路电连接;According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, including a processor, an audio module, a superimposition circuit, and an ultrasonic transmitter; the processor is respectively connected with the superposition circuit, the ultrasonic transmitter, and the ultrasonic transmitter. The audio module is electrically connected; the audio module and the superimposed circuit are electrically connected;
所述处理器用于在耳机与所述电子设备配对后使能所述超声波发射器,以使所述超声波发射器所发出的超声波驱动信号通过所述叠加电路发送给耳机;The processor is configured to enable the ultrasonic transmitter after the earphone is paired with the electronic device, so that the ultrasonic driving signal sent by the ultrasonic transmitter is sent to the earphone through the superposition circuit;
所述音频模组用于响应于所述处理器的使能信号向所述叠加电路输出音频数据;The audio module is configured to output audio data to the superimposing circuit in response to an enable signal of the processor;
所述叠加电路用于对所述超声波驱动信号和所述音频数据进行叠加,输出混合信号。The superposition circuit is used for superimposing the ultrasonic driving signal and the audio data to output a mixed signal.
根据本公开实施例的第四方面,提供一种耳机,包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided an earphone, comprising:
扬声器,所述扬声器用于发出超声波和声波;a loudspeaker for emitting ultrasonic waves and sound waves;
设置在所述耳机的腔体内的可移动器件;所述可移动器件用于调整所述腔体的大小;A movable device arranged in the cavity of the earphone; the movable device is used to adjust the size of the cavity;
分别设置在各声道的超声波接收器;所述超声波接收器用于获取本声道的原始音频信号输出给电子设备,所述原始音频信号包括超声波信号和声音信号;The ultrasonic receivers are respectively arranged in each channel; the ultrasonic receiver is used to obtain the original audio signal of the channel and output it to the electronic device, and the original audio signal includes the ultrasonic signal and the sound signal;
与所述可移动器件电连接的处理器;所述处理器用于响应于来自电子设备的控制信号来调整所述耳机的腔体结构,以使之后获取的音频等级从第一等级变为第二等级。A processor electrically connected to the movable device; the processor is used to adjust the cavity structure of the earphone in response to a control signal from the electronic device, so that the audio level acquired later changes from the first level to the second level grade.
根据本公开实施例的第五方面,提供一种可读存储介质,其上存储有可执行指令,该可执行指令被处理器执行时实现第一方面任一项所述方法的步骤。According to a fifth aspect of the embodiments of the present disclosure, there is provided a readable storage medium on which executable instructions are stored, and when the executable instructions are executed by a processor, implement the steps of any one of the methods in the first aspect.
本公开的实施例提供的技术方案可以包括以下有益效果:The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects:
由上述实施例可知,本公开实施例中通过滤除原始音频信号中的声音信号,可以得到超声波信号;所述超声波信号包括未经反射的第一音频信号和经过反射后的第二音频信号;然后,获取第一音频信号和第二音频信号两者的幅值差和相位差;之后,基于所述幅值差和相位差可以获取耳机所在耳部对应的音频等级;最后,在音频等级为目标等级之外的等级时,基于音频等级调整耳机的音频参数,直至之后获取的音频等级变为目标等级。本实施例中通过调整耳机的音频参数,可以使该耳机所发出声音的幅值和相位与耳部相匹配,达到耳部的音频等级与目标等级相匹配的效果,即相同音频对于不同用户具有相同的收听效果,可以提升用户体验。并且,本实施例中,可以在用户收听音频时同步调整耳机的音频参数,不影响用户使用,可以进一步提升用户体验。It can be known from the above embodiments that in the embodiments of the present disclosure, an ultrasonic signal can be obtained by filtering out the sound signal in the original audio signal; the ultrasonic signal includes an unreflected first audio signal and a reflected second audio signal; Then, the amplitude difference and phase difference of the first audio signal and the second audio signal are obtained; then, the audio level corresponding to the ear where the earphone is located can be obtained based on the amplitude difference and the phase difference; finally, the audio level is At a level other than the target level, the audio parameters of the headset are adjusted based on the audio level until the acquired audio level becomes the target level. In this embodiment, by adjusting the audio parameters of the earphone, the amplitude and phase of the sound emitted by the earphone can be matched with the ear, so as to achieve the effect that the audio level of the ear matches the target level, that is, the same audio can be used for different users. The same listening effect can improve the user experience. Moreover, in this embodiment, the audio parameters of the earphone can be adjusted synchronously when the user listens to the audio, which does not affect the use of the user, and can further improve the user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.
图1是根据一示例性实施例示出的一种应用场景示意图。FIG. 1 is a schematic diagram illustrating an application scenario according to an exemplary embodiment.
图2是根据一示例性实施例示出的电子设备和耳机的结构构图。FIG. 2 is a structural diagram of an electronic device and an earphone according to an exemplary embodiment.
图3是根据一示例性实施例示出的一种调整耳机音频参数的方法的流程图。Fig. 3 is a flow chart of a method for adjusting audio parameters of an earphone according to an exemplary embodiment.
图4是根据一示例性实施例示出的获取幅值差和相位差的流程图。Fig. 4 is a flow chart showing the acquisition of the amplitude difference and the phase difference according to an exemplary embodiment.
图5是根据一示例性实施例示出的获取音频等级的流程图。Fig. 5 is a flow chart of acquiring audio level according to an exemplary embodiment.
图6是根据一示例性实施例示出的一种音频调整的流程图。Fig. 6 is a flowchart showing an audio adjustment according to an exemplary embodiment.
图7是根据一示例性实施例示出的另一种音频调整的流程图。FIG. 7 is a flowchart illustrating another audio adjustment according to an exemplary embodiment.
图8是根据一示例性实施例示出的调整音频参数的流程图。FIG. 8 is a flow chart illustrating adjusting audio parameters according to an exemplary embodiment.
图9~图14是根据一示例性实施例示出的一种调整耳机音频参数的装置的框图。9 to 14 are block diagrams of an apparatus for adjusting audio parameters of an earphone according to an exemplary embodiment.
图15是根据一示例性实施例示出的一种电子设备的框图。Fig. 15 is a block diagram of an electronic device according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置例子。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure. Rather, they are merely examples of apparatuses consistent with some aspects of the present disclosure, as recited in the appended claims.
目前,很多用户喜欢在公共场合或者运动的时候佩带耳机,使用耳机听音乐或者通话。通常情况下,耳机的配置是固定的,即对于每个用户而言,同一型号的耳机的配置参数是相同。然而,每个用户的耳部是有差异的,对于相同的音频具有不同的听觉感受,例如,有的用户听起来刚好,有的用户会觉得声音大,有的用户会觉得声音小,从而降低用户体验。At present, many users like to wear headphones in public places or when exercising, and use the headphones to listen to music or make calls. Usually, the configuration of the earphones is fixed, that is, for each user, the configuration parameters of the earphones of the same model are the same. However, each user's ears are different, and they have different hearing experience for the same audio. For example, some users sound just right, some users think the sound is loud, and some users think the sound is small, thus reducing the sound. user experience.
为解决上述技术问题,本公开实施例提供了一种调整耳机音频参数的方法,参见图1,其发明构思在于,通过在耳机10上设置超声波接收器12,在耳机佩戴到耳部后,利用该回声接收装置12可以接收耳机内扬声器11所发出的超声波111和经过耳部耳道和/或耳膜后反射后的超声波112,以及声波信号,得到原始音频信号。电子设备中音频模组可以获取上述原始音频信号,过滤该原始音频信号中的声音信号可以得到超声波信号。然后从超声波信号分离出第一音频信号和第二音频信号,并获取第一音频信号和第二音频信号的幅值差和相位差;并根据幅值差和相位差可以确定出耳机所在耳部对应的音频等级。最后,音频模组可以基于音频等级来调整耳机的音频参数,使之后获取的音频等级调整至目标等级。本实施例中通过调整耳机的音频参数,可以使该耳机所发出声音的幅值和相位与耳部相匹配,达到耳部的音频等级与目标等级相匹配的效果,即相同音频对于不同用户具有相同的收听效果,可以提升用户体验。并且,本实施例中,可以在用户收听音频时同步调整耳机的音频参数,不影响用户使用,可以进一步提升用户体验。In order to solve the above technical problems, an embodiment of the present disclosure provides a method for adjusting the audio parameters of an earphone. Referring to FIG. 1 , the inventive concept is that by setting the
需要说明的是,为了更好的接收超声波信号,继续参见图1,本实施例中,超声波接收器12可以设置在耳机10发出超声波的一侧,从而可以更好的接收到未经反射的超声波和经过反射的超声波。It should be noted that, in order to better receive ultrasonic signals, continue referring to FIG. 1 , in this embodiment, the
需要说明的是,耳机可以包括以下至少一种:有线耳机、无线耳机,或者数字耳机、模拟耳机,头戴式耳机或者耳塞式耳机、或者他们的组合,技术人员可以根据具体场景进行选择,在此不作限定。本公开各实施例中均为耳塞式耳机为例描述其方案。It should be noted that the earphones may include at least one of the following: wired earphones, wireless earphones, or digital earphones, analog earphones, headphone or earbud earphones, or a combination thereof. This is not limited. In each embodiment of the present disclosure, earphone type earphones are used as an example to describe their solutions.
为实现上述发明构思,本公开一实施例中对电子设备和耳机分别做相应的改进。参见图2,其中:In order to realize the above-mentioned inventive concept, corresponding improvements are made to the electronic device and the earphone in an embodiment of the present disclosure. See Figure 2, where:
针对耳机,该耳机的各声道内设置有扬声器、超声波接收器和可移动器件;For the earphone, each channel of the earphone is provided with a speaker, an ultrasonic receiver and a movable device;
在耳机与电子设备配对后,其中配对可以理解为无线连接或者有线连接,即建立音频数据传输通道。该超声波接收器可以与电子设备内的音频模组电连接,用于感测来自扬声器的超声波和经过耳部耳道和耳膜反射后的超声波,以及来自扬声器播放音频数据的声音,并将超声波和声音转换成电信号形式的原始音频信号,输出给电子设备内的音频模组。After the headset is paired with the electronic device, the pairing can be understood as a wireless connection or a wired connection, that is, establishing an audio data transmission channel. The ultrasonic receiver can be electrically connected with the audio module in the electronic device, and is used to sense the ultrasonic wave from the speaker and the ultrasonic wave reflected by the ear canal and the eardrum, as well as the sound from the speaker playing audio data, and combine the ultrasonic wave with the eardrum. The sound is converted into an original audio signal in the form of an electrical signal and output to the audio module in the electronic device.
可移动器件可以与电子设备内的音频模组通路电连接,用于响应于音频模组的控制指令来对耳机的腔体结构进行调整,达到调整音频等级的效果。扬声器可以与音频模组通路和超声波发射器通道电连接,同时发出超声波和播放音频。The movable device can be electrically connected with the audio module channel in the electronic device, and is used to adjust the cavity structure of the earphone in response to the control command of the audio module, so as to achieve the effect of adjusting the audio level. The speaker can be electrically connected with the audio module channel and the ultrasonic transmitter channel to emit ultrasonic waves and play audio at the same time.
针对电子设备,该电子设备内设置有音频模组、叠加电路和超声波发射器。其中,处理器分别与叠加电路、超声波发射器和音频模组电连接;音频模组和叠加电路电连接;处理器用于在耳机与电子设备配对后使能超声波发射器,以使超声波发射器所发出的超声波驱动信号发送到叠加电路;音频模组用于响应于处理器的使能信号向叠加电路输出音频数据;叠加电路用于对超声波驱动信号和所述音频数据进行叠加,并将叠加后的超声波驱动信号和音频数据发送给耳机。另外,音频模组可以获取耳机发送的原始音频信号,作为调整耳机音频参数的处理器来使用,即音频模组可以从存储介质内读取可执行指令来执行一种调整耳机音频参数的方法的步骤。For electronic equipment, the electronic equipment is provided with an audio module, a superposition circuit and an ultrasonic transmitter. The processor is electrically connected with the superposition circuit, the ultrasonic transmitter and the audio module respectively; the audio module and the superposition circuit are electrically connected; the processor is used to enable the ultrasonic transmitter after the earphone is paired with the electronic device, so that the ultrasonic transmitter The sent ultrasonic drive signal is sent to the superposition circuit; the audio module is used to output audio data to the superposition circuit in response to the enable signal of the processor; the superposition circuit is used to superimpose the ultrasonic drive signal and the audio data, and the superimposed The ultrasonic drive signal and audio data are sent to the headset. In addition, the audio module can obtain the original audio signal sent by the earphone and use it as a processor for adjusting the audio parameters of the earphone, that is, the audio module can read executable instructions from the storage medium to execute a method of adjusting the audio parameters of the earphone. step.
图2所示结构适用于头戴式的耳机或者耳塞式的耳机,尤其适用于耳塞式的耳机,可以减少耳机的体积,降低其生产成本。需要说明的是,实际应用中,当耳机为头戴式耳机时,该耳机内还可以设置有音频模组、叠加电路和超声波发射器,同样可以实现本公开实施例的方案。后续各实施例均以图2所示的结构来描述。The structure shown in FIG. 2 is suitable for headphone type or earplug type headphone, especially suitable for earplug type headphone, which can reduce the volume of the headphone and its production cost. It should be noted that, in practical applications, when the earphone is a headphone, an audio module, a superimposing circuit and an ultrasonic transmitter may also be provided in the earphone, which can also implement the solutions of the embodiments of the present disclosure. Subsequent embodiments are described with the structure shown in FIG. 2 .
下面结合一实施例对本实施例提供的一种调整耳机音频参数的方法作进一步说明。A method for adjusting audio parameters of an earphone provided in this embodiment will be further described below with reference to an embodiment.
图3是根据一示例性实施例示出的一种调整耳机音频参数的方法的流程图,参见图3,一种调整耳机音频参数的方法,适应于电子设备,包括步骤301~步骤305,其中:FIG. 3 is a flow chart of a method for adjusting audio parameters of headphones according to an exemplary embodiment. Referring to FIG. 3, a method for adjusting audio parameters of headphones, suitable for electronic equipment, includes steps 301 to 305, wherein:
在步骤301中,获取原始音频信号;所述原始音频信号包括超声波信号和声音信号。In step 301, an original audio signal is obtained; the original audio signal includes an ultrasonic signal and a sound signal.
本实施例中,继续参见图2,用户可以将耳机与电子设备进行配对,使耳机与电子设备建立通信链接,例如蓝牙、WIFI等,在此不作限定。在配对后,电子设备中处理器使能超声波发射器,这样超声波发射器、叠加电路会形成一个超声波输出通路,将超声波发射器输出的超声波驱动信号输出给耳机。耳机内扬声器可以根据该超声波驱动信号发出超声波并向周围辐射。同理,处理器使能音频模组,音频模组和叠加电路会形成一个音频数据输出通路,以将音频数据驱动信号输出给耳机。耳机内扬声器可以根据该音频数据驱动信号发出声音并向周围辐射。In this embodiment, continuing to refer to FIG. 2 , the user can pair the headset with the electronic device to establish a communication link between the headset and the electronic device, such as Bluetooth, WIFI, etc., which is not limited here. After pairing, the processor in the electronic device enables the ultrasonic transmitter, so that the ultrasonic transmitter and the superposition circuit will form an ultrasonic output channel, and output the ultrasonic driving signal output by the ultrasonic transmitter to the earphone. The speaker in the earphone can emit ultrasonic waves and radiate to the surroundings according to the ultrasonic driving signal. Similarly, when the processor enables the audio module, the audio module and the superimposing circuit will form an audio data output path to output the audio data driving signal to the earphone. The speaker in the earphone can drive the signal according to the audio data to emit sound and radiate to the surroundings.
需要说明的是,上述实施例中,对于超声波和声音分开描述,实际应用中,叠加电路中可以设置一个加法器,由该加法器对超声波驱动信号和音频数据驱动信号进行相加,从而得到混合信号。加法器的具体实现形式可以参考相关技术,在此不再赘述。当然技术人员还可以选择具有混合两路音频信号的方案来实现叠加电路的功能,相应方案落入本公开的保护范围。It should be noted that, in the above-mentioned embodiments, ultrasonic waves and sound are described separately. In practical applications, an adder can be set in the superposition circuit, and the adder adds the ultrasonic wave drive signal and the audio data drive signal to obtain a mixed Signal. For the specific implementation form of the adder, reference may be made to the related art, which will not be repeated here. Of course, the skilled person can also choose a solution of mixing two audio signals to realize the function of the superimposing circuit, and the corresponding solution falls within the protection scope of the present disclosure.
用户将耳机佩戴至耳部后,超声波中的一部分直接进入超声波接收器(即未经反射),另一部分传播到耳机中,经过耳道和耳膜的反射后再进入超声波接收器(即经反射)。超声波接收器对接收到的超声波信号进行机械能和电能转换,可以得到电信号形式的超声波音频信号。可理解的是,经过转换后的超声波音频信号可以包括未经反射的第一音频信号和经过反射后的第二音频信号。可理解的是,对于声音信号的传播路径可以参考超声波的传播路径,在此不再赘述。After the user wears the earphone to the ear, part of the ultrasonic wave directly enters the ultrasonic receiver (that is, without reflection), and the other part propagates into the earphone, and then enters the ultrasonic receiver after the reflection of the ear canal and eardrum (that is, after reflection). . The ultrasonic receiver converts the received ultrasonic signals into mechanical energy and electrical energy, and can obtain ultrasonic audio signals in the form of electrical signals. It can be understood that the converted ultrasonic audio signal may include the unreflected first audio signal and the reflected second audio signal. It is understandable that, for the propagation path of the sound signal, reference may be made to the propagation path of the ultrasonic wave, which will not be repeated here.
最终,耳机中超声波接收器可以感测到超声波和声音,经过机械能电能转换可以得到原始音频信号。Finally, the ultrasonic receiver in the earphone can sense the ultrasonic wave and sound, and the original audio signal can be obtained through the conversion of mechanical energy and electric energy.
在步骤302中,滤除所述原始音频信号中的声音信号,得到所述超声波信号;所述超声波信号包括未经反射的第一音频信号和经过反射后的第二音频信号。In
本实施例中,根据声音信号和超声波信号的频率,音频模组可以利用预先设置的滤波器滤除原始音频信号中的声音信号,得到超声波信号。其中,滤波器可以相关技术中的高通滤波器或者带通滤波器,在能够选择出超声波信号的情况下,各方案落入本公开的保护范围。In this embodiment, according to the frequencies of the sound signal and the ultrasonic signal, the audio module can use a preset filter to filter out the sound signal in the original audio signal to obtain the ultrasonic signal. Wherein, the filter may be a high-pass filter or a band-pass filter in the related art, and in the case that an ultrasonic signal can be selected, each solution falls within the protection scope of the present disclosure.
在步骤303中,获取所述第一音频信号和所述第二音频信号两者的幅值差和相位差。In step 303, the amplitude difference and the phase difference between the first audio signal and the second audio signal are acquired.
参见图4,音频模组可以获取耳机所播放超声波数据的原始波形(对应步骤401)。考虑到超声波的原始波形到第一音频信号可能存在一定的衰减,因此,可以预先建立原始波形和第一音频信号两者波形之间的关系,从而得到原始波形的衰减幅度和延时,这样,音频模组在已知原始波形的情况下,可以直接得到第一音频信号的波形。然后,音频模组可以根据超声波音频信号获得实际波形,并可以从实际波形中直接提取出第一音频信号,然后将实际波形减去第一音频信号的波形即可得到第二音频信号的波形(对应步骤402)。Referring to FIG. 4 , the audio module can obtain the original waveform of the ultrasonic data played by the earphone (corresponding to step 401 ). Considering that there may be a certain attenuation between the original waveform of the ultrasonic wave and the first audio signal, the relationship between the original waveform and the first audio signal can be pre-established to obtain the attenuation amplitude and delay of the original waveform. In this way, The audio module can directly obtain the waveform of the first audio signal when the original waveform is known. Then, the audio module can obtain the actual waveform according to the ultrasonic audio signal, and can directly extract the first audio signal from the actual waveform, and then subtract the waveform of the first audio signal from the actual waveform to obtain the waveform of the second audio signal ( Corresponding to step 402).
需要说明的是,对音频信号的处理过程还可以参考其他相关技术,在能够分离出第一音频信号和第二音频信号的情况下,相应方案落入本公开的保护范围。It should be noted that other related technologies may also be referred to for the audio signal processing process, and in the case where the first audio signal and the second audio signal can be separated, the corresponding solution falls within the protection scope of the present disclosure.
继续参见图4,音频模组可以获取到第一音频信号和第二音频信号两者的幅值差和相位差(对应步骤403)。其中,幅值差用于表示耳部耳道对第一音频信号的幅值衰减程度,相位差用于表示耳膜深度对第一音频信号的延时程度。例如,第一音频信号为Asin(wt+a),第二音频信号为Bsin(wt+b),则幅度差可以为-20log(B/A),相位差可以为b-a。Continuing to refer to FIG. 4 , the audio module can obtain the amplitude difference and the phase difference between the first audio signal and the second audio signal (corresponding to step 403 ). Wherein, the amplitude difference is used to represent the amplitude attenuation degree of the ear canal to the first audio signal, and the phase difference is used to represent the delay degree of the eardrum depth to the first audio signal. For example, if the first audio signal is Asin(wt+a) and the second audio signal is Bsin(wt+b), the amplitude difference may be -20log(B/A), and the phase difference may be b-a.
需要说明的是,在一实施例中,音频模组可以判断第二音频信号的幅度,对比该幅度与预设的幅度阈值(可调整),在幅度小于幅度阈值时,说明超声波接收器未接收到反射后的超声波,此时确定无需调整耳机的音频参数。在幅度大于幅度阈值时,可以继续执行步骤303,这样可以获取用户是否佩戴耳机,在用户佩戴耳机后再进行音频参数调整,可以减少计算量。It should be noted that, in one embodiment, the audio module can determine the amplitude of the second audio signal, compare the amplitude with a preset amplitude threshold (adjustable), and when the amplitude is less than the amplitude threshold, it means that the ultrasonic receiver has not received the signal. To the reflected ultrasonic waves, it is determined that there is no need to adjust the audio parameters of the headset. When the amplitude is greater than the amplitude threshold, step 303 can be continued to obtain whether the user wears the earphone, and the audio parameter adjustment is performed after the user wears the earphone, which can reduce the amount of calculation.
在步骤304中,基于所述幅值差和相位差获取所述耳机所在耳部对应的音频等级。In step 304, the audio level corresponding to the ear where the earphone is located is acquired based on the amplitude difference and the phase difference.
本实施例中,音频模组可以根据幅值差和相位差获取耳机所在耳部对应的音频等级,参见图5,音频模组可以获取预设的幅值差阈值和预设的相位差阈值(对应步骤501)。其中,幅值差阈值和相位差阈值可以采用大数据方式统计得到,如幅值差阈值可以是一个比例值20%,相位差可以为5~10度。当然,还可以采用大量试验的方式,来确认幅值差和/或相位差改变量是多少时耳部可以感觉出接收效果变差,将刚感受到接收效果变差时对应的幅值差和相位差分别作为幅值差阈值和相位差阈值。技术人员可以根据具体场景设置幅值差阈值和相位差阈值,相应方案落入本公开的保护范围。In this embodiment, the audio module can obtain the audio level corresponding to the ear where the earphone is located according to the amplitude difference and the phase difference. Referring to FIG. 5 , the audio module can obtain a preset amplitude difference threshold and a preset phase difference threshold ( Corresponding to step 501). Among them, the amplitude difference threshold and the phase difference threshold can be obtained by statistics using big data. For example, the amplitude difference threshold can be a proportional value of 20%, and the phase difference can be 5-10 degrees. Of course, a large number of experiments can also be used to confirm how much the amplitude difference and/or the phase difference change is when the ear can feel that the receiving effect is getting worse. The phase difference is used as the amplitude difference threshold and the phase difference threshold, respectively. A technical person can set the amplitude difference threshold and the phase difference threshold according to specific scenarios, and corresponding solutions fall within the protection scope of the present disclosure.
继续参见图5,音频模组可以对比幅值差和幅值差阈值以及相位差和相位差阈值,分别获得第一对比结果和第二对比结果(对应步骤502)。其中,第一对比结果包括幅值差大于幅值差阈值,或者幅值差小于幅值差阈值;第二对比结果包括相位差小于相位差阈值,或者相位差大于相位差阈值。Continuing to refer to FIG. 5 , the audio module can compare the amplitude difference with the amplitude difference threshold and the phase difference with the phase difference threshold to obtain the first comparison result and the second comparison result (corresponding to step 502 ). The first comparison result includes that the amplitude difference is greater than the amplitude difference threshold, or the amplitude difference is smaller than the amplitude difference threshold; the second comparison result includes that the phase difference is smaller than the phase difference threshold, or the phase difference is greater than the phase difference threshold.
继续参见图5,音频模组可以根据所述第一对比结果和所述第二对比结果获得佩戴所述耳机的耳部的音频等级(对应步骤503),可以包括:Continue to refer to FIG. 5, the audio module can obtain the audio level of the ear wearing the earphone according to the first comparison result and the second comparison result (corresponding to step 503), which may include:
在第一对比结果表示幅值差大于幅值差阈值且第二对比结果表示相位差大于相位差阈值时,确定音频等级为第一等级。When the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold, the audio level is determined to be the first level.
在第一对比结果表示幅值差大于幅值差阈值且第二对比结果表示相位差小于相位差阈值时,确定所述音频等级为第二等级。When the first comparison result indicates that the amplitude difference is greater than the amplitude difference threshold and the second comparison result indicates that the phase difference is smaller than the phase difference threshold, the audio level is determined to be the second level.
在第一对比结果表示幅值差小于幅值差阈值且第二对比结果表示相位差大于相位差阈值时,确定音频等级为第二等级。When the first comparison result indicates that the amplitude difference is smaller than the amplitude difference threshold and the second comparison result indicates that the phase difference is greater than the phase difference threshold, the audio level is determined to be the second level.
在第一对比结果表示幅值差小于幅值差阈值且第二对比结果表示相位差小于相位差阈值时,确定音频等级为第三等级。When the first comparison result indicates that the amplitude difference is smaller than the amplitude difference threshold and the second comparison result indicates that the phase difference is smaller than the phase difference threshold, the audio level is determined to be the third level.
需要说明的是,上述实施例仅示例了音频等级有3个等级的情况,技术人员可以根据具体场景增加相应的等级,此时可以增加幅值差阈值和相位差阈值的个数,例如幅值差阈值和相位差阈值分别为2个时,则音频等级可以增加到9个。相应方案落入本公开的保护范围。It should be noted that the above embodiment only exemplifies the case where the audio level has three levels, and the technician can increase the corresponding level according to the specific scene. At this time, the number of the amplitude difference threshold and the phase difference threshold can be increased, such as the amplitude When the difference threshold and phase difference threshold are respectively 2, the audio level can be increased to 9. Corresponding solutions fall within the protection scope of the present disclosure.
在步骤305中,在所述音频等级为目标等级之外的等级时,基于所述音频等级调整所述耳机的音频参数,直至之后获取的音频等级变为目标等级。In
本实施例中,可以将第三等级作为目标等级,音频模组判断当前的音频等级是否是第三等级,在当前的音频等级是第三等级时,音频模组可以不调整耳机的音频参数,返回步骤301;在当前的音频等级是第三等级之外的等级时,如第一等级或者第二等级,音频模组确定对耳机的音频等级进行调整。In this embodiment, the third level may be used as the target level, and the audio module determines whether the current audio level is the third level. When the current audio level is the third level, the audio module may not adjust the audio parameters of the headset, Return to step 301; when the current audio level is a level other than the third level, such as the first level or the second level, the audio module determines to adjust the audio level of the earphone.
参见图6,在音频等级为第一等级时,向耳机发送控制信号(对应步骤601)。耳机在接收到控制信号后,可以响应于控制信号调整耳机的腔体结构,以使之后获取的音频等级从第一等级变为第二等级。Referring to FIG. 6, when the audio level is the first level, a control signal is sent to the earphone (corresponding to step 601). After receiving the control signal, the earphone can adjust the cavity structure of the earphone in response to the control signal, so that the audio level acquired later changes from the first level to the second level.
例如,音频模组在耳部对应的音频等级为第一等级时,持续向耳机发送控制信号,这样耳机在接收到一次控制信号后调整耳机的腔体结构,直至音频模组在确定音频等级为第二等级后再停止发送控制信号。其中,耳机调整腔体结构可以包括,根据控制信号控制预设的移动长度移动耳机内的可移动器件到目标位置,可移动器件至目标位置后会增大或者减小腔体的空间。其中目标位置可以为可移动器件移动一次后到达的位置或者最终应该到达的位置,可根据具体场景进行设置,在此不作限定。For example, when the audio level corresponding to the ear is the first level, the audio module continues to send a control signal to the earphone, so that the earphone adjusts the cavity structure of the earphone after receiving a control signal until the audio module determines that the audio level is Stop sending control signals after the second level. Wherein, adjusting the cavity structure of the earphone may include controlling a preset moving length to move the movable device in the earphone to the target position according to the control signal, and after the movable device reaches the target position, the space of the cavity will be increased or decreased. The target position may be the position reached after the movable device moves once or the position that should be finally reached, which may be set according to specific scenarios, which is not limited here.
又如,音频模组在确定音频等级为第一等级时,向耳机发送控制信号,耳机可以在接收到控制信号后,按照预设长度移动可移动器件来调整耳机的腔体结构,而音频模组再获取音频等级,直至音频模组确定音频等级为第二等级后再向耳机发送一次控制信号,此时耳机调整腔体结构停止。For another example, when the audio module determines that the audio level is the first level, it sends a control signal to the earphone. After receiving the control signal, the earphone can move the movable device according to the preset length to adjust the cavity structure of the earphone, while the audio module can adjust the cavity structure of the earphone. The group obtains the audio level again, until the audio module determines that the audio level is the second level, and then sends a control signal to the earphone once, at which time the earphone stops adjusting the cavity structure.
需要说明的是,当(耳机被佩戴后)可移动器件靠近耳膜移动时,耳机的腔体结构变小,此情况下,输出超声波的高频效果会变好,适应于对超声波中高频成分不敏感的耳部,例如耳膜浅引起的耳道短的场景。当可移动器件远离耳膜移动时,耳机的腔体结构变大,输出超声波的低频效果会变好,适用于对超声波中低频成分不敏感的耳部,例如耳膜深引起的耳道长的场景。It should be noted that when the movable device moves close to the eardrum (after the earphone is worn), the cavity structure of the earphone becomes smaller. In this case, the high-frequency effect of the output ultrasonic wave will become better, which is suitable for the high-frequency components in the ultrasonic wave. Sensitive ears, such as short ear canals due to shallow eardrums. When the movable device moves away from the eardrum, the cavity structure of the earphone becomes larger, and the low-frequency effect of the output ultrasonic wave becomes better.
继续参见图6,在音频等级为第二等级时,音频模组可以调整扬声器的频率响应特性,以对扬声器所发出的声波进行幅值调整和频率均衡,直至之后获取的音频等级从第二等级变为第三等级,所述第三等级即是目标等级(对应步骤602)。例如,音频模组在音频等级为第二等级中,调整扬声器驱动(即音频模组自身)的音频参数,调整方式可以为EQ(Equaliser)和DRC(Dynamic Range Control),从而可以调整扬声器输出声波的波形,然后再重复步骤301~步骤304,得到之后获取的音频等级。若之后获取的音频等级仍为第二等级,则继续调整音频参数,直至之后获取的音频等级变为第三等级时停止调整耳机的音频参数。Continue to refer to FIG. 6 , when the audio level is the second level, the audio module can adjust the frequency response characteristics of the speaker to perform amplitude adjustment and frequency equalization on the sound waves emitted by the speaker, until the audio level obtained thereafter is from the second level. It becomes the third level, and the third level is the target level (corresponding to step 602). For example, the audio module adjusts the audio parameters of the speaker driver (that is, the audio module itself) when the audio level is the second level. The adjustment methods can be EQ (Equaliser) and DRC (Dynamic Range Control), so as to adjust the output sound wave of the speaker waveform, and then repeat steps 301 to 304 to obtain the audio level obtained later. If the audio level acquired later is still the second level, the audio parameters are continued to be adjusted, and the audio parameters of the earphone are stopped to be adjusted when the subsequently acquired audio level becomes the third level.
需要说明的是,在音频等级为第一等级时,音频模组需要执行步骤601和步骤602。在音频等级为第二等级时,音频模组需要执行步骤602。在音频等级为第三等级时,音频模组可以确定不调整音频等级。It should be noted that, when the audio level is the first level, the audio module needs to perform
考虑到多个用户共用一个耳机的情况,电子设备内或者耳机内可以存储一个历史用户列表,该历史用户列表可以包括耳部对应的幅值差、相位差、音频等级和目标等级对应的音频参数。在一实施例中,用户佩戴耳机后,参见图7,音频模组可以获取使用该耳机的历史用户列表(对应步骤701)。音频模组可以从本地存储器读取,还可以从耳机内读取,可以根据存储位置来选择,在此不作好定。然后,音频模组可以根据音频等级、幅值差、相位差、音频等级获取目标等级对应的音频参数(对应步骤702)。之后,音频模组可以将耳机的音频参数调整至目标等级对应的音频参数,使之后获取的音频等级变为目标等级(对应步骤703)。这样,本实施例中可以识别出使用过该耳机的用户,通过一次调整即可达到目标等级,可以缩短调节时长,提升用户体验。Considering the situation that multiple users share a headset, a historical user list can be stored in the electronic device or in the headset, and the historical user list can include the corresponding amplitude difference, phase difference, audio level and audio parameters corresponding to the target level. . In one embodiment, after the user wears the earphone, referring to FIG. 7 , the audio module may obtain a list of historical users using the earphone (corresponding to step 701 ). The audio module can be read from the local storage or from the headset, which can be selected according to the storage location, which is not determined here. Then, the audio module may acquire audio parameters corresponding to the target level according to the audio level, amplitude difference, phase difference, and audio level (corresponding to step 702). Afterwards, the audio module may adjust the audio parameters of the earphones to the audio parameters corresponding to the target level, so that the audio level acquired later becomes the target level (corresponding to step 703). In this way, in this embodiment, the user who has used the headset can be identified, and the target level can be achieved through one adjustment, which can shorten the adjustment time and improve the user experience.
至此,本公开实施例中通过获取滤除原始音频信号中的声音信号,可以得到超声波信号;所述超声波信号包括未经反射的第一音频信号和经过反射后的第二音频信号;然后,获取第一音频信号和第二音频信号两者的幅值差和相位差;之后,基于所述幅值差和相位差可以获取耳机所在耳部对应的音频等级;最后,在音频等级为目标等级之外的等级时,基于音频等级调整耳机的音频参数,直至之后获取的音频等级变为目标等级。本实施例中通过调整耳机的音频参数,可以使该耳机所发出声音的幅值和相位与耳部相匹配,达到耳部的音频等级与目标等级相匹配的效果,即相同音频对于不同用户具有相同的收听效果,可以提升用户体验。并且,本实施例中,可以在用户收听音频时同步调整耳机的音频参数,不影响用户使用,可以进一步提升用户体验。So far, in the embodiment of the present disclosure, the ultrasonic signal can be obtained by acquiring and filtering the sound signal in the original audio signal; the ultrasonic signal includes the unreflected first audio signal and the reflected second audio signal; then, obtain The amplitude difference and phase difference between the first audio signal and the second audio signal; then, based on the amplitude difference and phase difference, the audio level corresponding to the ear where the earphone is located can be obtained; finally, when the audio level is between the target level. When the audio level is outside, adjust the audio parameters of the headset based on the audio level, until the acquired audio level becomes the target level. In this embodiment, by adjusting the audio parameters of the earphone, the amplitude and phase of the sound emitted by the earphone can be matched with the ear, so as to achieve the effect that the audio level of the ear matches the target level, that is, the same audio can be used for different users. The same listening effect can improve the user experience. Moreover, in this embodiment, the audio parameters of the earphone can be adjusted synchronously when the user listens to the audio, which does not affect the use of the user, and can further improve the user experience.
下面结合一场景描述上述调整耳机音频参数的方法,参见图8,耳机获取到音频数据后,会控制左声道和右声道发出超声波。针对左声道和右声道执行相同的操作,以左声道为例:The method for adjusting the audio parameters of the earphone is described below with reference to a scenario. Referring to FIG. 8 , after the earphone obtains the audio data, it will control the left channel and the right channel to emit ultrasonic waves. Do the same for the left and right channels, taking the left channel as an example:
1,当用户配对耳机后,电子设备内处理器使能超声波发射器,形成超声波发射器的通路,向叠加电路输出超声波驱动信号。同时,音频模组向叠加电路输出音频数据。叠加电路输出混合信号。1. After the user pairs the headset, the processor in the electronic device enables the ultrasonic transmitter to form a path for the ultrasonic transmitter, and outputs the ultrasonic drive signal to the superposition circuit. At the same time, the audio module outputs audio data to the superimposing circuit. The superposition circuit outputs the mixed signal.
2,扬声器响应于混合信息同时发出超声波和声音,超声波遇到耳道和耳膜后进行面反射。2. The speaker emits ultrasonic waves and sound simultaneously in response to the mixed information, and the ultrasonic waves are surface-reflected after encountering the ear canal and eardrum.
3,左声道的扬声器接收器接收从耳道反射而返回的超声波面发射信号1,以及直接从扬声器传给超声波接收器的超声波信号2,并将超声波信号1、超声波信号2转换成电信号1(即第二音频信号)和电信号2(即第一音频信号)。同时,左声道的扬声器接收器还可以接收从耳道反射而返回的声音信号和直接传给超声波接收器的声音信号。最终,扬声器接收器输出原始音频信号。3. The speaker receiver of the left channel receives the ultrasonic surface emission signal 1 reflected from the ear canal, and the ultrasonic signal 2 directly transmitted from the speaker to the ultrasonic receiver, and converts the ultrasonic signal 1 and ultrasonic signal 2 into electrical signals 1 (ie the second audio signal) and electrical signal 2 (ie the first audio signal). At the same time, the speaker receiver of the left channel can also receive the sound signal reflected from the ear canal and the sound signal directly transmitted to the ultrasonic receiver. Ultimately, the speaker receiver outputs the original audio signal.
4,电子设备中音频模组先滤除原始音频信号中的声音信号,得到超声波信号。然后音频模组获取超声波信号中电信号1和电信号2,音频模组获取电信号1和电信2的幅值差和相位差,从而可以确认耳道长度和耳膜位置,音频等级(A,B,C)。4. The audio module in the electronic equipment first filters out the sound signal in the original audio signal to obtain the ultrasonic signal. Then the audio module obtains the electric signal 1 and electric signal 2 in the ultrasonic signal, and the audio module obtains the amplitude difference and phase difference between the electric signal 1 and the electric signal 2, so that the length of the ear canal and the position of the eardrum can be confirmed, and the audio level (A, B , C).
5,如果音频等级为A,则需要第一级调控,音频模组向耳机发送控制信号。耳机内可移动器件移动以调节腔体结构,使腔体逐渐由小变大,或者由大变小。然后重复1-4的过程,直至音频等级为B。5. If the audio level is A, the first level of regulation is required, and the audio module sends a control signal to the headset. The movable device in the earphone moves to adjust the cavity structure, so that the cavity gradually changes from small to large, or from large to small. Then repeat the process 1-4 until the audio level is B.
6.如果音频等级为B,则音频模组实施第二级调控,即调节EQ和DRC。重复1-4的过程,直至调节等级为C。6. If the audio level is B, the audio module implements the second-level regulation, that is, adjusting the EQ and DRC. Repeat the process 1-4 until the adjustment level is C.
步骤5和6中,调节目标是:让发出的超声波经过耳部的反射后传至音频模组所接受的波形达到预想的理想波形,通过调节EQ和DRC等音频参数来改变波形的形状,直至达到预期。In steps 5 and 6, the adjustment goal is to make the ultrasonic wave transmitted to the audio module after the reflection of the ear reaches the expected ideal waveform, and adjust the audio parameters such as EQ and DRC to change the shape of the waveform until it reaches the desired waveform. meet deadline.
7.如果音频等级为C,则表示频响和用户匹配,完成了调控。7. If the audio level is C, it means that the frequency response matches the user, and the regulation is completed.
本公开实施例还提供了一种调整耳机音频参数的装置,图9是根据一示例性实施例示出的一种调整耳机音频参数的装置的框图。参见图9,一种调整耳机音频参数的装置,包括:An embodiment of the present disclosure further provides an apparatus for adjusting audio parameters of an earphone. FIG. 9 is a block diagram of an apparatus for adjusting audio parameters of an earphone according to an exemplary embodiment. Referring to Fig. 9, an apparatus for adjusting audio parameters of earphones includes:
原始信号获取模块901,用于获取原始音频信号;所述原始音频信号包括超声波信号和声音信号;an original
音频信号获取模块902,用于滤除所述原始音频信号中的声音信号,得到所述超声波信号;所述超声波信号包括未经反射的第一音频信号和经过反射后的第二音频信号;The audio
幅相差获取模块903,用于获取所述第一音频信号和所述第二音频信号两者的幅值差和相位差;an amplitude
音频等级获取模块904,用于基于所述幅值差和相位差获取所述耳机所在耳部对应的音频等级;An audio
音频参数调整模块905,用于在所述音频等级为目标等级之外的等级时,基于所述音频等级调整所述耳机的音频参数,直至之后获取的音频等级变为目标等级。The audio
在一实施例中,参见图10,所述幅相差获取模块902包括:In one embodiment, referring to FIG. 10 , the amplitude
原始波形获取单元1001,用于获取所述耳机所播放超声波数据的原始波形;an original
音频信号获取单元1002,用于基于预先建立的原始波形和第一音频信号的关系,从所述超声波信号中提取出所述第一音频信号,以及获取所述音频信号的实际波形和所述原始波形的差值波形,将所述差值波形作为所述第二音频信号;An audio
幅相差获取单元1003,用于获取所述第一音频信号和所述第二音频信号的幅值差和相位差;所述幅值差用于表示耳部耳道对第一音频信号的幅值衰减程度,所述相位差用于表示耳部中耳膜深度对所述第一音频信号的延时程度。Amplitude
在一实施例中,参见图11,所述音频等级获取模块904包括:In one embodiment, referring to FIG. 11 , the audio
幅相阈值获取单元1101,用于获取预设的幅值差阈值和预设的相位差阈值;Amplitude and phase
对比结果获取单元1102,用于对比所述幅值差和所述幅值差阈值以及所述相位差和所述相位差阈值,分别获得第一对比结果和第二对比结果;a comparison
音频等级确定单元1103,用于根据所述第一对比结果和所述第二对比结果获得佩戴所述耳机的耳部的音频等级。The audio
在一实施例中,参见图12,所述音频等级确定单元1103包括:In one embodiment, referring to FIG. 12 , the audio
第一确定单元1201,用于在所述第一对比结果表示所述幅值差大于所述幅值差阈值且所述第二对比结果表示所述相位差大于所述相位差阈值时,确定所述音频等级为第一等级;或者,A first determining
第二确定单元1202,用于在所述第一对比结果表示所述幅值差大于所述幅值差阈值且所述第二对比结果表示所述相位差小于所述相位差阈值,或者,所述第一对比结果表示所述幅值差小于所述幅值差阈值且所述第二对比结果表示所述相位差大于所述相位差阈值时,确定所述音频等级为第二等级;或者,The second determining
第三确定单元1203,用于在所述第一对比结果表示所述幅值差小于所述幅值差阈值且所述第二对比结果表示所述相位差小于所述相位差阈值时,确定所述音频等级为第三等级;A third determining
在一实施例中,参见图13,所述音频参数调整模块905包括:In one embodiment, referring to FIG. 13 , the audio
控制信号发送单元1301,用于在所述音频等级为第一等级时,向所述耳机发送控制信号,所述耳机响应于所述控制信号调整所述耳机的腔体结构,以使之后获取的音频等级从第一等级变为第二等级;The control
还包括:Also includes:
参数调整单元1302,用于在所述音频等级为第二等级时,调整所述耳机中扬声器的频率响应特性,以对所述扬声器所发出的声波进行幅值调整和频率均衡,直至之后获取的音频等级从第二等级变为第三等级,所述第三等级即是目标等级。The
在一实施例中,参见图14,所述音频参数调整模块905包括:In one embodiment, referring to FIG. 14 , the audio
历史列表获取单元1401,用于获取使用所述耳机的历史用户列表;所述历史用户列表包括耳部对应的幅值差、相位差、音频等级和目标等级对应的音频参数;The history
音频参数获取单元1402,用于根据所述音频等级、所述幅值差和所述相位差获取目标等级和对应的音频参数;An audio
音频参数调整单元1403,用于将所述耳机的音频参数调整至所述目标等级对应的音频参数,以使之后获取的音频等级变为目标等级。The audio
在一实施例中,获取所述第一音频信号和所述第二音频信号两者的幅值差和相位差之前,所述装置还包括检测模块,所述检测模块用于在所述第二音频信号的幅度小于预设的幅度阈值,确定无需调整所述耳机的音频参数,并向所述音频信号获取模块发送触发信号;以及在所述第二音频信号的幅度大于所述预设的幅度阈值时,向所述幅相差获取模块发送触发信号。In an embodiment, before acquiring the amplitude difference and the phase difference between the first audio signal and the second audio signal, the apparatus further includes a detection module, the detection module is used for The amplitude of the audio signal is less than a preset amplitude threshold, it is determined that the audio parameters of the earphone do not need to be adjusted, and a trigger signal is sent to the audio signal acquisition module; and when the amplitude of the second audio signal is greater than the preset amplitude When the threshold value is reached, a trigger signal is sent to the amplitude difference acquisition module.
可理解的是,本公开实施例提供的装置与上述方法实施例的内容相对应,具体内容可以参考方法各实施例的内容,在此不再赘述。It is understandable that the apparatuses provided in the embodiments of the present disclosure correspond to the contents of the foregoing method embodiments, and for specific contents, reference may be made to the contents of the respective method embodiments, which will not be repeated here.
至此,本公开实施例中通过滤除原始音频信号中的声音信号,可以得到超声波信号;所述超声波信号包括未经反射的第一音频信号和经过反射后的第二音频信号;然后,获取第一音频信号和第二音频信号两者的幅值差和相位差;之后,基于所述幅值差和相位差可以获取耳机所在耳部对应的音频等级;最后,在音频等级为目标等级之外的等级时,基于音频等级调整耳机的音频参数,直至之后获取的音频等级变为目标等级。本实施例中通过调整耳机的音频参数,可以使该耳机所发出声音的幅值和相位与耳部相匹配,达到耳部的音频等级与目标等级相匹配的效果,即相同音频对于不同用户具有相同的收听效果,可以提升用户体验。并且,本实施例中,可以在用户收听音频时同步调整耳机的音频参数,不影响用户使用,可以进一步提升用户体验。So far, in the embodiment of the present disclosure, the ultrasonic signal can be obtained by filtering out the sound signal in the original audio signal; the ultrasonic signal includes the unreflected first audio signal and the reflected second audio signal; then, the first audio signal is obtained. The amplitude difference and phase difference between the first audio signal and the second audio signal; after that, the audio level corresponding to the ear where the earphone is located can be obtained based on the amplitude difference and the phase difference; finally, the audio level is outside the target level , adjust the audio parameters of the headset based on the audio level until the acquired audio level becomes the target level. In this embodiment, by adjusting the audio parameters of the earphone, the amplitude and phase of the sound emitted by the earphone can be matched with the ear, so as to achieve the effect that the audio level of the ear matches the target level, that is, the same audio can be used for different users. The same listening effect can improve the user experience. Moreover, in this embodiment, the audio parameters of the earphone can be adjusted synchronously when the user listens to the audio, which does not affect the use of the user, and can further improve the user experience.
图15是根据一示例性实施例示出的一种电子设备的框图。例如,电子设备1500可以是包含调整耳机音频参数的设备中发射线圈、第一磁传感器和第二磁传感器的智能手机,计算机,数字广播终端,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 15 is a block diagram of an electronic device according to an exemplary embodiment. For example, the
参照图15,电子设备1500可以包括以下一个或多个组件:处理组件1502,存储器1504,电源组件1506,多媒体组件1508,音频组件1510,输入/输出(I/O)的接口1512,传感器组件1514,通信组件1516,以及图像采集组件1518。15, an
处理组件1502通常电子设备1500的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1502可以包括一个或多个处理器1520来执行指令。此外,处理组件1502可以包括一个或多个模块,便于处理组件1502和其他组件之间的交互。例如,处理组件1502可以包括多媒体模块,以方便多媒体组件1508和处理组件1502之间的交互。The
存储器1504被配置为存储各种类型的数据以支持在电子设备1500的操作。这些数据的示例包括用于在电子设备1500上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1504可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
电源组件1506为电子设备1500的各种组件提供电力。电源组件1506可以包括电源管理系统,一个或多个电源,及其他与为电子设备1500生成、管理和分配电力相关联的组件。
多媒体组件1508包括在所述电子设备1500和目标对象之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示屏(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自目标对象的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。The
音频组件1510被配置为输出和/或输入音频信号。例如,音频组件1510包括一个麦克风(MIC),当电子设备1500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1504或经由通信组件1516发送。在一些实施例中,音频组件1510还包括一个扬声器,用于输出音频信号。另外,所述音频组件1510还可以图1所示的耳机,该耳机内处理器MCU可以实现上述方法的步骤。
I/O接口1512为处理组件1502和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。The I/
传感器组件1514包括一个或多个传感器,用于为电子设备1500提供各个方面的状态评估。例如,传感器组件1514可以检测到电子设备1500的打开/关闭状态,组件的相对定位,例如所述组件为电子设备1500的显示屏和小键盘,传感器组件1514还可以检测电子设备1500或一个组件的位置改变,目标对象与电子设备1500接触的存在或不存在,电子设备1500方位或加速/减速和电子设备1500的温度变化。
通信组件1516被配置为便于电子设备1500和其他设备之间有线或无线方式的通信。电子设备1500可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1516还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
在示例性实施例中,电子设备1500可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现。In an exemplary embodiment,
在示例性实施例中,还提供了一种耳机,包括:In an exemplary embodiment, an earphone is also provided, comprising:
扬声器,所述扬声器用于发出超声波和声波;a loudspeaker for emitting ultrasonic waves and sound waves;
设置在所述耳机的腔体内的可移动器件;所述可移动器件用于调整所述腔体的大小;A movable device arranged in the cavity of the earphone; the movable device is used to adjust the size of the cavity;
分别设置在各声道的超声波接收器;所述超声波接收器用于获取本声道的原始音频信号输出给电子设备,所述原始音频信号包括超声波信号和声音信号;The ultrasonic receivers are respectively arranged in each channel; the ultrasonic receiver is used to obtain the original audio signal of the channel and output it to the electronic device, and the original audio signal includes the ultrasonic signal and the sound signal;
与所述可移动器件电连接的处理器;所述处理器用于响应于来自电子设备的控制信号来调整所述耳机的腔体结构,以使之后获取的音频等级从第一等级变为第二等级。A processor electrically connected to the movable device; the processor is used to adjust the cavity structure of the earphone in response to a control signal from the electronic device, so that the audio level acquired later changes from the first level to the second level grade.
需要说明的是,可移动器件可以包括活动器件和动力器件,其中活动器件固定在动力器件之上。该动力器件可以为弹簧或者步进电机。以步进电机为例,该步进电机可以与耳机的处理器电连接,根据处理器的控制信号驱动活动器件靠近或者远离(佩戴耳机时)耳膜方向移动。It should be noted that the movable device may include a movable device and a power device, wherein the movable device is fixed on the power device. The power device can be a spring or a stepper motor. Taking a stepper motor as an example, the stepper motor can be electrically connected to the processor of the earphone, and drives the movable device to move toward or away from the eardrum (when wearing the earphone) according to the control signal of the processor.
在示例性实施例中,还提供了一种包括可执行指令的非临时性可读存储介质,例如包括指令的存储器1504,上述可执行指令可由音频组件内的处理器执行。其中,可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory readable storage medium including executable instructions, such as
本领域技术人员在考虑说明书及实践这里公开的方案后,将容易想到本公开的其它实施方案。本公开旨在涵盖公开方案的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the schemes disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosed solutions that follow the general principles of this disclosure and include common knowledge or techniques in the technical field not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.
应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010017446.0A CN113099335B (en) | 2020-01-08 | 2020-01-08 | Method and device for adjusting earphone audio parameters, electronic device, and earphone |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010017446.0A CN113099335B (en) | 2020-01-08 | 2020-01-08 | Method and device for adjusting earphone audio parameters, electronic device, and earphone |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113099335A true CN113099335A (en) | 2021-07-09 |
CN113099335B CN113099335B (en) | 2024-11-05 |
Family
ID=76663284
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010017446.0A Active CN113099335B (en) | 2020-01-08 | 2020-01-08 | Method and device for adjusting earphone audio parameters, electronic device, and earphone |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113099335B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114598970A (en) * | 2022-03-10 | 2022-06-07 | 北京小米移动软件有限公司 | Audio processing method and device, electronic equipment and storage medium |
CN115460476A (en) * | 2022-08-31 | 2022-12-09 | 杭州海康威视数字技术股份有限公司 | Audio parameter processing method, device and intercom system of an intercom system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104429096A (en) * | 2012-07-13 | 2015-03-18 | 雷蛇(亚太)私人有限公司 | An audio signal output device and method of processing an audio signal |
US20180324516A1 (en) * | 2015-08-31 | 2018-11-08 | Nura Holdings Pty Ltd | Personalization of auditory stimulus |
CN110351625A (en) * | 2019-07-12 | 2019-10-18 | 深圳市升弘创新科技有限公司 | A kind of physics denoising device, method and application based on gas bleeder valve |
CN110418232A (en) * | 2019-07-10 | 2019-11-05 | Oppo广东移动通信有限公司 | Method and device for volume adjustment, and computer-readable storage medium |
-
2020
- 2020-01-08 CN CN202010017446.0A patent/CN113099335B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104429096A (en) * | 2012-07-13 | 2015-03-18 | 雷蛇(亚太)私人有限公司 | An audio signal output device and method of processing an audio signal |
US20180324516A1 (en) * | 2015-08-31 | 2018-11-08 | Nura Holdings Pty Ltd | Personalization of auditory stimulus |
CN110418232A (en) * | 2019-07-10 | 2019-11-05 | Oppo广东移动通信有限公司 | Method and device for volume adjustment, and computer-readable storage medium |
CN110351625A (en) * | 2019-07-12 | 2019-10-18 | 深圳市升弘创新科技有限公司 | A kind of physics denoising device, method and application based on gas bleeder valve |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114598970A (en) * | 2022-03-10 | 2022-06-07 | 北京小米移动软件有限公司 | Audio processing method and device, electronic equipment and storage medium |
CN115460476A (en) * | 2022-08-31 | 2022-12-09 | 杭州海康威视数字技术股份有限公司 | Audio parameter processing method, device and intercom system of an intercom system |
Also Published As
Publication number | Publication date |
---|---|
CN113099335B (en) | 2024-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10129647B2 (en) | Wireless sound equipment | |
US9930456B2 (en) | Method and apparatus for localization of streaming sources in hearing assistance system | |
US9577710B2 (en) | Engaging terminal devices | |
US10922044B2 (en) | Wearable audio device capability demonstration | |
CN106454644B (en) | Audio playing method and device | |
CN113099336B (en) | Method and device for adjusting earphone audio parameters, earphone and storage medium | |
US20160330541A1 (en) | Audio duplication using dual-headsets to enhance auditory intelligibility | |
US11875767B2 (en) | Synchronized mode transition | |
EP4175316A1 (en) | Headphone call method and headphones | |
CN113099335B (en) | Method and device for adjusting earphone audio parameters, electronic device, and earphone | |
US11950041B2 (en) | Control of an earphone device | |
CN115176485A (en) | Wireless earphone with listening function | |
US12175159B1 (en) | Privacy with extra-aural speakers | |
WO2023160275A9 (en) | Processing method for sound signal, and earphone device | |
US11665271B2 (en) | Controlling audio output | |
WO2023093412A1 (en) | Active noise cancellation method and electronic device | |
CN109005486A (en) | The audition of hearing device setting, related system and hearing device | |
JP2022019619A (en) | Method at electronic device involving hearing device | |
CN116648928A (en) | dual speaker system | |
CN113099358A (en) | Method and device for adjusting audio parameters of earphone, earphone and storage medium | |
US20230113703A1 (en) | Method and system for audio bridging with an output device | |
CN113495713B (en) | Method and device for adjusting earphone audio parameters, earphone and storage medium | |
US12137327B2 (en) | Monitoring of audio signals | |
US11445290B1 (en) | Feedback acoustic noise cancellation tuning | |
CN119277304A (en) | Audio device with head orientation based filtering and related methods |
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 |