Noise-reduction method and device based on built-in Linux real-time kernel

文档序号:1757134 发布日期:2019-11-29 浏览:23次 中文

阅读说明:本技术 基于嵌入式Linux实时内核的降噪方法和装置 (Noise-reduction method and device based on built-in Linux real-time kernel ) 是由 刘亚中 于 2019-08-22 设计创作,主要内容包括:本申请提出基于嵌入式Linux实时内核的降噪方法和装置,其中装置包括:声音检测装置,用于检测室内声音;嵌入式Linux实时内核装置,用于对检测到的室内声音进行分析,并根据分析结果生成反向抵消声波的声波参数;声波生成装置,用于根据反向抵消声波的声波参数,发出反向抵消声波以减弱室内声音,利用嵌入式Linux实时内核装置的低延时、强实时特点,快速抵消室内声音,特别是抵消掉用户发出的鼾声,从而使得用户不会被室内的声音吵醒或降低睡眠质量。(The application proposes noise-reduction method and device based on built-in Linux real-time kernel, and wherein device includes: sound detection device, for detecting indoor sound;Built-in Linux real-time kernel device for analyzing the indoor sound detected, and generates the reversed acoustic wave parameter for offsetting sound wave based on the analysis results;Sound wave generating means, for according to the reversed acoustic wave parameter for offsetting sound wave, reversed sound wave of offsetting is issued to weaken indoor sound, utilize the low delay of built-in Linux real-time kernel device, hard real time feature, quickly offset indoor sound, the sound of snoring for especially balancing out user's sending, so that user will not wake or reduce sleep quality up by indoor sound.)

1. a kind of denoising device based on built-in Linux real-time kernel characterized by comprising

Sound detection device, for detecting indoor sound;

Built-in Linux real-time kernel device for analyzing the indoor sound detected, and generates based on the analysis results The reversed acoustic wave parameter for offsetting sound wave;

Sound wave generating means, for issuing reversed sound wave of offsetting to weaken room according to the reversed acoustic wave parameter for offsetting sound wave Interior sound.

2. the denoising device according to claim 1 based on built-in Linux real-time kernel, which is characterized in that further include:

Sleep quality detection device, for determining the sleep quality grade of user, and judge user sleep quality grade whether Reach predetermined level, judging result is fed back into the built-in Linux real-time kernel device;

The built-in Linux real-time kernel device is also used to when the sleep quality grade of user reaches predetermined level, record The frequency and intensity of current indoor sound are not more than the current indoor sound in the frequency of the indoor sound detected later Frequency, and when the intensity of the indoor sound detected later is not more than the intensity of the current indoor sound, it does not generate described anti- To the acoustic wave parameter for offsetting sound wave;

And/or the built-in Linux real-time kernel device, it is also used to not up to default etc. in the sleep quality grade of user When grade, the frequency and intensity of current indoor sound are recorded, it is current not less than described in the frequency of the indoor sound detected later The frequency of indoor sound, and/or, it is raw when the intensity of the indoor sound detected later is not less than the intensity of current indoor sound At the reversed acoustic wave parameter for offsetting sound wave.

3. the denoising device according to claim 1 based on built-in Linux real-time kernel, which is characterized in that

Built-in Linux real-time kernel device, for determining the frequency and/or intensity of the indoor sound, sound indoors Frequency is greater than first frequency threshold value, and/or, when the intensity of indoor sound is greater than the first intensity threshold, generate reversed counteracting sound wave Acoustic wave parameter;

And/or the built-in Linux real-time kernel device, for determining frequency, wavelength and the phase of the indoor sound, And the reversed acoustic wave parameter for offsetting sound wave is generated according to frequency, wavelength and the phase of the indoor sound, wherein described reversely to support The acoustic wave parameter of noise elimination wave includes reversed frequency, wavelength and the phase for offsetting sound wave, the reversed counteracting sound wave and described The frequency of indoor sound is identical, wavelength is identical and opposite in phase;

And/or the indoor sound is the sound of snoring that user issues.

4. the denoising device according to claim 3 based on built-in Linux real-time kernel, which is characterized in that further include: Sleep quality detection device;

The sleep quality detection device for determining the sleep quality grade of user, and judges the sleep quality grade of user Whether reach predetermined level, judging result is fed back into the built-in Linux real-time kernel device;

The built-in Linux real-time kernel device is also used to, and adjusts the first frequency threshold value according to the judging result, And/or first intensity threshold is adjusted according to the judging result.

5. the denoising device according to claim 4 based on built-in Linux real-time kernel, which is characterized in that described embedding Enter formula Linux real-time kernel device, be used for:

When the sleep quality grade of user reaches predetermined level, if the first frequency threshold value is less than the frequency of current indoor sound Rate then sets the frequency that the first frequency threshold value is equal to current indoor sound;And/or

When the sleep quality grade of user reaches predetermined level, if first intensity threshold is less than the strong of current indoor sound Degree then sets the intensity that first intensity threshold is equal to current indoor sound;And/or

When the sleep quality grade of user is not up to predetermined level, if the first frequency threshold value is greater than current indoor sound Frequency then sets the frequency that the first frequency threshold value is equal to current indoor sound;And/or

When the sleep quality grade of user reaches predetermined level, if first intensity threshold is greater than the strong of current indoor sound Degree then sets the intensity that first intensity threshold is equal to current indoor sound.

6. according to the described in any item denoising devices based on built-in Linux real-time kernel of claim 2-5, feature exists In,

The sleep quality detection dress, issues for obtaining the turn number of user, the frequency that user makes a sound and/or user The lasting duration of sound;What the frequency and/or user made a sound according to the turn number of user, user made a sound continues Duration determine the sleep quality grade of user.

7. a kind of noise-reduction method based on built-in Linux real-time kernel characterized by comprising

Detect indoor sound;

The indoor sound detected is analyzed using built-in Linux real-time kernel device, and is generated based on the analysis results The reversed acoustic wave parameter for offsetting sound wave;

According to the reversed acoustic wave parameter for offsetting sound wave, reversed sound wave of offsetting is issued to weaken indoor sound.

8. the noise-reduction method according to claim 7 based on built-in Linux real-time kernel, which is characterized in that further include:

It determines the sleep quality grade of user, and judges whether the sleep quality grade of user reaches predetermined level, judgement is tied Fruit feeds back to the built-in Linux real-time kernel device;

Using the built-in Linux real-time kernel device, when the sleep quality grade of user reaches predetermined level, record is worked as The frequency and intensity of sound in cup are not more than the frequency of the current indoor sound in the frequency of the indoor sound detected later Rate, and when the intensity of the indoor sound detected later is not more than the intensity of the current indoor sound, it does not generate described reversed Offset the acoustic wave parameter of sound wave;

And/or using the built-in Linux real-time kernel device, predetermined level is not up in the sleep quality grade of user When, the frequency and intensity of current indoor sound are recorded, work as cup not less than described in the frequency of the indoor sound detected later The frequency of interior sound, and/or, when the intensity of the indoor sound detected later is not less than the intensity of the current indoor sound, Generate the reversed acoustic wave parameter for offsetting sound wave.

9. the noise-reduction method according to claim 7 based on built-in Linux real-time kernel, which is characterized in that

The indoor sound detected is analyzed using built-in Linux real-time kernel device, and is generated based on the analysis results The reversed acoustic wave parameter for offsetting sound wave, comprising: determine the frequency and/or intensity of the indoor sound, indoors the frequency of sound Greater than first frequency threshold value, and/or, when the intensity of indoor sound is greater than the first intensity threshold, generate the reversed sound for offsetting sound wave Wave parameter;

And/or the indoor sound detected is analyzed using built-in Linux real-time kernel device, and is tied according to analysis Fruit generates the reversed acoustic wave parameter for offsetting sound wave, comprising: determines the interior using the built-in Linux real-time kernel method Frequency, wavelength and the phase of sound generate the reversed sound wave for offsetting sound wave according to frequency, wavelength and the phase of the indoor sound Parameter, wherein the reversed acoustic wave parameter for offsetting sound wave includes reversed frequency, wavelength and the phase for offsetting sound wave, institute It states and reversed offsets that sound wave is identical with the frequency of the indoor sound, wavelength is identical and opposite in phase;

And/or the indoor sound is the sound of snoring that user issues.

10. the noise-reduction method according to claim 9 based on built-in Linux real-time kernel, which is characterized in that also wrap It includes:

It determines the sleep quality grade of user, and judges whether the sleep quality grade of user reaches predetermined level, judgement is tied Fruit feeds back to the built-in Linux real-time kernel device;

Using the built-in Linux real-time kernel device, according to the judging result adjusting first frequency threshold value, and/ Or, adjusting first intensity threshold according to the judging result.

11. the noise-reduction method according to claim 10 based on built-in Linux real-time kernel, which is characterized in that

The first frequency threshold value is adjusted according to the judging result, comprising:

When the sleep quality grade of user reaches predetermined level, if the first frequency threshold value is less than the frequency of current indoor sound Rate then sets the frequency that the first frequency threshold value is equal to current indoor sound;

And/or;First intensity threshold is adjusted according to the judging result, comprising:

When the sleep quality grade of user reaches predetermined level, if first intensity threshold is less than the strong of current indoor sound Degree then sets the intensity that first intensity threshold is equal to current indoor sound;And/or institute is adjusted according to the judging result State first frequency threshold value, comprising:

When the sleep quality grade of user is not up to predetermined level, if the first frequency threshold value is greater than current indoor sound Frequency then sets the frequency that the first frequency threshold value is equal to current indoor sound;And/or;It is adjusted according to the judging result First intensity threshold includes:

When the sleep quality grade of user reaches predetermined level, if first intensity threshold is greater than the strong of current indoor sound Degree then sets the intensity that first intensity threshold is equal to current indoor sound.

12. according to the described in any item noise-reduction methods based on built-in Linux real-time kernel of claim 8-11, feature exists In,

Determine the sleep quality grade of user, comprising: obtain the turn number of user, the frequency and/or use that user makes a sound The lasting duration that family makes a sound;The frequency and/or user made a sound according to the turn number of user, user makes a sound Lasting duration determine the sleep quality grade of user.

Technical field

This application involves noise reduction fields, in particular to noise-reduction method and device based on built-in Linux real-time kernel.

Background technique

In user slept, certain customers can snore and issue the sound of snoring.Sleep will certainly be led in such a case for a long time Apply family companion's sleep quality reduce.It goes with the user of sleep for such as man and wife etc., because double bed width is usually 1.8 Rice, this causes actual interval between companion may be less than 0.5 meter, and after a side issues the sound of snoring, the sound of snoring can be passed to another party soon In ear, therefore the sound of snoring, the very high real-time of inevitable requirement are just eliminated before the sound of snoring passes in another companion's ear.It is existing Often real-time is poor for the active noise reduction techniques for having in technology, causes the experience of user insufficient.

Therefore, real-time when noise reduction is improved, realizes low delay, hard real-time noise reduction, being that this field is urgently to be resolved asks Topic.

Summary of the invention

This application provides a kind of noise-reduction method and device based on built-in Linux real-time kernel, for improving noise reduction When real-time.

To solve the above-mentioned problems, it as the one aspect of the application, provides a kind of interior in real time based on built-in Linux The denoising device of core, comprising:

Sound detection device, for detecting indoor sound;

Built-in Linux real-time kernel device, for analyzing the indoor sound detected, and based on the analysis results Generate the reversed acoustic wave parameter for offsetting sound wave;

Sound wave generating means, for issuing reversed sound wave of offsetting to weaken room according to the reversed acoustic wave parameter for offsetting sound wave Interior sound.

Optionally, further includes:

Sleep quality detection device for determining the sleep quality grade of user, and judges the sleep quality grade of user Whether reach predetermined level, judging result is fed back into built-in Linux real-time kernel device;

Built-in Linux real-time kernel device is also used to when the sleep quality grade of user reaches predetermined level, record The frequency and intensity of current indoor sound are not more than the frequency of current indoor sound in the frequency of the indoor sound detected later Rate, the and when intensity of the indoor sound detected later is not more than the intensity of current indoor sound does not generate and reversed offsets sound wave Acoustic wave parameter;

And/or built-in Linux real-time kernel device, it is also used to not up to default etc. in the sleep quality grade of user When grade, the frequency and intensity of current indoor sound are recorded, are not less than current indoor in the frequency of the indoor sound detected later The frequency of sound, and/or, when the intensity of the indoor sound detected later is not less than the intensity of current indoor sound, generate anti- To the acoustic wave parameter for offsetting sound wave.

Optionally, built-in Linux real-time kernel device, for determining the frequency and/or intensity of indoor sound, indoors The frequency of sound is greater than first frequency threshold value, and/or, when the intensity of indoor sound is greater than the first intensity threshold, generation is reversely supported The acoustic wave parameter of noise elimination wave;

And/or built-in Linux real-time kernel device, for determining frequency, wavelength and the phase of indoor sound, and root The reversed acoustic wave parameter for offsetting sound wave is generated according to the frequency of indoor sound, wavelength and phase, wherein the reversed sound wave for offsetting sound wave Parameter includes reversed frequency, wavelength and the phase for offsetting sound wave, reversed to offset sound wave and the interior frequency of sound is identical, wavelength phase Same and opposite in phase;

And/or indoor sound is the sound of snoring that user issues.

Optionally, further includes: sleep quality detection device;

Sleep quality detection device for determining the sleep quality grade of user, and judges the sleep quality grade of user Whether reach predetermined level, judging result is fed back into built-in Linux real-time kernel device;

Built-in Linux real-time kernel device is also used to, and adjusts first frequency threshold value according to judging result, and/or, according to Judging result adjusts the first intensity threshold.

Optionally, built-in Linux real-time kernel device, is used for:

When the sleep quality grade of user reaches predetermined level, if first frequency threshold value is less than the frequency of current indoor sound Rate then sets the frequency that first frequency threshold value is equal to current indoor sound;And/or

When the sleep quality grade of user reaches predetermined level, if the first intensity threshold is less than the strong of current indoor sound Degree then sets the intensity that the first intensity threshold is equal to current indoor sound;And/or

When the sleep quality grade of user is not up to predetermined level, if first frequency threshold value is greater than current indoor sound Frequency then sets the frequency that first frequency threshold value is equal to current indoor sound;And/or

When the sleep quality grade of user reaches predetermined level, if the first intensity threshold is greater than the strong of current indoor sound Degree then sets the intensity that the first intensity threshold is equal to current indoor sound.

Optionally, sleep quality detection fill, for obtain the turn number of user, the frequency that user makes a sound and/or The lasting duration that user makes a sound;The frequency and/or user's sending sound made a sound according to the turn number of user, user The lasting duration of sound determines the sleep quality grade of user.

The application also proposes a kind of noise-reduction method based on built-in Linux real-time kernel, comprising:

Detect indoor sound;

The indoor sound detected is analyzed using built-in Linux real-time kernel device, and based on the analysis results Generate the reversed acoustic wave parameter for offsetting sound wave;

According to the reversed acoustic wave parameter for offsetting sound wave, reversed sound wave of offsetting is issued to weaken indoor sound.

Optionally, further includes:

It determines the sleep quality grade of user, and judges whether the sleep quality grade of user reaches predetermined level, will sentence Disconnected result feeds back to built-in Linux real-time kernel device;

Using built-in Linux real-time kernel device, when the sleep quality grade of user reaches predetermined level, record is worked as The frequency and intensity of sound in cup are not more than the frequency of current indoor sound in the frequency of the indoor sound detected later, And the intensity of the indoor sound detected later does not generate the reversed sound for offsetting sound wave when being not more than the intensity of current indoor sound Wave parameter;

And/or using built-in Linux real-time kernel device, predetermined level is not up in the sleep quality grade of user When, the frequency and intensity of current indoor sound are recorded, are not less than current indoor sound in the frequency of the indoor sound detected later The frequency of sound, and/or, when the intensity of the indoor sound detected later is not less than the intensity of current indoor sound, generate reversed Offset the acoustic wave parameter of sound wave.

Optionally, the indoor sound detected is analyzed using built-in Linux real-time kernel device, and according to point It analyses result and generates the reversed acoustic wave parameter for offsetting sound wave, comprising: determine the frequency and/or intensity of interior sound, indoors sound Frequency be greater than first frequency threshold value, and/or, when the intensity of indoor sound is greater than the first intensity threshold, generate reversed counteracting sound The acoustic wave parameter of wave;

And/or the indoor sound detected is analyzed using built-in Linux real-time kernel device, and according to point It analyses result and generates the reversed acoustic wave parameter for offsetting sound wave, comprising: indoor sound is determined using built-in Linux real-time kernel method Frequency, wavelength and phase, the reversed acoustic wave parameter for offsetting sound wave is generated according to the frequency of indoor sound, wavelength and phase, In, the reversed acoustic wave parameter for offsetting sound wave includes reversed frequency, wavelength and the phase for offsetting sound wave, reversed to offset sound wave and interior The frequency of sound is identical, wavelength is identical and opposite in phase;

And/or indoor sound is the sound of snoring that user issues.

Optionally, further includes:

It determines the sleep quality grade of user, and judges whether the sleep quality grade of user reaches predetermined level, will sentence Disconnected result feeds back to built-in Linux real-time kernel device;

Using built-in Linux real-time kernel device, first frequency threshold value is adjusted according to judging result, and/or, according to sentencing Disconnected result adjusts the first intensity threshold.

Optionally, first frequency threshold value is adjusted according to judging result, comprising:

When the sleep quality grade of user reaches predetermined level, if first frequency threshold value is less than the frequency of current indoor sound Rate then sets the frequency that first frequency threshold value is equal to current indoor sound;

And/or;The first intensity threshold is adjusted according to judging result, comprising:

When the sleep quality grade of user reaches predetermined level, if the first intensity threshold is less than the strong of current indoor sound Degree then sets the intensity that the first intensity threshold is equal to current indoor sound;

And/or first frequency threshold value is adjusted according to judging result, comprising:

When the sleep quality grade of user is not up to predetermined level, if first frequency threshold value is greater than current indoor sound Frequency then sets the frequency that first frequency threshold value is equal to current indoor sound;

And/or;Adjusting the first intensity threshold according to judging result includes:

When the sleep quality grade of user reaches predetermined level, if the first intensity threshold is greater than the strong of current indoor sound Degree then sets the intensity that the first intensity threshold is equal to current indoor sound.

Optionally, the sleep quality grade of user is determined, comprising: obtain the turn number of user, user makes a sound The lasting duration that the frequency and/or user make a sound;The frequency that is made a sound according to the turn number of user, user and/or The lasting duration that user makes a sound determines the sleep quality grade of user.

Present applicant proposes a kind of noise-reduction method and device based on built-in Linux real-time kernel, use are embedded Linux real-time kernel device is quickly offset indoor using the low delay of built-in Linux real-time kernel device, hard real time feature Sound especially balances out the sound of snoring of user's sending, so that user will not be waken or be reduced up sleep matter by indoor sound Amount.

Detailed description of the invention

Fig. 1 is a kind of composition figure of the noise-reduction method based on built-in Linux real-time kernel in the embodiment of the present application;

Fig. 2 is a kind of flow chart of the noise-reduction method based on built-in Linux real-time kernel in the embodiment of the present application.

Specific embodiment

To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.

It should be noted that the description and claims of this application and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to embodiments herein described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Covering non-exclusive includes to be not necessarily limited to for example, containing the process, method of a series of steps or units, method, product or method Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that method is intrinsic.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种可控的最大权信号实时选通多通道有源噪声控制系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!