TWI753685B - Headphone noise reduction mode control method, system, equipment and storage medium - Google Patents

Headphone noise reduction mode control method, system, equipment and storage medium Download PDF

Info

Publication number
TWI753685B
TWI753685B TW109142845A TW109142845A TWI753685B TW I753685 B TWI753685 B TW I753685B TW 109142845 A TW109142845 A TW 109142845A TW 109142845 A TW109142845 A TW 109142845A TW I753685 B TWI753685 B TW I753685B
Authority
TW
Taiwan
Prior art keywords
noise reduction
sound signal
ambient sound
reduction mode
earphone
Prior art date
Application number
TW109142845A
Other languages
Chinese (zh)
Other versions
TW202213328A (en
Inventor
沈炜
蔡世光
Original Assignee
英華達股份有限公司
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 英華達股份有限公司 filed Critical 英華達股份有限公司
Application granted granted Critical
Publication of TWI753685B publication Critical patent/TWI753685B/en
Publication of TW202213328A publication Critical patent/TW202213328A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1041Mechanical or electronic switches, or control elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R1/00Details of transducers, loudspeakers or microphones
    • H04R1/10Earpieces; Attachments therefor ; Earphones; Monophonic headphones
    • H04R1/1083Reduction of ambient noise
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2430/00Signal processing covered by H04R, not provided for in its groups
    • H04R2430/01Aspects of volume control, not necessarily automatic, in sound systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R2460/00Details of hearing devices, i.e. of ear- or headphones covered by H04R1/10 or H04R5/033 but not provided for in any of their subgroups, or of hearing aids covered by H04R25/00 but not provided for in any of its subgroups
    • H04R2460/01Hearing devices using active noise cancellation

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Soundproofing, Sound Blocking, And Sound Damping (AREA)
  • Headphones And Earphones (AREA)

Abstract

The present invention provides a method, a system, an equipment, and a storage medium of controlling the noise reduction mode for a headphone. The method includes the steps of: making the headphone noise reduction mode in a turning on state, and collecting an environmental sound signal; judging an amplitude deviation of the environmental sound signal if the value is greater than a first preset threshold, if so, turning off the noise reduction mode of the headphone; collecting the environmental sound signal, determining whether the amplitude deviation value of the environmental sound signal is less than the second preset threshold, and if so, turning on the headphone to the noise reduction mode; otherwise, keeping the noise reduction mode of the headphone to be turned off. The first preset threshold is greater than the second preset threshold. The present invention enables the user to pay attention to the abnormal sound of the surrounding environment in time for avoiding accidents caused by the inability to sense the sound of the external environment in time.

Description

耳機降噪模式控制方法、系統、設備及儲存媒介 Headphone noise reduction mode control method, system, device and storage medium

本發明涉及降噪技術領域,具體地說,涉及一種耳機降噪模式控制方法、系統、設備及儲存媒介。 The present invention relates to the technical field of noise reduction, and in particular, to a method, system, device and storage medium for controlling a noise reduction mode of an earphone.

越來越多的使用者在生活中使用降噪耳機,也即具有降噪模式的耳機播放音訊。然而,由於降噪耳機降低了外界噪音,所以當使用者佩戴降噪耳機播放音訊時,很難注意到外界的聲音,這樣會導致很多不利於使用者安全的情況出現。比如,當使用者佩戴降噪耳機聽歌時,如果周圍有汽車鳴笛而使用者沒有聽到,就有可能導致交通事故的發生。 More and more users use noise-cancelling headphones in their daily lives, that is, headphones with noise-cancelling mode to play audio. However, since noise-cancelling headphones reduce external noise, it is difficult for a user to notice external sounds when wearing the noise-cancelling headphones to play audio, which may lead to many situations that are not conducive to user safety. For example, when a user wears noise-cancelling headphones to listen to music, if there is a car whistle around and the user does not hear it, it may lead to a traffic accident.

針對現有技術中的問題,本發明的目的在於提供一種耳機降噪模式控制方法、系統、設備及儲存媒介,解決相關技術中使用者在使用降噪耳機時,由於無法及時獲知外界環境聲音中的危險警示音導致可能發生意外的問題。 In view of the problems in the prior art, the purpose of the present invention is to provide a headphone noise reduction mode control method, system, equipment and storage medium, so as to solve the problem that when a user uses noise reduction headphones in the related art, he cannot timely know the noise in the external environment sound. Hazard warning tones cause potentially unexpected problems.

為實現上述目的,本發明提供了一種耳機降噪模式控制方法,所述方法包括以下步驟: In order to achieve the above object, the present invention provides a method for controlling a noise reduction mode of an earphone, the method comprising the following steps:

S10:耳機的降噪模式處於打開狀態中,並採集環境聲音訊號; S10: The noise reduction mode of the headset is turned on, and the ambient sound signal is collected;

S20:判斷所述環境聲音訊號的幅度偏離值是否大於第一預設閾值,若是,則執行步驟S30;若否,則返回步驟S10; S20: Determine whether the amplitude deviation value of the ambient sound signal is greater than the first preset threshold, if so, execute step S30; if not, return to step S10;

S30:關閉耳機的降噪模式; S30: Turn off the noise reduction mode of the headset;

S40:採集所述環境聲音訊號,判斷所述環境聲音訊號的幅度偏離值是否小於第二預設閾值,若是,則執行步驟S50;若否,則執行步驟S60;所述第一預設閾值大於所述第二預設閾值; S40: Collect the ambient sound signal, and determine whether the amplitude deviation value of the ambient sound signal is less than a second preset threshold, if yes, go to step S50; if not, go to step S60; the first preset threshold is greater than the second preset threshold;

S50:打開耳機的降噪模式; S50: Turn on the noise reduction mode of the headset;

S60:耳機的降噪模式保持關閉狀態,返回步驟S40。 S60: The noise reduction mode of the earphone remains off, and the process returns to step S40.

優選地,所述幅度偏離值依據當前時刻環境聲音訊號對應的第一幅度值和當前時刻前x秒環境聲音訊號的第一幅度值的平均值獲得;x為預設參數,且x為正數。 Preferably, the amplitude deviation value is obtained according to the average value of the first amplitude value corresponding to the ambient sound signal at the current moment and the first amplitude value of the ambient sound signal x seconds before the current moment; x is a preset parameter, and x is a positive number.

優選地,所述環境聲音訊號的幅度偏離值根據如下公式計算:D(t)=|[As(t)-Aavg(x)]|/[Aavg(x)] Preferably, the amplitude deviation value of the ambient sound signal is calculated according to the following formula: D(t)=|[A s (t)-A avg (x)]|/[A avg (x)]

其中,D(t)表示環境聲音訊號的幅度偏離值,As(t)表示當前時刻環境聲音訊號對應的第一幅度值,Aavg(x)表示當前時刻前x秒環境聲音訊號的第一幅度值的平均值。 Among them, D(t) represents the amplitude deviation value of the ambient sound signal, A s (t) represents the first amplitude value corresponding to the ambient sound signal at the current moment, and A avg (x) represents the first amplitude value of the ambient sound signal x seconds before the current moment. The average of the amplitude values.

優選地,所述當前時刻環境聲音訊號對應的第一幅度值根據如下公式計算:

Figure 109142845-A0101-12-0002-1
Preferably, the first amplitude value corresponding to the ambient sound signal at the current moment is calculated according to the following formula:
Figure 109142845-A0101-12-0002-1

其中,t表示當前時刻,N表示當前時刻內採樣點的數量,Ap(r)表示第r採樣點的幅度值。 Among them, t represents the current moment, N represents the number of sampling points in the current moment, and A p (r) represents the amplitude value of the rth sampling point.

優選地,所述當前時刻前x秒環境聲音訊號的第一幅度值的平均值根據如下公式計算:

Figure 109142845-A0101-12-0002-2
Preferably, the average value of the first amplitude values of the ambient sound signal x seconds before the current moment is calculated according to the following formula:
Figure 109142845-A0101-12-0002-2

其中,As(m)表示第m時刻環境聲音訊號對應的第一幅度值。 Among them, As (m) represents the first amplitude value corresponding to the ambient sound signal at the mth time.

優選地,所述步驟S30和步驟S40之間包括步驟S70:當採集到耳機佩戴者說話的訊號,則表示耳機佩戴者正在說話,返回步驟S30;若否則執行步驟S40。 Preferably, step S70 is included between the steps S30 and S40: when the signal of the earphone wearer speaking is collected, it means that the earphone wearer is speaking, and the process returns to step S30; otherwise, step S40 is performed.

優選地,所述步驟S30還包括:將耳機的輸出音量由第一音量值降低至第二音量值;所述步驟S50還包括:將耳機的輸出音量恢復至第一音量值。 Preferably, the step S30 further includes: reducing the output volume of the earphone from the first volume value to the second volume value; the step S50 further includes: restoring the output volume of the earphone to the first volume value.

優選地,所述第一預設閾值為2。 Preferably, the first preset threshold is 2.

優選地,所述第二預設閾值為0.5。 Preferably, the second preset threshold is 0.5.

本發明還提供了一種耳機降噪模式控制系統,所述系統用於實現上述耳機降噪模式控制方法,所述系統包括:狀態採集模組,用於採集耳機降噪模式的工作狀態以及環境聲音訊號;第一判斷模組,判斷所述環境聲音訊號的幅度偏離值是否大於第一預設閾值,若是,則發送降噪關閉指令至降噪關閉模組;降噪關閉模組,用於在接收到降噪關閉指令後,關閉耳機的降噪模式;第二判斷模組,繼續採集環境聲音訊號,判斷所述環境聲音訊號的幅度偏離值是否小於第二預設閾值,若是,則發送降噪開啟指令至降噪開啟模組;若否,則維持降噪關閉;降噪開啟模組,用於在接收到降噪開啟指令後,打開耳機的降噪模式。 The present invention also provides a headphone noise reduction mode control system, the system is used to realize the above-mentioned headphone noise reduction mode control method, and the system includes: a state acquisition module for collecting the working state of the headphone noise reduction mode and ambient sound signal; a first judgment module, which judges whether the amplitude deviation value of the ambient sound signal is greater than a first preset threshold, and if so, sends a noise reduction shutdown instruction to the noise reduction shutdown module; the noise reduction shutdown module is used for After receiving the noise reduction off instruction, the noise reduction mode of the earphone is turned off; the second judgment module continues to collect the ambient sound signal, and judges whether the amplitude deviation value of the ambient sound signal is less than the second preset threshold value, and if so, sends a noise reduction signal. The noise-on-noise command is sent to the noise-cancellation on module; if not, the noise-cancellation is kept off; the noise-cancellation on module is used to turn on the noise-cancellation mode of the headset after receiving the noise-cancellation on command.

優選地,所述系統還包括第三判斷模組,用於判斷採集到的訊號是否為耳機佩戴者說話的訊號;若是,則發送降噪關閉指令至降噪關閉模組。 Preferably, the system further includes a third judging module for judging whether the collected signal is the signal of the earphone wearer speaking; if so, sending a noise reduction off instruction to the noise reduction off module.

本發明還提供了一種耳機降噪模式控制設備,包括:處理器;記憶體,其中儲存有所述處理器的可執行指令;其中,所述處理器配置為經由執行所述可執行指令來執行上述耳機降噪模式控制方法的步驟。 The present invention also provides a headphone noise reduction mode control device, comprising: a processor; a memory, in which executable instructions of the processor are stored; wherein the processor is configured to execute by executing the executable instructions The steps of the above-mentioned headphone noise reduction mode control method.

本發明還提供了一種電腦可讀儲存媒介,用於儲存程式,所述程式被處理器執行時實現上述耳機降噪模式控制方法的步驟。 The present invention also provides a computer-readable storage medium for storing a program, when the program is executed by the processor, the steps of the above-mentioned method for controlling the noise reduction mode of the earphone are realized.

本發明與現有技術相比,具有以下優點及突出性效果:本發明提供的耳機降噪模式控制方法、系統、設備及儲存媒介對環境聲音訊號進行採集,當判定幅度偏離值大於第一預設閾值即環境中有高噪音時,關閉降噪模式;使使用者能及時關注到周邊環境的異常聲響,可以避免因無法及時獲知外界環境聲音造成的意外發生。並且,當環境音平穩後,控制耳機恢復開啟降噪模式,不必讓使用者再次手動開啟降噪,為使用者提供了較好的使用體驗。 Compared with the prior art, the present invention has the following advantages and prominent effects: the headphone noise reduction mode control method, system, device and storage medium provided by the present invention collect ambient sound signals, and when it is determined that the amplitude deviation value is greater than the first preset value The threshold value means that when there is high noise in the environment, the noise reduction mode is turned off; so that the user can pay attention to the abnormal sound of the surrounding environment in time, and avoid accidents caused by the inability to know the sound of the external environment in time. Moreover, when the ambient sound is stable, the headset is controlled to resume the noise reduction mode, and the user does not need to manually turn on the noise reduction again, which provides the user with a better experience.

3:耳機降噪模式控制系統 3: Headphone noise reduction mode control system

31:狀態採集模組 31: Status acquisition module

32:第一判斷模組 32: The first judgment module

33:降噪關閉模組 33: Noise reduction off module

34:第二判斷模組 34: The second judgment module

35:降噪開啟模組 35: Noise reduction open module

600:電子設備 600: Electronic Equipment

610:處理單元 610: Processing unit

620:儲存單元 620: Storage Unit

630:匯流排 630: Busbar

640:顯示單元 640: Display unit

650:輸入/輸出介面 650: Input/Output Interface

660:網路介面卡 660: Network Interface Card

700:外部設備 700: External device

800:程式產品 800: Program Products

6201:隨機存取儲存單元 6201: Random Access Storage Unit

6202:快取記憶體儲存單元 6202: Cache memory storage unit

6203:唯讀儲存單元 6203: read-only storage unit

6204:工具程式 6204: Utility program

6205:程式模組 6205: Program Module

S10~S70:步驟 S10~S70: Steps

藉由閱讀參照以下附圖對非限制性實施例所作的詳細描述,本發明的其它特徵、目的和優點將會變得更明顯。 Other features, objects and advantages of the present invention will become more apparent by reading the detailed description of non-limiting embodiments with reference to the following drawings.

圖1為本發明實施例公開的一種耳機降噪模式控制方法的示意圖; FIG. 1 is a schematic diagram of a headphone noise reduction mode control method disclosed in an embodiment of the present invention;

圖2為本發明另一實施例公開的一種耳機降噪模式控制方法的示意圖; FIG. 2 is a schematic diagram of a headphone noise reduction mode control method disclosed by another embodiment of the present invention;

圖3為本發明實施例公開的一種耳機降噪模式控制系統的結構示意圖; 3 is a schematic structural diagram of a headphone noise reduction mode control system disclosed in an embodiment of the present invention;

圖4為本發明實施例公開的一種耳機降噪模式控制設備的結構示意圖; 4 is a schematic structural diagram of a headphone noise reduction mode control device disclosed in an embodiment of the present invention;

圖5為本發明實施例公開的一種電腦可讀儲存媒介的結構示意圖。 FIG. 5 is a schematic structural diagram of a computer-readable storage medium disclosed in an embodiment of the present invention.

現在將參考附圖更全面地描述示例實施方式。然而,示例實施方式能夠以多種形式實施,且不應被理解為限於在此闡述的實施方式。相反,提供這些實施方式使得本發明將全面和完整,並將示例實施方式的構思全面地傳達給本領域的技術人員。在圖中相同的附圖標記表示相同或類似的結構,因而將省略對它們的重複描述。 Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their repeated descriptions will be omitted.

如圖1所示,本發明實施例公開了一種耳機降噪模式控制方法,該方法包括以下步驟: As shown in FIG. 1 , an embodiment of the present invention discloses a method for controlling a noise reduction mode of an earphone, and the method includes the following steps:

S10:耳機的降噪模式處於打開狀態中,並採集環境聲音訊號。也即對耳機的降噪模式的工作狀態和環境聲音訊號分別進行採集,確定耳機的降噪模式已經打開,才執行步驟S20。 S10: The noise reduction mode of the earphone is turned on, and the ambient sound signal is collected. That is, the working state of the noise reduction mode of the earphone and the ambient sound signal are collected respectively, and it is determined that the noise reduction mode of the earphone has been turned on, and then step S20 is executed.

S20:判斷上述環境聲音訊號的幅度偏離值是否大於第一預設閾值。若是,則執行步驟S30。若否,則返回步驟S10。具體而言,當採集到的環境聲音訊號的幅度偏離值大於第一預設閾值時,說明周邊環境發生高噪音,比如外界環境聲音中的危險警示音或者朋友的突然叫喚等。這時需要將降噪模式關閉,使使用者能及時關注到周邊環境的異常聲響。 S20: Determine whether the amplitude deviation value of the ambient sound signal is greater than a first preset threshold. If so, step S30 is executed. If not, return to step S10. Specifically, when the amplitude deviation value of the collected environmental sound signal is greater than the first preset threshold, it means that high noise occurs in the surrounding environment, such as a danger warning sound in the external environmental sound or a sudden call from a friend. At this time, the noise reduction mode needs to be turned off, so that the user can pay attention to the abnormal sound of the surrounding environment in time.

其中,對於環境聲音訊號發生高噪音的判斷方式,本發明不設限制。比如,可以通過比較當前時刻的環境聲音訊號的幅值與前x秒環境聲音訊號幅值的平均值之間的差值,與一預設閾值的大小關係;也可以通過比較上述差值與前x秒環境聲音訊號幅值的平均值之間的比值與一預設閾值的大小等。 Wherein, there is no limitation in the present invention as to the way of judging the occurrence of high noise in the ambient sound signal. For example, the difference between the amplitude of the ambient sound signal at the current moment and the average value of the amplitude of the ambient sound signal in the previous x seconds can be compared with a preset threshold; The ratio between the average value of the x-second ambient sound signal amplitude and the magnitude of a preset threshold, etc.

S30:關閉耳機的降噪模式。也即將耳機的降噪模式由開啟狀態切換為關閉狀態。這樣使用者就能更加清晰地聽到外界聲音,及時 作出反應。防止使用者因為沒有及時聽到危險警示音而導致可能發生意外。 S30: Turn off the noise canceling mode of the headset. That is, the noise reduction mode of the headset is switched from an on state to an off state. In this way, the user can hear the outside sound more clearly, and timely react. Prevent possible accidents caused by users not hearing the danger warning sound in time.

S40:繼續採集環境聲音訊號,判斷環境聲音訊號的幅度偏離值是否小於第二預設閾值。若是,則執行步驟S50。若否,則執行步驟S60。比如,若步驟S10中是在當前時刻採集的環境聲音訊號,那麼步驟S40則是判斷當前時刻的後續時段內,繼續採集環境聲音訊號。 S40: Continue to collect the ambient sound signal, and determine whether the amplitude deviation value of the ambient sound signal is less than a second preset threshold. If yes, step S50 is executed. If not, step S60 is executed. For example, if the ambient sound signal is collected at the current moment in step S10, then step S40 is to determine that the ambient sound signal continues to be collected in the subsequent period of the current moment.

若繼續採集到的環境聲音訊號的幅度偏離值小於第二預設閾值,則表示環境聲音訊號達成平穩狀態,例如:使用者為自較安靜環境移動至較嘈雜環境後,高噪音達成持續狀態;抑或是,先前突發之危險警示音(高噪音)停止後,周邊環境無其他危險發生而使採集到的環境聲音訊號下降至趨於平穩狀態。 If the amplitude deviation value of the continuously collected ambient sound signal is smaller than the second preset threshold, it means that the ambient sound signal has reached a stable state, for example, after the user moves from a quieter environment to a noisy environment, the high noise reaches a continuous state; Or, after the previous sudden danger warning sound (high noise) stops, no other danger occurs in the surrounding environment, so that the collected ambient sound signal drops to a stable state.

上述幅度偏離值均是依據當前時刻環境聲音訊號對應的第一幅度值和當前時刻前x秒環境聲音訊號的第一幅度值的平均值獲得。其中,x為預設參數,且x為正數。上述第一預設閾值大於上述第二預設閾值。 The above-mentioned amplitude deviation values are all obtained according to the average value of the first amplitude value corresponding to the ambient sound signal at the current moment and the first amplitude value of the ambient sound signal x seconds before the current moment. Among them, x is a preset parameter, and x is a positive number. The first preset threshold is greater than the second preset threshold.

具體而言,上述環境聲音訊號的幅度偏離值根據如下公式計算:D(t)=|[A s (t)-A avg (x)]|/[A avg (x)] Specifically, the amplitude deviation value of the above ambient sound signal is calculated according to the following formula: D(t)=|[ A s ( t )- A avg ( x )]|/[ A avg ( x )]

其中,D(t)表示當前時刻t的環境聲音訊號的幅度偏離值,A_s(t)表示當前時刻環境聲音訊號對應的第一幅度值,A avg (x)表示當前時刻前x秒環境聲音訊號的第一幅度值的平均值。比如,當前時刻為第20秒,x可以取值10。那麼A avg (x)就表示當前時刻前10秒的環境聲音訊號的第一幅度值的平均值,也即從第10秒至第19秒的環境聲音訊號的第一幅度值的平均值。A s (t)就表示第20秒的環境聲音訊號對應的第一幅度值。 Among them, D(t) represents the amplitude deviation value of the environmental sound signal at the current time t, A_s (t) represents the first amplitude value corresponding to the environmental sound signal at the current time, and Aavg ( x ) represents the environmental sound signal x seconds before the current time The average of the first amplitude values of . For example, the current moment is the 20th second, and x can take a value of 10. Then A avg ( x ) represents the average value of the first amplitude values of the ambient sound signals in the previous 10 seconds of the current time, that is, the average value of the first amplitude values of the ambient sound signals from the 10th second to the 19th second. As ( t ) represents the first amplitude value corresponding to the ambient sound signal in the 20th second.

本實施例中,上述當前時刻環境聲音訊號對應的第一幅度值A s (t)根據如下公式計算:

Figure 109142845-A0101-12-0007-3
In this embodiment, the first amplitude value A s ( t ) corresponding to the environmental sound signal at the current moment is calculated according to the following formula:
Figure 109142845-A0101-12-0007-3

其中,t表示當前時刻。比如,t為20時,A s (t)就表示第20秒採集的環境聲音訊號對應的第一幅度值,也即等於第20秒內所有採樣點採集的環境聲音訊號的幅值的絕對值的和。N表示當前時刻內採樣點的數量,r表示採樣點,A p (r)表示當前時刻內第r採樣點採集到的環境聲音訊號的幅度值。N為一預設參數,本實施例中,N為44100,本申請對N的取值不作限制。 Among them, t represents the current time. For example, when t is 20, As ( t ) represents the first amplitude value corresponding to the ambient sound signal collected in the 20th second, which is equal to the absolute value of the amplitude of the ambient sound signal collected at all sampling points in the 20th second and. N represents the number of sampling points in the current moment, r represents the sampling points, and Ap ( r ) represents the amplitude value of the ambient sound signal collected at the rth sampling point in the current moment. N is a preset parameter. In this embodiment, N is 44100, and the value of N is not limited in this application.

本實施例中,上述當前時刻前x秒環境聲音訊號的第一幅度值的平均值A avg (x)根據如下公式計算:

Figure 109142845-A0101-12-0007-4
In this embodiment, the average value Aavg ( x ) of the first amplitude values of the ambient sound signal x seconds before the current moment is calculated according to the following formula:
Figure 109142845-A0101-12-0007-4

其中,A s (m)表示第m時刻環境聲音訊號對應的第一幅度 值。示例性地,當t為20,x為10時,

Figure 109142845-A0101-12-0007-5
就表示從第10秒到第19秒 採集到的環境聲音訊號的幅值的和。 Wherein, As ( m ) represents the first amplitude value corresponding to the ambient sound signal at the m th time. Exemplarily, when t is 20 and x is 10,
Figure 109142845-A0101-12-0007-5
It represents the sum of the amplitudes of the ambient sound signals collected from the 10th to the 19th second.

S50:打開耳機的降噪模式。也即,當判定上述高噪音達到持續狀態,也即上述環境聲音訊號的幅度偏離值小於第二預設閾值,也即處於外部雜訊平穩的環境中,這時候已經確認使用者自身的安全。已經可以再次實施降噪,進行隔絕外部雜訊。也即將耳機的降噪模式由關閉狀態切換為開啟狀態。從而不必需要使用者再次手動開啟降噪,節省使用者操作,有利於提高使用者耳機使用體驗。當然,使用者也可以通過手動實現再次開啟降噪模式。 S50: Turn on the noise canceling mode of the headset. That is, when it is determined that the high noise reaches a continuous state, that is, the amplitude deviation value of the ambient sound signal is less than the second preset threshold, that is, in an environment with stable external noise, the safety of the user has been confirmed. Noise reduction has been implemented again to isolate external noise. It also means that the noise reduction mode of the headset is switched from an off state to an on state. Therefore, it is not necessary for the user to manually turn on noise reduction again, which saves the user's operation and is beneficial to improving the user's earphone experience. Of course, the user can also manually turn on the noise reduction mode again.

S60,耳機的降噪模式保持關閉狀態,返回步驟S40。 S60, the noise reduction mode of the earphone remains off, and the process returns to step S40.

本實施例中,經過大量的實驗測試,得到將上述第一預設閾值設置為2,上述第二預設閾值設置為0.5時,較為合理,可以使使用者充分及時聽到周圍環境音中的危險警示音。本申請對此不作限制。 In this embodiment, after a large number of experimental tests, it is found that it is reasonable to set the first preset threshold to 2 and the second preset threshold to 0.5, so that the user can fully and timely hear the danger in the surrounding environment sound. Warning sound. This application does not limit this.

如圖2所示,在本發明的另一實施例中,在上述實施例的基礎上,上述步驟S30還包括:將耳機的輸出音量由第一音量值降低至第二音量值。這樣可以使使用者更清晰地聽到外界環境音,尤其適用於該使用者被朋友叫喚並且需要交談的場景,這樣不必需要使用者手動調低音量,就可以方便地進行交談,聽到彼此對方的聲音。 As shown in FIG. 2 , in another embodiment of the present invention, on the basis of the above embodiment, the above step S30 further includes: reducing the output volume of the earphone from the first volume value to the second volume value. In this way, the user can hear the external environment sound more clearly, which is especially suitable for the scene where the user is called by a friend and needs to talk. In this way, the user can easily talk and hear each other's voice without requiring the user to manually turn down the volume. .

上述步驟S50還包括:將耳機的輸出音量恢復至第一音量值。也即,使用者可能使用耳機繼續聽歌,這樣將耳機的輸出音量恢復,可以依據使用者的聽歌習慣恢復音量,使用體驗較佳。 The above step S50 further includes: restoring the output volume of the earphone to the first volume value. That is, the user may continue to listen to songs by using the earphone, so that the output volume of the earphone can be restored, and the volume can be restored according to the user's habit of listening to songs, and the use experience is better.

如圖2所示,該實施例中,步驟S30和步驟S40之間還包括步驟S70:當採集到的訊號為耳機佩戴者說話的訊號,就返回步驟S30,否則執行步驟S40。具體實施時,可以通過骨聲紋訊號識別和/或雙麥波束成形等可以判斷出耳機佩戴者正在說話的方式確定採集到的訊號為耳機佩戴者說話的訊號,那麼就返回步驟S30,也即將耳機的降噪模式保持關閉狀態。若否則執行步驟S40。具體而言,當使用者正在說話時,可能正在與朋友交談,將耳機降噪模式保持關閉狀態,這樣可以使使用者更加清晰地聽到對方聲音,提高使用者體驗。 As shown in FIG. 2 , in this embodiment, step S70 is further included between step S30 and step S40: when the collected signal is the signal of the earphone wearer speaking, return to step S30; otherwise, execute step S40. During the specific implementation, the way in which the earphone wearer can be judged to be speaking can be determined through bone voiceprint signal recognition and/or dual microphone beamforming, etc., and it can be determined that the collected signal is the signal of the earphone wearer speaking, then return to step S30, that is, about The noise-cancelling mode of the headphones remains off. If otherwise, step S40 is performed. Specifically, when the user is talking, he may be talking with a friend, and the noise reduction mode of the earphone is kept off, so that the user can hear the other party's voice more clearly and improve the user experience.

如圖3所示,本發明實施例還公開了一種耳機降噪模式控制系統3,該系統包括:狀態採集模組31,用於採集耳機降噪模式的工作狀態以及環境聲音訊號。第一判斷模組32,於耳機處於打開降噪模式時,用 於判斷環境聲音訊號的幅度偏離值是否大於第一預設閾值。若是,則發送降噪關閉指令至降噪關閉模組,以告知降噪關閉模組開始執行內部操作,以關閉耳機降噪模式。若否,則發送迴圈操作指令至狀態採集模組,即告知狀態採集模組再次執行內部操作。降噪關閉模組33,用於在接收到降噪關閉指令後,關閉耳機的降噪模式。第二判斷模組34,於耳機處於關閉降噪模式時,用於判斷所述環境聲音訊號的幅度偏離值是否小於第二預設閾值。若是,則發送降噪開啟指令至降噪開啟模組,以告知降噪開啟模組開始執行內部操作,以開啟耳機降噪模式。若否,則維持降噪關閉。降噪開啟模組35,用於在接收到降噪開啟指令後,打開耳機的降噪模式。 As shown in FIG. 3 , an embodiment of the present invention further discloses a headphone noise reduction mode control system 3 . The system includes: a state acquisition module 31 for collecting the working state of the headphone noise reduction mode and ambient sound signals. The first judging module 32, when the earphone is in the noise reduction mode, uses for determining whether the amplitude deviation value of the ambient sound signal is greater than the first preset threshold. If so, send a noise reduction shutdown command to the noise reduction shutdown module to inform the noise reduction shutdown module to start performing internal operations to turn off the headset noise reduction mode. If not, the loop operation command is sent to the state acquisition module, that is, the state acquisition module is told to perform the internal operation again. The noise reduction off module 33 is used to turn off the noise reduction mode of the earphone after receiving the noise reduction off instruction. The second determination module 34 is configured to determine whether the amplitude deviation value of the ambient sound signal is smaller than the second preset threshold when the earphone is in the noise reduction mode off. If so, send a noise reduction turn-on command to the noise reduction turn-on module to inform the noise reduction turn-on module to start performing internal operations to turn on the earphone noise reduction mode. If not, keep noise reduction off. The noise reduction enable module 35 is used to enable the noise reduction mode of the earphone after receiving the noise reduction enable instruction.

可以理解的是,本發明的耳機降噪模式控制系統還包括其他支援耳機降噪模式控制系統運行的現有功能模組。圖3顯示的耳機降噪模式控制系統僅僅是一個示例,不應對本發明實施例的功能和使用範圍帶來任何限制。 It can be understood that the headphone noise reduction mode control system of the present invention also includes other existing functional modules that support the operation of the headphone noise reduction mode control system. The headphone noise reduction mode control system shown in FIG. 3 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present invention.

本實施例中的耳機降噪模式控制系統用於實現上述的耳機降噪模式控制的方法,因此對於耳機降噪模式控制系統的具體實施步驟可以參照上述對耳機降噪模式控制的方法的描述,此處不再贅述。 The headphone noise reduction mode control system in this embodiment is used to implement the above-mentioned headphone noise reduction mode control method. Therefore, for the specific implementation steps of the headphone noise reduction mode control system, reference may be made to the above-mentioned description of the headphone noise reduction mode control method. It will not be repeated here.

本發明實施例還公開了一種耳機降噪模式控制設備,包括處理器和記憶體,其中記憶體儲存有所述處理器的可執行指令;處理器配置為經由執行可執行指令來執行上述耳機降噪模式控制方法中的步驟。圖4是本發明公開的耳機降噪模式控制設備的結構示意圖。下面參照圖4來描述根據本發明的這種實施方式的電子設備600。圖4顯示的電子設備600僅僅是一個示例,不應對本發明實施例的功能和使用範圍帶來任何限制。 An embodiment of the present invention also discloses a headphone noise reduction mode control device, including a processor and a memory, wherein the memory stores executable instructions of the processor; the processor is configured to execute the above-mentioned headphone reduction by executing the executable instructions. Steps in the Noise Mode Control Method. FIG. 4 is a schematic structural diagram of the headphone noise reduction mode control device disclosed in the present invention. The electronic device 600 according to this embodiment of the present invention is described below with reference to FIG. 4 . The electronic device 600 shown in FIG. 4 is only an example, and should not impose any limitations on the function and scope of use of the embodiments of the present invention.

如圖4所示,電子設備600以通用計算設備的形式表現。電子設備600的元件可以包括但不限於:至少一個處理單元610、至少一個儲存單元620、連接不同平臺元件(包括儲存單元620和處理單元610)的匯流排630、顯示單元640等。 As shown in FIG. 4, electronic device 600 takes the form of a general-purpose computing device. Elements of electronic device 600 may include, but are not limited to, at least one processing unit 610, at least one storage unit 620, bus bars 630 connecting different platform elements (including storage unit 620 and processing unit 610), display unit 640, and the like.

其中,儲存單元儲存有程式碼,程式碼可以被處理單元610執行,使得處理單元610執行本說明書上述耳機降噪模式控制方法部分中描述的根據本發明各種示例性實施方式的步驟。例如,處理單元610可以執行如圖1中所示的步驟。 The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps according to various exemplary embodiments of the present invention described in the above-mentioned headphone noise reduction mode control method section of this specification. For example, the processing unit 610 may perform the steps shown in FIG. 1 .

儲存單元620可以包括易失性儲存單元形式的可讀媒介,例如隨機存取儲存單元(RAM)6201和/或快取記憶體儲存單元6202,還可以進一步包括唯讀儲存單元(ROM)6203。 The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 6201 and/or a cache storage unit 6202 , and may further include a read only storage unit (ROM) 6203 .

儲存單元620還可以包括具有一組(至少一個)程式模組6205的工具程式6204,這樣的程式模組6205包括但不限於:作業系統、一個或者多個應用程式、其它程式模組以及程式資料,這些示例中的每一個或某種組合中可能包括網路環境的實現。 Storage unit 620 may also include utility programs 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to, the operating system, one or more applications, other program modules, and program data , each or some combination of these examples may include an implementation of a network environment.

匯流排630可以為表示幾類匯流排結構中的一種或多種,包括儲存單元匯流排或者儲存單元控制器、週邊匯流排、圖形加速埠、處理單元或者使用多種匯流排結構中的任意匯流排結構的局域匯流排。 Bus 630 may be representative of one or more of several types of bus structures, including memory cell buses or memory cell controllers, peripheral buses, graphics acceleration ports, processing units, or using any of a variety of bus structures the local bus.

電子設備600也可以與一個或多個外部設備700(例如鍵盤、指向設備、藍牙設備等)通信,還可與一個或者多個使得使用者能與該電子設備600交互的設備通信,和/或與使得該電子設備600能與一個或多個其它計算設備進行通信的任何設備(例如路由器、數據機等等)通信。 這種通信可以通過輸入/輸出(I/O)介面650進行。並且,電子設備600還可以通過網路介面卡660與一個或者多個網路(例如區域網(LAN),廣域網路(WAN)和/或公共網路,例如網際網路)通信。網路介面卡660可以通過匯流排630與電子設備600的其它模組通信。應當明白,儘管圖中未示出,可以結合電子設備600使用其它硬體和/或軟體模組,包括但不限於:微代碼、裝置驅動程式、冗餘處理單元、外部磁片驅動陣列、RAID系統、磁帶驅動器以及資料備份儲存平臺等。 The electronic device 600 may also communicate with one or more external devices 700 (eg, keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and/or Communicate with any device (eg, router, modem, etc.) that enables the electronic device 600 to communicate with one or more other computing devices. Such communication may take place through input/output (I/O) interface 650 . Also, the electronic device 600 may communicate with one or more networks (eg, a local area network (LAN), a wide area network (WAN) and/or a public network such as the Internet) through the network interface card 660 . The network interface card 660 can communicate with other modules of the electronic device 600 through the bus bar 630 . It should be appreciated that, although not shown, other hardware and/or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.

本發明還公開了一種電腦可讀儲存媒介,用於儲存程式,所述程式被執行時實現上述耳機降噪模式控制方法中的步驟。在一些可能的實施方式中,本發明的各個方面還可以實現為一種程式產品的形式,其包括程式碼,當程式產品在終端設備上運行時,程式碼用於使終端設備執行本說明書上述耳機降噪模式控制方法中描述的根據本發明各種示例性實施方式的步驟。 The invention also discloses a computer-readable storage medium for storing a program, when the program is executed, the steps in the above-mentioned control method for the noise reduction mode of the earphone are realized. In some possible implementations, various aspects of the present invention may also be implemented in the form of a program product that includes program code that, when the program product runs on a terminal device, is used to cause the terminal device to execute the headset described above in this specification. The steps according to various exemplary embodiments of the present invention described in the noise reduction mode control method.

如上所示,該實施例的電腦可讀儲存媒介的程式在執行時,對環境聲音訊號進行採集,當判定環境中有高噪音時,關閉降噪模式;使使用者能及時關注到周邊環境的異常聲響,可以避免因無法及時獲知外界環境聲音造成的意外發生。並且,當環境音平穩後,控制耳機恢復開啟降噪模式,不必讓使用者再次手動開啟降噪,為使用者提供了較好的使用體驗。 As shown above, when the program of the computer-readable storage medium of this embodiment is executed, it collects environmental sound signals, and when it is determined that there is high noise in the environment, the noise reduction mode is turned off; so that the user can pay attention to the surrounding environment in time. Abnormal sound can avoid accidents caused by not being able to know the sound of the external environment in time. Moreover, when the ambient sound is stable, the headset is controlled to resume the noise reduction mode, and the user does not need to manually turn on the noise reduction again, which provides the user with a better experience.

圖5是本發明的電腦可讀儲存媒介的結構示意圖。參考圖5所示,描述了根據本發明的實施方式的用於實現上述方法的程式產品800,其可以採用可攜式光碟唯讀記憶體(CD-ROM)並包括程式碼,並 可以在終端設備,例如個人電腦上運行。然而,本發明的程式產品不限於此,在本發明中,可讀儲存媒介可以是任何包含或儲存程式的有形媒介,該程式可以被指令執行系統、裝置或者器件使用或者與其結合使用。 FIG. 5 is a schematic structural diagram of the computer-readable storage medium of the present invention. Referring to FIG. 5, a program product 800 for implementing the above method is described according to an embodiment of the present invention, which may adopt a compact disc read only memory (CD-ROM) and include program codes, and Can be run on terminal devices such as personal computers. However, the program product of the present invention is not limited thereto, and in the present invention, the readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

程式產品可以採用一個或多個可讀媒介的任意組合。可讀媒介可以是可讀訊號媒介或者可讀儲存媒介。可讀儲存媒介例如可以為但不限於電、磁、光、電磁、紅外線、或半導體的系統、裝置或器件,或者任意以上的組合。可讀儲存媒介的更具體的例子(非窮舉的列表)包括:具有一個或多個導線的電連接、可攜式碟、硬碟、隨機存取記憶體(RAM)、唯讀記憶體(ROM)、可擦除可規劃式唯讀記憶體(EPROM或快閃記憶體)、光纖、可攜式光碟唯讀記憶體(CD-ROM)、光記憶體件、磁記憶體件、或者上述的任意合適的組合。 The program product may employ any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read only memory ( ROM), Erasable Programmable Read-Only Memory (EPROM or Flash Memory), Optical Fiber, Compact Disc Read-Only Memory (CD-ROM), Optical Memory Devices, Magnetic Memory Devices, or the above any suitable combination.

電腦可讀儲存媒介可以包括在基帶(基頻)中或者作為載波一部分傳播的資料訊號,其中承載了可讀程式碼。這種傳播的資料訊號可以採用多種形式,包括但不限於電磁訊號、光訊號或上述的任意合適的組合。可讀儲存媒介還可以是可讀儲存媒介以外的任何可讀媒介,該可讀媒介可以發送、傳播或者傳輸用於由指令執行系統、裝置或者器件使用或者與其結合使用的程式。可讀儲存媒介上包含的程式碼可以用任何適當的媒介傳輸,包括但不限於無線、有線、光纜、RF等等,或者上述的任意合適的組合。 A computer-readable storage medium may include a data signal propagated in baseband (baseband) or as part of a carrier wave, carrying readable code therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable storage medium can also be any readable medium other than a readable storage medium that can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device. Code embodied on a readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

可以以一種或多種程式設計語言的任意組合來編寫用於執行本發明操作的程式碼,程式設計語言包括物件導向的程式設計語言-諸如Java、C++等,還包括常規的過程式程式設計語言-諸如“C”語言或類 似的程式設計語言。程式碼可以完全地在使用者計算設備上執行、部分地在使用者設備上執行、作為一個獨立的套裝軟體執行、部分在使用者計算設備上部分在遠端計算設備上執行、或者完全在遠端計算設備或伺服器上執行。在涉及遠端計算設備的情形中,遠端計算設備可以通過任意種類的網路,包括區域網(LAN)或廣域網路(WAN),連接到使用者計算設備,或者,可以連接到外部計算設備(例如利用網際網路服務提供者來通過網際網路連接)。 Code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages - such as Java, C++, etc., but also conventional procedural programming languages - such as "C" language or class similar programming language. The code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely remotely. Execute on a client computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device via any kind of network, including a local area network (LAN) or wide area network (WAN), or may be connected to an external computing device (eg using an internet service provider to connect via the internet).

本發明實施例提供的耳機降噪模式控制方法、系統、設備及儲存媒介對環境聲音訊號進行採集,當判定幅度偏離值大於第一預設閾值即環境中有高噪音時,關閉降噪模式以及降低耳機輸出音量;使使用者能及時關注到周邊環境的異常聲響,可以避免因無法及時獲知外界環境聲音造成的意外發生。並且,當環境音平穩後,控制耳機恢復開啟降噪模式,以及恢復先前的輸出音量,不必讓使用者再次手動開啟降噪,為使用者提供了較好的使用體驗。 The headphone noise reduction mode control method, system, device, and storage medium provided by the embodiments of the present invention collect environmental sound signals, and when it is determined that the amplitude deviation value is greater than a first preset threshold, that is, there is high noise in the environment, the noise reduction mode is turned off and Reduce the output volume of the headphone; enable the user to pay attention to the abnormal sound of the surrounding environment in time, and avoid accidents caused by not being able to know the external environmental sound in time. Moreover, when the ambient sound is stable, the headphones are controlled to restore the noise reduction mode and restore the previous output volume, so that the user does not need to manually turn on the noise reduction again, which provides a better user experience for the user.

以上內容是結合具體的優選實施方式對本發明所作的進一步詳細說明,不能認定本發明的具體實施只局限於這些說明。對於本發明所屬技術領域的普通技術人員來說,在不脫離本發明構思的前提下,還可以做出若干簡單推演或替換,都應當視為屬於本發明的保護範圍。 The above content is a further detailed description of the present invention in combination with specific preferred embodiments, and it cannot be considered that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field of the present invention, without departing from the concept of the present invention, some simple deductions or substitutions can be made, which should be regarded as belonging to the protection scope of the present invention.

S10~S60:步驟 S10~S60: Steps

Claims (12)

一種耳機降噪模式控制方法,包括以下步驟:S10:使一耳機之一降噪模式處於打開狀態中,並採集一環境聲音訊號;S20:判斷該環境聲音訊號之一幅度偏離值是否大於一第一預設閾值,若是,則執行步驟S30;若否,則返回步驟S10;S30:關閉該耳機之該降噪模式;S40:採集該環境聲音訊號,判斷該環境聲音訊號之該幅度偏離值是否小於一第二預設閾值,若是,則執行步驟S50;若否,則執行步驟S60;該第一預設閾值大於該第二預設閾值;S50:打開該耳機之該降噪模式;以及S60:該耳機之該降噪模式保持關閉狀態,返回步驟S40;其中該幅度偏離值係依據一當前時刻環境聲音訊號對應之一第一幅度值和一當前時刻前x秒環境聲音訊號之該第一幅度值的平均值而獲得;x為預設參數。 A method for controlling a noise reduction mode of an earphone, comprising the following steps: S10: make a noise reduction mode of an earphone in an on state, and collect an ambient sound signal; S20: determine whether an amplitude deviation value of the ambient sound signal is greater than a first a preset threshold, if yes, then go to step S30; if no, go back to step S10; S30: turn off the noise reduction mode of the earphone; S40: collect the ambient sound signal, and determine whether the amplitude deviation value of the ambient sound signal is not is less than a second preset threshold, if yes, execute step S50; if not, execute step S60; the first preset threshold is greater than the second preset threshold; S50: turn on the noise reduction mode of the earphone; and S60 : the noise reduction mode of the earphone remains off, and returns to step S40; wherein the amplitude deviation value is based on a first amplitude value corresponding to an ambient sound signal at the current moment and the first amplitude value of the ambient sound signal x seconds before the current moment The average value of the amplitude value is obtained; x is the preset parameter. 如申請專利範圍第1項所述之方法,其中該環境聲音訊號之該幅度偏離值根據如下公式計算:D(t)=|[A s (t)-A avg (x)]|/[A avg (x)]其中,D(t)表示該環境聲音訊號之該幅度偏離值,A s (t)表示該當前時刻環境聲音訊號對應之該第一幅度值,A avg (x)表示該當前時刻前x秒環境聲音訊號之該第一幅度值的平均值。 The method of claim 1, wherein the amplitude deviation value of the ambient sound signal is calculated according to the following formula: D(t)=|[ A s ( t )- A avg ( x )]|/[ A avg ( x )] wherein, D ( t ) represents the amplitude deviation value of the ambient sound signal, As ( t ) represents the first amplitude value corresponding to the ambient sound signal at the current moment, and A avg ( x ) represents the current The average value of the first amplitude value of the ambient sound signal x seconds before the time. 如申請專利範圍第2項所述之方法,其中該當前時刻環境聲音訊號對應之該第一幅度值根據如下公式計算:
Figure 109142845-A0305-02-0018-1
其中,t表示當前時刻,N表示當前時刻內採樣點的數量,A p (r)表示第r採樣點的幅度值。
The method of claim 2, wherein the first amplitude value corresponding to the ambient sound signal at the current moment is calculated according to the following formula:
Figure 109142845-A0305-02-0018-1
Among them, t represents the current moment, N represents the number of sampling points in the current moment, and Ap ( r ) represents the amplitude value of the rth sampling point.
如申請專利範圍第2項所述之方法,其中該當前時刻前x秒環境聲音訊號之該第一幅度值的平均值根據如下公式計算:
Figure 109142845-A0305-02-0018-2
其中,A s (m)表示第m時刻環境聲音訊號對應的第一幅度值。
The method of claim 2, wherein the average value of the first amplitude value of the ambient sound signal x seconds before the current time is calculated according to the following formula:
Figure 109142845-A0305-02-0018-2
Wherein, As ( m ) represents the first amplitude value corresponding to the ambient sound signal at the m th time.
如申請專利範圍第1項所述之方法,其中步驟S30和步驟S40之間包括步驟S70:當採集到耳機佩戴者說話的訊號,返回步驟S30;否則執行步驟S40。 The method described in item 1 of the scope of the patent application, wherein step S70 is included between step S30 and step S40: when the signal of the earphone wearer speaking is collected, return to step S30; otherwise, execute step S40. 如申請專利範圍第1項所述之方法,其中步驟S30還包括:將該耳機之輸出音量由一第一音量值降低至一第二音量值;所述步驟S50還包括:將該耳機的輸出音量恢復至該第一音量值。 The method of claim 1, wherein the step S30 further comprises: reducing the output volume of the earphone from a first volume value to a second volume value; the step S50 further comprises: the output volume of the earphone The volume returns to the first volume value. 如申請專利範圍第1項所述之方法,其中該第一預設閾值為2。 The method of claim 1, wherein the first predetermined threshold is 2. 如申請專利範圍第1項所述之方法,其中該第二預設閾值為0.5。 The method of claim 1, wherein the second predetermined threshold is 0.5. 一種耳機降噪模式控制系統,用於實現如申請專利範圍第1至8項中任意一項所述的耳機降噪模式控制方法,包括:一狀態採集模組,用於採集一耳機之一降噪模式的工作狀態以及一環境聲音訊號;一第一判斷模組,判斷該環境聲音訊號之一幅度偏離值是否大於一第一預設閾值,若是,則發送一降噪關閉指令;一降噪關閉模組,用於在接收到該降噪關閉指令後,關閉該耳機之該降噪模式; 一第二判斷模組,判斷該環境聲音訊號之該幅度偏離值是否小於一第二預設閾值,若是,則發送一降噪開啟指令;以及一降噪開啟模組,用於在接收到該降噪開啟指令後,打開該耳機之該降噪模式;其中該幅度偏離值係依據一當前時刻環境聲音訊號對應之一第一幅度值和一當前時刻前x秒環境聲音訊號之該第一幅度值的平均值而獲得;x為預設參數。 A headphone noise reduction mode control system, used for realizing the headphone noise reduction mode control method described in any one of items 1 to 8 of the patent application scope, comprising: a state acquisition module for collecting the noise reduction of an earphone. the working state of the noise mode and an ambient sound signal; a first judging module to determine whether an amplitude deviation value of the ambient sound signal is greater than a first preset threshold, if so, send a noise reduction shutdown command; a noise reduction Turning off the module, for turning off the noise reduction mode of the earphone after receiving the noise reduction turn-off command; a second judging module for judging whether the amplitude deviation value of the ambient sound signal is less than a second preset threshold, and if so, sending a noise reduction on command; and a noise reduction on module for receiving the After the noise reduction on command, the noise reduction mode of the earphone is turned on; wherein the amplitude deviation value is based on a first amplitude value corresponding to an ambient sound signal at the current moment and the first amplitude of the ambient sound signal x seconds before the current moment The average value of the value is obtained; x is the preset parameter. 如申請專利範圍第9項所述之系統,進一步還包括一第三判斷模組,用於判斷採集到之該環境聲音訊號是否為耳機佩戴者說話的訊號;若是,則發送該降噪關閉指令至該降噪關閉模組。 The system described in item 9 of the scope of the patent application further includes a third judging module for judging whether the collected ambient sound signal is the signal of the earphone wearer speaking; if so, sending the noise reduction off instruction to the noise reduction off module. 一種耳機降噪模式控制設備,包含有:一處理器;一記憶體,其中儲存有該處理器之一可執行指令;其中,該處理器配置為經由執行該可執行指令來執行申請專利範圍第1至8項中任意一項所述之耳機降噪模式控制方法的步驟。 A headphone noise reduction mode control device, comprising: a processor; a memory, in which an executable instruction of the processor is stored; wherein, the processor is configured to execute the patented scope by executing the executable instruction. The steps of the headphone noise reduction mode control method described in any one of items 1 to 8. 一種電腦可讀儲存媒介,用於儲存一程式,該程式被處理器執行時實現申請專利範圍第1至8項中任一項所述耳機降噪模式控制方法的步驟。 A computer-readable storage medium for storing a program, when the program is executed by a processor, implements the steps of the headphone noise reduction mode control method described in any one of items 1 to 8 of the patent application scope.
TW109142845A 2020-09-29 2020-12-04 Headphone noise reduction mode control method, system, equipment and storage medium TWI753685B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011055090.6A CN112118506B (en) 2020-09-29 2020-09-29 Earphone noise reduction mode control method, system, equipment and storage medium
CN202011055090.6 2020-09-29

Publications (2)

Publication Number Publication Date
TWI753685B true TWI753685B (en) 2022-01-21
TW202213328A TW202213328A (en) 2022-04-01

Family

ID=73798413

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109142845A TWI753685B (en) 2020-09-29 2020-12-04 Headphone noise reduction mode control method, system, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112118506B (en)
TW (1) TWI753685B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112770214B (en) * 2021-01-28 2022-11-11 歌尔科技有限公司 Earphone control method and device and earphone
CN115134708A (en) * 2022-06-30 2022-09-30 歌尔股份有限公司 Earphone mode switching method and device, electronic equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201218785A (en) * 2010-06-01 2012-05-01 Sony Corp Sound signal processing apparatus, microphone apparatus, sound signal processing method, and program
WO2016119108A1 (en) * 2015-01-26 2016-08-04 深圳市冠旭电子有限公司 Earphone noise reduction control method and apparatus
US20190051293A1 (en) * 2013-01-31 2019-02-14 Microsoft Technology Licensing, Llc Prosodic and lexical addressee detection
CN110364151A (en) * 2019-07-15 2019-10-22 华为技术有限公司 A kind of method and electronic equipment of voice wake-up

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016119106A1 (en) * 2015-01-26 2016-08-04 深圳市冠旭电子有限公司 Earphone noise reduction method and apparatus
WO2017120956A1 (en) * 2016-01-17 2017-07-20 谢文 Method of giving alarm during headphone usage, and headphones for giving alarm
CN209642920U (en) * 2018-11-30 2019-11-15 陕西烽火宏声科技有限责任公司 Environment sensing noise reduction in-ear typed Bluetooth headset
CN111432305A (en) * 2020-03-27 2020-07-17 歌尔科技有限公司 Earphone alarm method and device and wireless earphone

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201218785A (en) * 2010-06-01 2012-05-01 Sony Corp Sound signal processing apparatus, microphone apparatus, sound signal processing method, and program
US20190051293A1 (en) * 2013-01-31 2019-02-14 Microsoft Technology Licensing, Llc Prosodic and lexical addressee detection
WO2016119108A1 (en) * 2015-01-26 2016-08-04 深圳市冠旭电子有限公司 Earphone noise reduction control method and apparatus
CN110364151A (en) * 2019-07-15 2019-10-22 华为技术有限公司 A kind of method and electronic equipment of voice wake-up

Also Published As

Publication number Publication date
CN112118506B (en) 2022-11-11
TW202213328A (en) 2022-04-01
CN112118506A (en) 2020-12-22

Similar Documents

Publication Publication Date Title
US11626116B2 (en) Contingent device actions during loss of network connectivity
EP2267695B1 (en) Controlling music players using environment audio analysis
TWI753685B (en) Headphone noise reduction mode control method, system, equipment and storage medium
CN105493177B (en) System and computer-readable storage medium for audio processing
US20070190944A1 (en) Method and system for automatic presence and ambient noise detection for a wireless communication device
US20150281853A1 (en) Systems and methods for enhancing targeted audibility
CN109492441A (en) A kind of anti-lost method of bluetooth headset, device, electronic equipment and storage medium
CN108681440A (en) A kind of smart machine method for controlling volume and system
US20090010453A1 (en) Intelligent gradient noise reduction system
KR20190075800A (en) Intelligent personal assistant interface system
EP2605239A2 (en) Method and arrangement for noise reduction
US20080025523A1 (en) System and method for noise canceling in a mobile phone headset accessory
JP2019159305A (en) Method, equipment, system, and storage medium for implementing far-field speech function
US10149052B2 (en) Electronic device and vibration information generation device
CN109218882A (en) The ambient sound monitor method and earphone of earphone
US20140087704A1 (en) Blocking incoming communication interruptions
CN113938785A (en) Noise reduction processing method, device, equipment, earphone and storage medium
CN108337353A (en) The audio signal processing method and equipment of communication equipment
US9877100B1 (en) Audio sensing to alert device user
CN112235462A (en) Voice adjusting method, system, electronic equipment and computer readable storage medium
KR102607120B1 (en) Sound data noise canceling method and apparatus, electronic device , computer readable storage medium and computer program
CN111863004A (en) Sound signal processing method, system, electronic device and storage medium
CN106293607B (en) Method and system for automatically switching audio output modes
CN113808592A (en) Method and device for transcribing call recording, electronic equipment and storage medium
CN111741396A (en) Control method, control device, electronic equipment and readable storage medium