[go: up one dir, main page]

CN115700876A - Wearable device, signal processing method and device - Google Patents

Wearable device, signal processing method and device Download PDF

Info

Publication number
CN115700876A
CN115700876A CN202211204510.1A CN202211204510A CN115700876A CN 115700876 A CN115700876 A CN 115700876A CN 202211204510 A CN202211204510 A CN 202211204510A CN 115700876 A CN115700876 A CN 115700876A
Authority
CN
China
Prior art keywords
sound
target
module
noise type
wearable device
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.)
Pending
Application number
CN202211204510.1A
Other languages
Chinese (zh)
Inventor
谢荣良
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202211204510.1A priority Critical patent/CN115700876A/en
Publication of CN115700876A publication Critical patent/CN115700876A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Soundproofing, Sound Blocking, And Sound Damping (AREA)

Abstract

本公开提供了一种可穿戴设备、信号处理方法及装置,该可穿戴设备包括音频采集模块、信号处理模块、控制模块和音频输出模块,所述音频采集模块,用于采集所述电子设备周围的环境音信号;所述信号处理模块,用于确定所述环境音信号的目标声压值,并根据设定噪声分类模型,确定所述环境音信号的目标噪声类型;以及,所述控制模块,用于在所述目标声压值大于设定声压阈值,且所述目标噪声类型符合设定噪声类型的情况下,控制所述音频输出模块播放目标掩蔽声。

Figure 202211204510

The present disclosure provides a wearable device, a signal processing method and a device. The wearable device includes an audio collection module, a signal processing module, a control module, and an audio output module. The audio collection module is used to collect The environmental sound signal; the signal processing module is used to determine the target sound pressure value of the environmental sound signal, and according to the set noise classification model, determine the target noise type of the environmental sound signal; and, the control module , for controlling the audio output module to play a target masking sound when the target sound pressure value is greater than a set sound pressure threshold and the target noise type conforms to the set noise type.

Figure 202211204510

Description

可穿戴设备、信号处理方法及装置Wearable device, signal processing method and device

技术领域technical field

本公开实施例涉及电子设备技术领域,更具体地,涉及一种可穿戴设备、信号处理方法及装置。Embodiments of the present disclosure relate to the technical field of electronic devices, and more specifically, to a wearable device, a signal processing method, and an apparatus.

背景技术Background technique

睡眠质量严重影响着人们的日常工作、学习和生活,随着可穿戴设备的不断发展,用户使用可穿戴设备也逐渐增多,如何基于可穿戴设备改善用户睡眠质量成为亟需解决的问题。Sleep quality seriously affects people's daily work, study and life. With the continuous development of wearable devices, more and more users use wearable devices. How to improve users' sleep quality based on wearable devices has become an urgent problem to be solved.

发明内容Contents of the invention

本公开实施例的一个目的是提供一种可穿戴设备的新的技术方案。An object of the embodiments of the present disclosure is to provide a new technical solution for a wearable device.

根据本公开实施例的第一方面,提供了一种可穿戴设备,包括音频采集模块、信号处理模块、控制模块和音频输出模块,According to the first aspect of an embodiment of the present disclosure, a wearable device is provided, including an audio collection module, a signal processing module, a control module and an audio output module,

所述音频采集模块,用于采集可穿戴设备周围的环境音信号;The audio collection module is used to collect ambient sound signals around the wearable device;

所述信号处理模块,用于确定所述环境音信号的目标声压值,并根据设定噪声分类模型,确定所述环境音信号的目标噪声类型;以及,The signal processing module is configured to determine the target sound pressure value of the environmental sound signal, and determine the target noise type of the environmental sound signal according to the set noise classification model; and,

所述控制模块,用于在所述目标声压值大于设定声压阈值,且所述目标噪声类型符合设定噪声类型的情况下,控制音频输出模块播放目标掩蔽声。The control module is configured to control the audio output module to play the target masking sound when the target sound pressure value is greater than the set sound pressure threshold and the target noise type conforms to the set noise type.

可选地,所述信号处理模块,还用于获取训练样本集;其中,所述训练样本集中每一训练样本包括环境音信号样本及其对应的噪声类型样本;以及,Optionally, the signal processing module is also used to obtain a training sample set; wherein, each training sample in the training sample set includes an environmental sound signal sample and its corresponding noise type sample; and,

根据所述训练样本集得到所述设定噪声类型模型。The set noise type model is obtained according to the training sample set.

可选地,所述可穿戴设备还包括接收模块和存储模块,Optionally, the wearable device further includes a receiving module and a storage module,

所述接收模块,用于接收第一声压值,并将所述第一声压值作为所述设定声压阈值存储至所述存储模块;以及,The receiving module is configured to receive a first sound pressure value, and store the first sound pressure value as the set sound pressure threshold in the storage module; and,

接收所述目标掩蔽声并存储至所述存储模块;其中,所述目标掩蔽声包括粉红噪声、白噪声、溪流声、海浪声、雨声中其中一项;以及,receiving the target masking sound and storing it in the storage module; wherein the target masking sound includes one of pink noise, white noise, stream sound, ocean wave sound, and rain sound; and,

接收所述目标掩蔽声的播放参数存储至所述存储模块;其中,所述播放参数包括播放周期、播放时长、播放循环次数、播放总时长中至少一项。The playback parameters receiving the target masking sound are stored in the storage module; wherein, the playback parameters include at least one item of playback period, playback duration, number of playback cycles, and total playback duration.

可选地,所述信号处理模块,具体用于在所述目标声压值大于设定声压阈值,且所述目标噪声类型符合设定噪声类型的情况下,控制所述音频输出模块基于所述播放参数播放目标掩蔽声;Optionally, the signal processing module is specifically configured to control the audio output module to Play the target masking sound with the above playback parameters;

所述控制模块,用于计算所述目标掩蔽声的第一播放时长或所述目标掩蔽声的播放周期重复次数;以及,The control module is configured to calculate the first playing duration of the target masking sound or the number of repetitions of the playing cycle of the target masking sound; and,

在所述第一播放时长达到所述播放总时长或所述播放周期重复次数达到所述播放周期的情况下,控制所述音频采集模块停止采集所述可穿戴设备周围的环境音信号。When the first playback duration reaches the total playback duration or the number of repetitions of the playback cycle reaches the playback cycle, the audio collection module is controlled to stop collecting environmental sound signals around the wearable device.

可选地,所述可穿戴设备包括外壳,所述外壳的侧面开设有所述音频采集模块的拾音孔和所述音频输出模块的出音孔,所述信号处理模块和所述控制模块设置于所述外壳内。Optionally, the wearable device includes a casing, and the side of the casing is provided with a sound pickup hole of the audio collection module and a sound outlet hole of the audio output module, and the signal processing module and the control module are set within the enclosure.

根据本公开的第二方面,提供一种信号处理方法,应用于以上第一方面所述的可穿戴设备,其中,所述方法包括:According to a second aspect of the present disclosure, a signal processing method is provided, which is applied to the wearable device described in the first aspect above, wherein the method includes:

采集所述可穿戴设备周围的环境音信号;collecting ambient sound signals around the wearable device;

确定所述环境音信号的目标声压值;determining the target sound pressure value of the ambient sound signal;

根据设定噪声类型模型,确定所述环境音信号的目标噪声类型;Determine the target noise type of the ambient sound signal according to the set noise type model;

在所述目标声压值大于设定声压阈值,且所述目标噪声类型符合设定噪声类型的情况下,控制所述音频输出模块播放目标掩蔽声。When the target sound pressure value is greater than the set sound pressure threshold and the target noise type conforms to the set noise type, the audio output module is controlled to play a target masking sound.

可选地,所述方法还包括:Optionally, the method also includes:

获取训练样本集;其中,所述训练样本集中每一训练样本包括环境音信号样本及其对应的噪声类型样本;以及,Obtain a training sample set; wherein, each training sample in the training sample set includes an environmental sound signal sample and its corresponding noise type sample; and,

根据所述训练样本集得到所述设定噪声类型模型。The set noise type model is obtained according to the training sample set.

根据本公开的第三方面,提供一种信号处理装置,应用于以上第一方面所述的可穿戴设备,其中,所述装置包括:According to a third aspect of the present disclosure, a signal processing device is provided, which is applied to the wearable device described in the first aspect above, wherein the device includes:

采集模块,用于采集可穿戴设备周围的环境音信号;The collection module is used to collect the ambient sound signal around the wearable device;

第一确定模块,用于确定所述环境音信号的目标声压值;A first determination module, configured to determine the target sound pressure value of the environmental sound signal;

第二确定模块,用于根据设定噪声类型模型,确定所述环境音信号的目标噪声类型;The second determination module is used to determine the target noise type of the environmental sound signal according to the set noise type model;

控制模块,用于在所述目标声压值大于设定声压阈值,且所述目标噪声类型符合设定噪声类型的情况下,控制所述音频输出模块播放目标掩蔽声。A control module, configured to control the audio output module to play a target masking sound when the target sound pressure value is greater than a set sound pressure threshold and the target noise type conforms to the set noise type.

可选地,所述信号处理装置还包括训练模块,用于:Optionally, the signal processing device also includes a training module for:

获取训练样本集;其中,所述训练样本集中每一训练样本包括环境音信号样本及其对应的噪声类型样本;以及,Obtain a training sample set; wherein, each training sample in the training sample set includes an environmental sound signal sample and its corresponding noise type sample; and,

根据所述训练样本集得到所述设定噪声类型模型Obtain the set noise type model according to the training sample set

根据本公开的第四方面,提供一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器运行时执行以上第二方面所述的信号处理方法。According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the signal processing method described in the second aspect above is executed.

本公开实施例的一个有益效果在于,可穿戴设备包括音频采集模块、信号处理模块、控制模块和音频输出模块,该音频采集模块用于采集可穿戴设备周围的环境音信号,信号处理模块用于确定环境音信号的目标声压值,并根据设定噪声分类模型,确定环境音信号的目标噪声类型,控制模块用于在目标声压值大于设定声压阈值,且目标噪声类型符合设定噪声类型的情况下,控制音频输出模块播放目标掩蔽声,可以改善环境中的噪声舒适度,从而改善用户的睡眠质量。A beneficial effect of the embodiments of the present disclosure is that the wearable device includes an audio collection module, a signal processing module, a control module and an audio output module, the audio collection module is used to collect environmental sound signals around the wearable device, and the signal processing module is used to Determine the target sound pressure value of the environmental sound signal, and determine the target noise type of the environmental sound signal according to the set noise classification model. In the case of the noise type, controlling the audio output module to play the target masking sound can improve the noise comfort in the environment, thereby improving the user's sleep quality.

通过以下参照附图对本说明书的示例性实施例的详细描述,本说明书的其它特征及其优点将会变得清楚。Other features of the present specification and advantages thereof will become apparent through the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings.

附图说明Description of drawings

被结合在说明书中并构成说明书的一部分的附图示出了本说明书的实施例,并且连同其说明一起用于解释本说明书的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate the embodiments of the specification and together with the description serve to explain the principles of the specification.

图1是根据本公开实施例的可穿戴设备的硬件配置示意图;FIG. 1 is a schematic diagram of a hardware configuration of a wearable device according to an embodiment of the disclosure;

图2是根据本公开实施例的智能手表的硬件配置示意图;2 is a schematic diagram of a hardware configuration of a smart watch according to an embodiment of the present disclosure;

图3是根据本公开实施例的信号处理方法的流程示意图;FIG. 3 is a schematic flowchart of a signal processing method according to an embodiment of the present disclosure;

图4是根据本公开一个例子的信号处理方法的流程示意图;FIG. 4 is a schematic flowchart of a signal processing method according to an example of the present disclosure;

图5是根据本公开实施例的信号处理装置的原理框图。FIG. 5 is a functional block diagram of a signal processing device according to an embodiment of the present disclosure.

具体实施方式Detailed ways

现在将参照附图来详细描述本公开的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本公开实施例的范围。Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that relative arrangements of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the embodiments of the present disclosure unless specifically stated otherwise.

以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本公开及其应用或使用的任何限制。The following description of at least one exemplary embodiment is merely illustrative in nature and in no way intended as any limitation of the disclosure, its application or uses.

对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods and devices should be considered part of the description.

在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。In all examples shown and discussed herein, any specific values should be construed as exemplary only, and not as limitations. Therefore, other instances of the exemplary embodiment may have different values.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that like numerals and letters denote like items in the following figures, therefore, once an item is defined in one figure, it does not require further discussion in subsequent figures.

<设备实施例><device embodiment>

图1是根据本公开实施例的可穿戴设备1的硬件配置的框图,参照图1所示,可穿戴设备1包括音频采集模块110、信号处理模块120、控制模块130和音频输出模块140。信号处理模块120分别与音频采集模块110和控制模块130连接,控制模块130还与音频输出模块140连接。1 is a block diagram of a hardware configuration of a wearable device 1 according to an embodiment of the present disclosure. Referring to FIG. The signal processing module 120 is respectively connected with the audio collection module 110 and the control module 130 , and the control module 130 is also connected with the audio output module 140 .

所述音频采集模块110用于采集所述可穿戴设备周围的环境音信号。The audio collection module 110 is used for collecting environmental sound signals around the wearable device.

所述信号处理模块120,用于确定所述环境音信号的目标声压值,并根据设定噪声分类模型,确定所述环境音信号的目标噪声类型。The signal processing module 120 is configured to determine the target sound pressure value of the environmental sound signal, and determine the target noise type of the environmental sound signal according to a set noise classification model.

所述控制模块130,用于在所述目标声压值大于设定声压阈值,且所述目标噪声类型符合设定噪声类型的情况下,控制音频输出模块140播放目标掩蔽声。The control module 130 is configured to control the audio output module 140 to play a target masking sound when the target sound pressure value is greater than a set sound pressure threshold and the target noise type conforms to the set noise type.

本实施例中,音频采集模块110可以包括麦克风,并且,音频采集模块110可以包括一个麦克风,也可以包括多个麦克风,以通过多个麦克风采集可穿戴设备当前所处环境的不同方位的环境音信号。其中,可穿戴设备可以包括但不限于智能耳机、智能手表、智能手环。In this embodiment, the audio collection module 110 may include a microphone, and the audio collection module 110 may include one microphone, or multiple microphones, so as to collect environmental sounds of different orientations of the environment where the wearable device is currently located through multiple microphones. Signal. Among them, wearable devices may include, but are not limited to, smart earphones, smart watches, and smart bracelets.

本实施例中,音频输出模块140可以包括扬声器,并且,音频输出模块140可以包括一个扬声器,也可以包括多个扬声器,以通过多个扬声器在电子当前所处环境的不同方位播放目标掩蔽声。In this embodiment, the audio output module 140 may include a speaker, and the audio output module 140 may include one speaker, or multiple speakers, so as to play target masking sounds in different directions of the electronic current environment through multiple speakers.

可选地,可穿戴设备1包括外壳,所述外壳的侧面开设有所述音频采集模块110的拾音孔和所述音频输出模块140的出音孔,所述信号处理模块120和所述控制模块130设置于所述外壳内。Optionally, the wearable device 1 includes a casing, and the sound pickup hole of the audio collection module 110 and the sound outlet hole of the audio output module 140 are opened on the side of the casing, and the signal processing module 120 and the control The module 130 is disposed in the housing.

参照图2,以可穿戴设备1为智能手表为例,智能手表包括外壳,外壳设置有表盘41,表盘41设置有指针42,外壳的侧面开孔,作为一个或多个麦克风的出音孔,图2中示出的是侧面开设一个麦克风的拾音孔43,以及侧面开孔,作为一个或多个扬声器的出音孔,图2中示出的是侧面开设一个扬声器的出音孔44。Referring to FIG. 2 , taking the wearable device 1 as an example of a smart watch, the smart watch includes a housing, the housing is provided with a dial 41, the dial 41 is provided with a pointer 42, and the side of the housing is opened as a sound hole for one or more microphones. Shown in Fig. 2 is that the sound pickup hole 43 of a microphone is opened on the side, and the side opening is used as the sound outlet of one or more speakers. What is shown in Fig. 2 is the sound outlet 44 of a speaker on the side.

在一个具体地实施例中,音频采集模块110采集可穿戴设备周围的环境音信号,并将所采集的环境音信号发送至信号处理模块120。一方面,信号处理模块120可以基于设定声压级计算公式计算环境音信号的声压值。另一方面,信号处理模块120可以将所采集的环境音信号输入至设定噪声分类模型中,以得到环境音信号所属的噪声类型作为目标噪声类型。In a specific embodiment, the audio collection module 110 collects ambient sound signals around the wearable device, and sends the collected ambient sound signals to the signal processing module 120 . On the one hand, the signal processing module 120 may calculate the sound pressure value of the ambient sound signal based on the set sound pressure level calculation formula. On the other hand, the signal processing module 120 may input the collected environmental sound signal into a set noise classification model to obtain the noise type to which the environmental sound signal belongs as the target noise type.

以上噪声分类模型可以反映环境音信号和其对应的噪声类型之间的关系,该噪声分类模型的输入为所采集的环境音信号,输出为该环境音信号所对应的噪声类型。该噪声分类模型可以为神经网络模型,例如但不限于是BP(Back Propagation)神经网络模型、卷积神经网络模型等,本实施例在此并不对噪声分类模型进行具体限定。在本实施例中,在信号处理模块120根据设定噪声分类模型,确定所述环境音信号的目标噪声类型之前还需要先基于训练样本集训练得到该设定噪声类型模型。The above noise classification model can reflect the relationship between the environmental sound signal and its corresponding noise type. The input of the noise classification model is the collected environmental sound signal, and the output is the noise type corresponding to the environmental sound signal. The noise classification model may be a neural network model, such as but not limited to a BP (Back Propagation) neural network model, a convolutional neural network model, etc. This embodiment does not specifically limit the noise classification model here. In this embodiment, before the signal processing module 120 determines the target noise type of the environmental sound signal according to the set noise classification model, it needs to be trained based on the training sample set to obtain the set noise type model.

在此,信号处理模块120在根据设定噪声分类模型,确定所述环境音信号的目标噪声类型之前,还用于获取训练样本集;其中,所述训练样本集中每一训练样本包括环境音信号样本及其对应的噪声类型样本;以及,根据所述训练样本集得到所述设定噪声类型模型。Here, the signal processing module 120 is also used to obtain a training sample set before determining the target noise type of the environmental sound signal according to the set noise classification model; wherein, each training sample in the training sample set includes an environmental sound signal samples and their corresponding noise type samples; and obtaining the set noise type model according to the training sample set.

训练样本的数量越多,训练结果也通常越精准,但训练样本达到一定数量后,训练结果的精度的增加将变的越来越缓慢,直至取向稳定。在此,可以兼顾训练结果的精度和数据处理成本确定所需的训练样本的数量。The larger the number of training samples, the more accurate the training results are. However, after a certain number of training samples is reached, the accuracy of the training results will increase slowly until the orientation is stable. Here, the required number of training samples can be determined taking into account the accuracy of the training results and the cost of data processing.

在一个具体地实施例中,信号处理模块120在确定出环境音信号的目标声压值和环境音信号的目标噪声类型之后,控制模块130会将目标声压值和设定声压阈值进行比较,以及将目标噪声类型和设定噪声类型进行比较,并在目标声压值大于设定声压阈值,且目标噪声类型符合设定噪声类型的情况下,控制音频输出模块140播放目标掩蔽声,帮助用户在休息期间,提供一个较为舒适地环境音掩蔽噪声,使其得到一个较好地环境,帮助用户更好地进入睡眠。In a specific embodiment, after the signal processing module 120 determines the target sound pressure value of the ambient sound signal and the target noise type of the ambient sound signal, the control module 130 will compare the target sound pressure value with the set sound pressure threshold , and comparing the target noise type with the set noise type, and when the target sound pressure value is greater than the set sound pressure threshold and the target noise type conforms to the set noise type, control the audio output module 140 to play the target masking sound, Help the user to provide a more comfortable environment sound to mask the noise during the rest period, so that they can get a better environment and help the user to fall asleep better.

设定声压阈值可以是可穿戴设备出厂时默认设置的声压值,也可以是由用户根据自身的偏好度自定义设置的声压值。在本实施例中,可穿戴设备还包括通信模块、接收模块和存储模块。The set sound pressure threshold may be a sound pressure value set by default when the wearable device leaves the factory, or may be a sound pressure value customized by the user according to his own preference. In this embodiment, the wearable device further includes a communication module, a receiving module and a storage module.

在此,控制模块130在目标声压值大于设定声压阈值,且目标噪声类型符合设定噪声类型的情况下,控制音频输出模块140播放目标掩蔽声之前,通信模块用于和外部设备建立通信连接;接收模块用于基于所述通信连接,接收第一声压值,并将所述第一声压值作为所述设定声压阈值存储至所述存储模块。Here, the control module 130 controls the audio output module 140 to play the target masking sound before the target sound pressure value is greater than the set sound pressure threshold and the target noise type conforms to the set noise type. A communication connection; the receiving module is configured to receive a first sound pressure value based on the communication connection, and store the first sound pressure value as the set sound pressure threshold in the storage module.

其中,通过通信模块能够和外部设备建立有线或无线通信连接,通过接收模块基于该通信连接便可接收用户通过外部设备自定义设置的设定声压阈值。Wherein, the communication module can establish a wired or wireless communication connection with the external device, and the receiving module can receive the set sound pressure threshold value customized by the user through the external device based on the communication connection.

设定噪声类型通常是可穿戴设备出厂时默认设置的噪声类型,该类型的噪声通常会影响用户睡眠质量,且该类型的噪声通常为中低频率噪声。在此,该设定噪声类型可以包括但不限于装修噪声、敲打噪声、吵闹噪声。可以理解的是,由于设定噪声类型设置的专业性较强,通常不会由用户对该设定噪声类型进行设置,而是在可穿戴设备出厂时默认设置。The set noise type is usually the default noise type set by the wearable device when it leaves the factory. This type of noise usually affects the user's sleep quality, and this type of noise is usually low-to-medium frequency noise. Here, the set noise type may include but not limited to decoration noise, knocking noise, and loud noise. It can be understood that, due to the strong professionalism of setting the noise type, the user usually does not set the noise type, but it is set by default when the wearable device leaves the factory.

目标掩蔽声可以是可穿戴设备出厂时默认设置的掩蔽声,也可以是由用户根据自身的偏好度自定义的掩蔽声,例如但不限于包括粉红噪声、白噪声、溪流声、海浪声、雨声中其中一项。The target masking sound can be the masking sound set by default when the wearable device leaves the factory, or it can be a masking sound customized by the user according to their own preferences, such as but not limited to pink noise, white noise, stream sound, ocean wave sound, rain One of the voices.

在此,控制模块130在目标声压值大于设定声压阈值,且目标噪声类型符合设定噪声类型的情况下,控制音频输出模块140播放目标掩蔽声之前,接收模块用于基于所述通信连接,接收所述目标掩蔽声并存储至所述存储模块;其中,所述目标掩蔽声包括粉红噪声、白噪声、溪流声、海浪声、雨声中其中一项。Here, when the target sound pressure value is greater than the set sound pressure threshold and the target noise type conforms to the set noise type, the control module 130 controls the audio output module 140 to play the target masking sound, and the receiving module is used to connected to receive the target masking sound and store it in the storage module; wherein the target masking sound includes one of pink noise, white noise, stream sound, ocean wave sound, and rain sound.

可以理解的是,无论是为了改善睡眠还是隔绝噪声,都要避免长时间使用白噪声,以防止产生依赖,降低大脑对于听觉空间的敏感性,甚至损害大脑感知声音与地理位置的综合能力。It is understandable that, whether it is to improve sleep or isolate noise, it is necessary to avoid using white noise for a long time to prevent dependence, reduce the sensitivity of the brain to auditory space, and even damage the comprehensive ability of the brain to perceive sound and geographical location.

在一个具体地实施例中,控制模块130在目标声压值大于设定声压阈值,且目标噪声类型符合设定噪声类型的情况下,控制音频输出模块140基于播放参数播放目标掩蔽声。In a specific embodiment, the control module 130 controls the audio output module 140 to play the target masking sound based on the playing parameters when the target sound pressure value is greater than the set sound pressure threshold and the target noise type conforms to the set noise type.

播放参数可以是可穿戴设备出厂时默认设置的针对目标掩蔽声的播放参数,也可以是由用户根据自身的偏好度自定义的播放参数,播放参数例如但不限于包括播放周期X、播放时长t0(s)、播放循环次数i。其中,播放周期X表示播放次数,播放循环次数i表示每一个播放周期的循环次数,播放时长t0表示每一个循环次数的播放时长,具体可以理解为,音频输出模块140可以在一个播放周期内播放i次目标掩蔽声,且每次播放t0(s)。The playback parameters can be the playback parameters for the target masking sound set by default when the wearable device leaves the factory, or the playback parameters customized by the user according to their own preferences. The playback parameters include, but are not limited to, the playback cycle X, the playback duration t0 (s), the number of playback cycles i. Wherein, the play cycle X represents the number of plays, the play cycle number i represents the cycle number of each play cycle, and the play duration t0 represents the play time of each cycle. Specifically, it can be understood that the audio output module 140 can play in one play cycle. The target masking sound is played i times, and t0(s) is played each time.

在此,控制模块130在目标声压值大于设定声压阈值,且目标噪声类型符合设定噪声类型的情况下,控制音频输出模块140播放目标掩蔽声之前,接收模块用于基于所述通信连接,接收所述目标掩蔽声的播放参数并存储至所述存储模块;其中,所述播放参数包括播放周期、播放时长、播放循环次数、播放总时长中至少一项。Here, when the target sound pressure value is greater than the set sound pressure threshold and the target noise type conforms to the set noise type, the control module 130 controls the audio output module 140 to play the target masking sound, and the receiving module is used to Connecting, receiving the playing parameters of the target masker and storing them in the storage module; wherein, the playing parameters include at least one of the playing cycle, playing duration, number of playing cycles, and total playing time.

可以理解的是,播放总时长可以是由播放周期、播放时长、播放循环次数计算得到,例如播放总时长t=X*t0*i,播放总时长用于进行后续处理。It can be understood that the total playback duration can be calculated from the playback cycle, playback duration, and playback cycle times, for example, the total playback duration ttotal =X*t0*i, and the total playback duration is used for subsequent processing.

根据本公开实施例,可穿戴设备包括音频采集模块、信号处理模块、控制模块和音频输出模块,该音频采集模块用于采集可穿戴设备周围的环境音信号,信号处理模块用于确定环境音信号的目标声压值,并根据设定噪声分类模型,确定环境音信号的目标噪声类型,控制模块用于在目标声压值大于设定声压阈值,且目标噪声类型符合设定噪声类型的情况下,控制音频输出模块播放目标掩蔽声,可以改善环境中的噪声舒适度,从而改善用户的睡眠质量。According to an embodiment of the present disclosure, the wearable device includes an audio collection module, a signal processing module, a control module, and an audio output module, the audio collection module is used to collect the environmental sound signal around the wearable device, and the signal processing module is used to determine the environmental sound signal The target sound pressure value, and according to the set noise classification model, determine the target noise type of the ambient sound signal, the control module is used to set the target sound pressure value is greater than the set sound pressure threshold, and the target noise type conforms to the set noise type Next, controlling the audio output module to play the target masking sound can improve the noise comfort in the environment, thereby improving the user's sleep quality.

在一个实施例中,所述控制模块130,用于计算所述目标掩蔽声的第一播放时长或所述目标掩蔽声的播放周期重复次数;以及,在所述第一播放时长达到所述播放总时长或所述播放周期重复次数达到所述播放周期的情况下,控制所述音频采集模块停止采集可穿戴设备周围的噪声信号。In one embodiment, the control module 130 is configured to calculate the first playing duration of the target masking sound or the number of repetitions of the playing cycle of the target masking sound; and, when the first playing duration reaches the playing When the total duration or the number of repetitions of the playback cycle reaches the playback cycle, the audio collection module is controlled to stop collecting noise signals around the wearable device.

在一个具体地实施例中,音频输出模块140基于播放参数播放目标掩蔽声的情况下,控制模块130可以计算目标掩蔽声的实际播放时长或目标掩蔽声的播放周期重复次数y,并在实际播放时长达到播放总时长或播放周期重复次数y达到播放周期T的情况下,控制音频采集模块110停止采集可穿戴设备周围的环境音信号,反之,则继续由音频采集模块110采集可穿戴设备周围的环境音信号。In a specific embodiment, when the audio output module 140 plays the target masking sound based on the playing parameters, the control module 130 can calculate the actual playing duration of the target masking sound or the number of repetitions y of the target masking sound, and When the duration reaches the total playback duration or the number of repetitions of the playback cycle y reaches the playback cycle T, the audio collection module 110 is controlled to stop collecting ambient sound signals around the wearable device; otherwise, the audio collection module 110 continues to collect ambient sound signals around the wearable device. Ambient sound signal.

<方法实施例><method embodiment>

图3示出了本公开的一个实施例的信号处理方法,该信号处理方法例如可以由以上设备实施例中的任一可穿戴设备实施。Fig. 3 shows a signal processing method according to an embodiment of the present disclosure, for example, the signal processing method may be implemented by any wearable device in the above device embodiments.

如图3所示,该实施例提供的信号处理方法可以包括以下步骤S3100~S3400。As shown in FIG. 3 , the signal processing method provided by this embodiment may include the following steps S3100-S3400.

步骤S3100,采集所述可穿戴设备周围的环境音信号。Step S3100, collecting environmental sound signals around the wearable device.

步骤S3200,确定所述环境音信号的目标声压值。Step S3200, determining the target sound pressure value of the environmental sound signal.

步骤S3300,根据设定噪声类型模型,确定所述环境音信号的目标噪声类型。Step S3300: Determine the target noise type of the environmental sound signal according to the set noise type model.

步骤S3400,在所述目标声压值大于设定声压阈值,且所述目标噪声类型符合设定噪声类型的情况下,控制所述音频输出模块播放目标掩蔽声。Step S3400, when the target sound pressure value is greater than the set sound pressure threshold and the target noise type conforms to the set noise type, control the audio output module to play a target masking sound.

根据本公开实施例,可穿戴设备包括音频采集模块、信号处理模块、控制模块和音频输出模块,该音频采集模块用于采集可穿戴设备周围的环境音信号,信号处理模块用于确定环境音信号的目标声压值,并根据设定噪声分类模型,确定环境音信号的目标噪声类型,控制模块用于在目标声压值大于设定声压阈值,且目标噪声类型符合设定噪声类型的情况下,控制音频输出模块播放目标掩蔽声,可以改善环境中的噪声舒适度,从而改善用户的睡眠质量。According to an embodiment of the present disclosure, the wearable device includes an audio collection module, a signal processing module, a control module, and an audio output module, the audio collection module is used to collect the environmental sound signal around the wearable device, and the signal processing module is used to determine the environmental sound signal The target sound pressure value, and according to the set noise classification model, determine the target noise type of the ambient sound signal, the control module is used to set the target sound pressure value is greater than the set sound pressure threshold, and the target noise type conforms to the set noise type Next, controlling the audio output module to play the target masking sound can improve the noise comfort in the environment, thereby improving the user's sleep quality.

在一个实施例中,本公开实施例的信号处理方法还包括:获取训练样本集;其中,所述训练样本集中每一训练样本包括环境音信号样本及其对应的噪声类型样本;以及,根据所述训练样本集得到所述设定噪声类型模型。In one embodiment, the signal processing method of the embodiment of the present disclosure further includes: obtaining a training sample set; wherein, each training sample in the training sample set includes an environmental sound signal sample and its corresponding noise type sample; and, according to the The training sample set is used to obtain the set noise type model.

根据本实施例,在训练得到设定噪声类型模型之后,便可基于该设定噪声类型模型确定出环境音信号的目标噪声类型,可以提高环境音信号的噪声类型的识别准确性。According to this embodiment, after the set noise type model is obtained through training, the target noise type of the environmental sound signal can be determined based on the set noise type model, which can improve the recognition accuracy of the noise type of the environmental sound signal.

<例子><example>

接下来以可穿戴设备为智能手表为例,示出一个例子的基于该智能手表的信号处理方法,参照图1和图4,该信号处理方法包括如下步骤:Next, taking the wearable device as a smart watch as an example, an example signal processing method based on the smart watch is shown. Referring to Fig. 1 and Fig. 4, the signal processing method includes the following steps:

步骤S601,建立智能手表与手机之间的短距离通信连接,手机基于短通信连接通过所安装的辅助睡眠助手对智能手表的参数进行设置,具体可以设置设定声压阈值P0、目标掩蔽声、目标掩蔽声的播放参数,该播放参数可以包括播放周期T、播放时长t0、循环次数i、播放总时长tStep S601, establishing a short-distance communication connection between the smart watch and the mobile phone. Based on the short-distance communication connection, the mobile phone sets the parameters of the smart watch through the installed auxiliary sleep assistant. Specifically, you can set the sound pressure threshold P0, target masking sound, The playback parameters of the target masker, which may include the playback period T, the playback duration t0, the number of cycles i, and the total playback duration ttotal .

短距离通信连接可以是蓝牙连接、WiFi连接中的任意一种。The short-distance communication connection may be any one of Bluetooth connection and WiFi connection.

步骤S602,智能手表中的音频采集模块采集智能手表周围的环境音信号,并将采集到的智能手表周围的环境音信号发送至信号处理模块。Step S602, the audio collection module in the smart watch collects ambient sound signals around the smart watch, and sends the collected ambient sound signals around the smart watch to the signal processing module.

当然,也可以是手机中的音频采集模块采集智能手表周围的环境音信号,并将采集到的智能手表周围的环境音信号发送至信号处理模块。Of course, the audio collection module in the mobile phone can also collect the ambient sound signals around the smart watch, and send the collected ambient sound signals around the smart watch to the signal processing module.

步骤S603,信号处理模块确定环境音信号的目标声压值,以及根据设定噪声分类模型,确定该环境音信号的目标噪声类型,进一步将环境音信号的目标声压值和环境音信号的目标噪声类型发送至控制模块。Step S603, the signal processing module determines the target sound pressure value of the environmental sound signal, and determines the target noise type of the environmental sound signal according to the set noise classification model, and further combines the target sound pressure value of the environmental sound signal with the target sound pressure value of the environmental sound signal The noise pattern is sent to the control module.

步骤S604,控制模块判断目标声压值是否大于设定声压阈值,以及,判断目标噪声类型是否符合设定噪声类型,是的话,执行步骤S605,反之,继续执行步骤S602。Step S604, the control module judges whether the target sound pressure value is greater than the set sound pressure threshold, and judges whether the target noise type conforms to the set noise type, if yes, execute step S605, otherwise, continue to execute step S602.

步骤S605,控制模块在目标声压值大于设定声压阈值,且目标噪声类型符合设定噪声类型的情况下,控制音频输出基于播放参数播放目标掩蔽声,例如音频输出模块基于播放周期T播放目标掩蔽声,并在一个播放周期内播放目标掩蔽声i次,且每次播放目标掩蔽声t0(s)。Step S605, when the target sound pressure value is greater than the set sound pressure threshold and the target noise type conforms to the set noise type, the control module controls the audio output to play the target masking sound based on the playback parameters, for example, the audio output module plays based on the playback period T Target masking sound, and play the target masking sound i times in a playback cycle, and play the target masking sound t0(s) each time.

步骤S606,控制模块计算目标掩蔽声的播放时长或目标掩蔽声的播放周期重复次数y。In step S606, the control module calculates the playing duration of the target masker or the number of repetitions y of the playing cycle of the target masker.

步骤S607,控制模块判断目标掩蔽声的实际播放时长是否达到播放总时长,或目标掩蔽声的播放周期重复次数y是否达到播放周期T,在实际播放时长达到播放总时长t或播放周期重复次数y达到播放周期T的情况下,控制音频采集模块停止采集可穿戴设备周围的环境音信号,反之,继续执行以上步骤S602。Step S607, the control module judges whether the actual playing time of the target masking sound has reached the total playing time, or whether the playing cycle repetition number y of the target masking sound has reached the playing cycle T, when the actual playing time reaches the total playing time t or the playing cycle repeating times When y reaches the playback period T, control the audio collection module to stop collecting environmental sound signals around the wearable device; otherwise, continue to execute the above step S602.

根据本例子,智能手表在环境中有持续地不规则的噪声(如装修声,敲打声,吵闹声等)时,可以帮助用户在休息期间,提供一个较为舒适地环境音掩蔽噪声,使其得到一个较好地环境,帮助用户更好地进入睡眠。According to this example, when there are continuous and irregular noises in the environment (such as decoration sound, knocking sound, loud noise, etc.), the smart watch can help the user to provide a more comfortable environment sound to mask the noise during the rest period, so that they can get A better environment helps users to sleep better.

<装置实施例><Device embodiment>

图5是根据一个实施例的信号处理装置的结构示意图。应用于以上设备实施例中的任一可穿戴设备,其中,如图5所示,该信号处理装置700包括采集模块710、第一确定模块720、第二确定模块730和控制模块740。Fig. 5 is a schematic structural diagram of a signal processing device according to an embodiment. Applicable to any wearable device in the above device embodiments, wherein, as shown in FIG. 5 , the signal processing device 700 includes an acquisition module 710 , a first determination module 720 , a second determination module 730 and a control module 740 .

采集模块710,用于采集可穿戴设备周围的噪声信号;A collection module 710, configured to collect noise signals around the wearable device;

第一确定模块720,用于确定所述噪声信号的目标声压值;The first determination module 720 is configured to determine the target sound pressure value of the noise signal;

第二确定模块730,用于根据设定噪声类型模型,确定所述噪声信号的目标噪声类型;The second determination module 730 is used to determine the target noise type of the noise signal according to the set noise type model;

控制模块740,用于在所述目标声压值大于设定声压阈值,且所述目标噪声类型符合设定噪声类型的情况下,控制所述音频输出模块播放目标掩蔽声。The control module 740 is configured to control the audio output module to play a target masking sound when the target sound pressure value is greater than the set sound pressure threshold and the target noise type conforms to the set noise type.

在一个实施例中,信号处理装置700还包括训练模块(图中未示出),用于获取训练样本集;其中,所述训练样本集中每一训练样本包括环境音信号样本及其对应的噪声类型样本;以及,根据所述训练样本集得到所述设定噪声类型模型。In one embodiment, the signal processing device 700 also includes a training module (not shown in the figure), which is used to obtain a training sample set; wherein, each training sample in the training sample set includes an environmental sound signal sample and its corresponding noise type samples; and obtaining the set noise type model according to the training sample set.

根据本公开实施例,可穿戴设备包括音频采集模块、信号处理模块、控制模块和音频输出模块,该音频采集模块用于采集可穿戴设备周围的环境音信号,信号处理模块用于确定环境音信号的目标声压值,并根据设定噪声分类模型,确定环境音信号的目标噪声类型,控制模块用于在目标声压值大于设定声压阈值,且目标噪声类型符合设定噪声类型的情况下,控制音频输出模块播放目标掩蔽声,可以改善环境中的噪声舒适度,从而改善用户的睡眠质量。According to an embodiment of the present disclosure, the wearable device includes an audio collection module, a signal processing module, a control module, and an audio output module, the audio collection module is used to collect the environmental sound signal around the wearable device, and the signal processing module is used to determine the environmental sound signal The target sound pressure value, and according to the set noise classification model, determine the target noise type of the ambient sound signal, the control module is used to set the target sound pressure value is greater than the set sound pressure threshold, and the target noise type conforms to the set noise type Next, controlling the audio output module to play the target masking sound can improve the noise comfort in the environment, thereby improving the user's sleep quality.

<计算机可读存储介质><Computer-readable storage medium>

本公开实施例还提供了一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器运行时执行本公开实施例提供的信号处理方法。Embodiments of the present disclosure also provide a computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the signal processing method provided by the embodiments of the present disclosure is executed.

本公开可以是系统、方法和/或计算机程序产品。计算机程序产品可以包括计算机可读存储介质,其上载有用于使处理器实现本公开的各个方面的计算机可读程序指令。The present disclosure can be a system, method and/or computer program product. A computer program product may include a computer readable storage medium having computer readable program instructions thereon for causing a processor to implement various aspects of the present disclosure.

计算机可读存储介质可以是可以保持和存储由指令执行设备使用的指令的有形设备。计算机可读存储介质例如可以是――但不限于――电存储设备、磁存储设备、光存储设备、电磁存储设备、半导体存储设备或者上述的任意合适的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、静态随机存取存储器(SRAM)、便携式压缩盘只读存储器(CD-ROM)、数字多功能盘(DVD)、记忆棒、软盘、机械编码设备、例如其上存储有指令的打孔卡或凹槽内凸起结构、以及上述的任意合适的组合。这里所使用的计算机可读存储介质不被解释为瞬时信号本身,诸如无线电波或者其他自由传播的电磁波、通过波导或其他传输媒介传播的电磁波(例如,通过光纤电缆的光脉冲)、或者通过电线传输的电信号。A computer readable storage medium may be a tangible device that can retain and store instructions for use by an instruction execution device. A computer readable storage medium may be, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of computer-readable storage media include: portable computer diskettes, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory), static random access memory (SRAM), compact disc read only memory (CD-ROM), digital versatile disc (DVD), memory stick, floppy disk, mechanically encoded device, such as a printer with instructions stored thereon A hole card or a raised structure in a groove, and any suitable combination of the above. As used herein, computer-readable storage media are not to be construed as transient signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., pulses of light through fiber optic cables), or transmitted electrical signals.

这里所描述的计算机可读程序指令可以从计算机可读存储介质下载到各个计算/处理设备,或者通过网络、例如因特网、局域网、广域网和/或无线网下载到外部计算机或外部存储设备。网络可以包括铜传输电缆、光纤传输、无线传输、路由器、防火墙、交换机、网关计算机和/或边缘服务器。每个计算/处理设备中的网络适配卡或者网络接口从网络接收计算机可读程序指令,并转发该计算机可读程序指令,以供存储在各个计算/处理设备中的计算机可读存储介质中。Computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or downloaded to an external computer or external storage device over a network, such as the Internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and/or edge servers. A network adapter card or a network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing/processing device .

用于执行本公开操作的计算机程序指令可以是汇编指令、指令集架构(ISA)指令、机器指令、机器相关指令、微代码、固件指令、状态设置数据、或者以一种或多种编程语言的任意组合编写的源代码或目标代码,所述编程语言包括面向对象的编程语言—诸如Smalltalk、C++等,以及常规的过程式编程语言—诸如“C”语言或类似的编程语言。计算机可读程序指令可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络—包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。在一些实施例中,通过利用计算机可读程序指令的状态信息来个性化定制电子电路,例如可编程逻辑电路、现场可编程门阵列(FPGA)或可编程逻辑阵列(PLA),该电子电路可以执行计算机可读程序指令,从而实现本公开的各个方面。Computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or Source or object code written in any combination, including object-oriented programming languages—such as Smalltalk, C++, etc., and conventional procedural programming languages—such as the “C” language or similar programming languages. Computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server implement. In cases involving a remote computer, the remote computer can be connected to the user computer through any kind of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (such as via the Internet using an Internet service provider). connect). In some embodiments, an electronic circuit, such as a programmable logic circuit, field programmable gate array (FPGA), or programmable logic array (PLA), can be customized by utilizing state information of computer-readable program instructions, which can Various aspects of the present disclosure are implemented by executing computer readable program instructions.

这里参照根据本公开实施例的方法、装置(系统)和计算机程序产品的流程图和/或框图描述了本公开的各个方面。应当理解,流程图和/或框图的每个方框以及流程图和/或框图中各方框的组合,都可以由计算机可读程序指令实现。Aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It should be understood that each block of the flowcharts and/or block diagrams, and combinations of blocks in the flowcharts and/or block diagrams, can be implemented by computer-readable program instructions.

这些计算机可读程序指令可以提供给通用计算机、专用计算机或其它可编程数据处理装置的处理器,从而生产出一种机器,使得这些指令在通过计算机或其它可编程数据处理装置的处理器执行时,产生了实现流程图和/或框图中的一个或多个方框中规定的功能/动作的装置。也可以把这些计算机可读程序指令存储在计算机可读存储介质中,这些指令使得计算机、可编程数据处理装置和/或其他设备以特定方式工作,从而,存储有指令的计算机可读介质则包括一个制造品,其包括实现流程图和/或框图中的一个或多个方框中规定的功能/动作的各个方面的指令。These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine such that when executed by the processor of the computer or other programmable data processing apparatus , producing an apparatus for realizing the functions/actions specified in one or more blocks in the flowchart and/or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause computers, programmable data processing devices and/or other devices to work in a specific way, so that the computer-readable medium storing instructions includes An article of manufacture comprising instructions for implementing various aspects of the functions/acts specified in one or more blocks in flowcharts and/or block diagrams.

也可以把计算机可读程序指令加载到计算机、其它可编程数据处理装置、或其它设备上,使得在计算机、其它可编程数据处理装置或其它设备上执行一系列操作步骤,以产生计算机实现的过程,从而使得在计算机、其它可编程数据处理装置、或其它设备上执行的指令实现流程图和/或框图中的一个或多个方框中规定的功能/动作。It is also possible to load computer-readable program instructions into a computer, other programmable data processing device, or other equipment, so that a series of operational steps are performed on the computer, other programmable data processing device, or other equipment to produce a computer-implemented process , so that instructions executed on computers, other programmable data processing devices, or other devices implement the functions/actions specified in one or more blocks in the flowcharts and/or block diagrams.

附图中的流程图和框图显示了根据本公开的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或指令的一部分,所述模块、程序段或指令的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。对于本领域技术人员来说公知的是,通过硬件方式实现、通过软件方式实现以及通过软件和硬件结合的方式实现都是等价的。The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in a flowchart or block diagram may represent a module, a portion of a program segment, or an instruction that includes one or more Executable instructions. In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or they may sometimes be executed in the reverse order, depending upon the functionality involved. It should also be noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by a dedicated hardware-based system that performs the specified function or action , or may be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation by means of hardware, implementation by means of software, and implementation by a combination of software and hardware are all equivalent.

以上已经描述了本公开的各实施例,上述说明是示例性的,并非穷尽性的,并且也不限于所披露的各实施例。在不偏离所说明的各实施例的范围和精神的情况下,对于本技术领域的普通技术人员来说许多修改和变更都是显而易见的。本文中所用术语的选择,旨在最好地解释各实施例的原理、实际应用或对市场中的技术改进,或者使本技术领域的其它普通技术人员能理解本文披露的各实施例。本公开的范围由所附权利要求来限定。Having described various embodiments of the present disclosure above, the foregoing description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and alterations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principle of each embodiment, practical application or technical improvement in the market, or to enable other ordinary skilled in the art to understand each embodiment disclosed herein. The scope of the present disclosure is defined by the appended claims.

Claims (10)

1.一种可穿戴设备,其中,包括音频采集模块、信号处理模块、控制模块和音频输出模块,1. A wearable device, wherein, comprising an audio acquisition module, a signal processing module, a control module and an audio output module, 所述音频采集模块,用于采集所述可穿戴设备周围的环境音信号;The audio collection module is used to collect environmental sound signals around the wearable device; 所述信号处理模块,用于确定所述环境音信号的目标声压值,并根据设定噪声分类模型,确定所述环境音信号的目标噪声类型;以及,The signal processing module is configured to determine the target sound pressure value of the environmental sound signal, and determine the target noise type of the environmental sound signal according to the set noise classification model; and, 所述控制模块,用于在所述目标声压值大于设定声压阈值,且所述目标噪声类型符合设定噪声类型的情况下,控制所述音频输出模块播放目标掩蔽声。The control module is configured to control the audio output module to play a target masking sound when the target sound pressure value is greater than a set sound pressure threshold and the target noise type conforms to the set noise type. 2.根据权利要求1所述的可穿戴设备,其中,2. The wearable device according to claim 1, wherein, 所述信号处理模块,还用于获取训练样本集;其中,所述训练样本集中每一训练样本包括环境音信号样本及其对应的噪声类型样本;以及,The signal processing module is also used to obtain a training sample set; wherein, each training sample in the training sample set includes an environmental sound signal sample and its corresponding noise type sample; and, 根据所述训练样本集得到所述设定噪声类型模型。The set noise type model is obtained according to the training sample set. 3.根据权利要求1所述的可穿戴设备,其中,所述可穿戴设备还包括接收模块和存储模块,3. The wearable device according to claim 1, wherein the wearable device further comprises a receiving module and a storage module, 所述接收模块,用于接收第一声压值,并将所述第一声压值作为所述设定声压阈值存储至所述存储模块;以及,The receiving module is configured to receive a first sound pressure value, and store the first sound pressure value as the set sound pressure threshold in the storage module; and, 接收所述目标掩蔽声并存储至所述存储模块;其中,所述目标掩蔽声包括粉红噪声、白噪声、溪流声、海浪声、雨声中其中一项;以及,receiving the target masking sound and storing it in the storage module; wherein the target masking sound includes one of pink noise, white noise, stream sound, ocean wave sound, and rain sound; and, 接收所述目标掩蔽声的播放参数存储至所述存储模块;其中,所述播放参数包括播放周期、播放时长、播放循环次数、播放总时长中至少一项。The playback parameters receiving the target masking sound are stored in the storage module; wherein, the playback parameters include at least one item of playback period, playback duration, number of playback cycles, and total playback duration. 4.根据权利要求3所述的可穿戴设备,其中,4. The wearable device according to claim 3, wherein, 所述信号处理模块,具体用于在所述目标声压值大于设定声压阈值,且所述目标噪声类型符合设定噪声类型的情况下,控制所述音频输出模块基于所述播放参数播放目标掩蔽声;The signal processing module is specifically configured to control the audio output module to play based on the playback parameters when the target sound pressure value is greater than the set sound pressure threshold and the target noise type conforms to the set noise type. target masking sound; 所述控制模块,用于计算所述目标掩蔽声的第一播放时长或所述目标掩蔽声的播放周期重复次数;以及,The control module is configured to calculate the first playing duration of the target masking sound or the number of repetitions of the playing cycle of the target masking sound; and, 在所述第一播放时长达到所述播放总时长或所述播放周期重复次数达到所述播放周期的情况下,控制所述音频采集模块停止采集所述可穿戴设备周围的环境音信号。When the first playback duration reaches the total playback duration or the number of repetitions of the playback cycle reaches the playback cycle, the audio collection module is controlled to stop collecting environmental sound signals around the wearable device. 5.根据权利要求1所述的可穿戴设备,其中,所述可穿戴设备包括外壳,所述外壳的侧面开设有所述音频采集模块的拾音孔和所述音频输出模块的出音孔,所述信号处理模块和所述控制模块设置于所述外壳内。5. The wearable device according to claim 1, wherein the wearable device comprises a casing, and the side of the casing is provided with a sound pickup hole of the audio collection module and a sound outlet hole of the audio output module, The signal processing module and the control module are arranged in the housing. 6.一种信号处理方法,应用于权利要求1-5任一项所述的可穿戴设备,其中,所述方法包括:6. A signal processing method applied to the wearable device according to any one of claims 1-5, wherein the method comprises: 采集所述可穿戴设备周围的环境音信号;collecting ambient sound signals around the wearable device; 确定所述环境音信号的目标声压值;determining the target sound pressure value of the ambient sound signal; 根据设定噪声类型模型,确定所述环境音信号的目标噪声类型;Determine the target noise type of the ambient sound signal according to the set noise type model; 在所述目标声压值大于设定声压阈值,且所述目标噪声类型符合设定噪声类型的情况下,控制所述音频输出模块播放目标掩蔽声。When the target sound pressure value is greater than the set sound pressure threshold and the target noise type conforms to the set noise type, the audio output module is controlled to play a target masking sound. 7.根据权利要求6所述的方法,其特征在于,所述方法还包括:7. The method according to claim 6, further comprising: 获取训练样本集;其中,所述训练样本集中每一训练样本包括环境音信号样本及其对应的噪声类型样本;以及,Obtain a training sample set; wherein, each training sample in the training sample set includes an environmental sound signal sample and its corresponding noise type sample; and, 根据所述训练样本集得到所述设定噪声类型模型。The set noise type model is obtained according to the training sample set. 8.一种信号处理装置,应用于权利要求1-5任一项所述的可穿戴设备,其中,所述装置包括:8. A signal processing device, applied to the wearable device according to any one of claims 1-5, wherein the device comprises: 采集模块,用于采集可穿戴设备周围的噪声信号;An acquisition module, configured to acquire noise signals around the wearable device; 第一确定模块,用于确定所述噪声信号的目标声压值;A first determining module, configured to determine a target sound pressure value of the noise signal; 第二确定模块,用于根据设定噪声类型模型,确定所述噪声信号的目标噪声类型;The second determination module is used to determine the target noise type of the noise signal according to the set noise type model; 控制模块,用于在所述目标声压值大于设定声压阈值,且所述目标噪声类型符合设定噪声类型的情况下,控制所述音频输出模块播放目标掩蔽声。A control module, configured to control the audio output module to play a target masking sound when the target sound pressure value is greater than a set sound pressure threshold and the target noise type conforms to the set noise type. 9.根据权利要求8所述的信号处理装置,其特征在于,所述信号处理装置还包括训练模块,用于:9. The signal processing device according to claim 8, characterized in that, the signal processing device also includes a training module for: 获取训练样本集;其中,所述训练样本集中每一训练样本包括环境音信号样本及其对应的噪声类型样本;以及,Obtain a training sample set; wherein, each training sample in the training sample set includes an environmental sound signal sample and its corresponding noise type sample; and, 根据所述训练样本集得到所述设定噪声类型模型。The set noise type model is obtained according to the training sample set. 10.一种计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器运行时执行权利要求6或7所述的信号处理方法。10. A computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are executed by a processor, the signal processing method according to claim 6 or 7 is executed.
CN202211204510.1A 2022-09-29 2022-09-29 Wearable device, signal processing method and device Pending CN115700876A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211204510.1A CN115700876A (en) 2022-09-29 2022-09-29 Wearable device, signal processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211204510.1A CN115700876A (en) 2022-09-29 2022-09-29 Wearable device, signal processing method and device

Publications (1)

Publication Number Publication Date
CN115700876A true CN115700876A (en) 2023-02-07

Family

ID=85120606

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211204510.1A Pending CN115700876A (en) 2022-09-29 2022-09-29 Wearable device, signal processing method and device

Country Status (1)

Country Link
CN (1) CN115700876A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0480798A (en) * 1990-07-23 1992-03-13 Nissan Motor Co Ltd Sound controller for vehicle
US20110235813A1 (en) * 2005-05-18 2011-09-29 Gauger Jr Daniel M Adapted Audio Masking
KR20120091701A (en) * 2011-02-09 2012-08-20 삼성전자주식회사 Method for outputting an audio signal and apparatus for outputting an audio signal thereof
CN103716438A (en) * 2012-09-28 2014-04-09 联想移动通信科技有限公司 Noise reduction method, device and mobile terminal
CN105989831A (en) * 2015-03-20 2016-10-05 雅马哈株式会社 Sound masking apparatus and sound masking method
CN111161699A (en) * 2019-12-30 2020-05-15 广州心与潮信息科技有限公司 Method, device and equipment for masking environmental noise
CN112235674A (en) * 2020-09-24 2021-01-15 海菲曼(天津)科技有限公司 Active noise reduction processing method, system and chip based on noise analysis
CN113949956A (en) * 2020-07-16 2022-01-18 Oppo广东移动通信有限公司 Noise reduction processing method, device, electronic device, earphone and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0480798A (en) * 1990-07-23 1992-03-13 Nissan Motor Co Ltd Sound controller for vehicle
US20110235813A1 (en) * 2005-05-18 2011-09-29 Gauger Jr Daniel M Adapted Audio Masking
KR20120091701A (en) * 2011-02-09 2012-08-20 삼성전자주식회사 Method for outputting an audio signal and apparatus for outputting an audio signal thereof
CN103716438A (en) * 2012-09-28 2014-04-09 联想移动通信科技有限公司 Noise reduction method, device and mobile terminal
CN105989831A (en) * 2015-03-20 2016-10-05 雅马哈株式会社 Sound masking apparatus and sound masking method
CN111161699A (en) * 2019-12-30 2020-05-15 广州心与潮信息科技有限公司 Method, device and equipment for masking environmental noise
CN113949956A (en) * 2020-07-16 2022-01-18 Oppo广东移动通信有限公司 Noise reduction processing method, device, electronic device, earphone and storage medium
CN112235674A (en) * 2020-09-24 2021-01-15 海菲曼(天津)科技有限公司 Active noise reduction processing method, system and chip based on noise analysis

Similar Documents

Publication Publication Date Title
CN108346433A (en) A kind of audio-frequency processing method, device, equipment and readable storage medium storing program for executing
CN112770214A (en) Earphone control method and device and earphone
WO2019033438A1 (en) Audio signal adjustment method and device, storage medium, and terminal
WO2019033986A1 (en) Sound playback device detection method, apparatus, storage medium, and terminal
US20180054688A1 (en) Personal Audio Lifestyle Analytics and Behavior Modification Feedback
CN108538320A (en) Recording control method and device, readable storage medium storing program for executing, terminal
CN110347366B (en) Volume adjustment method, terminal equipment, storage medium and electronic equipment
CN103714824A (en) Audio processing method, audio processing device and terminal equipment
TWI831822B (en) Speech processing method and information device
CN110830866A (en) Voice assistant awakening method and device, wireless earphone and storage medium
CN118354237A (en) Awakening method, device and equipment of MEMS earphone and storage medium
CN112947886A (en) Method and device for protecting user hearing and electronic equipment
US11157232B2 (en) Interaction context-based control of output volume level
US20250119695A1 (en) Systems and methods for hearing assistance
CN118800268A (en) Voice signal processing method, voice signal processing device and storage medium
CN118660262A (en) Mixed signal processing method and system for integrated MEMS speaker and microphone
CN115314823A (en) Hearing aid method, system and equipment based on digital sounding chip
CN114678038B (en) Audio noise detection method, computer device and computer program product
CN118567601A (en) Method, device, equipment and storage medium for adjusting volume of power amplifier system
CN115700876A (en) Wearable device, signal processing method and device
CN108574905B (en) Sound producing device, audio transmission system and method for audio analysis
CN114615609B (en) Hearing aid control method, hearing aid device, apparatus, device and computer medium
CN113259826A (en) Method and device for realizing hearing aid in electronic terminal
CN111951786A (en) Training method, device, terminal equipment and medium for voice recognition model
CN115424628B (en) Voice processing method and electronic equipment

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