Abstract: A gain control system for controlling gain applied to an audio signal, the system comprising: a power estimator configured to estimate the power of a digital signal derived from the audio signal; a digital gain estimator configured to determine, in dependence on the estimated power, a digital gain which would modify the power of the digital signal so as to reach a target power level; and a gain controller configured to adjust an analogue gain applied to the audio signal in dependence on the determined digital gain.
DYNAMIC GAIN CONTROLLER
BACKGROUND OF THE INVENTION
This invention relates to controlling gain for a microphone signal.
5
In telephony, audio signals (e.g. including voice signals) are transmitted between a near-end
and a far-end. In a bidirectional voice communication, the “near-end” and “far-end” are
defined relative to each participant. Thus, the “near-end” for one participant will correspond
to the “far-end” for the other participant. Far-end signals which are received at the near-end
10 may be outputted from a loudspeaker at the near-end. A microphone at the near-end may be
used to capture a near-end signal to be transmitted to the far-end, such as a voice of a
participant at the near-end.
The quality of the audio outputted by the far-end loudspeaker may be affected by the amount
15 of gain that is applied to the signal captured by the near-end microphone. For example, if the
signal captured by the microphone has a high volume (e.g., which may be due to near-field
speech caused by a person talking very close to the microphone) and a high gain is applied to
that signal, then this may lead to signal saturation and so a poor quality signal is sent to the
far-end. Whereas, if the signal captured has a low volume (e.g., which may be due to far-field
20 speech caused by the person talking being far away from the microphone) and a low gain is
applied, then this may lead to a low signal-to-noise ratio (SNR). Furthermore, a speech signal
may change from far-field to near-field (and vice versa) as a person speaking moves towards
or away from the microphone. This will affect the power (or amplitude) of the speech signal
that is incident at the microphone and so the amount of gain that is applied to the signal will
25 need to be appropriately adapted and the adaptation should be performed in a timely manner
so as to maintain the quality of the signal sent to the far-end. Furthermore, changing the
amount of gain applied can cause a degradation in the performance of other signal processing
modules at the near-end device such as automatic speech recognition (ASR), echo
cancellation, noise cancellation and speech enhancement. There is, therefore, also a need to
30 mitigate such degradation.
3
BRIEF SUMMARY OF THE INVENTION
According to a first aspect of the present invention there is provided a gain control system for
controlling gain applied to an audio signal, the system comprising: a power estimator
configured to estimate the power of a digital signal derived from the audio signal; a digital
gain estimator configured to determine, in dependence 5 on the estimated power, a digital gain
which would modify the power of the digital signal so as to reach a target power level; and a
gain controller configured to adjust an analogue gain applied to the audio signal in
dependence on the determined digital gain.
10 The audio signal may be a microphone signal.
The gain control system may further comprise a voice detector configured to detect a presence
of voice in the digital signal, wherein the gain controller may be configured to adjust the
analogue gain only if the presence of voice is detected.
15
The gain controller may be configured to reduce the gain applied to the audio signal if the
presence of voice is detected and the estimated power is greater than the target power level.
The gain controller may be configured to increase the gain applied to the audio signal if the
20 presence of voice is detected and the estimated signal power is less than the target power
level.
The gain controller may be configured to perform the adjustment of the analogue gain in
response to the voice detector subsequently detecting an absence of voice in the digital signal.
25
The gain controller may be configured to perform the adjustment of the analogue gain in
response to subsequently detecting that the power of the digital signal is below a power
threshold.
The estimated power may be an average power determined from a plurality of frames of the
30 digital signal.
4
The gain controller may be configured to retrieve a value for the analogue gain that
corresponds to the digital gain from a lookup table.
The gain controller may be configured to adjust the analogue gain applied to the audio signal
from a current gain level to an adjusted gain level 5 at an adjustment rate, the rate being
determined in dependence on the power difference between the digital signal power and the
target power level.
The adjustment rate may be variable and the gain controller may be configured to increase the
10 adjustment rate in response to determining an increase in the power difference between the
digital signal power and the target power level.
The adjustment rate may be variable and the gain controller may be configured to decrease the
adjustment rate in response to determining a decrease in the power difference between the
15 digital signal power and the target power level.
The adjustment rate may be determined in dependence on the current gain level or the
adjusted gain level.
20 If the adjusted gain level is greater than the current gain level, the gain controller may be
configured to determine a first adjustment rate and if the adjusted gain level is less than the
current gain level, the gain controller may be configured to determine a second adjustment
rate that is greater than the first adjustment rate.
25 The gain control system may further comprise an echo canceller configured to cancel echo
from the audio signal, wherein the digital signal is an echo cancelled signal.
The digital gain estimator may be further configured to smooth the determined digital gain,
the gain controller may be configured to adjust the analogue gain applied in dependence on
30 the smoothed digital gain.
5
According to a second aspect of the present invention there is provided a method for
controlling gain applied to an audio signal, the method comprising: estimating the power of a
digital signal derived from the audio signal; determining, in dependence on the estimated
power, a digital gain which would modify the power of the digital signal so as to reach a
target power level; and adjusting an analogue gain applied 5 to the audio signal in dependence
on the determined digital gain.
The audio signal may be a microphone signal.
10 The method may further comprise detecting a presence of voice in the digital signal, wherein
the analogue gain is adjusted only if the presence of voice is detected.
The adjusting step may comprise reducing the gain applied to the audio signal if the presence
of voice is detected and the estimated power is greater than the target power level.
15
The adjusting step may comprise increasing the gain applied to the audio signal if the
presence of voice is detected and the estimated signal power is less than the target power
level.
20 The adjusting step may be performed in response to subsequently detecting the absence of
voice in the digital signal.
The adjusting step may be performed in response to detecting that the power of the digital
signal is below a power threshold.
25
The estimated power may be an average power determined from a plurality of frames of the
digital signal.
The method may further comprise retrieving a value for the analogue gain that corresponds to
the digital gain from a lookup table.
30
6
The analogue gain applied to the audio signal may be adjusted from a current gain level to an
adjusted gain level at an adjustment rate, the rate being determined in dependence on the
power difference between the digital signal power and the target power level.
The adjustment rate may be variable and the adjustment 5 rate may be increased in response to
determining an increase in the power difference between the digital signal power and the
target power level.
The adjustment rate may be variable and the adjustment rate may be decreased in response to
10 determining a decrease in the power difference between the digital signal power and the target
power level.
The adjustment rate may be determined in dependence on the current gain level or the
adjusted gain level.
15
If the adjusted gain level is greater than the current gain level, a first adjustment rate may be
determined and if the adjusted gain level is less than the current gain level, a second
adjustment rate may be determined that is greater than the first adjustment rate.
20 The method may further comprise cancelling echo from the audio signal, wherein the digital
signal is an echo cancelled signal.
The method may further comprise smoothing the determined digital gain, the adjusted
analogue gain being in dependence on the smoothed digital gain.
25
The gain control system described above may be embodied in hardware on an integrated
circuit.
There is provided a method of manufacturing, at an integrated circuit manufacturing system,
30 the gain control system described above.
7
According to a third aspect of the present invention there is provided an integrated circuit
definition dataset that, when processed in an integrated circuit manufacturing system,
configures the system to manufacture the gain control system described above.
There is provided a non-transitory computer 5 readable storage medium having stored thereon a
computer readable description of an integrated circuit that, when processed in an integrated
circuit manufacturing system, causes the integrated circuit manufacturing system to
manufacture the gain control system described above.
10 There is provided an integrated circuit manufacturing system comprising: a non-transitory
computer readable storage medium having stored thereon a computer readable integrated
circuit description that describes a gain control system; a layout processing system configured
to process the integrated circuit description so as to generate a circuit layout description of an
integrated circuit embodying the gain control system; and an integrated circuit generation
15 system configured to manufacture the gain control system according to the circuit layout
description, wherein the gain control system comprises: a power estimator configured to
estimate the power of a digital signal derived from an audio signal; a digital gain estimator
configured to determine, in dependence on the estimated power, a digital gain which would
modify the power of the digital signal so as to reach a target power level; and a gain controller
20 configured to adjust an analogue gain applied to the audio signal in dependence on the
determined digital gain.
There is provided a computer program code for performing any of the methods described
above.
25
There is provided a non-transitory computer readable storage medium having stored thereon
computer readable instructions that, when executed at a computer system, cause the computer
system to perform any of the methods described above.
30 BRIEF DESCRIPTION OF THE DRAWINGS
The present invention will now be described by way of example with reference to the
accompanying drawings. In the drawings:
8
Figure 1 shows an example of a communications device;
Figure 2 shows an example of a gain control system;
Figure 3 shows an example process for controlling gain;
Figure 4 is a schematic diagram of an integrated circuit manufacturing system.
5
DETAILED DESCRIPTION OF THE INVENTION
The following description is presented by way of example to enable a person skilled in the art
to make and use the invention. The present invention is not limited to the embodiments
described herein and various modifications to the disclosed embodiments will be apparent to
10 those skilled in the art.
Figure 1 shows an example of a communication device 10 comprising a loudspeaker 11,
microphone 12, a signal processing section 13 and a gain control system 14. In an alternative
arrangement (not shown), the loudspeaker 11 and microphone 12 may be external to the
15 device 10 and connected to the device 10 via appropriate output and input ports. Examples of
suitable communication devices 10 include mobile phones, smart phones, line connected
phones, laptops, tablets, teleconferencing equipment etc. The communication device 10 may
also include a CPU, memory, signal processing circuitry, such as a DSP and filters, etc. (none
of which are shown in figure 1 for simplification of explanation). The communication device
20 10 may be used for communications over a network (such as the internet, LTE, etc) and
comprise an appropriate network interface (not shown). The communications device 10 may
be used for communications such as telephone calls, Voice over Internet Protocol (VoIP),
teleconferencing, videoconferencing, etc.
25 The microphone 12 captures audio by converting sound into electrical signals, which are
analogue signals. Gain is applied to the analogue signals from the microphone (also referred
to herein as “microphone gain”), as depicted at analogue gain stage 15. In alternative
implementations, the analogue signal may be from an audio source other than a microphone,
such as tape, vinyl, etc. The analogue gain may be applied at the audio source (e.g., the
30 microphone) and/or by an amplifier (not shown). The applied analogue gain may be, for
example, an increase in the amplitude of the electrical signal. This can have the effect of
increasing the amplitude of the captured sound. The amplified signal is provided to a signal
9
processing section 13, which performs various signal processing functions so that the signal is
suitable for transmission to the far-end. The signal processing functions may include, for
example, converting the analogue signal into a digital signal (as depicted by analogue-todigital
converter (ADC) 16), echo cancellation (as depicted by acoustic echo canceller (AEC)
17 which also receives the far-end signal to perform the 5 echo cancellation), encoding,
packetising, etc.
Gain may also be applied, digitally, to the digital signal representing the audio from the
microphone. This is depicted by digital gain stage 18. The digital gain may be applied to the
10 digital signal, for example, during ADC conversion, as part of the encoding process or at any
other suitable stage. The digital gain may be applied in accordance with a communications
codecs like ITU-T Recommendation G.729, Adaptive Multi-Rate (AMR) NB, AMR WB,
OPUS etc or standard such as Recommendation ITU-T G.169.
15 The communication device 10 comprises a gain control system 14 (which is shown in further
detail in figure 2). The amount of gain applied at the analogue gain stage 15 can be controlled
by the gain control system 14. Optionally, the gain control system 14 may also control the
amount of gain applied at the digital gain stage 18. As shown in figure 2, the gain control
system 14 may comprise a voice activity detector (VAD) 21, a power estimator 22, a digital
20 gain estimator 23 and an analogue gain controller 24, each of which may be implemented in
hardware, software or a combination thereof.
The gain control system 14 receives, as an input signal, a signal from the signal processing
section 13. The input signal received by the gain control system 14 is a digital signal that is
25 derived from the audio signal captured by the microphone 12. The input signal received may
be, for example, from an output at the end of the signal processing section 13 or from an
intermediate stage of the signal processing section 13. For example, the input signal may be
the audio signal from the microphone 12 that has been digitally converted (e.g. at ADC 16).
This may be the case if device 10 is used for one way communication. Alternatively, the
30 input signal could be an echo cancelled signal (e.g. from AEC 17). This may be the case if
device 10 is used for duplex communication.
10
The input signal may be analysed at VAD 21 to determine if the signal contains any speech.
The input signal may be provided as audio frames. Each audio frame may contain one or
more samples of the audio signal from the microphone. The frames may be temporarily
stored in memory (not shown), for example, for the purposes of filtering and smoothing (as
described further below). Each frame may be classified as 5 “speech” or “noise” by the VAD
21. The VAD 21 may then provide the speech frames to the power estimator 22 for further
analysis. The noise frames may be ignored for any further analysis. VAD 21 may be any
suitable voice activity detector known in the art. In an alternative embodiment, the input
signal may instead be analysed to detect signals other than speech such as music, baby noises,
10 animal noises, etc. In a further alternative, the VAD 21 may be omitted and all frames of the
input signal are provided to the power estimator 22.
The power estimator 22 determines the audio signal power for the input signal. For example,
where the input signal is provided as audio frames, the audio signal power may be determined
15 for each received frame. Where a frame classified as a speech frame is received, the audio
data contained within that frame may be assumed to be predominantly speech and thus the
power estimator 22 can estimate the speech signal power for that frame. The power of the
input signal is determined in the digital domain. The determined power of the digital input
signal may therefore be representative of the power of the analogue audio signal provided to
20 the signal processing section 13. The input signal power for each frame may be estimated
according to the following equation:
( ) ̂( ) ̂ ( ) (1)
25 Where ̂( ) ( ) is the microphone samples vector, N is the frame size and is
the frame index (i.e. each frame contains N samples).
The signal power ( ) may be smoothed and averaged to account for any spurious low or
high level speech spurts or samples. The signal power may be smoothed, for example, by
30 using a suitable first order low pass filter and a suitable averaging factor. The signal power
determined for each frame of the input signal may be smoothed using the signal power
11
determined for one or more previously received frames (e.g. using ( ) ( ), etc
power values).
The estimated power may then be provided to the digital gain estimator 23. The digital gain
estimator 23 estimates a digital gain which 5 would, if applied to the input signal, modify the
power of the input signal so as to reach a target power level. The target power level may be a
power level that is set by, for example, an application that is managing communications for
device 10, by the codec used for the communication, by a user, etc. The target level may be a
predefined constant level (e.g. around -6dB) or variable.
10
The power estimator 22 may estimate ( ) by squaring the input signal amplitude and
averaging it or passing it through a low pass filter. Thus, to calculate the power difference
between the power of the input signal and the target power level, ( ) would need to be
square rooted. The gain ( ) required for the input signal to reach the target level may be
15 estimated as:
( )
( )
√ ( )
(2)
Where ( ) is the target power level and ( ) is the signal power estimated by the power
20 estimator 22. The target power level ( ) may be a constant or may vary depending on the
implementation.
The gain ( ) may be smoothed, for example, by a suitable first order low pass filter and a
suitable averaging factor. The gain ( ) may be smoothed using one or more gain values
25 that have been determined previously (e.g. using ( ) ( ), etc values). Smoothing
of the signal power and/or gain helps avoid natural variations and fluctuations of human
speech from affecting the determined power and gain levels.
Smoothing of the gain may be performed at multiple levels. For example, the gain ( ) may
30 be smoothed using first order low pass filter using a smoothing factor α to determine a
smoothed gain value ( ):
12
( ) ( ) ( ( ) ( )) (3)
The smoothed gain may be smoothed further, for example, a further three times, as shown
below:
5
( ) ( ) ( ( ) ( )) (4)
( ) ( ) ( ( ) ( )) (5)
( ) ( ) ( ( ) ( )) (6)
( ) ( ) (7)
10
Where ( ) is a smoothed version of the gain value required for the signal to reach the target
level, , , are predetermined smoothing factors, where each of which may differ
depending on whether a gain increase or decrease is required. Smoothing the gain multiple
times in this way helps avoid natural variations in human speech inducing variation in the
15 gain estimation.
The analogue gain controller 24 may adjust the analogue gain for the microphone signal based
on the estimated gain ( ) (or its smoothed/averaged value e.g., ( ) or ( )). If the power
level of the signal is equal to the target power level (which, for example, may be indicated by
20 gain ( ) being one), then no adaption of the microphone gain will be required. If the power
level of the signal is less than the target power level (which, for example, may be indicated by
gain ( ) being greater than one), then the microphone gain may be increased. If the power
level of the signal is greater than the target power level (which, for example, may be indicated
by gain ( ) being less than one), then the microphone gain may be decreased. The amount
25 of increase or decrease of the microphone gain may be determined based the difference
between the signal power level and the target power level. This difference may be indicated
by gain ( ). In one example, the analogue gain controller 24 may access a lookup table
(which may be stored in memory) which maps digital gain ( ) values to analogue gain
values for the microphone. The analogue gain controller 24 may retrieve analogue
30 microphone gain values from the lookup table based on the determined gain ( ) and increase
or decrease the microphone gain by the looked up value.
13
The analogue gain controller 24 may determine a rate or time instant for adapting the
microphone gain. Changes to the microphone gain cause the echo path or the noise floor to
change which may affect the performance of other speech enhancement modules like AEC
17, a noise canceller (not shown), etc. Generally, the speech enhancement modules are more
adversely affected by an increase in the microphone 5 gain than a reduction in the microphone
gain. Thus, in one example, the gain controller 24 may adapt the microphone gain less
frequently for increases in the microphone gain than for reductions in the microphone gain.
In another example, the adverse effects of gain increases may be reduced by applying the gain
changes (such as an increase) during periods of silence. The analogue gain controller 24 may
10 determine an amount of gain increase and wait for a silent period before applying the change
in gain. For example, if VAD 21 detects a series of frames that do not contain speech, it may
be inferred that there is currently a silent period and so the analogue gain controller 24 applies
the gain change. A silent period could also be determined by measuring the signal power
(e.g. using the power estimator 22, as described above) and determining when the signal
15 power is very low. The signal power could be considered to be very low if the power falls
below a threshold power level which could be regarded as, for example, merely background
noise. The threshold power level could be set to be, for example, the minimum power level
required to detect voice by VAD 21. When the signal power is determined to be below the
threshold, the gain controller 24 may apply the microphone gain increase.
20
Increases in the microphone gain to be applied at any instant in time may be limited to a predefined
value (e.g. ~3dB) so that the speech enhancement modules are able to re-adapt to the
new levels quickly.
25 The gain controller 24 may adjust the digital gain applied at the digital gain stage 18 based on
the determined gain ( ). The digital gain adjustment may be in addition to or alternative to
the analogue gain adjustment. The digital gain adjustment may be made when, for example, it
is not possible to adjust the analogue gain (because, for example, the adjustment would cause
the analogue gain to be outside of a working range).
30
Figure 3 is a flow diagram which illustrates an example of how the microphone gain may be
adapted. At 301, an input signal is received at the gain control system 14. As mentioned
14
above, the input signal may be the digitised microphone signal or a processed version of the
microphone signal (e.g. processed by the AEC 17). In this example, the input signal is the
microphone signal that has been digitised, encoded and framed according to a media codec.
At 302, a received frame is analysed to determine if there 5 is any speech present in that frame.
This analysis may be performed by the VAD 21, as described above. If speech is detected,
the frame is classified as “speech” and the process moves on to step 303. If there is no speech
detected, the process moves back to step 301 to receive the next frame and no changes are
made to the microphone gain.
10
At step 303, the power of the audio signal for the frame (that contains speech) is estimated.
This estimation may be performed by the power estimator 22, as described above. The
estimated power may be smoothed and averaged using signal powers that have been estimated
for previous frames. At step 304, the amount of gain, ( ), required for the audio signal to
15 reach a target power level is determined. This determination may be performed by the digital
gain estimator 23 and is determined based on the estimated power level, ( ), as described
above.
At step 305, it is determined if gain ( ) is greater than one, less than one or equal to one. If
20 the determined gain is one, then this indicates that the estimated power level, ( ), is equal to
the target power level and so no adaption of the microphone gain is required and so the
process moves back to step 301 to receive the next frame without changing the microphone
gain. If gain ( ) is less than one, the process moves on to step 306. If the gain ( ) is
greater than one, the process moves on to step 309.
25
At step 306, gain ( ) is less than one, which indicates that the signal power is greater than
the target power level and so the microphone gain needs to be reduced. The amount of
analogue gain for adjusting the current microphone gain is determined based on digital gain
( ). For example, an analogue gain value may be determined for digital gain ( ) from a
30 lookup table, as described above. Alternatively, the digital gain g(l) value may be further
processed prior to the lookup using the following equation to determine an amount of gain
reduction Gred (see equation 8). A current gain value may then be reduced by the gain
15
reduction value Gred to provide a new gain Gnew. An analogue gain value may then be looked
up from the new gain value Gnew.
( )
( ) ( )
( )
(8)
Where (
( )
), is a constant, g(l) is the amount 5 of digital gain that has been
determined at step 304 and Gmax is predefined maximum change in the gain value.
At step 307, a rate or time instant for reducing the microphone gain is determined. The rate or
time instant may be determined based on the determined amount of analogue gain at step 306
10 or digital gain ( ) at step 305. For example, the microphone gain may be reduced quickly if
the signal power is very high to help avoid distortion due to saturation as well as loud and
inconvenient audio for the listener at the far-end. For example, if ( ) ≤ 0.2, then this
indicates high signal power and so the microphone signal may be adapted quickly. Whereas
if 0.2 ≤ ( ) ≤ 1, then the adaption may be slower. For example, if ( ) ≤ 0.2, then the
15 microphone gain may be adapted instantly or after waiting for a short amount of time T (e.g.
T = 0.1 seconds). If 0.2 ≤ ( ) ≤ 1, then the microphone gain may be adapted according to:
T =
(
( )
( )
(9)
20 Where T is the amount of time to wait before adapting the microphone gain and Tmax, is a
maximum amount of time to wait (e.g. 8 seconds). According to equation 9, as ( ) gets
closer to 1, the amount of waiting time is increased. This has the effect of reducing the
adaptation rate as the signal power level gets closer to the target power level.
25 The next adaptation instant or the waiting duration for applying the microphone gain change
may also be dependent on the current analogue microphone gain level. For example, if the
current microphone gain is high, the microphone gain reduction may be applied quickly
because the high signal power captured may degrade the performance of speech enhancement
modules, as mentioned above. Whereas, if the current microphone gain is low, the
30 microphone gain reduction may be applied slowly because reducing the microphone gain to
an even lower level may cause it to not capture the required audio.
16
Step 307 may be performed by the gain controller 24.
At step 308, the microphone gain is reduced by the amount of gain determined at step 306.
The gain may be reduced at a rate or time determined 5 at step 307. Alternatively, step 307
may be omitted and the microphone gain is reduced instantly after step 306. The process then
returns to step 301 to receive the next frame.
At step 305, if gain ( ) is greater than one, the process moves on to step 309. At step 309,
10 gain ( ) is greater than one, which indicates that the signal power is less than the target
power level and so the microphone gain needs to be increased. The amount of analogue gain
for adjusting the current microphone gain is determined based on digital gain ( ). For
example, an analogue gain value may be determined for digital gain ( ) from a lookup table,
as described above. Alternatively, the digital gain g(l) value may be further processed prior to
15 the lookup using the following equation to determine an amount of gain increase Ginc(see
equation 10). A current gain value may then be increased by the gain increase value Ginc to
provide a new gain Gnew. An analogue gain value may then be looked up from the new gain
value Gnew.
( )
( ) ( )
( )
20 (10)
Where ( ( ) ), is a constant, g(l) is the amount of digital gain that has been
determined at step 304 and Gmax is predefined maximum change in the gain value.
25 At step 310, a rate or time instant for increasing the microphone gain is determined. The rate
or time instant may be determined based on the determined amount of analogue gain at step
309 or digital gain ( ) at step 305. For example, the amount of time to wait before
increasing the microphone gain may be determined according to equation 11:
T =
(
( )
( )
)
30 (11)
17
Where T is the amount of time to wait before adapting the microphone gain and Tmax, is a
maximum amount of time to wait (e.g. 8 seconds). According to equation 11, as ( ) gets
closer to 1, the amount of waiting time is increased. This has the effect of reducing the
adaptation rate as the signal power level gets closer to the target power level. It also means
that if the speech power level is low, the microphone 5 gain is increased quickly so that the
speech can be captured at a better level (i.e. nearer the target level) for the far-end listener.
The next adaptation instant or waiting duration for applying the microphone gain change may
also be dependent on the current analogue microphone gain level. For example, when the
10 current microphone gain is high, the time duration for applying the microphone gain increase
may be large so that the gain is increased at a slow rate. This can help avoid signal saturation.
When the current microphone gain is low, the time duration for applying the microphone gain
increase may be at a fast rate as a low microphone gain may cause the signal to not be
captured and so a quick increase in the microphone gain helps ensure that the required signal
15 is captured.
Step 310 may be performed by the gain controller 24.
The system may provide a minimum amount of time to wait between gain adaptions, Tmin (e.g.
20 1 or 2 seconds), which may be predefined to ensure that the microphone gain is not adapted
too rapidly. A maximum amount of time to wait between gain adaptations, Tmax (e.g. 8
seconds) may also be predefined. Furthermore, a maximum change in the amount of gain
Gmax may also be predefined to help prevent large increases or decreases in the amount of
gain at each adaptation step, which could cause the system to destabilise. Thus, the amount of
25 time between gain adaptations determined at steps 307 and/or 310 may be bounded by Tmin
and Tmax and the amount that the gain is adapted may be limited by Gmax.
At step 311, the microphone gain is increased by the amount of gain determined at step 309.
The gain may be increased at a rate or time determined at step 310. Alternatively, step 310
30 may be omitted and the microphone gain is increased instantly after step 309. The process
then returns to step 301 to receive the next frame.
18
As well as adapting the analogue gain of the microphone signal, the digital gain applied (e.g.
at digital gain stage 18) may also be adapted. The combination of adapting the analogue gain
and the digital gain allows the dynamic range for the total gain to be larger.
As described above, the gain control system 14 helps 5 to improve the quality of audio that is
received by the far-end listener. In particular, the audio captured by a microphone is analysed
in the digital domain to determine the power level of the audio and the amount of gain
required for the power level of the audio to be at a target power level (which may correspond
to an ideal power level for listening at the far-end). Performance of this analysis in the digital
10 domain rather than in the analogue domain has a number of advantages such as: (i) the ability
to analyse specific targeted audio such as speech only; (ii) the power of the signal may change
as it is processed along the signal processing pipeline and so determining the power further
down the pipeline (rather than at the input of the pipeline – as would be the case in the
analogue domain) may provide a better indication of the signal power received by the far-end.
15 Furthermore, it is advantageous to adapt the gain in the analogue domain rather than solely in
the digital domain as there may be a loss in the resolution of the signal when multiplying the
digitised values of the digital signal to apply the digital gain.
It is also advantageous to determine a difference between a current power level and a target
20 power level and adapt the gain accordingly. Determining this difference allows the gain to be
adapted quickly or slowly depending on if the difference is large or small respectively. This
may be beneficial over set incremental increases or decreases as it allows the device to
quickly adapt so that it can capture the required signal or remove distortions rapidly. It also
allows aids system stability and the performance of other audio enhancement modules as the
25 adaptation rate can be slowed down if the signal power level is close to the target power level,
thus advantageously reducing the frequency at which the analogue gain is modified, as
described above. Furthermore, reducing the adaptation frequency allows more time for an
average power estimation to be carried out, which helps to provide a more accurate
estimation.
30
The device and system of Figures 1 and 2 are shown as comprising a number of functional
blocks. This is schematic only and is not intended to define a strict division between different
19
logic elements of such entities. Each functional block may be provided in any suitable
manner. It is to be understood that intermediate values described herein as being formed by a
gain control system need not be physically generated by the gain control system at any point
and may merely represent logical values which conveniently describe the processing
performed b 5 y the gain control system between its input and output.
Generally, any of the functions, methods, techniques or components described above can be
implemented in software, firmware, hardware (e.g., fixed logic circuitry), or any combination
thereof. The terms “module,” “functionality,” “component”, “element”, “unit”, “block” and
10 “logic” may be used herein to generally represent software, firmware, hardware, or any
combination thereof. In the case of a software implementation, the module, functionality,
component, element, unit, block or logic represents program code that performs the specified
tasks when executed on a processor. The algorithms and methods described herein could be
performed by one or more processors executing code that causes the processor(s) to perform
15 the algorithms/methods. Examples of a computer-readable storage medium include a
random-access memory (RAM), read-only memory (ROM), an optical disc, flash memory,
hard disk memory, and other memory devices that may use magnetic, optical, and other
techniques to store instructions or other data and that can be accessed by a machine.
20 The terms computer program code and computer readable instructions as used herein refer to
any kind of executable code for processors, including code expressed in a machine language,
an interpreted language or a scripting language. Executable code includes binary code,
machine code, bytecode, code defining an integrated circuit (such as a hardware description
language or netlist), and code expressed in a programming language code such as C, Java or
25 OpenCL. Executable code may be, for example, any kind of software, firmware, script,
module or library which, when suitably executed, processed, interpreted, compiled, executed
at a virtual machine or other software environment, cause a processor of the computer system
at which the executable code is supported to perform the tasks specified by the code.
30 A processor, computer, or computer system may be any kind of device, machine or dedicated
circuit, or collection or portion thereof, with processing capability such that it can execute
instructions. A processor may be any kind of general purpose or dedicated processor, such as
20
a CPU, GPU, System-on-chip, state machine, media processor, an application-specific
integrated circuit (ASIC), a programmable logic array, a field-programmable gate array
(FPGA), or the like. A computer or computer system may comprise one or more processors.
It is also intended to encompass software which defines a 5 configuration of hardware as
described herein, such as HDL (hardware description language) software, as is used for
designing integrated circuits, or for configuring programmable chips, to carry out desired
functions. That is, there may be provided a computer readable storage medium having
encoded thereon computer readable program code in the form of an integrated circuit
10 definition dataset that when processed in an integrated circuit manufacturing system
configures the system to manufacture a gain control system configured to perform any of the
methods described herein, or to manufacture a gain control system comprising any apparatus
described herein. An integrated circuit definition dataset may be, for example, an integrated
circuit description.
15
An integrated circuit definition dataset may be in the form of computer code, for example as a
netlist, code for configuring a programmable chip, as a hardware description language
defining an integrated circuit at any level, including as register transfer level (RTL) code, as
high-level circuit representations such as Verilog or VHDL, and as low-level circuit
20 representations such as OASIS (RTM) and GDSII. Higher level representations which
logically define an integrated circuit (such as RTL) may be processed at a computer system
configured for generating a manufacturing definition of an integrated circuit in the context of
a software environment comprising definitions of circuit elements and rules for combining
those elements in order to generate the manufacturing definition of an integrated circuit so
25 defined by the representation. As is typically the case with software executing at a computer
system so as to define a machine, one or more intermediate user steps (e.g. providing
commands, variables etc.) may be required in order for a computer system configured for
generating a manufacturing definition of an integrated circuit to execute code defining an
integrated circuit so as to generate the manufacturing definition of that integrated circuit.
30
21
An example of processing an integrated circuit definition dataset at an integrated circuit
manufacturing system so as to configure the system to manufacture a gain control system will
now be described with respect to Figure 4.
Figure 4 shows an example of an integrated circuit 5 (IC) manufacturing system 1002 which
comprises a layout processing system 1004 and an integrated circuit generation system 1006.
The IC manufacturing system 1002 is configured to receive an IC definition dataset (e.g.
defining a gain control system as described in any of the examples herein), process the IC
definition dataset, and generate an IC according to the IC definition dataset (e.g. which
10 embodies a gain control system as described in any of the examples herein). The processing
of the IC definition dataset configures the IC manufacturing system 1002 to manufacture an
integrated circuit embodying a gain control system as described in any of the examples
herein.
15 The layout processing system 1004 is configured to receive and process the IC definition
dataset to determine a circuit layout. Methods of determining a circuit layout from an IC
definition dataset are known in the art, and for example may involve synthesising RTL code
to determine a gate level representation of a circuit to be generated, e.g. in terms of logical
components (e.g. NAND, NOR, AND, OR, MUX and FLIP-FLOP components). A circuit
20 layout can be determined from the gate level representation of the circuit by determining
positional information for the logical components. This may be done automatically or with
user involvement in order to optimise the circuit layout. When the layout processing system
1004 has determined the circuit layout it may output a circuit layout definition to the IC
generation system 1006. A circuit layout definition may be, for example, a circuit layout
25 description.
The IC generation system 1006 generates an IC according to the circuit layout definition, as is
known in the art. For example, the IC generation system 1006 may implement a
semiconductor device fabrication process to generate the IC, which may involve a multiple30
step sequence of photo lithographic and chemical processing steps during which electronic
circuits are gradually created on a wafer made of semiconducting material. The circuit layout
definition may be in the form of a mask which can be used in a lithographic process for
22
generating an IC according to the circuit definition. Alternatively, the circuit layout definition
provided to the IC generation system 1006 may be in the form of computer-readable code
which the IC generation system 1006 can use to form a suitable mask for use in generating an
IC.
5
The different processes performed by the IC manufacturing system 1002 may be implemented
all in one location, e.g. by one party. Alternatively, the IC manufacturing system 1002 may
be a distributed system such that some of the processes may be performed at different
locations, and may be performed by different parties. For example, some of the stages of: (i)
10 synthesising RTL code representing the IC definition dataset to form a gate level
representation of a circuit to be generated, (ii) generating a circuit layout based on the gate
level representation, (iii) forming a mask in accordance with the circuit layout, and (iv)
fabricating an integrated circuit using the mask, may be performed in different locations
and/or by different parties.
15
In other examples, processing of the integrated circuit definition dataset at an integrated
circuit manufacturing system may configure the system to manufacture a gain control system
without the IC definition dataset being processed so as to determine a circuit layout. For
instance, an integrated circuit definition dataset may define the configuration of a
20 reconfigurable processor, such as an FPGA, and the processing of that dataset may configure
an IC manufacturing system to generate a reconfigurable processor having that defined
configuration (e.g. by loading configuration data to the FPGA).
In some embodiments, an integrated circuit manufacturing definition dataset, when processed
25 in an integrated circuit manufacturing system, may cause an integrated circuit manufacturing
system to generate a device as described herein. For example, the configuration of an
integrated circuit manufacturing system in the manner described above with respect to Figure
4 by an integrated circuit manufacturing definition dataset may cause a device as described
herein to be manufactured.
30
In some examples, an integrated circuit definition dataset could include software which runs
on hardware defined at the dataset or in combination with hardware defined at the dataset. In
23
the example shown in Figure 4, the IC generation system may further be configured by an
integrated circuit definition dataset to, on manufacturing an integrated circuit, load firmware
onto that integrated circuit in accordance with program code defined at the integrated circuit
definition dataset or otherwise provide program code with the integrated circuit for use with
5 the integrated circuit.
The applicant hereby discloses in isolation each individual feature described herein and any
combination of two or more such features, to the extent that such features or combinations are
capable of being carried out based on the present specification as a whole in the light of the
10 common general knowledge of a person skilled in the art, irrespective of whether such
features or combinations of features solve any problems disclosed herein. In view of the
foregoing description it will be evident to a person skilled in the art that various modifications
may be made within the scope of the invention.
We Claim:
1. A gain control system for controlling gain applied to an audio signal, the system
comprising:
a power estimator configured to estimate the power of 5 a digital signal derived from the
audio signal;
a digital gain estimator configured to determine, in dependence on the estimated
power, a digital gain which would modify the power of the digital signal so as to reach a
target power level; and
10 a gain controller configured to adjust an analogue gain applied to the audio signal in
dependence on the determined digital gain.
2. A gain control system as claimed in claim 1, wherein the audio signal is a microphone
signal.
15
3. A gain control system as claimed in claim 1 or claim 2, further comprising a voice detector
configured to detect a presence of voice in the digital signal, wherein the gain controller is
configured to adjust the analogue gain only if the presence of voice is detected.
20 4. A gain control system as claimed in claim 3, wherein the gain controller is configured to
reduce the gain applied to the audio signal if the presence of voice is detected and the
estimated power is greater than the target power level or to increase the gain applied to the
audio signal if the presence of voice is detected and the estimated signal power is less than the
target power level.
25
5. A gain control system as claimed in claim 3 or claim 4, wherein the gain controller is
configured to perform the adjustment of the analogue gain in response to the voice detector
subsequently detecting an absence of voice in the digital signal.
30 6. A gain control system as claimed in any preceding claim, wherein the gain controller is
configured to perform the adjustment of the analogue gain in response to subsequently
detecting that the power of the digital signal is below a power threshold.
25
7. A gain control system as claimed in any preceding claims, wherein the estimated power is
an average power determined from a plurality of frames of the digital signal.
8. A gain control system as claimed in any preceding 5 claim, wherein the gain controller is
configured to retrieve a value for the analogue gain that corresponds to the digital gain from a
lookup table.
9. A gain control system as claimed in any preceding claim, wherein the gain controller is
10 configured to adjust the analogue gain applied to the audio signal from a current gain level to
an adjusted gain level at an adjustment rate, the rate being determined in dependence on the
power difference between the digital signal power and the target power level.
10. A gain control system as claimed in claim 9, wherein the adjustment rate is variable and
15 the gain controller is configured to increase the adjustment rate in response to determining an
increase in the power difference between the digital signal power and the target power level.
11. A gain control system as claimed in claim 9, wherein the adjustment rate is variable and
the gain controller is configured to decrease the adjustment rate in response to determining a
20 decrease in the power difference between the digital signal power and the target power level.
12. A gain control system as claimed in any of claims 9 to 11 wherein the adjustment rate is
determined in dependence on the current gain level or the adjusted gain level.
25 13. A gain control system as claimed in any of claims 9 to 12, wherein if the adjusted gain
level is greater than the current gain level, the gain controller is configured to determine a first
adjustment rate and if the adjusted gain level is less than the current gain level, the gain
controller is configured to determine a second adjustment rate that is greater than the first
adjustment rate.
30
26
14. A gain control system as claimed in any preceding claim, further comprising an echo
canceller configured to cancel echo from the audio signal, wherein the digital signal is an
echo cancelled signal.
15. A gain control system as claimed in any preceding 5 claim, wherein the digital gain
estimator is further configured to smooth the determined digital gain, the gain controller being
configured to adjust the analogue gain applied in dependence on the smoothed digital gain.
16. A method for controlling gain applied to an audio signal, the method comprising:
10 estimating the power of a digital signal derived from the audio signal;
determining, in dependence on the estimated power, a digital gain which would
modify the power of the digital signal so as to reach a target power level; and
adjusting an analogue gain applied to the audio signal in dependence on the
determined digital gain.
15
17. A method as claimed in claim 16, wherein adjusting comprises reducing the gain applied
to the audio signal if the presence of voice is detected and the estimated power is greater than
the target power level increasing the gain applied to the audio signal if the presence of voice
is detected and the estimated signal power is less than the target power level.
20
18. A method as claimed in claim 16 or claim 17, wherein the analogue gain applied to the
audio signal is adjusted from a current gain level to an adjusted gain level at an adjustment
rate, the rate being determined in dependence on the power difference between the digital
signal power and the target power level.
25
19. A method as claimed in claim 18, wherein the adjustment rate is variable and the
adjustment rate is increased in response to determining an increase in the power difference
between the digital signal power and the target power level or the adjustment rate is decreased
in response to determining a decrease in the power difference between the digital signal
30 power and the target power level.
27
20. An integrated circuit definition dataset that, when processed in an integrated circuit
manufacturing system, configures the system to manufacture a gain control system wherein
the gain control system is embodied in hardware on an integrated circuit, the system
comprising:
a power estimator configured to estimate the power 5 of a digital signal derived from the
audio signal;
a digital gain estimator configured to determine, in dependence on the estimated
power, a digital gain which would modify the power of the digital signal so as to reach a
target power level; and
10 a gain controller configured to adjust an analogue gain applied to the audio signal in
dependence on the determined digital gain.
| Section | Controller | Decision Date |
|---|---|---|
| U/S 15, 43 | Saumya Jain | 2023-12-28 |
| U/S 15 | Saumya Jain | 2023-12-28 |
| # | Name | Date |
|---|---|---|
| 1 | Form 5 [13-02-2017(online)].pdf | 2017-02-13 |
| 2 | Form 3 [13-02-2017(online)].pdf | 2017-02-13 |
| 3 | Drawing [13-02-2017(online)].pdf | 2017-02-13 |
| 4 | Description(Complete) [13-02-2017(online)].pdf_446.pdf | 2017-02-13 |
| 5 | Description(Complete) [13-02-2017(online)].pdf | 2017-02-13 |
| 6 | abstract.jpg | 2017-04-14 |
| 7 | Other Patent Document [02-05-2017(online)].pdf | 2017-05-02 |
| 8 | Form 26 [02-05-2017(online)].pdf | 2017-05-02 |
| 9 | 201714004998-Power of Attorney-030517.pdf | 2017-05-04 |
| 10 | 201714004998-OTHERS-030517.pdf | 2017-05-04 |
| 11 | 201714004998-Correspondence-030517.pdf | 2017-05-04 |
| 12 | 201714004998-OTHERS-030517..pdf | 2017-05-29 |
| 13 | 201714004998-FORM 3 [19-07-2017(online)].pdf | 2017-07-19 |
| 14 | 201714004998-FORM 3 [19-01-2018(online)].pdf | 2018-01-19 |
| 15 | 201714004998-FORM 3 [28-07-2018(online)].pdf | 2018-07-28 |
| 16 | 201714004998-FORM 3 [04-01-2019(online)].pdf | 2019-01-04 |
| 17 | 201714004998-FORM 3 [05-07-2019(online)].pdf | 2019-07-05 |
| 18 | 201714004998-FORM 3 [26-12-2019(online)].pdf | 2019-12-26 |
| 19 | 201714004998-MARKED COPIES OF AMENDEMENTS [18-02-2020(online)].pdf | 2020-02-18 |
| 20 | 201714004998-FORM 18 [18-02-2020(online)].pdf | 2020-02-18 |
| 21 | 201714004998-FORM 13 [18-02-2020(online)].pdf | 2020-02-18 |
| 22 | 201714004998-AMMENDED DOCUMENTS [18-02-2020(online)].pdf | 2020-02-18 |
| 23 | 201714004998-FORM 3 [11-06-2020(online)].pdf | 2020-06-11 |
| 24 | 201714004998-FORM 3 [20-11-2020(online)].pdf | 2020-11-20 |
| 25 | 201714004998-OTHERS [25-06-2021(online)].pdf | 2021-06-25 |
| 26 | 201714004998-Information under section 8(2) [25-06-2021(online)].pdf | 2021-06-25 |
| 27 | 201714004998-FORM 3 [25-06-2021(online)].pdf | 2021-06-25 |
| 28 | 201714004998-FER_SER_REPLY [25-06-2021(online)].pdf | 2021-06-25 |
| 29 | 201714004998-DRAWING [25-06-2021(online)].pdf | 2021-06-25 |
| 30 | 201714004998-CORRESPONDENCE [25-06-2021(online)].pdf | 2021-06-25 |
| 31 | 201714004998-CLAIMS [25-06-2021(online)].pdf | 2021-06-25 |
| 32 | 201714004998-ABSTRACT [25-06-2021(online)].pdf | 2021-06-25 |
| 33 | 201714004998-FER.pdf | 2021-10-17 |
| 34 | 201714004998-US(14)-HearingNotice-(HearingDate-18-10-2023).pdf | 2023-09-13 |
| 35 | 201714004998-Correspondence to notify the Controller [14-10-2023(online)].pdf | 2023-10-14 |
| 1 | 201714004998E_16-03-2021.pdf |