CN112291689B - Sound playback method, wearable device and readable storage medium - Google Patents
Sound playback method, wearable device and readable storage medium Download PDFInfo
- Publication number
- CN112291689B CN112291689B CN202011368106.9A CN202011368106A CN112291689B CN 112291689 B CN112291689 B CN 112291689B CN 202011368106 A CN202011368106 A CN 202011368106A CN 112291689 B CN112291689 B CN 112291689B
- Authority
- CN
- China
- Prior art keywords
- distance
- human ear
- speaker
- sound
- time
- 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
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
- H04R9/00—Transducers of moving-coil, moving-strip, or moving-wire type
- H04R9/06—Loudspeakers
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01S—RADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
- G01S15/00—Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems
- G01S15/02—Systems using the reflection or reradiation of acoustic waves, e.g. sonar systems using reflection of acoustic waves
- G01S15/06—Systems determining the position data of a target
- G01S15/08—Systems for measuring distance only
-
- 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/20—Arrangements for obtaining desired frequency or directional characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R9/00—Transducers of moving-coil, moving-strip, or moving-wire type
- H04R9/02—Details
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04R—LOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
- H04R2430/00—Signal processing covered by H04R, not provided for in its groups
- H04R2430/01—Aspects of volume control, not necessarily automatic, in sound systems
Landscapes
- Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Acoustics & Sound (AREA)
- Signal Processing (AREA)
- Radar, Positioning & Navigation (AREA)
- Remote Sensing (AREA)
- Computer Networks & Wireless Communication (AREA)
- General Physics & Mathematics (AREA)
- Circuit For Audible Band Transducer (AREA)
Abstract
Description
技术领域technical field
本发明涉及声音播放技术领域,尤其涉及一种声音播放方法、可穿戴设备和可读存储介质。The present invention relates to the technical field of sound playback, and in particular, to a sound playback method, a wearable device and a readable storage medium.
背景技术Background technique
可穿戴设备是一种可以穿戴在用户身体上的电子设备,不同人佩戴时,佩戴状态会存在差异,比如人头型的大小不同。可穿戴设备中设置有扬声器,不同用户在佩戴时由于形体差异导致扬声器与耳朵的距离不同,从而使声音的播放难以达到理想状态。A wearable device is an electronic device that can be worn on the user's body. When different people wear it, there will be differences in the wearing state, such as the size of the human head. The wearable device is provided with a speaker, and the distance between the speaker and the ear is different for different users due to the difference in body shape, which makes it difficult for the sound playback to reach an ideal state.
发明内容SUMMARY OF THE INVENTION
基于此,针对目前由于形体差异导致扬声器与耳朵的距离不同,而使声音的播放难以达到理想状态的问题,有必要提供一种声音播放方法、可穿戴设备和可读存储介质,旨在能够在扬声器与耳朵的距离不同情况下,调整播放音频,使声音的播放达到理想状态。Based on this, in view of the problem that the distance between the speaker and the ear is different due to the difference in shape, it is difficult to achieve the ideal state of sound playback. It is necessary to provide a sound playback method, a wearable device and a readable storage medium. When the distance between the speaker and the ear is different, adjust the playback audio so that the sound playback can reach the ideal state.
为实现上述目的,本发明提出的一种声音播放方法,所述声音播放方法用于可穿戴设备,所述可穿戴设备包括扬声器,所述声音播放方法包括:In order to achieve the above object, the present invention proposes a sound playing method, which is used in a wearable device, the wearable device includes a speaker, and the sound playing method includes:
向人耳发射探测波,并记录下发射时间,其中,所述探测波遇到人耳后反射;Send a probe wave to the human ear, and record the launch time, wherein the probe wave is reflected after encountering the human ear;
接收反射的探测波,并记录下接收时间,依据所述发射时间和所述接收时间获得扬声器与人耳的距离;Receive the reflected probe wave, record the receiving time, and obtain the distance between the speaker and the human ear according to the transmitting time and the receiving time;
依据所述扬声器与人耳的距离确定调节参数;Determine the adjustment parameter according to the distance between the speaker and the human ear;
依据所述调节参数调整所述扬声器的音频信号。The audio signal of the speaker is adjusted according to the adjustment parameter.
可选地,所述人耳包括外耳道;Optionally, the human ear includes an external auditory canal;
所述依据发射时间和接收时间获得扬声器与人耳的距离的步骤,包括:The step of obtaining the distance between the loudspeaker and the human ear according to the transmitting time and the receiving time includes:
依据发射时间和接收时间获得扬声器与人耳的耳廓的近点距离和远点距离;Obtain the near-point distance and far-point distance between the speaker and the auricle of the human ear according to the transmitting time and the receiving time;
依据所述近点距离和所述远点距离计算得出所述扬声器与人耳的外耳道的入口之间的距离。The distance between the speaker and the entrance of the external auditory canal of the human ear is calculated according to the near point distance and the far point distance.
可选地,所述可穿戴设备包括拾音麦克风,所述拾音麦克风临近所述扬声器设置,所述探测波包括超声波;Optionally, the wearable device includes a sound pickup microphone, the sound pickup microphone is disposed adjacent to the speaker, and the detection wave includes ultrasonic waves;
所述向人耳发射探测波,并记录下发射时间的步骤,包括:The described steps of transmitting probe waves to the human ear and recording the launch time include:
控制所述扬声器发射超声波,并记录下超声波的发射时间;control the speaker to emit ultrasonic waves, and record the emission time of the ultrasonic waves;
所述接收反射的探测波,并记录下接收时间的步骤,包括:The steps of receiving the reflected probe wave and recording the receiving time include:
控制所述拾音麦克风接收反射的超声波,并记录下接收到反射的超声波的接收时间。The pickup microphone is controlled to receive the reflected ultrasonic waves, and the receiving time of the reflected ultrasonic waves is recorded.
可选地,所述向人耳发射探测波,并记录下发射时间的步骤,还包括:Optionally, the described launch probe wave to the human ear, and the step of recording the launch time, also includes:
依据预设时间,定期向人耳发射探测波,并记录下发射时间。According to the preset time, the detection wave is periodically emitted to the human ear, and the emission time is recorded.
可选地,所述依据所述扬声器与人耳的距离确定调节参数的步骤,包括:Optionally, the step of determining the adjustment parameter according to the distance between the speaker and the human ear includes:
将所述扬声器与人耳的距离和预设距离进行对比,生成对比结果,其中,所述预设距离包括多个,不同的预设距离对应不同的调节参数;Comparing the distance between the speaker and the human ear with a preset distance to generate a comparison result, wherein the preset distance includes a plurality of preset distances, and different preset distances correspond to different adjustment parameters;
依据所述对比结果调取所述预设距离对应的调节参数。The adjustment parameter corresponding to the preset distance is retrieved according to the comparison result.
可选地,所述将所述扬声器与人耳的距离和预设距离进行对比的步骤之后,包括:Optionally, after the step of comparing the distance between the speaker and the human ear and the preset distance, the method includes:
若所述扬声器与人耳的距离大于所述预设距离的最大值,则提示用户检查可穿戴设备的位置状态。If the distance between the speaker and the human ear is greater than the maximum value of the preset distance, the user is prompted to check the position state of the wearable device.
可选地,所述将所述扬声器与人耳的距离和预设距离进行对比的步骤之后,还包括:Optionally, after the step of comparing the distance between the speaker and the human ear with a preset distance, the method further includes:
若所述扬声器与人耳的距离大于所述预设距离的最大值,且所述扬声器与人耳的距离和所述预设距离的数值之差超出预设阈值,则切断所述扬声器的音频信号。If the distance between the speaker and the human ear is greater than the maximum value of the preset distance, and the difference between the distance between the speaker and the human ear and the value of the preset distance exceeds a preset threshold, cut off the audio of the speaker Signal.
可选地,多个所述预设距离依次由小到大等间距设置。Optionally, a plurality of the preset distances are set at equal intervals in sequence from small to large.
此外,为了实现上述目的,本发明还提供一种可穿戴设备,所述可穿戴设备包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的声音播放程序;所述声音播放程序被所述处理器执行时实现如上文所述的声音播放方法的步骤。In addition, in order to achieve the above object, the present invention also provides a wearable device, the wearable device includes: a memory, a processor, and a sound playback program stored in the memory and running on the processor; When the sound playing program is executed by the processor, the steps of the above-mentioned sound playing method are realized.
此外,为了实现上述目的,本发明还提供一种可读存储介质,所述可读存储介质上存储有声音播放程序,所述声音播放程序被处理器执行时实现如上文所述的声音播放方法的步骤。In addition, in order to achieve the above purpose, the present invention also provides a readable storage medium, on which a sound playback program is stored, and when the sound playback program is executed by a processor, the sound playback method as described above is implemented A step of.
本发明提出的技术方案中,用户在使用可穿戴设备时,佩戴的位置不同,扬声器与人耳的距离有远有近。向人耳发射探测波,探测波在遇到人耳后反射,通过记录下发射时间和接收时间,从而获取到扬声器和人耳之间的距离,再通过这个距离确定调节扬声器的调节参数。依据调节参数调整扬声器的音频信号,从而使用户能够接收到清晰的音频,使声音的播放达到理想状态。In the technical solution proposed by the present invention, when the user uses the wearable device, the wearing position is different, and the distance between the speaker and the human ear is far or near. The probe wave is emitted to the human ear, and the probe wave is reflected after encountering the human ear. By recording the emission time and reception time, the distance between the speaker and the human ear is obtained, and then the adjustment parameters of the speaker are determined through this distance. The audio signal of the speaker is adjusted according to the adjustment parameters, so that the user can receive clear audio and the sound playback can reach an ideal state.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention, and for those of ordinary skill in the art, other drawings can also be obtained according to the structures shown in these drawings without creative efforts.
图1为本发明声音播放方法第一实施例的流程示意图;1 is a schematic flowchart of a first embodiment of a sound playback method according to the present invention;
图2为本发明声音播放方法第二实施例的流程示意图;2 is a schematic flowchart of a second embodiment of a sound playback method according to the present invention;
图3为本发明声音播放方法第三实施例的流程示意图;3 is a schematic flowchart of a third embodiment of a sound playback method according to the present invention;
图4为本发明中用户佩戴可穿戴设备的结构示意图;4 is a schematic structural diagram of a wearable device worn by a user in the present invention;
图5为本发明声音播放方法第四实施例的流程示意图;5 is a schematic flowchart of a fourth embodiment of a sound playback method according to the present invention;
图6为本发明声音播放方法第五实施例的流程示意图;6 is a schematic flowchart of a fifth embodiment of a sound playback method according to the present invention;
图7为本发明声音播放方法第六实施例的流程示意图;7 is a schematic flowchart of a sixth embodiment of a sound playback method according to the present invention;
图8为本发明声音播放方法第七实施例的流程示意图。FIG. 8 is a schematic flowchart of a seventh embodiment of a sound playing method according to the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
用户在使用可穿戴设备时,人体位置的大小不同,会导致佩戴状态存在差异,扬声器与人耳的距离就会不同,从而使声音的播放难以达到理想状态,比如听到的声音音量小,不够清晰。When the user uses the wearable device, the size of the human body is different, which will lead to differences in the wearing state, and the distance between the speaker and the human ear will be different, making it difficult for the sound playback to reach the ideal state. clear.
为了解决上述问题,参阅图1所示,提出本发明的第一实施例,本发明提供一种声音播放方法,声音播放方法用于可穿戴设备,可穿戴设备包括耳机,也包括VR(VirtualReality,虚拟现实)显示设备,还可以包括AR(Augmented Reality)显示设备。可穿戴设备包括扬声器,扬声器也称为喇叭。声音播放方法包括:In order to solve the above problems, referring to FIG. 1, a first embodiment of the present invention is proposed. The present invention provides a sound playback method, which is used in a wearable device, and the wearable device includes a headset, and also includes VR (VirtualReality, Virtual reality) display devices, and may also include AR (Augmented Reality) display devices. Wearable devices include speakers, also known as horns. Sound playback methods include:
步骤S10,向人耳发射探测波,并记录下发射时间,其中,探测波遇到人耳后反射;可穿戴设备中设置有探测波发生器,通过探测波发生器发射探测波,在探测波发生器发射探测波的同时记录下发射时间。探测波可以是光波也可以是声波。光波遇到人耳后产生漫反射,声波是机械波,声波遇到人耳后,也可以被反射。可穿戴设备中设置有处理器,通过处理器来控制发射探测波,并记录下发射时间。In step S10, a detection wave is transmitted to the human ear, and the emission time is recorded, wherein the detection wave is reflected after encountering the human ear; a detection wave generator is provided in the wearable device, and the detection wave is transmitted through the detection wave generator, and the detection wave is generated in the detection wave. While the generator emits the probe wave, the emission time is recorded. The detection wave can be a light wave or a sound wave. When light waves meet human ears, diffuse reflection occurs. Sound waves are mechanical waves. Sound waves can also be reflected when they meet human ears. The wearable device is provided with a processor, which controls the emission of detection waves and records the emission time.
步骤S20,接收反射的探测波,并记录下接收时间,依据发射时间和接收时间获得扬声器与人耳的距离;可穿戴设备中设置有探测波的接收器,通过接收器接收到反射的探测波后,记录下接收时间。探测波在传播的过程中,传播速度是固定的,通过计算发射时间和接收时间的时间差,将时间差和传播速度乘积计算得出探测波的传播距离。由于探测波是在可穿戴设备与人耳之间往返传播的,再将传播距离除以二,从而获得可穿戴设备与人耳的距离。探测波接收器和扬声器的位置接近,可穿戴设备与人耳的距离可以理解为扬声器与人耳的距离。Step S20: Receive the reflected detection wave, record the reception time, and obtain the distance between the speaker and the human ear according to the transmission time and the reception time; the wearable device is provided with a detection wave receiver, and the reflected detection wave is received through the receiver. After that, record the reception time. During the propagation of the sounding wave, the propagation speed is fixed. By calculating the time difference between the transmitting time and the receiving time, the propagation distance of the sounding wave is calculated by multiplying the time difference and the propagation speed. Since the detection wave propagates back and forth between the wearable device and the human ear, divide the propagation distance by two to obtain the distance between the wearable device and the human ear. The detection wave receiver and the speaker are located close to each other, and the distance between the wearable device and the human ear can be understood as the distance between the speaker and the human ear.
步骤S30,依据扬声器与人耳的距离确定调节参数;用户在使用可穿戴设备时,佩戴的位置不同,扬声器与人耳的距离也不同。通过在不同的距离位置上调节音频信号,使用户获得清晰的声音。并记录下在不同的距离上,使声音清晰的调节参数,存储距离对应的调节参数。扬声器与人耳的距离和调节参数时一一对应的,通过步骤S20计算得出扬声器与人耳的距离后,依据这个距离值,能够找到唯一确定的调节参数。In step S30, the adjustment parameter is determined according to the distance between the speaker and the human ear; when the user uses the wearable device, the distance between the speaker and the human ear is also different depending on the wearing position of the user. By adjusting the audio signal at different distance positions, users get clear sound. And record the adjustment parameters at different distances to make the sound clear, and store the adjustment parameters corresponding to the distance. The distance between the speaker and the human ear and the adjustment parameters are in one-to-one correspondence. After the distance between the speaker and the human ear is calculated in step S20, a uniquely determined adjustment parameter can be found according to the distance value.
步骤S40,依据调节参数调整扬声器的音频信号。在确定了调节参数后,依据这个调节参数去调整扬声器的音频信号,从而使用户在该扬声器和人耳的距离下,能够快速获得清晰的音频信号。Step S40, adjust the audio signal of the speaker according to the adjustment parameter. After the adjustment parameter is determined, the audio signal of the speaker is adjusted according to the adjustment parameter, so that the user can quickly obtain a clear audio signal under the distance between the speaker and the human ear.
本实施例提出的技术方案中,用户在使用可穿戴设备时,佩戴的位置不同,扬声器与人耳的距离有远有近。向人耳发射探测波,探测波在遇到人耳后反射,通过记录下发射时间和接收时间,从而获取到扬声器和人耳之间的距离,再通过这个距离确定调节扬声器的调节参数。依据调节参数调整扬声器的音频信号,从而使用户能够接收到清晰的音频,使声音的播放达到理想状态。In the technical solution proposed in this embodiment, when the user uses the wearable device, the wearing position is different, and the distance between the speaker and the human ear is far or near. The probe wave is emitted to the human ear, and the probe wave is reflected after encountering the human ear. By recording the emission time and reception time, the distance between the speaker and the human ear is obtained, and then the adjustment parameters of the speaker are determined through this distance. The audio signal of the speaker is adjusted according to the adjustment parameters, so that the user can receive clear audio and the sound playback can reach an ideal state.
参阅图2所示,在本发明的第一实施例的基础上,提出本发明的第二实施例,人耳包括外耳道,用户接听声音主要是通过外耳道来传递的,声音通过外耳道的入口传递进入耳蜗。Referring to FIG. 2 , on the basis of the first embodiment of the present invention, a second embodiment of the present invention is proposed. The human ear includes the external auditory canal, the user's answering sound is mainly transmitted through the external auditory canal, and the sound is transmitted through the entrance of the external auditory canal. cochlea.
依据发射时间和接收时间获得扬声器与人耳的距离的步骤,包括:The steps of obtaining the distance between the speaker and the human ear according to the transmitting time and the receiving time include:
步骤S201,依据发射时间和接收时间获得扬声器与人耳的耳廓的近点距离和远点距离;人耳的形状结构复杂,人耳的周围结构形成耳廓,外耳道位于耳廓内部。用户在佩戴可穿戴设备时,扬声器距离耳廓的位置有远有近,即扬声器与人耳的耳廓的近点距离,以及扬声器与人耳的耳廓的远点距离。Step S201, obtain the near point distance and far point distance between the speaker and the auricle of the human ear according to the transmitting time and the receiving time; the shape and structure of the human ear are complex, the surrounding structure of the human ear forms the auricle, and the external auditory canal is located inside the auricle. When the user wears the wearable device, the position of the speaker is far from the auricle, that is, the near point distance between the speaker and the auricle of the human ear, and the far point distance between the speaker and the auricle of the human ear.
步骤S202,依据近点距离和远点距离计算得出扬声器与人耳的外耳道的入口之间的距离。为了能够准确得出扬声器与人耳的外耳道的入口之间的距离,通过近点距离和远点距离相加求和,再计算平均值,将这个平均值理解为扬声器与人耳的外耳道的入口之间的距离。在测量距离时,探测波发生器对准人耳发射,为了计算结果更加准确,还可以测量得出多个近点距离和多个远点距离。多次求平均值,从而提高检测的准确性。Step S202: Calculate the distance between the speaker and the entrance of the external auditory canal of the human ear according to the near point distance and the far point distance. In order to accurately obtain the distance between the speaker and the entrance of the external auditory canal of the human ear, the near point distance and the far point distance are added and summed, and then the average value is calculated. This average value is understood as the entrance between the speaker and the external auditory canal of the human ear. the distance between. When measuring the distance, the sounding wave generator is aimed at the human ear and launched. In order to make the calculation result more accurate, multiple near-point distances and multiple far-point distances can also be measured. Averaging is performed multiple times to improve detection accuracy.
参阅图3所示,在本发明的第一实施例的基础上,提出本发明的第三实施例,参阅图4所示,用户10佩戴可穿戴设备20的示意图,可穿戴设备20包括拾音麦克风210,拾音麦克风210临近扬声器220设置。图4还可见扬声器220向耳廓110的近点发射超声波、以及向耳廓110的远点发射超声波的示意图。探测波包括超声波。人耳能够接听到的声音频率范围在20Hz~20000Hz,超过这个范围人耳时接听不到的。在大于20000Hz频率上,为超声波范围,通过超声波检测,能够避免在检测的过程中干扰人耳正常的接听外部声音。Referring to FIG. 3 , based on the first embodiment of the present invention, a third embodiment of the present invention is proposed. Referring to FIG. 4 , a schematic diagram of a
向人耳发射探测波,并记录下发射时间的步骤,包括:The steps of launching a probe wave to the human ear and recording the launch time include:
步骤S110,控制扬声器发射超声波,并记录下超声波的发射时间;Step S110, control the speaker to emit ultrasonic waves, and record the emission time of the ultrasonic waves;
接收反射的探测波,并记录下接收时间的步骤,包括:The steps of receiving the reflected probe wave and recording the time of reception include:
步骤S210,控制拾音麦克风接收反射的超声波,并记录下接收到反射的超声波的接收时间。扬声器是一种发射声波的部件,利用扬声器发射超声波能够充分利用可穿戴设备中已经设置的电子器件,从而节省另外安装部件的空间和成本。另外可知,在本实施例中,探测波发生器就是指扬声器。拾音麦克风通过拾音功能接收到声波,记录下扬声器发射超声波的时间为发射时间,记录下拾音麦克风接收到超声波的时间为接收时间。可穿戴设备中设置有计时单元,计时单元记录下发射时间和接收时间,并将发射时间和接收时间传递给处理器,处理器通过运算得出近点距离和远点距离。需要指出的是,在计算近点距离和远点距离时,两者的发射时间是相同的,但是接收时间不同。也就是说,时间短的接收时间用来计算近点距离,时间长的接收时间用来计算远点距离。Step S210, controlling the sound pickup microphone to receive the reflected ultrasonic waves, and recording the receiving time of the reflected ultrasonic waves. The speaker is a component that emits sound waves. Using the speaker to emit ultrasonic waves can make full use of the electronic components already installed in the wearable device, thereby saving the space and cost of installing additional components. In addition, it can be known that, in this embodiment, the probe wave generator refers to a speaker. The pickup microphone receives sound waves through the pickup function, and the time when the speaker emits ultrasonic waves is recorded as the transmitting time, and the time when the pickup microphone receives the ultrasonic waves is the receiving time. A timing unit is set in the wearable device, the timing unit records the transmission time and the reception time, and transmits the transmission time and the reception time to the processor, and the processor obtains the near-point distance and the far-point distance through calculation. It should be pointed out that when calculating the near-point distance and far-point distance, the transmission time of the two is the same, but the reception time is different. That is, the short receiving time is used to calculate the near point distance, and the long receiving time is used to calculate the far point distance.
参阅图5所示,在本发明的第一实施例的基础上,提出本发明的第四实施例,向人耳发射探测波,并记录下发射时间的步骤,还包括:Referring to shown in Figure 5, on the basis of the first embodiment of the present invention, the fourth embodiment of the present invention is proposed, and the detection wave is emitted to the human ear, and the step of recording the emission time, also includes:
步骤S101,依据预设时间,定期向人耳发射探测波,并记录下发射时间。也就是说,探测波是按照脉冲波的形式发送的。用户在穿戴可穿戴设备时,会出现摆头或者移动的动作,这是时候会导致扬声器的距离和人耳之间的距离产生变化。为了能够持续的保证人耳能够获得清晰的声音,需要经常调整扬声器和人耳的距离。例如,预设时间为1秒,每隔1秒钟,向人耳发射探测波,通过这种定期的向人耳发射探测波,能够及时准确的调整扬声器的音频信号,进而保证用户能够获得较好的音质。Step S101 , according to a preset time, the detection wave is periodically transmitted to the human ear, and the transmission time is recorded. That is, the probe wave is sent in the form of a pulse wave. When the user wears the wearable device, there will be a movement of the head or movement, which will cause the distance between the speaker and the human ear to change. In order to continuously ensure that the human ear can obtain clear sound, the distance between the speaker and the human ear needs to be adjusted frequently. For example, the preset time is 1 second, and every 1 second, the detection wave is emitted to the human ear. Through this regular emission of the detection wave to the human ear, the audio signal of the speaker can be adjusted in time and accurately, thereby ensuring that the user can obtain better sound quality. good sound quality.
参阅图6所示,在本发明的上述实施例的基础上,提出本发明的第五实施例,依据扬声器与人耳的距离确定调节参数的步骤,包括:Referring to FIG. 6 , on the basis of the above-mentioned embodiments of the present invention, a fifth embodiment of the present invention is proposed, and the steps of determining adjustment parameters according to the distance between the speaker and the human ear include:
步骤S310,将扬声器与人耳的距离和预设距离进行对比,生成对比结果,其中,预设距离包括多个,不同的预设距离对应不同的调节参数;Step S310, compare the distance between the speaker and the human ear and the preset distance, and generate a comparison result, wherein the preset distance includes a plurality of preset distances, and different preset distances correspond to different adjustment parameters;
步骤S320,依据对比结果调取预设距离对应的调节参数。用户在使用扬声器时,佩戴的位置不同,需要扬声器播放声音的参数也不同。例如,扬声器在距离人耳较近时,需要播放的声音音量较低,扬声器在距离人耳较远时,需要播放的声音的音量较高。为此,在可穿戴设备中设置有多个不同的调节参数,每个调节参数对应一个预设距离。在将扬声器与人耳的距离和预设距离进行对比后,查找到扬声器与人耳的距离和预设距离相符合的预设距离值,再通过该预设距离值调取到保存的调节参数。其中,可以是扬声器与人耳的距离和预设距离相等,也可以是预设距离是一个范围值,扬声器在这个范围值内。In step S320, the adjustment parameters corresponding to the preset distance are retrieved according to the comparison result. When the user uses the speaker, the wearing position is different, and the parameters that need the speaker to play sound are also different. For example, when the speaker is closer to the human ear, the volume of the sound to be played is lower, and when the speaker is farther from the human ear, the volume of the sound to be played is higher. To this end, a plurality of different adjustment parameters are set in the wearable device, and each adjustment parameter corresponds to a preset distance. After comparing the distance between the speaker and the human ear with the preset distance, find the preset distance value that matches the distance between the speaker and the human ear and the preset distance, and then retrieve the saved adjustment parameters through the preset distance value. . Wherein, the distance between the speaker and the human ear may be equal to the preset distance, or the preset distance may be a range value, and the speaker is within this range value.
参阅图7所示,在本发明的第五实施例的基础上,提出本发明的第六实施例,将扬声器与人耳的距离和预设距离进行对比的步骤之后,包括:Referring to FIG. 7 , on the basis of the fifth embodiment of the present invention, a sixth embodiment of the present invention is proposed. After the step of comparing the distance between the speaker and the human ear and the preset distance, the steps include:
步骤S311,若扬声器与人耳的距离大于预设距离的最大值,则提示用户检查可穿戴设备的位置状态。可穿戴设备中的扬声器发射声波,由于声波是机械波,声波在传递的过程中能量逐渐降低,由此用户的人耳和扬声器之间的距离超过一定范围,人耳无法听清楚声音。在用户佩戴位置不正确,导致扬声器和人耳之间的距离过大时,需要向用户发出提示,由此进一步保证声音的有效性。提示的方式可以是语音提示,也可以是振动提示,还可以是音乐提示等。还可以在用户检查可穿戴设备的位置后,正确的进行调整后,发出调整完成提示。例如,可以设定,预设距离的最大值为10cm,在检测到扬声器与人耳的距离大于10cm,则提示用户检查可穿戴设备的位置。Step S311 , if the distance between the speaker and the human ear is greater than the maximum preset distance, the user is prompted to check the position state of the wearable device. The speaker in the wearable device emits sound waves. Since the sound waves are mechanical waves, the energy of the sound waves gradually decreases during the transmission process. As a result, the distance between the user's human ear and the speaker exceeds a certain range, and the human ear cannot hear the sound clearly. When the user's wearing position is incorrect and the distance between the speaker and the human ear is too large, a prompt needs to be issued to the user, thereby further ensuring the validity of the sound. The prompts can be voice prompts, vibration prompts, or music prompts. After the user checks the position of the wearable device and adjusts it correctly, an adjustment completion prompt can be issued. For example, it can be set that the maximum preset distance is 10 cm, and when it is detected that the distance between the speaker and the human ear is greater than 10 cm, the user is prompted to check the position of the wearable device.
另外,还可以设置安全距离,为了减少扬声器对人耳位置的误判,减少扬声器将外围物体当做人耳的可能性,只有在安全距离以内的测量值理解为扬声器与人耳的距离。In addition, a safe distance can also be set. In order to reduce the speaker's misjudgment of the position of the human ear and the possibility of the speaker taking the peripheral object as the human ear, only the measured value within the safe distance can be understood as the distance between the speaker and the human ear.
参阅图8所示,在本发明的第六实施例的基础上,提出本发明的第七实施例,将扬声器与人耳的距离和预设距离进行对比的步骤之后,还包括:Referring to FIG. 8 , on the basis of the sixth embodiment of the present invention, a seventh embodiment of the present invention is proposed. After the step of comparing the distance between the speaker and the human ear and the preset distance, it further includes:
步骤S312,若扬声器与人耳的距离大于预设距离的最大值,且扬声器与人耳的距离和预设距离的数值之差超出预设阈值,则切断扬声器的音频信号。用户在使用可穿戴设备时,在有些情况下需要将可穿戴设备取下。例如,用户在与人交流时,为了表示尊敬,需要取下可穿戴设备。此时,可穿戴设备处于正常运转中,扬声器还依然播放声音,如此容易造成电力的损耗。用户在摘取下可穿戴设备后,扬声器与用户的人耳位置会逐渐增加。计算扬声器与人耳的距离和预设距离的数值之差,将这个差值和预设阈值进行对比,如果小于预设阈值在继续维持扬声器正常运转,若超出预设阈值,则关闭可穿戴设备的电源,继而切断扬声器的音频信号,减少电力的损耗。预设阈值可以根据用户的需要更改、设定。例如,预设阈值可以为5cm,还可以为10cm等。Step S312, if the distance between the speaker and the human ear is greater than the maximum preset distance, and the difference between the distance between the speaker and the human ear and the value of the preset distance exceeds the preset threshold, cut off the audio signal of the speaker. When a user uses a wearable device, the wearable device needs to be removed in some cases. For example, when a user communicates with a person, in order to show respect, the wearable device needs to be removed. At this time, the wearable device is in normal operation, and the speaker is still playing sound, which is easy to cause power loss. After the user takes off the wearable device, the position of the speaker and the user's human ear will gradually increase. Calculate the difference between the distance between the speaker and the human ear and the preset distance, and compare the difference with the preset threshold. If it is less than the preset threshold, the speaker will continue to operate normally. If it exceeds the preset threshold, turn off the wearable device. The power supply, and then cut off the audio signal of the speaker, reduce power loss. The preset threshold can be changed and set according to the user's needs. For example, the preset threshold may be 5 cm, 10 cm, or the like.
在本发明的上述实施例的基础上,提出本发明的第八实施例,多个预设距离依次由小到大等间距设置。每个预设距离对应有一个调节参数,通过预设距离的等间距分布设置,保证对扬声器调节参数的有序归类。从而也通过等间距的由小到大的设置,能够清晰的获知调节音频信号的调整方向。在预先获取调节参数时,也更加快捷。On the basis of the above-mentioned embodiments of the present invention, an eighth embodiment of the present invention is proposed, wherein a plurality of preset distances are set at equal intervals in sequence from small to large. Each preset distance corresponds to an adjustment parameter, and the orderly classification of the speaker adjustment parameters is ensured by setting the preset distances at equal intervals. Therefore, the adjustment direction of the audio signal can be clearly known through the setting of equal intervals from small to large. It is also faster to obtain adjustment parameters in advance.
本发明还提供一种可穿戴设备,可穿戴设备包括:存储器、处理器及存储在存储器上并可在处理器上运行的声音播放程序;声音播放程序被处理器执行时实现如上文的声音播放方法的步骤。The present invention also provides a wearable device, the wearable device includes: a memory, a processor, and a sound playing program stored in the memory and running on the processor; when the sound playing program is executed by the processor, the above sound playing is realized steps of the method.
本发明可穿戴设备具体实施方式可以参照上述声音播放方法各实施例,在此不再赘述。For the specific implementation manner of the wearable device of the present invention, reference may be made to the above-mentioned embodiments of the sound playback method, which will not be repeated here.
本发明还提供一种可读存储介质,可读存储介质上存储有声音播放程序,声音播放程序被处理器执行时实现如上文的声音播放方法的步骤。The present invention also provides a readable storage medium on which a sound playing program is stored, and when the sound playing program is executed by a processor, the steps of the above sound playing method are implemented.
本发明可读存储介质具体实施方式可以参照上述声音播放方法各实施例,在此不再赘述。For the specific implementation manner of the readable storage medium of the present invention, reference may be made to the above-mentioned embodiments of the sound playback method, which will not be repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, herein, the terms "comprising", "comprising" or any other variation thereof are intended to encompass non-exclusive inclusion, such that a process, method, article or system comprising a series of elements includes not only those elements, It also includes other elements not expressly listed or inherent to such a process, method, article or system. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system that includes the element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that the method of the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is better implementation. Based on such understanding, the technical solutions of the present invention can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products are stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disc), including several instructions to make a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是在本发明的发明构思下,利用本发明说明书及附图内容所作的等效结构变换,或直接/间接运用在其他相关的技术领域均包括在本发明的专利保护范围内。The above are only the preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Under the inventive concept of the present invention, the equivalent structure transformation made by the contents of the description and drawings of the present invention, or directly/indirectly applied to other All relevant technical fields are included in the scope of patent protection of the present invention.
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011368106.9A CN112291689B (en) | 2020-11-27 | 2020-11-27 | Sound playback method, wearable device and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011368106.9A CN112291689B (en) | 2020-11-27 | 2020-11-27 | Sound playback method, wearable device and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112291689A CN112291689A (en) | 2021-01-29 |
CN112291689B true CN112291689B (en) | 2022-07-22 |
Family
ID=74425772
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011368106.9A Active CN112291689B (en) | 2020-11-27 | 2020-11-27 | Sound playback method, wearable device and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112291689B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115050381A (en) * | 2021-03-08 | 2022-09-13 | 瑞昱半导体股份有限公司 | Ultrasonic wave-based audio playing method and ultrasonic wave-based electronic device |
JP7647211B2 (en) | 2021-03-19 | 2025-03-18 | セイコーエプソン株式会社 | Audio output device and head-mounted display device |
CN114095835B (en) * | 2021-11-18 | 2023-06-09 | 歌尔科技有限公司 | Earphone through mode control method and device, earphone equipment and storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108718431A (en) * | 2018-04-28 | 2018-10-30 | 歌尔股份有限公司 | A kind of wireless headset and its alarm method |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB200123A (en) * | 1922-02-04 | 1923-07-04 | Signal Gmbh | Improvements in methods of and apparatus for determining distances by means of reflected sound waves |
US6542436B1 (en) * | 2000-06-30 | 2003-04-01 | Nokia Corporation | Acoustical proximity detection for mobile terminals and other devices |
TWI577265B (en) * | 2013-11-05 | 2017-04-01 | 宏碁股份有限公司 | Wearable portable electronic device |
CN106973349A (en) * | 2017-05-24 | 2017-07-21 | 广东小天才科技有限公司 | Directional speaker control method, directional speaker control device and intelligent terminal |
US10219075B2 (en) * | 2017-05-26 | 2019-02-26 | International Business Machines Corporation | Method and system for speaker array assembly and porous display device |
US10848846B2 (en) * | 2018-06-14 | 2020-11-24 | Apple Inc. | Display system having an audio output device |
CN108924355A (en) * | 2018-06-29 | 2018-11-30 | 努比亚技术有限公司 | Signal frequency method of adjustment, mobile terminal and computer readable storage medium |
CN109765784A (en) * | 2019-01-11 | 2019-05-17 | 深圳市迷购网络科技有限公司 | Headset control method, earphone and computer readable storage medium |
CN110161508A (en) * | 2019-06-03 | 2019-08-23 | Oppo广东移动通信有限公司 | Distance measuring method, device, terminal and storage medium |
-
2020
- 2020-11-27 CN CN202011368106.9A patent/CN112291689B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108718431A (en) * | 2018-04-28 | 2018-10-30 | 歌尔股份有限公司 | A kind of wireless headset and its alarm method |
Also Published As
Publication number | Publication date |
---|---|
CN112291689A (en) | 2021-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112291689B (en) | Sound playback method, wearable device and readable storage medium | |
CN113709614B (en) | Volume adjustment method and device and computer readable storage medium | |
US20230111715A1 (en) | Fitting method and apparatus for hearing earphone | |
US9628911B2 (en) | Automatic audio system equalizing | |
US10951972B2 (en) | Dynamic on ear headset detection | |
CN106851460B (en) | Earphone and sound effect adjusting control method | |
US9264812B2 (en) | Apparatus and method for localizing a sound image, and a non-transitory computer readable medium | |
JP2025041666A (en) | Wearable Audio Device Placement Detection | |
CN111526467B (en) | Acoustic listening area mapping and frequency correction | |
CN110267155B (en) | Sound box control method and sound box | |
CN113099336B (en) | Method and device for adjusting earphone audio parameters, earphone and storage medium | |
CN110267144A (en) | Information processing method and apparatus, and storage medium | |
CN110536200A (en) | The devices, systems, and methods of audible equipment are conducted for tragus | |
CN106686188B (en) | A playback control method of a wearable device and the wearable device | |
US11889257B2 (en) | Wearable audio device zero-crossing based parasitic oscillation detection | |
CN113099335B (en) | Method and device for adjusting earphone audio parameters, electronic device, and earphone | |
US11206502B1 (en) | System and method for evaluating an ear seal using normalization | |
CN104956690B (en) | System for adapting sound signals to the ear in use | |
CN108270913B (en) | Mobile terminal and hearing protection method | |
US20100254538A1 (en) | Method for loudness-based adjustment of the amplification of a hearing aid and associated hearing aid | |
CN114885240B (en) | Noise reduction method, device, headphone device and storage medium | |
CN115086851A (en) | Human ear bone conduction transfer function measuring method, device, terminal equipment and medium | |
CN113873387B (en) | Volume adjusting method and system based on earphone terminal | |
JPH10294997A (en) | Processing circuit for voice signal and check device | |
US12250512B2 (en) | Acoustic reflex detection |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20221219 Address after: 266104 No. 500, Songling Road, Laoshan District, Qingdao, Shandong Patentee after: GOERTEK TECHNOLOGY Co.,Ltd. Address before: 261031 east of Dongming Road, north of Yuqing East Street, high tech Zone, Weifang City, Shandong Province (Room 502, Geer electronics office building) Patentee before: GoerTek Optical Technology Co.,Ltd. |
|
TR01 | Transfer of patent right |