The invention relates to audio signal processing. More specifically, the invention relates to detecting voice activity in an audio signal. The invention relates to methods, apparatus for performing such methods, to software stored on a computer-readable medium for causing a computer to perform such methods, and audio decoders that are capable of decoding bitstreams that were encoded using the described voice activity detector.
Audiovisual entertainment has evolved into a fast-paced sequence of dialog, narrative, music, and effects. The high realism achievable with modern entertainment audio technologies and production methods has encouraged the use of conversational speaking styles on television that differ substantially from the clearly-annunciated stage-like presentation of the past. This situation poses a problem not only for the growing population of elderly viewers who, faced with diminished sensory and language processing abilities, must strain to follow the programming but also for persons with normal hearing, for example, when listening at low acoustic levels.
How well speech is understood depends on several factors. Examples are the care of speech production (clear or conversational speech), the speaking rate, and the audibility of the speech. Spoken language is remarkably robust and can be understood under less than ideal conditions. For example, hearing-impaired listeners typically can follow clear speech even when they cannot hear parts of the speech due to diminished hearing acuity. However, as the speaking rate increases and speech production becomes less accurate, listening and comprehending require increasing effort, particularly if parts of the speech spectrum are inaudible.
Because television audiences can do nothing to affect the clarity of the broadcast speech, hearing-impaired listeners may try to compensate for inadequate audibility by increasing the listening volume. Aside from being objectionable to normal-hearing people in the same room or to neighbors, this approach is only partially effective. This is so because most hearing losses are non-uniform across frequency; they affect high frequencies more than low- and mid-frequencies. For example, a typical 70-year-old male's ability to hear sounds at 6 kHz is about 50 dB worse than that of a young person, but at frequencies below 1 kHz the older person's hearing disadvantage is less than 10 dB (ISO 7029, Acoustics—Statistical distribution of hearing thresholds as a function of age). Increasing the volume makes low- and mid-frequency sounds louder without significantly increasing their contribution to intelligibility because for those frequencies audibility is already adequate. Increasing the volume also does little to overcome the significant hearing loss at high frequencies. A more appropriate correction is a tone control, such as that provided by a graphic equalizer.
Although a better option than simply increasing the volume control, a tone control is still insufficient for most hearing losses. The large high-frequency gain required to make soft passages audible to the hearing-impaired listener is likely to be uncomfortably loud during high-level passages and may even overload the audio reproduction chain. A better solution is to amplify depending on the level of the signal, providing larger gains to low-level signal portions and smaller gains (or no gain at all) to high-level portions. Such systems, known as automatic gain controls (AGC) or dynamic range compressors (DRC) are used in hearing aids and their use to improve intelligibility for the hearing impaired in telecommunication systems has been proposed (e.g., U.S. Pat. Nos. 5,388,185, 5,539,806, and 6,061,431).
Because hearing loss generally develops gradually, most listeners with hearing difficulties have grown accustomed to their losses. As a result, they often object to the sound quality of entertainment audio when it is processed to compensate for their hearing impairment. Hearing-impaired audiences are more likely to accept the sound quality of compensated audio when it provides a tangible benefit to them, such as when it increases the intelligibility of dialog and narrative or reduces the mental effort required for comprehension. Therefore it is advantageous to limit the application of hearing loss compensation to those parts of the audio program that are dominated by speech. Doing so optimizes the tradeoff between potentially objectionable sound quality modifications of music and ambient sounds on one hand and the desirable intelligibility benefits on the other.
According to one aspect, a method for detecting voice activity is disclosed, the method including receiving a frame of an input audio signal, the input audio signal having an sample rate; dividing the frame into a plurality of subbands based on the sample rate, the plurality of subbands including at least a lowest subband and a highest subband; filtering the lowest subband with a moving average filter to reduce an energy of the lowest subband; estimating a noise level for each of the plurality of subbands; calculating a signal to noise ratio value for each of the plurality of subbands; and determining a speech activity level of the frame based on an average of the calculated signal to noise ratio values and a weighted average of an energy of each of the plurality of subbands. The method may also include smoothing the calculated signal to noise ratio values over time to create temporally smoothed subband signal to noise values and determining a weighted average of the calculated signal to noise ratio values as a spectral tilt of the frame. The method may also include determining a threshold value for the frame based at least on the spectral tilt of the frame and the speech activity level of the frame, and classifying the frame as a voiced frame if the threshold value is exceeded for the frame. The threshold value may additionally be based on whether a previous frame was classified as a voiced frame. Other aspects include audio decoders that decode audio that was encoded using the methods described herein.
According to aforementioned aspects of the invention the processing may include multiple functions acting in parallel. Each of the multiple functions may operate in one of multiple frequency bands. Each of the multiple functions may provide, individually or collectively, dynamic range control, dynamic equalization, spectral sharpening, frequency transposition, speech extraction, noise reduction, or other speech enhancing action. For example, dynamic range control may be provided by multiple compression/expansion functions or devices, wherein each processes a frequency region of the audio signal.
Apart from whether of not the processing includes multiple functions acting in parallel, the processing may provide dynamic range control, dynamic equalization, spectral sharpening, frequency transposition, speech extraction, noise reduction, or other speech enhancing action. For example, dynamic range control may be provided by a dynamic range compression/expansion function or device.
Techniques for classifying audio into speech and non-speech (such as music) are known in the art and are sometimes known as a speech-versus-other discriminator (“SVO”). See, for example, U.S. Pat. Nos. 6,785,645 and 6,570,991 as well as the published US Patent Application 20040044525, and the references contained therein. Speech-versus-other audio discriminators analyze time segments of an audio signal and extract one or more signal descriptors (features) from every time segment. Such features are passed to a processor that either produces a likelihood estimate of the time segment being speech or makes a hard speech/no-speech decision. Most features reflect the evolution of a signal over time. Typical examples of features are the rate at which the signal spectrum changes over time or the skew of the distribution of the rate at which the signal polarity changes. To reflect the distinct characteristics of speech reliably, the time segments must be of sufficient length. Because many features are based on signal characteristics that reflect the transitions between adjacent syllables, time segments typically cover at least the duration of two syllables (i.e., about 250 ms) to capture one such transition. However, time segments are often longer (e.g., by a factor of about 10) to achieve more reliable estimates. Although relatively slow in operation, SVOs are reasonably reliable and accurate in classifying audio into speech and non-speech. However, to enhance speech selectively in an audio program in accordance with aspects of the present invention, it is desirable to control the speech enhancement at a time scale finer than the duration of the time segments analyzed by a speech-versus-other discriminator.
Another class of techniques, sometimes known as voice activity detectors (VADs) indicates the presence or absence of speech in a background of relatively steady noise. VADs are used extensively as part of noise reduction schemas in speech communication applications. Unlike speech-versus-other discriminators, VADs usually have a temporal resolution that is adequate for the control of speech enhancement in accordance with aspects of the present invention. VADs interpret a sudden increase of signal power as the beginning of a speech sound and a sudden decrease of signal power as the end of a speech sound. By doing so, they signal the demarcation between speech and background nearly instantaneously (i.e., within a window of temporal integration to measure the signal power, e.g., about 10 ms). However, because VADs react to any sudden change of signal power, they cannot differentiate between speech and other dominant signals, such as music. Therefore, if used alone, VADs are not suitable for controlling speech enhancement to enhance speech selectively in accordance with the present invention.
It is an aspect of the invention to combine the speech versus non-speech specificity of speech-versus-other (SVO) discriminators with the temporal acuity of voice activity detectors (VADs) to facilitate speech enhancement that responds selectively to speech in an audio signal with a temporal resolution that is finer than that found in prior-art speech-versus-other discriminators.
Although, in principle, aspects of the invention may be implemented in analog and/or digital domains, practical implementations are likely to be implemented in the digital domain in which each of the audio signals are represented by individual samples or samples within blocks of data.
Referring now to
Buffer 106 symbolizes memory inherent to the processing and may or may not be implemented directly. For example, if processing is performed on an audio signal that is stored on a medium with random memory access, that medium may serve as buffer. Similarly, the history of the audio input may be reflected in the internal state of the speech-versus-other discriminator 107 and the internal state of the voice activity detector, in which case no separate buffer is needed.
Speech Enhancement 102 may be composed of multiple audio processing devices or functions that work in parallel to enhance speech. Each device or function may operate in a frequency region of the audio signal in which speech is to be enhanced. For example, the devices or functions may provide, individually or as whole, dynamic range control, dynamic equalization, spectral sharpening, frequency transposition, speech extraction, noise reduction, or other speech enhancing action. In the detailed examples of aspects of the invention, dynamic range control provides compression and/or expansion in frequency bands of the audio signal. Thus, for example, Speech Enhancement 102 may be a bank of dynamic range compressors/expanders or compression/expansion functions, wherein each processes a frequency region of the audio signal (a multiband compressor/expander or compression/expansion function). The frequency specificity afforded by multiband compression/expansion is useful not only because it allows tailoring the pattern of speech enhancement to the pattern of a given hearing loss, but also because it allows responding to the fact that at any given moment speech may be present in one frequency region but absent in another.
To take full advantage of the frequency specificity offered by multiband compression, each compression/expansion band may be controlled by its own voice activity detector or detection function. In such a case, each voice activity detector or detection function may signal voice activity in the frequency region associated with the compression/expansion band it controls. Although there are advantages in Speech Enhancement 102 being composed of several audio processing devices or functions that work in parallel, simple embodiments of aspects of the invention may employ a Speech Enhancement 102 that is composed of only a single audio processing device or function.
Even when there are many voice activity detectors, there may be only one speech-versus-other discriminator 107 generating a single output 109 to control all the voice activity detectors that are present. The choice to use only one speech-versus-other discriminator reflects two observations. One is that the rate at which the across-band pattern of voice activity changes with time is typically much faster than the temporal resolution of the speech-versus-other discriminator. The other observation is that the features used by the speech-versus-other discriminator typically are derived from spectral characteristics that can be observed best in a broadband signal. Both observations render the use of band-specific speech-versus-other discriminators impractical.
A combination of SVO 107 and VAD 108 as illustrated in Speech Enhancement Controller 105 may also be used for purposes other than to enhance speech, for example to estimate the loudness of the speech in an audio program, or to measure the speaking rate.
The speech enhancement schema just described may be deployed in many ways. For example, the entire schema may be implemented inside a television or a set-top box to operate on the received audio signal of a television broadcast. Alternatively, it may be integrated with a perceptual audio coder (e.g., AC-3 or AAC) or it may be integrated with a lossless audio coder.
Speech enhancement in accordance with aspects of the present invention may be executed at different times or in different places. Consider an example in which speech enhancement is integrated or associated with an audio coder or coding process. In such a case, the speech-versus other discriminator (SVO) 107 portion of the Speech Enhancement Controller 105, which often is computationally expensive, may be integrated or associated with the audio encoder or encoding process. The SVO's output 109, for example a flag indicating speech presence, may be embedded in the coded audio stream. Such information embedded in a coded audio stream is often referred to as metadata. Speech Enhancement 102 and the VAD 108 of the Speech Enhancement Controller 105 may be integrated or associated with an audio decoder and operate on the previously encoded audio. The set of one or more voice activity detectors (VAD) 108 also uses the output 109 of the speech-versus-other discriminator (SVO) 107, which it extracts from the coded audio stream.
If the audio signal to be processed has been prerecorded, for example as when playing back from a DVD in a consumer's home or when processing offline in a broadcast environment, the speech-versus-other discriminator and/or the voice activity detector may operate on signal sections that include signal portions that, during playback, occur after the current signal sample or signal block. This is illustrated in
The processing parameters of Speech Enhancement 102 may be updated in response to the processed audio signal at a rate that is lower than the dynamic response rate of the compressor. There are several objectives one might pursue when updating the processor parameters. For example, the gain function processing parameter of the speech enhancement processor may be adjusted in response to the average speech level of the program to ensure that the change of the long-term average speech spectrum is independent of the speech level. To understand the effect of and need for such an adjustment, consider the following example. Speech enhancement is applied only to a high-frequency portion of a signal. At a given average speech level, the power estimate 301 of the high-frequency signal portion averages P1, where P1 is larger than the compression threshold power 304. The gain associated with this power estimate is G1, which is the average gain applied to the high-frequency portion of the signal. Because the low-frequency portion receives no gain, the average speech spectrum is shaped to be G1 dB higher at the high frequencies than at the low frequencies. Now consider what happens when the average speech level increases by a certain amount, ΔL. An increase of the average speech level by ΔL dB increases the average power estimate 301 of the high-frequency signal portion to P2=P1+ΔL. As can be seen from
Processing parameters of Speech Enhancement 102 may also be adjusted to ensure that a metric of speech intelligibility is either maximized or is urged above a desired threshold level. The speech intelligibility metric may be computed from the relative levels of the audio signal and a competing sound in the listening environment (such as aircraft cabin noise). When the audio signal is a multichannel audio signal with speech in one channel and non-speech signals in the remaining channels, the speech intelligibility metric may be computed, for example, from the relative levels of all channels and the distribution of spectral energy in them. Suitable intelligibility metrics are well known [e.g., ANSI S3.5-1997 “Method for Calculation of the Speech Intelligibility Index” American National Standards Institute, 1997; or Müsch and Buus, “Using statistical decision theory to predict speech intelligibility. I Model Structure,” Journal of the Acoustical Society of America, (2001) 109, pp 2896-2909].
Aspects of the invention shown in the functional block diagrams of
Referring to
The compression threshold 304, the compression ratio 303, and the gain at the compression threshold are fixed parameters. Their choice determines how the envelope and spectrum of the speech signal are processed in a particular band. Ideally they are selected according to a prescriptive formula that determines appropriate gains and compression ratios in respective bands for a group of listeners given their hearing acuity. An example of such a prescriptive formula is NAL−NL1, which was developed by the National Acoustics Laboratory, Australia, and is described by H. Dillon in “Prescribing hearing aid performance” [H. Dillon (Ed.), Hearing Aids (pp. 249-261); Sydney; Boomerang Press, 2001.] However, they may also be based simply on listener preference. The compression threshold 304 and compression ratio 303 in a particular band may further depend on parameters specific to a given audio program, such as the average level of dialog in a movie soundtrack.
Whereas the compression threshold may be fixed, the expansion threshold 306 preferably is adaptive and varies in response to the input signal. The expansion threshold may assume any value within the dynamic range of the system, including values larger than the compression threshold. When the input signal is dominated by speech, a control signal described below drives the expansion threshold towards low levels so that the input level is higher than the range of power estimates to which expansion is applied (see
When the input signal is dominated by audio other than speech, the control signal drives the expansion threshold towards high levels so that the input level tends to be lower than the expansion threshold. In that condition the majority of the signal components receive no gain.
The band power estimates of the preceding discussion may be derived by analyzing the outputs of a filter bank or the output of a time-to-frequency domain transformation, such as the DFT (discrete Fourier transform), MDCT (modified discrete cosine transform) or wavelet transforms. The power estimates may also be replaced by measures that are related to signal strength such as the mean absolute value of the signal, the Teager energy, or by perceptual measures such as loudness. In addition, the band power estimates may be smoothed in time to control the rate at which the gain changes.
According to an aspect of the invention, the expansion threshold is ideally placed such that when the signal is speech the signal level is above the expansive region of the gain function and when the signal is audio other than speech the signal level is below the expansive region of the gain function. As is explained below, this may be achieved by tracking the level of the non-speech audio and placing the expansion threshold in relation to that level.
Certain prior art level trackers set a threshold below which downward expansion (or squelch) is applied as part of a noise reduction system that seeks to discriminate between desirable audio and undesirable noise. See, e.g., U.S. Pat. Nos. 3,803,357, 5,263,091, 5,774,557, and 6,005,953. In contrast, aspects of the present invention require differentiating between speech on one hand and all remaining audio signals, such as music and effects, on the other. Noise tracked in the prior art is characterized by temporal and spectral envelopes that fluctuate much less than those of desirable audio. In addition, noise often has distinctive spectral shapes that are known a priori. Such differentiating characteristics are exploited by noise trackers in the prior art. In contrast, aspects of the present invention track the level of non-speech audio signals. In many cases, such non-speech audio signals exhibit variations in their envelope and spectral shape that are at least as large as those of speech audio signals. Consequently, a level tracker employed in the present invention requires analyzing signal features suitable for the distinction between speech and non-speech audio rather than between speech and noise.
The signal power estimate 403 is also passed to a device or function (“Level Tracker”) 406 that tracks the level of all signal components in the band that are not speech. Level Tracker 406 may include a leaky minimum hold circuit or function (“Minimum Hold”) 407 with an adaptive leak rate. This leak rate is controlled by a time constant 408 that tends to be low when the signal power is dominated by speech and high when the signal power is dominated by audio other than speech. The time constant 408 may be derived from information contained in the estimate of the signal power 403 in the band. Specifically, the time constant may be monotonically related to the energy of the band signal envelope in the frequency range between 4 and 8 Hz. That feature may be extracted by an appropriately tuned bandpass filter or filtering function (“Bandpass”) 409. The output of Bandpass 409 may be related to the time constant 408 by a transfer function (“Power-to-Time-Constant”) 410. The level estimate of the non-speech components 411, which is generated by Level Tracker 406, is the input to a transform or transform function (“Power-to-Expansion Threshold”) 412 that relates the estimate of the background level to an expansion threshold 414. The combination of level tracker 406, transform 412, and downward expansion (characterized by the expansion ratio 305) corresponds to the VAD 108 of
Transform 412 may be a simple addition, i.e., the expansion threshold 306 may be a fixed number of decibels above the estimated level of the non-speech audio 411. Alternatively, the transform 412 that relates the estimated background level 411 to the expansion threshold 306 may depend on an independent estimate of the likelihood of the broadband signal being speech 413. Thus, when estimate 413 indicates a high likelihood of the signal being speech, the expansion threshold 306 is lowered. Conversely, when estimate 413 indicates a low likelihood of the signal being speech, the expansion threshold 306 is increased. The speech likelihood estimate 413 may be derived from a single signal feature or from a combination of signal features that distinguish speech from other signals. It corresponds to the output 109 of the SVO 107 in
The following patents, patent applications and publications are hereby incorporated by reference, each in their entirety.
U.S. Pat. No. 3,803,357; Sacks, Apr. 9, 1974, Noise Filter
U.S. Pat. No. 5,263,091; Waller, Jr. Nov. 16, 1993, Intelligent automatic threshold circuit
U.S. Pat. No. 5,388,185; Terry, et al. Feb. 7, 1995, System for adaptive processing of telephone voice signals
U.S. Pat. No. 5,539,806; Allen, et al. Jul. 23, 1996, Method for customer selection of telephone sound enhancement
U.S. Pat. No. 5,774,557; Slater Jun. 30, 1998, Autotracking microphone squelch for aircraft intercom systems
U.S. Pat. No. 6,005,953; Stuhlfelner Dec. 21, 1999, Circuit arrangement for improving the signal-to-noise ratio
U.S. Pat. No. 6,061,431; Knappe, et al. May 9, 2000, Method for hearing loss compensation in telephony systems based on telephone number resolution
U.S. Pat. No. 6,570,991; Scheirer, et al. May 27, 2003, Multi-feature speech/music discrimination system
U.S. Pat. No. 6,785,645; Khalil, et al. Aug. 31, 2004, Real-time speech and music classifier
U.S. Pat. No. 6,914,988; Irwan, et al. Jul. 5, 2005, Audio reproducing device
United States Published Patent Application 2004/0044525; Vinton, Mark Stuart; et al. Mar. 4, 2004, controlling loudness of speech in signals that contain speech and other types of audio material
“Dynamic Range Control via Metadata” by Charles Q. Robinson and Kenneth Gundry, Convention Paper 5028, 107th Audio Engineering Society Convention, New York, Sep. 24-27, 1999.
The invention may be implemented in hardware or software, or a combination of both (e.g., programmable logic arrays). Unless otherwise specified, the algorithms included as part of the invention are not inherently related to any particular computer or other apparatus. In particular, various general-purpose machines may be used with programs written in accordance with the teachings herein, or it may be more convenient to construct more specialized apparatus (e.g., integrated circuits) to perform the required method steps. Thus, the invention may be implemented in one or more computer programs executing on one or more programmable computer systems each comprising at least one processor, at least one data storage system (including volatile and non-volatile memory and/or storage elements), at least one input device or port, and at least one output device or port. Program code is applied to input data to perform the functions described herein and generate output information. The output information is applied to one or more output devices, in known fashion.
Each such program may be implemented in any desired computer language (including machine, assembly, or high level procedural, logical, or object oriented programming languages) to communicate with a computer system. In any case, the language may be a compiled or interpreted language.
Each such computer program is preferably stored on or downloaded to a storage media or device (e.g., solid state memory or media, or magnetic or optical media) readable by a general or special purpose programmable computer, for configuring and operating the computer when the storage media or device is read by the computer system to perform the procedures described herein. The inventive system may also be considered to be implemented as a computer-readable storage medium, configured with a computer program, where the storage medium so configured causes a computer system to operate in a specific and predefined manner to perform the functions described herein.
A number of embodiments of the invention have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. For example, some of the steps described herein may be order independent, and thus can be performed in an order different from that described.
This application is a continuation of U.S. patent application Ser. No. 15/730,908 filed on Oct. 12, 2017, which is a continuation of U.S. patent application Ser. No. 15/207,155 filed on Jul. 11, 2016, now U.S. Pat. No. 9,818,433 issued on Nov. 14, 2017, which is a continuation of U.S. patent application Ser. No. 14/701,622 filed on May 1, 2015, now U.S. Pat. No. 9,418,680 issued on Aug. 16, 2016, which is a continuation of U.S. patent application Ser. No. 14/605,003 filed on Jan. 26, 2015, now U.S. Pat. No. 9,368,128 issued on Jun. 14, 2016, which is a continuation of U.S. patent application Ser. No. 13/571,344 filed on Aug. 10, 2012, now U.S. Pat. No. 8,972,250 issued on Mar. 3, 2015, which is a continuation of U.S. patent application Ser. No. 13/463,600 filed on May 3, 2012, now U.S. Pat. No. 8,271,276 issued on Sep. 18, 2012, which is a continuation of U.S. patent application Ser. No. 12/528,323 filed on Aug. 22, 2009, now U.S. Pat. No. 8,195,454 issued on Jun. 5, 2012, which is a national application of PCT application PCT/US2008/002238 filed Feb. 20, 2008, which claims the benefit of the filing date of U.S. Provisional Patent Application Ser. No. 60/903,392 filed on Feb. 26, 2007, all of which are hereby incorporated by reference.
Number | Date | Country | |
---|---|---|---|
60903392 | Feb 2007 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 15730908 | Oct 2017 | US |
Child | 16516634 | US | |
Parent | 15207155 | Jul 2016 | US |
Child | 15730908 | US | |
Parent | 14701622 | May 2015 | US |
Child | 15207155 | US | |
Parent | 14605003 | Jan 2015 | US |
Child | 14701622 | US | |
Parent | 13571344 | Aug 2012 | US |
Child | 14605003 | US | |
Parent | 13463600 | May 2012 | US |
Child | 13571344 | US | |
Parent | 12528323 | Aug 2009 | US |
Child | 13463600 | US |