Event detection for playback management in an audio device
11621017 · 2023-04-04
Assignee
Inventors
Cpc classification
H04R3/002
ELECTRICITY
G10L25/18
PHYSICS
H04S7/00
ELECTRICITY
International classification
G10L25/18
PHYSICS
H04R1/10
ELECTRICITY
Abstract
In accordance with embodiments of the present disclosure, a method for processing audio information in an audio device may include reproducing audio information by generating an audio output signal for communication to at least one transducer of the audio device, receiving at least one input signal indicative of ambient sound external to the audio device, detecting from the at least one input signal a near-field sound in the ambient sound, and modifying a characteristic of the audio information reproduced to the at least one transducer in response to detection of the near-field sound.
Claims
1. A method comprising: receiving a first signal indicative of audio information; based on the first signal, generating an audio output signal for communication to at least one transducer of an audio device; causing the at least one transducer to generate sound in accordance with the audio output signal; receiving at least one input signal indicative of ambient sound external to the audio device; determining near-field spatial statistics for the ambient sound; detecting, based on the at least one input signal, a near-field sound and a proximity sound in the ambient sound; modifying a characteristic of the audio output signal in response to the detection of the near-field sound; causing the at least one transducer to generate modified sound in accordance with the modified audio output signal; determining a characteristic of the ambient sound, wherein determining the characteristic comprises determining that the ambient sound includes background music and/or determining that a background noise level in the ambient sound is above a threshold background noise level; and in response to the determined characteristic of the ambient sound, dynamically disabling the detection of the proximity sound to prevent false detection of proximity sounds.
2. The method of claim 1, further comprising determining from the at least one input signal a direction of the ambient sound and modifying the characteristic in response to the direction of the ambient sound indicating that the ambient sound is sound from a user of the audio device.
3. The method of claim 1, further comprising determining from the at least one input signal a direction of the ambient sound and modifying the characteristic in response to the direction of the ambient sound indicating that the ambient sound is speech from a user of the audio device.
4. The method of claim 1, wherein modifying the characteristic comprises attenuating the audio output signal.
5. The method of claim 1, further comprising modifying the characteristic in response to a detection of the near-field sound being persistent for at least a predetermined time.
6. The method of claim 5, further comprising: detecting, from the at least one input signal, absence of the near-field sound in the ambient sound; and ceasing to modify the characteristic in response to the absence of the near-field sound for at least a second predetermined time.
7. The method of claim 1, further comprising: in addition to detecting the near-field sound, detecting, from the at least one input signal, ambient sound other than the near-field sound in the ambient sound; and modifying the characteristic in response to detection of the ambient sound.
8. The method of claim 7, further comprising determining from the at least one input signal a direction of the ambient sound and modifying the characteristic in response to the direction of the ambient sound indicating that the ambient sound is sound other than the near-field sound.
9. The method of claim 7, further comprising: detecting, from the at least one input signal, whether the ambient sound comprises background noise; and modifying the characteristic in response to detection of the background noise in the ambient sound.
10. The method of claim 7, further comprising: detecting, from the at least one input signal, whether the ambient sound comprises a tonal alarm; and modifying the characteristic in response to detection of the tonal alarm in the ambient sound.
11. The method of claim 10, wherein detecting the tonal alarm in the ambient sound comprises: detecting, from the at least one input signal, a direction of the ambient sound; detecting, from the at least one input signal, a spectral flatness measure of the ambient sound; and detecting the tonal alarm based on the direction of the ambient sound, the presence or absence of background noise, and the near-field spatial statistics.
12. The method of claim 11, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise a correlation between the first microphone signal and the second microphone signal.
13. The method of claim 11, wherein detecting the direction of the ambient sound comprises determining whether the direction of the ambient sound is within an acceptance angle of near-field sound.
14. The method of claim 11, wherein detecting the near-field spatial statistics comprises detecting whether a normalized cross-correlation statistic is greater than a threshold.
15. The method of claim 11, wherein detecting the spectral flatness measure of the ambient sound comprises detecting whether the noise spectrum is flat in most sub-bands of the ambient sound, but not all sub-bands of the ambient sound.
16. The method of claim 1, wherein detecting the near-field sound in the ambient sound comprises: detecting, from the at least one input signal, a direction of the ambient sound; detecting, from the at least one input signal, a presence of speech in the ambient sound; and detecting the near-field sound based on the direction, presence or absence of speech, and the near-field spatial statistics.
17. The method of claim 16, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise a correlation between the first microphone signal and the second microphone signal.
18. The method of claim 16, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise an interference-to-signal ratio associated with the near-field sound.
19. The method of claim 16, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise an inter-microphone level difference between the first microphone signal and the second microphone signal.
20. The method of claim 16, wherein detecting the direction of the ambient sound comprises determining whether the direction of the ambient sound is within an acceptance angle of near-field sound.
21. The method of claim 16, wherein detecting the near-field spatial statistics comprises: detecting whether a normalized cross-correlation statistic is greater than a first threshold; detecting whether an interference to near-field desired signal ratio is lesser than a second threshold; and detecting whether an inter-microphone level difference is greater than a third threshold.
22. The method of claim 21, wherein the second threshold is adjusted based on an estimate of background noise in the ambient sound.
23. The method of claim 21, wherein the third threshold is adjusted based on an estimate of background noise in the ambient sound.
24. The method of claim 1, further comprising: detecting, from the at least one input signal, a direction of the ambient sound; detecting, from the at least one input signal, a presence of background noise in the ambient sound; detecting, from the at least one input signal, a presence of proximity speech in the ambient sound; detecting, from the at least one input signal, a volume of the ambient sound; detecting, based on the direction, presence or absence of background noise, presence or absence of the speech, the volume, and the near-field spatial statistics, a presence of an audio event comprising a proximity sound event; and modifying the characteristic in response to detection of the presence of the audio event.
25. The method of claim 24, further comprising: detecting variation in spectral content of the ambient sound; and detecting, based on the direction, presence or absence of background noise, presence or absence of the speech, the volume, the near-field spatial statistics, and the spectral content of the ambient sound, a presence of an audio event comprising a proximity sound event.
26. The method of claim 25, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise a correlation between the first microphone signal and the second microphone signal.
27. The method of claim 25, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise an interference-to-signal ratio associated with the near-field sound.
28. The method of claim 25, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise an inter-microphone level difference between the first microphone signal and the second microphone signal.
29. The method of claim 25, wherein detecting the presence of proximity speech in the ambient sound comprises detecting stationary background noise.
30. The method of claim 25, wherein detecting the presence of proximity speech in the ambient sound comprises detecting speech from a close-talking proximity talker.
31. The method of claim 25, wherein detecting the presence of proximity speech in the ambient sound comprises detecting, from the at least one input signal, a spectral flatness measure of the ambient sound, wherein detecting the spectral flatness measure of the ambient sound comprises detecting variation in spectral content of the ambient sound.
32. An integrated circuit for implementing at least a portion of an audio device, comprising: an input configured to receive a first signal indicative of audio information; an audio output configured to, based on the first signal, generate an audio output signal for communication to at least one transducer of the audio device, the audio output being operable to cause the at least one transducer to generate sound in accordance with the audio output signal; a microphone input configured to receive at least one input signal indicative of ambient sound external to the audio device; and a processor configured to: determine near-field spatial statistics for the ambient sound; detect, based on the at least one input signal, a near-field sound and a proximity sound in the ambient sound; modify a characteristic of the audio output signal in response to the detection of the near-field sound; and cause the at least one transducer to generate modified sound in accordance with the modified audio output signal; determine a characteristic of the ambient sound, wherein determining the characteristic comprises determining that the ambient sound includes background music and/or determining that a background noise level in the ambient sound is above a threshold background noise level; and in response to the determined characteristic of the ambient sound, dynamically disable the detection of the proximity sound to prevent false detection of proximity sounds.
33. The integrated circuit of claim 32, the processor further configured to: determine, from the at least one input signal, a direction of the ambient sound; and modify the characteristic in response to the direction of the ambient sound indicating that the ambient sound is sound from a user of the audio device.
34. The integrated circuit of claim 32, the processor further configured to: determine, from the at least one input signal, a direction of the ambient sound; and modify the characteristic in response to the direction of the ambient sound indicating that the ambient sound is speech from a user of the audio device.
35. The integrated circuit of claim 32, wherein modifying the characteristic comprises attenuating the audio output signal.
36. The integrated circuit of claim 32, the processor further configured to modify the characteristic in response to a detection of the near-field sound being persistent for at least a predetermined time.
37. The integrated circuit of claim 36, the processor further configured to: detect, from the at least one input signal, absence of the near-field sound in the ambient sound; and cease modifying the characteristic in response to the absence of the near-field sound for at least a second predetermined time.
38. The integrated circuit of claim 36, the processor further configured to: in addition to detecting the near-field sound, detect, from the at least one input signal, ambient sound other than the near-field sound in the ambient sound; and modify the characteristic in response to detection of the ambient sound.
39. The integrated circuit of claim 38, the processor further configured to: determine, from the at least one input signal, a direction of the ambient sound; and modify the characteristic in response to the direction of the ambient sound indicating that the ambient sound is sound other than the near-field sound.
40. The integrated circuit of claim 38, the processor further configured to: detect, from the at least one input signal, whether the ambient sound comprises background noise; and modify the characteristic in response to detection of the background noise in the ambient sound.
41. The integrated circuit of claim 38, the processor further configured to: detect, from the at least one input signal, whether the ambient sound comprises a tonal alarm; and modify the characteristic in response to detection of the tonal alarm in the ambient sound.
42. The integrated circuit of claim 41, wherein detecting the tonal alarm in the ambient sound comprises: detecting, from the at least one input signal, a direction of the ambient sound; detecting, from the at least one input signal, a spectral flatness measure of the ambient sound; and detecting the tonal alarm based on the direction of the ambient sound, the presence or absence of background noise, and the near-field spatial statistics.
43. The integrated circuit of claim 41, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise a correlation between the first microphone signal and the second microphone signal.
44. The integrated circuit of claim 42, wherein detecting the direction of the ambient sound comprises determining whether the direction of the ambient sound is within an acceptance angle of near-field sound.
45. The integrated circuit of claim 42, wherein detecting the near- field spatial statistics comprises detecting whether a normalized cross-correlation statistic is greater than a threshold.
46. The integrated circuit of claim 42, wherein detecting the spectral flatness measure of the ambient sound comprises detecting whether the noise spectrum is flat in most sub-bands of the ambient sound, but not all sub-bands of the ambient sound.
47. The integrated circuit of claim 32, wherein detecting the near- field sound in the ambient sound comprises: detecting, from the at least one input signal, a direction of the ambient sound; detecting, from the at least one input signal, a presence of speech in the ambient sound; and detecting the near-field sound based on the direction, presence or absence of the speech, and the near-field spatial statistics.
48. The integrated circuit of claim 47, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise a correlation between the first microphone signal and the second microphone signal.
49. The integrated circuit of claim 47, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise an interference-to-signal ratio associated with near-field sound.
50. The integrated circuit of claim 47, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise an inter-microphone level difference between the first microphone signal and the second microphone signal.
51. The integrated circuit of claim 47, wherein detecting the direction of the ambient sound comprises determining whether the direction of the ambient sound is within an acceptance angle of near-field sound.
52. The integrated circuit of claim 47, wherein detecting the near- field spatial statistics comprises: detecting whether a normalized cross-correlation statistic is greater than a first threshold; detecting whether an interference to near-field desired signal ratio is lesser than a second threshold; and detecting whether an inter-microphone level difference is greater than a third threshold.
53. The integrated circuit of claim 52, wherein the second threshold is adjustable based on an estimate of background noise in the ambient sound.
54. The integrated circuit of claim 52, wherein the second threshold is adjustable based on an estimate of background noise in the ambient sound.
55. The integrated circuit of claim 32, the processor further configured to: detect, from the at least one input signal, a direction of the ambient sound; detect, from the at least one input signal, a presence of background noise in the ambient sound; detect, from the at least one input signal, a presence of proximity speech in the ambient sound; detect, from the at least one input signal, a volume of the ambient sound; detect, based on the direction, presence or absence of background noise, presence or absence of the speech, the volume, and the near-field spatial statistics, a presence of an audio event comprising a proximity sound event; and modify the characteristic in response to detection of the presence of the audio event.
56. The integrated circuit of claim 55, the processor further configured to: detect variation in spectral content of the ambient sound; and detect, based on the direction, presence or absence of background noise, presence or absence of the speech, the volume, the near-field spatial statistics, and the spectral content of the ambient sound, a presence of an audio event comprising a proximity sound event.
57. The integrated circuit of claim 56, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise a correlation between the first microphone signal and the second microphone signal.
58. The integrated circuit of claim 56, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise an interference-to-signal ratio associated with near-field sound.
59. The integrated circuit of claim 56, wherein: the at least one input signal comprises a first microphone signal indicative of ambient sound at a first microphone and a second microphone signal indicative of ambient sound at a second microphone; and the near-field spatial statistics comprise an inter-microphone level difference between the first microphone signal and the second microphone signal.
60. The integrated circuit of claim 56, wherein detecting the presence of proximity speech in the ambient sound comprises detecting stationary background noise.
61. The integrated circuit of claim 56, wherein detecting the presence of proximity speech in the ambient sound comprises detecting speech from a close-talking proximity talker.
62. The integrated circuit of claim 56, wherein detecting the presence of proximity speech in the ambient sound comprises detecting, from the at least one input signal, a spectral flatness measure of the ambient sound, wherein detecting the spectral flatness measure of the ambient sound comprises detecting variation in spectral content of the ambient sound.
63. A method comprising: receiving a first signal indicative of audio information; based on the first signal, generating an audio output signal for communication to at least one transducer of an audio device; causing the at least one transducer to generate sound in accordance with the audio output signal; receiving at least one input signal indicative of ambient sound external to the audio device; determining near-field spatial statistics for the ambient sound; detecting, based on the at least one input signal, an audio event comprising a proximity sound; modifying a characteristic of the audio output signal in response to the detection of the audio event being persistent for at least a predetermined time; causing the at least one transducer to generate modified sound in accordance with the modified audio output signal; determining a characteristic of the ambient sound, wherein determining the characteristic comprises determining that the ambient sound includes background music and/or determining that a background noise level in the ambient sound is above a threshold background noise level; and in response to the determined characteristic of the ambient sound, dynamically disabling the detection of the proximity sound to prevent false detection of proximity sounds.
64. The method of claim 63, further comprising ceasing to modify the characteristic of the audio information in response to an absence of the audio event for at least a second predetermined time.
65. The method of claim 63, wherein the audio event comprises at least one of a near-field event, a proximity event, and an alarm event.
66. An integrated circuit for implementing at least a portion of an audio device, comprising: an input configured to receive a first signal indicative of audio information; an audio output configured to, based on the first signal, generate an audio output signal for communication to at least one transducer of the audio device, the audio output being operable to cause the at least one transducer to generate sound in accordance with the audio output signal; a microphone input configured to receive at least one input signal indicative of ambient sound external to the audio device; and a processor configured to: determine near-field spatial statistics for the ambient sound; detect, based on the input signal, an audio event comprising a proximity sound; modify a characteristic of the audio output signal in response to the detection of the audio event being persistent for at least a predetermined time; cause the at least one transducer to generate modified sound in accordance with the modified audio output signal; determine a characteristic of the ambient sound, wherein determining the characteristic comprises determining that the ambient sound includes background music and/or determining that a background noise level in the ambient sound is above a threshold background noise level; and in response to the determined characteristic of the ambient sound, dynamically disable the detection of the proximity sound to prevent false detection of proximity sounds.
67. The integrated circuit of claim 66, the processor further configured to cease modifying the characteristic in response to an absence of the audio event for at least a second predetermined time.
68. The integrated circuit of claim 66, wherein the audio event comprises at least one of a near-field event, a proximity event, and an alarm event.
69. The method of claim 1, further comprising: determining a background noise level of a background noise component of the ambient sound; determining spectral characteristics of the background noise component; and based on the background noise level and the spectral characteristics, determining that the ambient sound includes a component corresponding to speech of a person in proximity to the audio device.
70. The method of claim 69, wherein the modifying the characteristic of the audio output signal is based on the background noise level in conjunction with the spectral characteristics of the background noise component.
71. The method of claim 69, wherein the spectral characteristics are indicative of stationary background noise.
72. The method of claim 1, wherein determining the characteristic of the ambient sound comprises determining that the ambient sound includes background music.
73. The method of claim 1, wherein determining the characteristic of the ambient sound comprises determining that a background noise level in the ambient sound is above a threshold background noise level.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) A more complete understanding of the example, present embodiments and certain advantages thereof may be acquired by referring to the following description taken in conjunction with the accompanying drawings, in which like reference numbers indicate like features, and wherein:
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DETAILED DESCRIPTION
(12) In accordance with embodiments of this disclosure, systems and methods may use at least three different audio event detectors that may be used in an automatic playback management framework. Such audio event detectors for an audio device may include a near-field detector that may detect when sounds in the near-field of the audio device is detected, such as a user of the audio device (e.g., a user that is wearing or otherwise using the audio device) speaks, a proximity detector that may detect when sounds in proximity to the audio device is detected, such as when another person in proximity to the user of the audio device speaks, and a tonal alarm detector that detects acoustic alarms that may have been originated in the vicinity of the audio device are proposed.
(13)
(14)
(15) Near-field detector 3 may detect near-field sounds including speech. When such near-field sound is detected, it may be desirable to modify audio information reproduced to output audio transducer 51, as detection of near-field sound may indicate that a user is participating in a conversation. Such near-field detection may need to be able to detect near-field sound in acoustically noisy conditions and be resilient to false detection of near-field sounds in very diverse background noise conditions (e.g., background noise in a restaurant, acoustical noise when driving a car, etc.). As described in greater detail below, near-field detection may require spatial sound processing using a plurality of microphones 52. In some embodiments, such near-field sound detection may be implemented in a manner identical or similar to that described in U.S. Pat. No. 8,565,446 and/or U.S. application Ser. No. 13/199,593.
(16) Proximity detector 4 may detect ambient sounds (e.g., speech from a person in proximity to a user, background music, etc.) other than near-field sounds. As described in greater detail below, because it may be difficult to differentiate proximity sounds from non-stationary background noise and background music, proximity detector may utilize a music detector and noise level estimation to disable proximity detection of proximity detector 4 in order to avoid poor user experience due to false detection of proximity sounds. In some embodiments, such proximity sound detection may be implemented in a manner identical or similar to that described in U.S. Pat. Nos. 8,126,706, 8,565,446, and/or U.S. application Ser. No. 13/199,593.
(17) Tonal alarm detector 5 may detect tonal alarms (e.g., sirens) proximate to an audio device. To provide maximum user experience, it may be desirable that tonal alarm detector 5 ignores certain alarms (e.g., feeble or low-volume alarms). As described in greater detail below, tonal alarm detection may require spatial sound processing using a plurality of microphones 52. In some embodiments, such tonal alarm detection may be implemented in a manner identical or similar to that described in U.S. Pat. No. 8,126,706 and/or U.S. application Ser. No. 13/199,593.
(18)
(19) The various statistics generated by the system of
(20) In some embodiments, thresholds idrThres and imdTh may be dynamically adjusted based on a background noise level estimate.
(21) Proximity detection of proximity detector 4 may be different than near-field sound detection of near-field detector 3 because the signal characteristics of proximity speech may be very similar to ambient signals such as music and noise. Accordingly, proximity detector 4 must avoid false detection of proximity speech in order to achieve acceptable user experience. Accordingly, a music detector 9 may be used to disable proximity detection whenever there is music in the background. Similarly, proximity detector 4 may be disabled whenever background noise level is above certain threshold. The threshold value for background noise may be determined a priori such that a likelihood of false detection below the threshold level is very low.
(22) In some embodiments, the music detector taught in U.S. Pat. No. 8,126,706 may be used to implement music detector 9 to detect the presence of background music. Another embodiment of the proximity speech detector is shown in
(23) This condition is verified by comparing the estimated background noise level with a threshold, noiseLevelThLo. If low noise level is detected, then the following two conditions are further tested to confirm the presence of proximity speech; SFM variation statistic sfmSwing is greater than a threshold sfmSwingTh (block 38); Inter-microphone level difference statistic imd is closer to 0 dB (block 44).
(24) If the above-mentioned background noise level condition is not satisfied at block 31, then the following conditions may be indicative of proximity speech, in order to improve the detection rate of proximity speech without increasing occurrence of a false alarm (e.g., due to background noise conditions): Stationary background noise is present (block 32). The stationary background noise may be detected by calculating the ratio of peak-to-root mean square value of the SFM generated by music detector (block 9) over a period of time. Specifically, if the above-mentioned ratio is higher, then non-stationary noise may be present as the spectral flatness measure of a non-stationary noise tends to change faster than stationary noises; High noise level is present (block 32). The high noise-condition may be detected if the estimated background noise is greater than a threshold, noiseLevelLo and smaller than a threshold, noiseLevelHi.
(25) If the above stationary noise and the direction of arrival conditions are not satisfied at block 32, then the presence of both of the following set of conditions may indicate the presence of proximity speech: Close-talking proximity talker is present (block 33). A close-talking proximity talker may be detected when the maximum normalized cross-correlation statistic normMaxCorr is greater than a threshold, normMaxCorrThres4 (the threshold normMaxCorrThres4 may be greater than normMaxCorrThres3 to indicate the presence of close talker); Low- or medium- or high-level background or no background noise is present (block 34). This condition may be detected if the estimated background noise level is less than a threshold noiseLevelThHi.
(26) If the above-mentioned direction of arrival condition is not satisfied at block 29, then the presence of following conditions may be indicative of proximity speech: The absence of music (block 35); Close-talking proximity talker is present (block 33). A close-talking proximity talker may be detected when the maximum normalized cross-correlation statistic normMaxCorr is greater than a threshold, normMaxCorrThres4 (the threshold normMaxCorrThres4 may be greater than normMaxCorrThres3 to indicate the presence of close talker); Low- or medium- or high-level background or no background noise is present (block 34). This condition may be detected if the estimated background noise level is less than a threshold noiseLevelThHi.
(27) Tonal alarm detector 5 may be configured to detect alarm signals that are tonal in nature in which a sonic bandwidth of such alarm signals are also narrow (e.g., siren, buzzer). In some embodiments, the tonality of an ambient sound may be measured by splitting the time domain signal into multiple sub-bands through time to frequency domain transformation and the spectral flatness measure, depicted in
(28) In practice, the instantaneous audio event detections of near-field detector 3, proximity detector 4, and tonal alarm detector 5 as shown in
(29) The following pseudo-code may demonstrate application of the hold-off and hang-over logic to reduce false detection of audio events, in accordance with embodiments of the present disclosure.
(30) TABLE-US-00001 /* If the instant. detect is true, increment the hold off counter and * reset the hang over counter */ if(instDet == TRUE) { holdOffCntr = holdOffCntr + 1; hangOverCntr = 0; } /* If the instant. detect is false, increment the hang over counter * and reset the hold off counter */ else { hangOverCntr = hangOverCntr + 1; holdOffCntr = 0; } /****************** * Hold-off Logic * ******************/ /* Valid detect will transition to true state if the instant. detect is * continuously true for certian time and the previous valid detect is false */ if(holdOffCntr > holdOffThres && validDet == FALSE) { validDet = TRUE; holdOffCntr = 0; hangOverCntr = 0; } /******************* * Hang-Over Logic * *******************/ /* Valid NF detect will transition to false state if the instant. * NF detect is continuously false for certain time and the previous valid NF detect is true */ if(hangOverCntr > hangOverThres && validDet == TRUE) { validDet = FALSE; holdOffCntr = 0; hangOverCntr = 0; }
(31) A validated event may be further validated before generating the playback mode switching control. For example, the following pseudo-code may demonstrate application of the hold-off and hang-over logic for gracefully switching between a conversational mode (e.g., in which audio information reproduced to output audio transducer 51 may be modified in response to an audio event) and a normal playback mode (e.g., in which the audio information reproduced to output audio transducer 51 is unmodified).
(32) TABLE-US-00002 /*********************************** * Conversational Mode Enter Logic * ***********************************/ /* Increment the time to enter conversational mode counter if the event * detect is true and the mode is not in the conversational mode. If the * counter exceeds the threshold, switch to conversational mode and * reset the counters. Note that the the event detect need not be true contiguously. */ if(convModeEn == FALSE && validDet == TRUE) { timeToEnterConvModeCntr = timeToEnterConvModeCntr + 1; if(timeToEnterConvModeCntr > timeToEnterConvModeThres) { convModeEn = TRUE; timeToEnterConvModeCnt = 0; timeToExitConvModeCntr = 0; } } /********************************* * Conversational Mode Exit Logic * *********************************/ /* Increment the time to exit conversational mode counter if the event * detect is false and the mode is in the conversational mode. If the * counter exceeds the threshold, switch to normal mode and reset * the counters. Note that the the event detect must be false contiguously. */ if(convModeEn == TRUE && validDet == FALSE) { timeToExitConvModeCntr++; if(timeToExitConvModeCntr > timeToExitConvModeThres) { convModeEn = FALSE; timeToEnterConvModeCntr = 0; timeToExitConvModeCntr = 0; } } else { timeToExitConvModeCntr = 0; }
(33)
(34) TABLE-US-00003 if(convModeEn == TRUE) { playBackGain = (1−alpha)*convModeGain + alpha*playBackGain } else { playBackGain = (1−beta)*normalModeGain + beta*playBackGain }
(35) The smoothing parameters alpha and beta may be set at different values to adjust a gain ramping rate.
(36) It should be understood—especially by those having ordinary skill in the art with the benefit of this disclosure—that the various operations described herein, particularly in connection with the figures, may be implemented by other circuitry or other hardware components. The order in which each operation of a given method is performed may be changed, and various elements of the systems illustrated herein may be added, reordered, combined, omitted, modified, etc. It is intended that this disclosure embrace all such modifications and changes and, accordingly, the above description should be regarded in an illustrative rather than a restrictive sense.
(37) Similarly, although this disclosure makes reference to specific embodiments, certain modifications and changes can be made to those embodiments without departing from the scope and coverage of this disclosure. Moreover, any benefits, advantages, or solutions to problems that are described herein with regard to specific embodiments are not intended to be construed as a critical, required, or essential feature or element.
(38) Further embodiments likewise, with the benefit of this disclosure, will be apparent to those having ordinary skill in the art, and such embodiments should be deemed as being encompassed herein.