This invention relates to speech recognition, and in particular to a system that can detect that a pass phrase has been spoken, and may also be able to validate that the pass phrase was spoken by a specified speaker, allowing the system to be used as a hands-free and low power consumption means of activating higher power consumption functions such as speech recognition in consumer devices, with smartphones being just one example of such consumer devices. Aspects of the invention also relate to an analog-to-digital converter suitable for use in such a system or device.
It is known to provide circuitry which is able to continually listen for voice commands, while in stand-by mode. This removes the requirement for a button or other mechanical trigger to generally ‘wake up’ the device from stand-by mode, for instance to activate a speech recognition function.
One possible way of initiating hands-free operation is for the user of the phone to say a key phrase, for example “Hello phone”. The device is then able to recognise that the key phrase has been spoken and wake up the speech recognition function and potentially the rest of the device. Furthermore the hands-free command may be programmed to be user specific, in that case only a previously registered user (or users) can utter the key phrase and the device will be able to verify that it is that specific user speaking (speaker recognition) and progress to wake up the speech recognition function.
However, such circuitry implements relatively complex algorithms and thus has relatively high power consumption, meaning that it is somewhat impractical to keep such circuitry continually active in a portable device with limited battery capacity or other power availability constraints.
In order to perform digital processing of sounds, it is usually necessary to detect the sounds with a microphone, which generates an analog signal, and to perform analog-to-digital conversion to generate a digital signal in a form that is suitable for such processing.
To provide sufficient accuracy in the digitisation of the speech signal for reliable speech recognition or user recognition, a high performance analog-to-digital converter (ADC) is required. Typically this will include some single-bit or multi-bit quantiser embedded in a feedback loop to spectrally shape the quantisation noise, for example as a delta-sigma ADC.
The quantiser may take several forms, including a voltage-to-frequency converter (or voltage-controlled-oscillator (VCO)) followed by a counter. The VCO generates a pulse train at a frequency that depends on the present value of its input analog voltage signal. The counter may count the number of pulses generated by the voltage controlled oscillator in a given time interval. The digital count value accumulated during each interval thus depends on the frequency at which the pulses are generated, and is thus a measure of the present value of the analog signal presented to the quantiser.
The ADC feedback loop will typically also comprise a digital-to-analog converter (DAC) to provide an analog feedback signal from the quantiser digital output and an analog op amp integrator to accept this feedback signal and the input signal. These analog components must have low thermal noise and adequate speed, and as a result they will consume relatively high power. Again, it is somewhat impractical to keep such ADC circuitry continually active in a portable device with limited battery capacity or other power availability constraints.
According to the present invention, there is provided a speech recognition system, comprising:
For a better understanding of the present invention, and to show how it may be out into effect, reference will now be made, by way of example, to the accompanying drawings, in which:—
a illustrates the functional blocks in a speech recognition system;
b-5e illustrate the operation of the system of
a-7k illustrate a time history of signals in the system of
As shown in
The baseband processor 31, the applications processor 33, and the wireless transceiver 37 all send audio data to, and receive audio data from, switching circuitry in the form of an audio hub 39, i.e. an audio codec. The audio hub 39 takes the form of an integrated circuit in this described embodiment.
In the embodiment described above, the audio signals between the audio hub 39 and the baseband processor 31, the applications processor 33, and the wireless transceiver 37 are all digital, and some of them may be in stereo, comprising a left audio data stream and a right audio data stream. Additionally, at least in the case of communication with the applications processor 33, further data streams may be multiplexed into the audio signals, for example to enable the applications processor 33 to provide stereo music and also other audio signals such as key press confirmation tones simultaneously.
The audio hub 39 communicates with the baseband processor 31, the applications processor 33, and the wireless transceiver 37 over respective audio data links, i.e. buses, 38b, 38a, 38c, and the audio hub 39 has respective digital interfaces 40b, 40a, 40c for these data links.
It will be appreciated that, in applications where there is no requirement for a wireless transceiver 37 for example, the audio hub 39 need only have two audio data links and two respective digital interfaces.
The audio hub 39 also provides audio signals to, and receives audio signals from, the built-in analog audio transducers of the mobile telephone 1. As shown in
The audio hub 39 can also be connected to other output transducers 43, which may be analog or digital transducers, and which may be built in to the mobile telephone 1 (for example in the case of a haptic output transducer) or in devices external to the mobile telephone 1 (for example the earpieces 13 of the wired headset shown in
It is to be appreciated that
The electrical signals which are continuously generated in response to respective acoustic stimuli by either one microphone or multiple microphones 11 or the peripheral audio input devices 46 are inputted into the audio hub 39. These generated audio signal or signals are then routed through the audio hub 39, wherein the audio signals can be processed by one or more digital signal processing (DSP) elements. Inside the audio hub 39 the audio signals are not restricted to one route and can be processed in many different ways. As described in more detail below, this processing can include key phrase detection, noise reduction, altering the frequency response, and altering the gain of the signal. Audio signal analysis and processing can take place in the audio hub 39 when other components, such as the applications processor 33 of the audio system, are in stand-by mode, i.e. in a low-power mode.
In this described example, the voice recognition functionality operates using a multi-phase process.
At step 82, in the phase 1 processing, it is determined whether the received electronic signal contains signal activity. Such signal activity may represent speech. If no signal activity is detected then the process continues to monitor the received electronic signal for such activity. When signal activity that may represent speech is detected in step 82, the process passes to step 84 and the phase 2 processing, in which it is determined whether the detected signal contains speech that represents a preset trigger word or phrase, i.e. a “magic word” or “magic phrase”. In one example, the trigger phrase is preset by the manufacturer of the handset or other device, and thus might be the same for all such devices, or at least for all such devices sold within a particular territory, or sold to speakers of a particular language. Thus, the trigger phrase might be a generic greeting such as “hello phone”. In other embodiments, the trigger phrase might be any (possibly non verbal) vocalisation.
In other examples, the handset or other device might allow the user to set their own trigger phrase, though this would need to meet certain criteria. For example it might have a maximum permitted length, and it would need to be chosen to avoid excessive false detections, for example it should not be a common conversational phrase nor be too short, e.g. a single phoneme.
If it is determined in step 84 that the signal contains speech that does not represent the preset trigger phrase, the process returns to the start to continue monitoring the received electronic signal for activity.
When it is determined in step 84 that the signal contains speech that represents the preset trigger phrase, the process passes to step 86 and the phase 3 processing, in which it is determined whether the trigger phrase was spoken by a user with whom the trigger phrase is associated, bearing in mind that a plurality of users could potentially use the device and could each potentially have their own associated trigger phrase.
Specifically, if it is determined in step 84 that the trigger phrase, which has already been detected in the signal, was being spoken by the user, then the process will pass to step 88, in which a speech recognition engine is enabled. Otherwise, the process returns to the start to continue monitoring the received electronic signal for activity.
On passing to step 88, the speech recognition engine then detects the subsequent speech of the user and, for example, converts it into commands for execution by the handset for local execution or potentially some other device connected to the cellular telephone network 29 for remote execution.
This multi-phase approach can allow the speech recognition to operate in an “always on” fashion. That is, there is no need for a user to press a button or perform any other action to activate the speech recognition. Thus, speech recognition is completely hands free which is advantageous. Simply saying the trigger phase is enough to activate the speech recognition. Further, preferably the same instance of the trigger phase can be used in the third phase to perform speaker verification, in order to ensure that only an authorised user can give commands to or from the device in this way.
The multi-phase approach has the advantage that the “always on” operation does not use excessive amounts of power. Thus, it is only the first phase, that is the signal activity detection phase, that is always operating, and the second phase, that is the trigger phrase detection, is only activated when the first phase detects a signal that might represent speech.
The first phase can operate using very low power, and so the fact that it is always on does not lead to high continual power consumption.
The second phase operates using relatively low power, and is on for a relatively small fraction of time, and so again this does not lead to high power consumption when averaged over a time interval comprising a high fraction of inactivity.
The third phase uses a relatively high power, but is expected to be operating for only a very small fraction of time, and so again this does not lead to high average power consumption.
In an audio system of the general type shown in
Further, especially to provide more sophisticated algorithms for speech recognition (or even other applications such as real-time language translation) than may be implemented in real time with the computing and data-bank resources of the device, the actual speech recognition may advantageously not be carried out in the mobile telephone 1 at all, but might be carried out using cloud-based processing, by establishing a network connection from the mobile telephone. As this will be triggered only rarely, and when actually required, the power consumption involved with the network connection will not contribute greatly to the total average power consumption.
Thus, this progressive commitment of processing power means that the system as a whole can operate in an apparently “always on” fashion, while its average power consumption remains relatively low.
a is a block diagram, illustrating in more detail the functionality of the speech recognition system as described herein. The required functionality may be provided in hardware or software as required, and in particular any of the functions described herein may be provided as computer-readable code possibly stored on non-transitory medium for running on any suitable computational resources for providing the required function. It will be appreciated that this functionality may be distributed amongst multiple separate integrated circuits, or even across several larger devices, as required. For example, in one embodiment based around the architecture shown in
In one alternative architecture, also the third phase operation is carried out in the audio hub.
In another alternative architecture, all of the processing is performed in a single host processor, in which case the first phase (and possibly also the second phase) processing can be carried out in a power island of the processor that is always powered up, with the remainder of the processor only being powered up or enabled to perform the third phase when the second phase determines that the trigger phrase has been spoken.
a shows multiple possible sources for the sound system. Specifically,
In addition, the system shown in
As mentioned above, at least the initial phases of a multi-phase speech recognition system can advantageously use the input from a single microphone, even when multiple microphones are available. However, it may be preferred not to rely on the input from a predetermined microphone, because one or more of the microphones on a handset may be occluded, for example if the handset is placed on a flat surface or is being carried in a bag or pocket. The system therefore includes in this example a microphone polling function 106, which detects whether one or more of the microphones is occluded, and selects the signal from a microphone that is determined not to be occluded.
For example, an algorithm running on the audio hub 39 (or the host processor 33) could periodically enable each microphone in turn (including a headset if connected), compare the magnitude of the output of each microphone across different parts of the spectrum, determine which microphone has the strongest and “flattest” signal (i.e. a spectral shape most similar to likely or desired speech signals), and select this microphone as a source for Phase 1 operation, disabling the remainder of the microphones.
The signal received from the microphone that is selected by the block 104 is passed to at least a buffer 110, which typically is able to store signals representing a period of sound, say 2-10 seconds for example: clearly the buffer can be sized so as to store the required period of time varying signal or signals. In this example, the buffer 110 stores the signal Dout generated by the selected microphone only. However, it will be appreciated that the buffer 110 may store signals generated by selected multiple microphones, or all available microphones, if source selector 104 has the capability and is controlled to select and output multiple signals concurrently.
Phase 1 processing will take a finite time to determine if the received signal Dout contains speech. While it is possible that the buffer 110 can be relatively quickly activated, i.e. woken up, when the phase 1 processing determines that the received signal Dout may contain speech so as to save the received signal Dout from that point on, it will be appreciated that some of the received signal Dout will not have been stored in the buffer 100 and will therefore be lost forever which is disadvantageous. One solution to avoid the loss of the received signal Dout, i.e. data, would be to operate, as part of the phase 1 processing, the entire buffer 110 so as to continually store signals representing the last 2-10 seconds of received signal. Thus, however long the buffer 110 is designed to store data, i.e. the received signal Dout, it is continuously stored on a first-in-first-out basis.
Operating the buffer 110 on such a continuous basis is not efficient with respect to power consumption.
In order to compromise power consumption versus loss of signal (Dout), in one example embodiment, the buffer 110 is partitioned into a plurality of portions that operate in response to the multi-phase speech recognition system. Thus, the buffer 110 can operate in a plurality of modes in response to the multi-phase speech recognition system.
In a partitioned buffer embodiment, the buffer 110 is partitioned into at least two sections, or portions, and can thus be operated in at least two independent modes, wherein the first section is smaller than the second section.
The first section of the buffer 110 should be such that it is continuously buffering, i.e. recording, at least enough of the received signal Dout so as to account for the finite time that it takes Phase 1 processing to determine that the received signal Dout does contains speech. Thus, such partial buffering, relative to complete buffering, ensures that no speech signal is lost. In reality the first section of the buffer 110 would buffer for somewhat longer, for example 200 ms longer, than the finite time that it takes Phase 1 processing to determine that the received signal Dout does contains speech. This extra buffering, 200 ms worth for example, ensures that the pass phrase required for the functionality of the speech recognition system is not lost.
The buffer 110 should preferably be of a low power nature wherein clocking is minimal and data movement between storage locations is at least minimal, if not non-existent. A suitable low power type buffer 1110 could be constructed from static random-access-memory (RAM) for example wherein pointers are used to indicate storage locations versus time events, as will be understood by those skilled in the art.
b illustrates one principle of how the buffer 110 may be partitioned with respect to the received signal Dout.
The received signal Dout is illustrated as comprising three constituent parts, ambient noise, a trigger phrase and one or more sentences.
It should be appreciated that the signal Dout illustrated in this
The delay in phase 1 (Ø1) processing is the time that it takes for the phase 1 processing circuitry and/or software to determine that the received signal Dout contains speech, which is illustrated in
As discussed above, in order to ensure that no speech signal is lost, the buffer 110 (110a, 110b) should preferably be partitioned to at least the extent that the first section 110a is able to store the equivalent of the phase 1 processing delays, i.e. t2−t1 worth of received signal Dout.
In reality, best design practises should allow for more buffering than just that of the delay in phase 1 processing. Thus
As a non-limiting example, (t1−t0)=(t2−t1)+200 ms=Ø1 Processing Delay+200 ms.
Once the phase 1 processing determines that the received signal Dout contains speech, it outputs a signal Ø2 EN so as to enable Phase 2 processing.
As will be discussed below, this Ø2 EN signal from the phase 1 processing circuitry also controls the mode of operation of the buffer 110 such that it is able to buffer, i.e. store, more of the received signal Dout.
c illustrates the content of the first element 110a of the buffer 110 relative to the received signal Dout illustrated in
d illustrates the content of the first segment 110a of the buffer 110 relative to the received signal Dout illustrated in
e illustrates the content of the first segment 110a of the buffer 110 relative to the received signal Dout illustrated in
From the description above and from
The partitioned buffer embodiment of
Thus, when the phase 1 processing circuitry determines that the received signal Dout may contain speech, the buffer 110 is controlled so that it can be used to store more of the signal Dout for a relevant period of time.
Referring back to
In other embodiments, the microphones 100 and the peripheral device 102 might generate digital signals, in which case they will typically each include at least one analog-digital converter.
The signal Dout received from the microphone(s) selected by the block 104 is also passed to the first phase processing circuitry 112, and specifically to one or more filter blocks 114. The purpose of the first phase processing is to detect within the received signal Dout signals that might represent speech.
The filter blocks 114 can for example remove or attenuate the components of the signal at respective frequency bands. These frequency bands can be relatively narrow, for example to remove disturbance signals at specific frequencies, or can be relatively wide, for example to ensure that signals in frequency bands that would typically not be contained in speech are not passed through. Thus, in one example, the filter blocks 114 include a bandpass filter that passes signals in a frequency range that is typical of speech, such as 300 Hz-3 kHz.
The filtered signal SF is passed to a signal activity detection (SAD) block 116. As mentioned above, the purpose of this block 116 is to identify received microphone signals Dout that might represent speech, in order that such signals can then be examined in more detail to determine whether they contain the predetermined trigger phrase. Many signal or voice activity detection (VAD) circuits 116 already exist, for example for use in noise cancellation systems or voice wireless communication protocols, and any suitable voice/signal activity detection block/circuit 116 may be used here. However, it should be noted that some activity detection blocks/circuits 116 aim to detect the user's voice with high reliability and are thus relatively complex, and therefore require relatively high power consumption.
In this case, the result (02 EN) of a positive determination by the signal activity detection block 116 enables the phase 2 processing and controls the operational mode of the buffer 110.
As such, it might be advantageous to use a relatively simple form of activity detection block 116, that has correspondingly lower power consumption, and tolerate a larger number of false detection events. For example, the activity detection block 116 might simply determine whether its received signal exceeds a threshold level. Such a determination should be made based on the overall envelope of the signal rather than a single sample being above a threshold level.
When the signal activity detection block 116 determines that the signal might contain speech, the phase 2 processing (block 118) is enabled. In particular, the phase 2 processing includes a trigger phrase detection block 120.
In this example, the signal Dout received from the selected microphone is passed through filters 114, before it is determined whether it might represent speech. The signal Dout from the selected microphone is also stored in a buffer 110. When the signal activity detection block 116 determines that a specific part of the signal Dout might represent speech, the unfiltered signal Dout generated by the selected microphone during the same time period t3′−t0′ is retrieved from the buffer 110 and passed to the trigger phrase detection block/circuit 120. (Here unfiltered is used to refer to a signal that has not passed though filter block 114: such a signal may have passed though some filter either included in source selector 104 or included in a common part of the path from 100/102 to 110 and 112.)
More specifically, the signal that is passed to the trigger phrase detection block 120 contains the unfiltered signal from the time period corresponding to the signal identified by the signal activity detection block, but also contains the unfiltered signal from a short period (for example 200 ms) before and a short period (for example 100 ms) after that time period. This allows the trigger phrase detection block 120 to detect the ambient noise, and to take that into account when attempting to detect the trigger phrase. This also allows for any delay (t2−t1) in the signal detection within phase 1. The general operation of various forms of trigger phrase detection block is known to the person skilled in the art, and is not described further herein.
When the trigger phrase detection block 120 determines that the received signal contains speech representing the trigger phrase, an enable signal (Ø3 EN) is sent to the phase 3 processing (block 122). It will be noted that the trigger phrase detection block 120 in the phase 2 processing simply attempts to recognise the presence of the predetermined trigger word or phrase in the received signal Dout. It does not attempt to confirm that the trigger phrase is being spoken by the authorised user of the device.
In order to minimise the overall power consumption of the speech recognition system, it is useful to adapt the process by which the phase 1 processing in block 112 causes the phase 2 processing in block 118 to be enabled, and
When, in step 82 of the process, the phase 1 processing in block 112 causes the phase 2 processing in block 118 to be enabled, the count value of the first counter 124 is incremented by 1 in step 162. Similarly, when, in step 84 of the process, the phase 2 processing in block 118 causes the phase 3 processing in block 122 to be enabled, the count value of the second counter 126 is incremented by 1 in step 164.
In step 166, a count analysis block 128 receives the count values from the counters 124, 126. The count analysis block 128 then compares the received count values during a predetermined time period. It will be appreciated that this count analysis function may be performed either in hardware or in software. If the ratio of the count value of the second counter 126 to the count value of the first counter 124 is smaller than a predetermined ratio value, which may be set to a desired value depending on the circumstances, for example 10%, 1% or 0.1%, this suggests that the phase 1 processing is generating an excessive number of false trigger events. After the predetermined time period, the count values are reset to zero and the count values are obtained for subsequent periods.
In another example, the analysis block 128 can examine the difference between the count values of the first counter 124 and the second counter 126, rather than their ratio, and can take steps if this difference accumulated over a predetermined time period (representing the number of times that the phase 2 processing is falsely enabled) exceeds a threshold value corresponding to a predetermined number. In this case, the two counters 124, 126 can be replaced by an exclusive-OR gate connected to receive the phase 2 enable (Ø2 EN) and phase 3 enable (Ø3 EN) signals (with a suitable delay to take account of the time taken by the phase 2 processing) and a single counter.
As another example, only the first counter 124 may be provided, and the analysis block 128 can simply examine the number of times that that the phase 2 processing is enabled over a predetermined time period, and can take steps if this number exceeds a threshold value corresponding to a predetermined rate.
In general, the counting to determine whether there is an excessive number of false trigger events generated by the phase 1 processing can be carried out by hardware counters or in software running on programmable computational circuitry.
When it is determined that there is an excessive number of false trigger events generated by the phase 1 processing, steps may be taken to reduce the number of false trigger events. For example, the signal activity detection block 116 might be enabling the phase 2 processing in response to a regularly occurring disturbance that has some of the same properties as speech but that is not speech. One possibility therefore is to examine the frequency spectrum of the received signal, at the times when the signal activity detection block 116 detects a signal that it considers might be speech. For example, if it is found that the received signal Dout contains a component at a specific frequency at such times, the count analysis block 128 may send a control signal to the filter block 114 to adapt the filtering, and more specifically to filter out the component at that specific frequency. Specifically, in environments where there is a constantly high level of noise close to or just inside the voice band, the bandpass filter in the filter block 114 may be adapted to exclude that noise. Similarly, if there is noise in a narrow band within the voice band (such as a 2 kHz tone from nearby equipment) a notch in an equaliser in the filter block 114 could deal with this.
Another possibility is for the analysis block 128 to send a control signal to the detection block 116, to increase the threshold signal level at which it enables (02 EN) the phase 2 processing. This will simply reduce the number of occasions on which the detection block 116 will enable the phase 2 processing, while still enabling the phase 2 processing on all occasions when speech is actually present.
If the phase 1 processing is modified in response to the results of the analysis performed by the count circuitry 123, the processing can either return over time to a baseline condition, or can return to the baseline condition when the Phase 1 trigger frequency falls below a defined minimum value.
Thus by adapting the operation of the signal activity detection 116, on the basis of the relative number of false positive detections, the average power consumption may be reduced while maintaining an adequate reliability of detection of actual signal activity. More generally stated, by adapting the operation of the processing block 112 by the analysis block 128, the average power consumption may be reduced while maintaining an adequate reliability of detection of actual signal activity.
As mentioned above, the phase 3 processing is enabled by a signal (Ø3 EN) from the trigger phrase detection block 120. Specifically, in the phase 3 processing block 122, a trigger phrase validation function 130 is performed. The trigger phrase validation function 130 attempts to determine whether the trigger phrase is being spoken by the authorised user of the device.
The trigger phrase validation function 130 operates on the same section of the original signal that was used by the trigger phrase detection block 120, that is, the signal section t3′−t0′ stored in the buffer 110. (In the case where there are multiple microphones available, this will be from the microphone selected by the microphone polling function 106.) This allows successive stages of trigger phrase validation to take place transparently to the user, without the need for the user to repeat the phrase, providing security without compromising a relatively natural communication style, which is advantageous.
The trigger phrase validation function 130 therefore needs to be trained by the user, who might for example need to speak the trigger phrase multiple times and under multiple conditions as part of the initialization of the system. Then, when the phase 3 processing is enabled, the trigger phrase validation function 130 can compare the speech data with the stored data obtained during this initialization, in order to judge whether the trigger phrase has been spoken by the user. Techniques for performing this function are known to the person skilled in the art, and so they are not described in further detail here, as they are not relevant for an understanding of the present invention.
When it is determined by the trigger phrase validation function 130 that the trigger phrase was spoken by an authorised user, an enable signal (SR EN) is sent to the speech recognition engine (SRE) 132 which might be provided in a specialist processor, and might, as mentioned previously, be provided in a separate device altogether. The purpose of the speech recognition function 132 is to identify commands spoken by the user after speaking the trigger phrase. These commands can then be acted upon for control purposes, for example to control an aspect of the operation of the mobile telephone 1 or other device. By way of example, the command may be an instruction to place a phone call to another person specified in the command.
In one example, the system is configured so that certain functions can be performed by any person, without waiting for the phrase validation function 130 to complete its analysis of the current speech sample or to make its decision. As noted above, the normal operation is that the second phase processing will recognise that a specified trigger phrase has been spoken, and the third phrase processing will recognise whether it has been spoken by the specified user. Only if the third phrase processing recognises that the trigger phrase was spoken by the specified user, the subsequent speech will be sent to the speech recognition engine for interpretation and processing.
However, if the subsequent speech contains a predetermined phrase (which may for example be a phrase from a list of “emergency response” type phrases, such as “Call 999”, “Call ambulance”, or the like), then this is recognised, and the appropriate action is taken, without first determining whether it was an authorised user that spoke the trigger phrase. In order to achieve this, this recognition step may take place in the trigger phrase detection block 120. Alternatively, whenever the trigger phrase is detected in the phase 2 processing, the subsequent speech may always be sent to the speech recognition engine 132 (in parallel with trigger phrase validation function 130) to determine whether it contains one of the specified emergency call phrases.
In order to be able to perform speech recognition with a high degree of accuracy, it may be advantageous to perform noise reduction on the speech signal before performing the speech recognition.
Thus, the signal Dout output by the source selection block 104 may be passed to a noise reduction block 134 so that it generates a noise-reduced output DNRout. In another example, the signals from multiple microphones may be supplied to the noise reduction block 134, so that it generates a single noise-reduced output DNRout from the multiple inputs, e.g. by adaptive beam-forming. In the noise reduction block 134, the noise reduction is specifically optimised for automatic speech recognition. The output signal DNRout of this noise reduction block 134 is ultimately passed to a speech recognition function, as described in more detail below. In order to save power, it may be advantageous for the noise reduction block 134 to be switched on only once the trigger phrase detection block 120 has determined that the trigger phrase has been spoken i.e. the signal Ø2 EN enables the operational of the noise reduction block 134. Similarly, if the system is being used in a device with multiple microphones, the source selector 104 may be controlled so that the signal from only one selected microphone is passed to the buffer 110 during the phase 1 and phase 2 processing, but the signals from the multiple microphones are passed to the noise reduction block 134 only if the trigger phrase is detected (Ø3 EN), or only if the trigger phrase is validated (SR EN) in the phase 3 processing.
At the same time, the signal Dout output by the source selection block 104 may be passed to a second noise reduction block 136, in which the noise reduction is specifically optimised for human communication or the characteristics of the network voice communication channel to be used. In the case where the device is a mobile telephone, the output of this second noise reduction block 136 is ultimately transmitted over the mobile communications link. The operation of a suitable second noise reduction block 136 is known to the person skilled in the art, and will not be described further herein.
It will therefore be noted that the functions performed by the first noise reduction block 134 and second noise reduction block 136 are different. In one example, the functions performed by the second noise reduction block 136 are a subset of the functions performed by the first noise reduction block 134. More specifically, noise reduction that is performed for human communication tends to introduce distortion and other artefacts which have an adverse impact on speech recognition. Therefore, a low distortion form of processing is used in the second noise reduction block 136 for speech recognition.
The output DNRout of the first noise reduction block 134, which is optimised for speech recognition, and the output DBout of the buffer 110, that is the buffered unfiltered digital input speech signal Dout, are both capable of being passed to a path selection block 140, which is controlled by a selection driver 142. The signal (DBout, DNRout) selected by the path selection block 140 may then be passed to the trigger phrase validation block 130 and the speech recognition engine 132.
In one example, as discussed above, the phase 2 processing 118 and the associated functions, including the buffer 110 and the path select block 140, are provided in one integrated circuit such as an audio hub, i.e. audio codec, while the phase 3 processing is provided in another integrated circuit such as an applications processor of a mobile phone.
In the case where phase 3 processing is provided in another integrated circuit, the audio hub may be connected to the applications processor by means of a bus that can provide data in relatively high-speed bursts. One bus that can provide data in relatively high-speed bursts is a SPI bus (Serial Peripheral Interface bus), a so-called “bursty” type bus. To take advantage of the “bursty” nature of the SPI bus the path selection block 140 may be connected to the trigger phrase validation bock 130 by means of a buffer 144. The relatively high-speed transfer and subsequent storage, i.e. buffering, of the data in the buffer 144 advantageously allows the trigger phrase validation block 130 enough time to prepare to receive the input data after being activated (Ø3 EN) by the trigger phrase detection block 120. The first noise reduction block 134 also includes a buffer 146 to manage the practicalities of moving data across the bursty (SPI) bus. The “bursty” type bus inherently has a bandwidth such that it may be unavailable for some periods, and so a certain amount of buffering helps avoid data loss.
In one example, the signal stored in the buffer 110 is passed to the trigger phrase validation block 130 via the path selection block 140 and buffer 144. If the trigger phrase validation block 130 determines (SR EN) that the trigger phrase was spoken by the authorised user, it is the output DNRout of the noise reduction block 134 that is then passed to the speech recognition engine 132.
However, for optimum performance, the timing of the selection of the signals DBout and DNRout should be coordinated. Thus, in another example, the signal stored in the buffer 110 is passed to the trigger phrase validation block 130. If the trigger phrase validation block 130 determines that the trigger phrase was spoken by the authorised user, the output DBout of the buffer 110 is passed to the speech recognition engine 132. The speech recognition engine 132 is then able to determine a suitable time to switch to receiving the output signal DNRout from the noise reduction block 134, and the driver 142 controls the path selection block 140 to start directing the signal DNRout output from the noise reduction block 134 to the speech recognition engine 132 at that time. The buffer 110 provides enough history. i.e. stores enough data, to be able to manage the time-alignment of data output from the buffer 110 and data output from the noise reduction block 134, which has a certain latency, when changing the source of data.
For example, the speech recognition engine 132 may be designed so as to be able to determine a time when there is a break in the user's speech, for example representing the end of a spoken sentence. This is a common feature of a speech recognition engine to allow whole sentences of spoken speech to be sent to a remote speech recognition system together.
The speech recognition engine 132 can then recognise a break in the speech, and can determine that this is a suitable time to switch to receiving the signal DNRout from the noise reduction block 134.
In order to ensure that a steady stream of data is received by the speech recognition engine 132, suitable buffering must take place.
a illustrates a representation of analogue ambient noise and speech signals that are external to the device in which the speech recognition system resides and which are to be captured by the systems one or more microphones and thereafter used for speech recognition.
a more specifically illustrates a representation of analogue ambient noise and speech that comprises:
a first period of analogue ambient noise up to t1, followed by;
a period t1-t3, of speech, which for the purposes of this explanation represents a trigger word or phrase, followed by;
a second period t3-t4 of analogue ambient noise, followed by;
a period t4-t5, of speech, which for the purposes of this explanation represents a command phrase in the form of a first sentence (Sentence 1), followed by;
a third second period t5-t6 of analogue ambient noise, followed by;
a period t6-t7, of speech, which for the purposes of this explanation represents another command phrase in the form of a second sentence (Sentence 2); and
a third period t7-t8 of analogue ambient noise.
b illustrates a digital representation of the analogue ambient noise and speech of
It should be noted that for clarity of explanation it is assumed that there is no delay in the conversion of the analogue ambient noise and speech signal to a digital ambient noise and speech signal (Dout). Thus, the various periods described above between t0-t8 in respect of
c illustrates the digital signal Ø2 EN, as described above in respect of
The signal Ø2 EN indicating the potential presence of speech is used to control both the phase 2 processing (block 118) and the buffer 110.
In this example, the signal Dout received from the selectable sources is, as part of the phase 1 processing, passed through filters 114 before it is determined whether it might represent speech. The signal Dout is also stored in a buffer 110. When the signal activity detection block 116 determines that a specific part of the signal Dout might represent speech, the unfiltered signal Dout generated by the selected microphone(s) during the period t3′−t0′ (see
More specifically, the signal DBout, as illustrated in
Thus the phase 2 processor 118 receives a signal DBout output from the buffer 110 and tries to determine if the initial relatively short burst of signal Dout contains a trigger phrase. If as a result of phase 2 processing a potential trigger phrase is detected, the phase 2 processing block 118 outputs a phase 3 enable signal (Ø3 EN), as illustrated in
In response to the phase 3 enable signal (Ø3 EN), phase 3 processing 122 is activated. The phase 3 enable signal (Ø3 EN) also controls the buffer 110 and the path select block 140. Thus the signal (Dout) stored in the buffer 110 is output (PSDout) for phase 3 processing via the path select block 140, as illustrated in
In reality, phase 3 processing will require a finite time to become operative. Therefore, the output (PSDout) from the buffer 110 via the path select 140 is passed to a further buffer 144 to impart a further delay, as illustrated in
As described above, the speech recognition engine 132 can operate most successfully if it receives the original signal Dout from the selectable source after it has passed through the noise reduction block 134. The noise reduction block 134 therefore receives the signal Dout from the source selection block 104 at the same time as it is received by the buffer 110, as illustrated in
The noise reduction processing only starts when phase 3 processing validates, via control signal SR EN, that the trigger phrase was spoken by an authorised user. It is not practical for the speech recognition engine 132 to immediately start processing the output signal PSDNRout of the noise reduction circuitry, via the path select 140, as any transient effects during the switching would corrupt the speech recognition. Also, it takes a time for the noise reduction algorithm in the noise reduction block 134 to “warm-up”, or converge to a final noise reduction solution, and using the output of the noise reduction algorithm during this initial period may cause distortion. Further, the latency of the noise reduction algorithm is not entirely predictable or constant, and so it is not necessarily possible to time-align the data from the buffer 110 and from the noise reduction block 134 reliably, without causing duplicated or lost samples when the path select switch is made.
Therefore it is the output PSDBout of the buffer 110, via the path select 140, that is initially passed to the speech recognition engine 132. It is a conventional requirement of such circuitry that it should be able to recognise gaps in the speech such as those illustrated between t3-t4 and t5-t6 etc. Therefore, in this example, when the speech recognition engine 132 recognises a gap in the speech, the opportunity is taken to switch the path selection block 140 so that it is the output of the noise reduction block 134 that is passed to the speech recognition engine 132. Making this switch during a gap in the speech mitigates or avoids the problems discussed above.
Thus, in this illustrated example, the speech recognition engine 132 recognises a gap in the speech, between the trigger phrase and the first sentence. At this time, the path selection block 140 is switched so that it is the output of the noise reduction block 134 that is passed to the speech recognition engine 132. Since the delay imparted by the noise reduction circuitry in the noise reduction block 134 is typically less than the delay imparted by the buffer 110, the noise reduction block 134 also buffers the noise reduced signal, which imparts a further delay (illustrated in
The output of the noise reduction block 134 can therefore start to be supplied to the speech recognition engine 132 at time t5.
Further, in each case illustrated in
As mentioned above, the speech during the period 202 starts with the trigger phrase “Hi phone”, and the phase 2 processing block recognises at the time t14 that the trigger phrase has been spoken. At this point, the phase 2 processing block sends a signal to activate the phase 3 processing block but, due to the time taken to initialise the phase 3 processing block, it is unable to start reading the stored signal from the buffer 110 until the time t15. Of course, at the time t15 the phase 3 processing block starts to read the buffered data from the time t13.
a) illustrates an example in which, as shown by the arrow 210, the decision to start the noise reduction block 134 is taken (in the audio hub 39 in an implementation such as that shown in
b) illustrates an example in which, as shown by the arrow 212, the decision to start the noise reduction block 134 is taken in the applications processor 33 in an implementation such as that shown in
c) illustrates an example in which, as shown by the arrow 214, the decision to start the noise reduction block 134 is taken in the applications processor 33 in an implementation such as that shown in
d) illustrates a example in which, as shown by the arrow 216, the decision to start the noise reduction block 134 is taken in the applications processor 33 in an implementation such as that shown in
It was mentioned above that, while the microphones 100 and the peripheral device 102 generate analog signals, an analog-to-digital converter may be provided in the source selection block 104, so that only the selected signal is converted into digital form. This has the advantage that analog-to-digital conversion is only performed on the signal(s) that are actually to be used, rather than wasting power providing converted versions of signals that will not be used.
As mentioned above, to provide sufficient accuracy in the digitisation of the speech signal for reliable speech recognition or user recognition, a high performance ADC is required. The ADC will typically also comprise low noise analog circuitry consuming a significant amount of power. In one example described here, the high-performance analog-to-digital converter is configured to also be able to operate in a second mode, being a relatively low power monitor mode, e.g. when lower performance is acceptable.
In some embodiments these control signals to the ADC and DSP may be equivalent (i.e. the same except for maybe polarity or a relative delay to compensate for any signal delay in the path coupling the ADC to the DSP). Thus when the analog-to-digital converter 250 is in its low power monitor mode, the DSP 254 may be disabled. And thus, at the same time as the VAD/SAD block 252 sends a control signal to the analog-to-digital converter 250 to switch it to its high performance mode, it also sends an enable signal to the DSP 254. Then, the DSP 254 is able to receive and process the signals generated by the analog-to-digital converter 250 operating in its second mode.
In other embodiments, for example where the DSP may implement both the trigger phrase detection function and the speech recognition function, and the trigger phrase detection may be adequately accurate using the lower-resolution ADC output whereas the speech recognition function requires the higher quality ADC operation mode, then the VAD/SAD may alter the ADC and DSP enabling control signals at different times.
The input signal Sin is applied to a first input of a subtractor 270, and to a first input of a multiplexer 272. The output signal Dout is fed back through a digital-to-analog converter (DAC) 274, with the resulting analog signal Sfb being passed to a second input of the subtractor 270. The output Sdiff of the subtractor 270 is passed to a filter block 276 having a filter transfer function G(f), with the filtered signal Sfilt being applied to a second input of the multiplexer 272. The selected input signal Sin/Sfilt that is output from the multiplexer 272 represents the input signal Qin passed to a quantiser (Q) 278, from which the output digital signal Dout is generated.
The input MODE signal is used to generate enable (EN) signals for the digital-to-analog converter 274, and for the filter block 276 and is used to select which input signal Sin/Sfilt of the multiplexer 272 is selected as the input signal Qin of the quantiser (Q) 278.
Thus, in normal operation (that is, the “first mode” mentioned above), the digital-to-analog converter 274 and the filter block 276 are enabled, and the second input signal Sfilt of the multiplexer 272 is passed to its output, i.e. used as the input signal Qin to the quantiser (Q) 278 The DAC 274, the subtractor 270, and the filter block 276 then provide a negative feedback path for the output signal Dout around the quantiser (Q) 278, and therefore help to suppress audio-band quantisation noise introduced by the finite resolution of the quantiser (Q) 278 (and other error components such as any non-linearity).
However, in monitor mode (that is, the “second mode” mentioned above), the MODE signal operates such that the first input signal Sin of the multiplexer 272 is passed to its output, and so the input signal Sin is applied directly to the quantiser Q (that is, Qin=Sin), and the quantiser output Dout is used as the digital output. (Although it will be recognised that there may be other filters and/or amplifiers in the Sin signal path, or other processing blocks such as decimation filters after the quantiser. Also, as shown by the dotted path 279, the input signal Sin may be passed to the multiplexer 272 through the filter block 276) The analog-to-digital converter 250 thus now operates in an open-loop mode, i.e. second mode, rather than a closed-loop mode, i.e. first mode.
The monitor mode is a lower-performance mode, because there is no longer the feedback loop to suppress the quantisation noise or any quantiser non-linearity. In order to reduce the power consumption in this mode, at least the filter block 276 or the digital-to-converter 274, but preferably both, are also disabled in response to the MODE signal.
As discussed below, “disabling” the filter block 276 or the digital-to-analog converter 274 may involve opening a series switch in the signal path, or placing the respective output node into a high-impedance state, or providing a constant output, zero or otherwise. Preferably, disabling includes removing bias current from stages of active circuitry such as amplifiers, with the advantage of reducing the power consumption. Disabling the filter block 276 may involve gating applied clocks, removing a source of power supply, or reducing the applied power supply to reduce leakage currents. Typically, the digital-to-analog converter and amplifiers in the analog filter 276 will consume in the order of 80% of the power of the analog-to-digital converter, and so the power consumption can be significantly reduced in the monitor mode, i.e. second mode.
Components of the subtractor 270 may be shared with or physically located in the filter 276. The multiplexer 272 may be implemented at least partially by placing either the output of the filter 276 or some buffer stage in the alternate path (i.e. the path to the first input of the multiplexer 272) into a high impedance mode. The alternate path may re-use elements of the filter block 276 to provide an internal by-pass path.
The filter block 276 itself may be alterable to alter its coefficients etc. so as to provide the equivalent of the alternate path. Effectively, an alternate feedforward path similar to that shown in
In some examples, the quantiser (Q) 278 may also be controllable by the MODE signal so that, when the analog-to-digital converter 250 is operating in its second mode, i.e. its monitor mode, the quantiser (Q) 278 operates in a lower-power mode, for example running at a lower sample rate mode or lower-resolution mode that is adequate for monitoring the input signal Sin. When the analog-to-digital converter 250 switches into the normal, closed-loop, mode, i.e. the first mode, the quantiser (Q) 278 operates in a higher-power mode that provides a higher-accuracy digital output as required for accurate speech or user voice recognition.
The MODE signal may be supplied by a local voice detector 252 as described with reference to
The input signal Sin is applied to a resistor 292 having a resistance value Rin and its other end attached to an op amp virtual earth node to generate a corresponding current Sin/Rin, and the digital-to-analog converter 274 takes the form of a current digital-to-analog converter (IDAC), so that the current Sfb drawn through it is proportional to the digital signal Dout fed back from the output of the circuit.
This current Sfb is subtracted from the current that corresponds to the input signal, and it is the resulting net current that is supplied as an input to the filter block, which in this example takes the form of an inverting integrator, with an amplifier 294 having its inverting input connected to the junction of the resistor 292 and the IDAC 274, and with a capacitor (Cint) 296 connected between its output and the inverting input terminal.
The multiplexer takes the form of a switch 298, possibly in the form of a CMOS transmission gate, that is controlled by the MODE signal.
The quantiser takes the form of a voltage controlled oscillator 300 that receives the quantiser input signal Qin and is connected to a counter 302.
Specifically,
The IDAC 272 also receives the digital output signal Dout of the analog-to-digital converter 290, which in this case is a 3-bit digital signal, having bit values α[0], α[1], α[2], with α[0] being the most significant bit. These three bit values are used to turn on or off the current sources in the current mirror circuits 310, 312, 314 respectively, and so the output current Sfb is proportional to the digital output signal Dout.
In other embodiments at least some of the current mirror slave current sources may be equal values and the fed back digital signal may be subjected to modification en route to implement known techniques such as Dynamic Element Matching (DEM) for improving the average linearity of the fed back signal despite random manufacturing mismatches between the current sources.
Specifically, the voltage controlled oscillator in the example shown in
The MODE signal is used to reduce the current in the current source 326 when the analog-to-digital converter 290 is in monitor mode, and this in turn reduces the magnitude of the gate-source bias voltage and hence reduces the voltage VC and hence the quiescent frequency of the VCO. This frequency reduction will also reduce the dynamic power consumption of the counter 326.
As with all of the analog circuitry described here, a differential implementation may be used, for example to help sensitivity to cross-talk from elsewhere, say on the same integrated circuit. In this case, a pair of complementary differential input signals may be applied to the respective inputs of a pair of respective VCOs and counters, with the quantiser output being the difference in the counts of the two counters.
Again, the voltage controlled oscillator in the example shown in
The current ICP is generated by an input circuit that receives the input voltage Qin and applies it to the non-inverting input of an amplifier 338. The inverting input of the amplifier 338 is connected to ground through a digitally programmable variable resistor 342, having a resistance value RS, and the output of the amplifier 338 is connected to the gate of a transistor 340, whose source is connected to ground through a variable resistor 342 and is also connected to provide feedback path to the inverting input of amplifier 338. This feedback causes the op amp to drive the gate of transistor 340 so as to impose a voltage equal to Qin across the resistor 342. This generates a current ISP, equal to Qin/RS, through resistor 342 and through the transistor 340 to a current mirror circuit 344, 346 which generates a corresponding current ICP, which may be equal to ISP or may be an appropriately scaled version thereof.
The current ICP this increases with increase in Qin, and the frequency of oscillation of the ICO will increase if the current ICP is increased, so the frequency of oscillation observed at ICOout depends on the input voltage Qin.
Again, the MODE signal is used to reduce the currents, by altering the value of resistor 342, when the analog-to-digital converter 290 is in monitor mode, and hence reduce the quiescent frequency of the VCO 330.
As described with reference to
Specifically,
Using a VCO as a quantiser has the advantage, that for a given resolution the low frequency quantisation noise is reduced, in a similar way to a more conventional first-order delta-sigma ADC but with small size and simplicity and loose device matching requirements.
During each cycle of the clock signal fref, the output signal Dout has only limited accuracy (for example it varies between 4 and 5 in the extremely coarse resolution example illustrated in
The behaviour may also be understood from a different perspective, If the VCO is already part way through a cycle at the start of a fref period, this affects how far through another cycle it is at the next fref edge. Thus each fref cycle takes a measure of the “phase” of its output waveform and adds any more phase that is built up by the end of the cycle. Thus, it first-order integrates the quantisation error, analogously to the error-integrating function of the analog integrator in a more conventional first-order delta-sigma ADC, so the quantisation noise spectrum is similar to a first-order delta-sigma ADC
Thus not only is the quantiser small and simple, it also gives much less audio band quantisation noise than might be expected simply from the resolution of the counter 302.
In the converter of
The input signal Sin is coupled to the integrator input via an input capacitor Cin 402 in series with switches at each end thereof, the switches being controlled by a two-phase clock at frequency fref generated by clock generation block CKGEN, 400.
In a first phase of the clock Cin, is connected by these switches between Sin and ground and stores a charge Sin. Cin; in a second phase Cin is connected between ground and the op amp virtual earth and the op amp adds this charge to any charge already stored on the integrating capacitor Cint 296.
Similarly an array of capacitors Cfb is coupled to the virtual earth, to provide a feedback signal component. In the first clock phase, each capacitor in the array is connected to ground at both ends, to discharge each capacitor. In the second phase, each capacitor of the array is connected at one end to the virtual earth and the other end may be connected to either one or the other of two reference voltages VRP or VRN in each clock cycle, according to the polarity of a respective bit in a control word derived from the quantiser output signal. This connection may be by additional series switches or by gating the clocks applied to switch elements coupling each capacitor to VRP or VRN.
Thus, in response to a control word representing a value α, in each second clock phase a fraction a say of Cfb is charged to VRP and the remaining fraction 1−α of Cfb is charged to VRN, so the total charge on the array is (a. VRP−(1−α)·VRN)·Cfb. This charge represents the digital quantiser output. (For simplicity, the array is represented in
Since the capacitor was discharged in the first phase, this charge corresponding to the control signal α has to be supplied by transfer from the integrating capacitor.
The control signals are themselves derived from Qout by a decoder block 392 (possibly including Dynamic Element Matching (DEM) functionality as mentioned above), Thus each clock period, a charge corresponding to the quantiser output Qout is subtracted from that accumulated on the integrating capacitor.
In the circuit of
In the analog-to-digital converter 420, in the first clock phase the input signal Sin is applied to the capacitors 396, 398 of the feedback capacitor array through respective switches 422, 424, generating a charge of Sin·Cfb. In the second phase, the reference voltages VRP or VRN are connected to respective fractions of Cfb, to alter the charge on Cfb by an amount representing Dout, but there is never a phase where the array holds a charge purely representing Dout without Sin.
An additional capacitor 426 (Cinx) may be necessary to increase the conversion gain (in bits per volt), i.e. to alter the relative weighting at the input between Sin and Dout. Conversely the additional capacitor 426 may not be there, but a secondary array of feedback caps may be provided to decrease the conversion gain.
In the analog-to-digital converter 440 of
This second “d.c. servo” feedback loop may consume relatively little power, so may be active in both modes of the ADC. However it may only be operational during an initialisation stage, and then disabled. The purpose of this disabling is primarily to avoid any modulation of the subtracted signal by output signal components, not to save power. Also the signal fed back in the second feedback path is for a different purpose (to remove d.c.) than that fed back in the first feedback path (to linearise the system by signal-band negative feedback)
More specifically,
A clock signal CK is used to clock the analog-to-digital converter 466 and also an output digital interface block (FMT) 468.
A detect block 470 detects the output of the analog-to-digital converter 466, and controls the mode of operation of the analog-to-digital converter 466 based on the detection result. The same control signal may also be used to control the pre-amplifier 464 and the output interface block 468. For example, the detection result may be used to reduce the bias of the pre-amplifier 464 in low power mode, at the expense of distortion or thermal noise performance.
The output interface block 468 may merely retime the output ADC data, or may include noise shaping bit-width reduction circuitry to convert a multi-bit ADC output to a convenient single-bit format, or may reformat the delta-sigma output signal Dout into another format, such as a pulse length modulation (PLM) format, or (via decimation) into a standard multi-bit format, for example I2S at 24-bit and fs=48 kHz.
Reformatting may allow some control-type bits to be transmitted along with the data, for example to flag the output of the detect block 470 to downstream circuitry. For example the Detect block 470 may serve as a signal detect block and control a downstream trigger phrase detection block. Downstream circuitry such as count analysis circuitry may also communicate back to the device 460, to alter parameters of the detection, either by a separate pin or by modulating the length or phase of pulses or phase of edges of the clock CK.
The circuit shown in
Thus, the circuit of
The input analog signals SinA, SinB are applied to a multiplexer 482, whose output may be coupled, possibly via a programmable gain amplifier as shown, to a first input of a subtractor 270, and they are also applied to the respective first inputs of multiplexers 486, 488. The output digital signals DoutA, DoutB are passed to a multiplexer 484, whose output signal is fed back through a digital-to-analog converter (DAC) 274, with the resulting analog signal Sfb being passed to a second input of the subtractor 270. The output Sdiff of the subtractor 270 is passed to a filter block 276 having a filter transfer function G(f), with the filtered signal Sfilt being applied to the respective second inputs of the multiplexers 486, 488. The output of the multiplexer 486 is passed to a first quantiser (Q) 490 to form the first output digital signal DoutA, while the output of the multiplexer 488 is passed to a second quantiser (Q) 492 to form the second output digital signal DoutB,
Control signals M1, M2 and SEL control the multiplexers and hence the mode of operation of the circuitry. A further control signal, MODE is used to generate enable (EN) signals for the digital-to-analog converter 274, and for the filter block 276.
In this example, a detect block 252 is present. This block receives the output digital signals DoutA, DoutB, and uses these to select which of the input analog signals should be used to generate an output by generating the appropriate control signal levels as above. Though in other embodiments these control signals might be supplied from elsewhere, for example from downstream detectors of various sorts.
The input select signal (SEL) is used to determine which of the input analog signals SinA, SinB should be passed by the multiplexer 482 to the subtractor 270, and is also used to determine which of the output digital signals DoutA, DoutB are passed by the multiplexer 484 to the digital-to-analog converter (DAC) 274. At the same time, a control signal M1 is used to determine which input of the multiplexer 486 is passed to the first quantiser 490 and a control signal M2 is used to determine which input of the multiplexer 488 is passed to the second quantiser 492.
Thus, in modes (b) and (c) above, the digital-to-analog converter 274 and the filter block 276 are enabled, and the second input of one of the multiplexers 486, 488 is passed to its respective output. The DAC 274, the subtractor 270, and the filter block 276 then provide a negative feedback path for the respective output signal around the respective quantiser.
However, in mode (a) above, the M1 and M2 signals are set such that the first input of each of the multiplexers 486, 488 is passed to each respective output, and so each respective input signal is applied directly to the respective quantiser Q. The analog-to-digital converter 480 thus now operates in an open-loop mode for both input channels rather than a closed-loop mode.
Since both channels are operating open-loop, there is no need for the DAC or filter, or for the optional programmable gain amplifier, so these blocks may be disabled by setting MODE to 0. Although not shown, this may also disable the subtractor 270 and multiplexers 482 and 484.
In some applications, there may be a need to program the gain applied to the input signal prior to conversion in high-quality mode, but no need to adapt this gain in low-power mode, for example a fixed gain may be adequate for initial signal detection but a programmable gain useful in optimising dynamic range for more complex downstream processing. Thus it is advantageous to place the amplifier between the input and subtractor 270 and not in the path from input to quantiser multiplexer. Also since only one channel may be converted at high quality, there is only need for one programmable gain amplifier. Thus it is advantageous to position such a gain stage after the multiplexer 482.
There is thus disclosed an analog-to-digital converter that can provide a high quality output, and can also be operated in a low power mode.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. The word “comprising” does not exclude the presence of elements or steps other than those listed in a claim, “a” or “an” does not exclude a plurality, and a single feature or other unit may fulfil the functions of several units recited in the claims. The terms “trigger phrase” and “trigger word” are interchangeable throughout the description. Any reference signs in the claims shall not be construed so as to limit their scope.
Number | Date | Country | Kind |
---|---|---|---|
1311375.8 | Jun 2013 | GB | national |
1311379.0 | Jun 2013 | GB | national |
1311381.6 | Jun 2013 | GB | national |