# Patent

## Title
Speech processing system

## Abstract

A system is provided for detecting the presence of speech within an input audio signal. The system includes a memory for storing a predetermined function which gives, for a given set of audio signal values, a probability density for parameters of a predetermined speech model which is assumed to have generated the set of audio signal values, the probability density defining, for a given set of model parameter values, the probability that the predetermined speech model has those parameter values given that the speech model is assumed to have generated the set of audio signal values. The system applies a current set of received signal values to the stored probability density function and then draws samples from it using a Gibbs sampler. The system then analyses the samples to determine a set parameter values representative of the audio signal. The system then uses these parameter values to determine whether or not speech is present within the audio signals.

## Background
The present invention relates to an apparatus for and method of speech processing. The invention has particular, although not exclusive relevance to the detection of speech within an input speech signal.
In some applications, such as speech recognition, speaker verification and voice transmission systems, the microphone used to convert the user's speech into a corresponding electrical signal is continuously switched on. Therefore, even when the user is not speaking, there will constantly be an output signal from the microphone corresponding to silence or background noise. In order (i) to prevent unnecessary processing of this background noise signal; (ii) to prevent misrecognitions caused by the noise; and (iii) to increase overall performance, such systems employ speech detection circuits which continuously monitor the signal from the microphone and which only activate the main speech processing system when speech is identified in the incoming signal.
Detecting the presence of speech within an input speech signal is also necessary for adaptive speech processing systems which dynamically adjust weights of a filter either during speech or during silence portions. For example, in adaptive noise cancellation systems, the filter coefficients of the noise filter are only adapted when both speech and noise are present. Alternatively still, in systems which employ adaptive beam forming to suppress noise from one or more sources, the beam is only adapted when the signal of interest is not present within the input signal (i.e. during silence periods). In these systems, it is therefore important to know when the desired speech to be processed is present within the input signal.
Most prior art speech detection circuits detect the beginning and end of speech by monitoring the energy within the input signal, since during silence the signal energy is small but during speech it is large. In particular, in conventional systems, speech is detected by comparing the average energy with a threshold and indicating that speech has started when the average energy exceeds this threshold. In order for this technique to be able to accurately determine the points at which speech starts and ends (the so called end points), the threshold has to be set near the noise floor. This type of system works well in environments with a low constant level of noise. It is not, however, suitable in many situations where there is a high level of noise which can change significantly with time. Examples of such situations include in a car, near a road or any crowded public place. The noise in these environments can mask quieter portions of speech and changes in the noise level can cause noise to be incorrectly detected as speech.
One aim of the present invention is to provide an alternative speech detection system for detecting speech within an input signal.
According to one aspect, the present invention provides an apparatus for detecting the presence of speech within an input audio signal, comprising: a memory for storing a probability density function for parameters of a predetermined speech model which is assumed to have generated a set of received audio signal values; means for applying the received set of audio signal values to the stored probability density function; means for processing the probability density function with those values applied to obtain values of the parameters that are representative of the input audio signal; and means for detecting the presence of speech using the obtained parameter values.



Exemplary embodiments of the present invention will now be described with reference to the accompanying drawings in which:
FIG. 1 is a schematic view of a computer which may be programmed to operate in accordance with an embodiment of the present invention;
FIG. 2 is a block diagram illustrating the principal components of a speech recognition system which includes a speech detection system embodying the present invention;
FIG. 3 is a block diagram representing a model employed by a statistical analysis unit which forms part of the speech recognition system shown in FIG. 2;
FIG. 4 is a flow chart illustrating the processing steps performed by a model order selection unit forming part of the statistical analysis unit shown in FIG. 2;
FIG. 5 is a flow chart illustrating the main processing steps employed by a Simulation Smoother which forms part of the statistical analysis unit shown in FIG. 2;
FIG. 6 is a block diagram illustrating the main processing components of the statistical analysis unit shown in FIG. 2;
FIG. 7 is a memory map illustrating the data that is stored in a memory which forms part of the statistical analysis unit shown in FIG. 2;
FIG. 8 is a flow chart illustrating the main processing steps performed by the statistical analysis unit shown in FIG. 6;
FIG. 9a is a histogram for a model order of an auto regressive filter model which forms part of the model shown in FIG. 3;
FIG. 9b is a histogram for the variance of process noise modelled by the model shown in FIG. 3; and
FIG. 9c is a histogram for a third coefficient of the AR filter model.



Embodiments of the present invention can be implemented on computer hardware, but the embodiment to be described is implemented in software which is run in conjunction with processing hardware such as a personal computer, workstation, photocopier, facsimile machine or the like.
FIG. 1 shows a personal computer (PC) 1 which may be programmed to operate an embodiment of the present invention. A keyboard 3, a pointing device 5, a microphone 7 and a telephone line 9 are connected to the PC 1 via an interface 11. The keyboard 3 and pointing device 5 allow the system to be controlled by a user. The microphone 7 converts the acoustic speech signal of the user into an equivalent electrical signal and supplies this to the PC 1 for processing. An internal modem and speech receiving circuit (not shown) may be connected to the telephone line 9 so that the PC 1 can communicate with, for example, a remote computer or with a remote user.
The program instructions which make the PC 1 operate in accordance with the present invention may be supplied for use with an existing PC 1 on, for example, a storage device such as a magnetic disc 13, or by downloading the software from the Internet (not shown) via the internal modem and telephone line 9.
The operation of a speech recognition system which employs a speech detection system embodying the present invention will now be described with reference to FIG. 2. Electrical signals representative of the input speech from the microphone 7 are input to a filter 15 which removes unwanted frequencies (in this embodiment frequencies above 8 kHz) within the input signal. The filtered signal is then sampled (at a rate of 16 kHz) and digitised by the analogue to digital converter 17 and the digitised speech samples are then stored in a buffer 19. Sequential blocks (or frames) of speech samples are then passed from the buffer 19 to a statistical analysis unit 21 which performs a statistical analysis of each frame of speech samples in sequence to determine, amongst other things, a set of auto regressive (AR) coefficients representative of the speech within the frame. In this embodiment, the AR coefficients output by the statistical analysis unit 21 are then input to a speech recognition unit 25 which compares the AR coefficients for successive frames of speech with a set of stored speech models 27, which may be template based or Hidden Markov Model based, to generate a recognition result. In this embodiment, the speech recognition unit 25 only performs this speech recognition processing when it is enabled to do so by a speech detection unit 61 which detects when speech is present within the input signal. In this way, the speech recognition unit 25 only processes the AR coefficients when there is speech within the signal to be recognised.
In this embodiment, the speech detection unit 61 also receives the AR coefficients output by the statistical analysis unit 21 together with the AR filter model order, which, as will be described below, is also generated by the statistical analysis unit 21 and determines from these, when speech is present within the signal received from the microphone 7. It can do this, since the AR filter model order and the AR coefficient values will be larger during speech than when there is no speech present. Therefore, by comparing the AR filter model order and/or the AR coefficient values with appropriate threshold values, the speech detection unit 61 can determine whether or not speech is present within the input signal.
Statistical Analysis Unit—Theory and Overview
As mentioned above, the statistical analysis unit 21 analyses the speech within successive frames of the input speech signal. In most speech processing systems, the frames are overlapping. However, in this embodiment, the frames of speech are non-overlapping and have a duration of 20 ms which, with the 16 kHz sampling rate of the analogue to digital converter 17, results in a frame size of 320 samples.
In order to perform the statistical analysis on each of the frames, the analysis unit 21 assumes that there is an underlying process which generated each sample within the frame. The model of this process used in this embodiment is shown in FIG. 3. As shown, the process is modelled by a speech source 31 which generates, at time t=n, a raw speech sample s(n). Since there are physical constraints on the movement of the speech articulators, there is some correlation between neighbouring speech samples. Therefore, in this embodiment, the speech source 31 is modelled by an auto regressive (AR) process. In other words, the statistical analysis unit 21 assumes that a current raw speech sample (s(n)) can be determined from a linear weighted combination of the most recent previous raw speech samples, i.e.:

s(n)=a1s(n−1)+a2s(n−2)+ . . . +aks(n−k)+e(n)  (1)

where a1, a2 . . . ak are the AR filter coefficients representing the amount of correlation between the speech samples; k is the AR filter model order; and e(n) represents random process noise which is involved in the generation of the raw speech samples. As those skilled in the art of speech processing will appreciate, these AR filter coefficients are the same coefficients that the linear prediction (LP) analysis estimates albeit using a different processing technique.

As shown in FIG. 3, the raw speech samples s(n) generated by the speech source are input to a channel 33 which models the acoustic environment between the speech source 31 and the output of the analogue to digital converter 17. Ideally, the channel 33 should simply attenuate the speech as it travels from the source 31 to the microphone. However, due to reverberation and other distortive effects, the signal (y(n)) output by the analogue to digital converter 17 will depend not only on the current raw speech sample (s(n)) but it will also depend upon previous raw speech samples. Therefore, in this embodiment, the statistical analysis unit 21 models the channel 33 by a moving average (MA) filter, i.e.:

y(n)=h0s(n)+h1s(n−1)+h2s(n−2)+ . . . +hrs(n−r)+ε(n)  (2)

where y(n) represents the signal sample output by the analogue to digital converter 17 at time t=n; h0, h1, h2 . . . hr are the channel filter coefficients representing the amount of distortion within the channel 33; r is the channel filter model order; and ε(n) represents a random additive measurement noise component.

For the current frame of speech being processed, the filter coefficients for both the speech source and the channel are assumed to be constant but unknown. Therefore, considering all N samples (where N=320) in the current frame being processed gives:

s(n)=a1s(n−1)+a2s(n−2)+ . . . +aks(n−k)+e(n)

s(n−1)=a1s(n−2)+a2s(n−3)+ . . . +aks(n−k−1)+e(n−1)  (3)

s(n−N+1)=a1s(n−N)+a2s(n−N−1)+ . . . +aks(n−k−N+1)+e(n−N+1)

which can be written in vector form as:

s(n)=S·a+e(n)  (4)

where




  
    S
    =
    
      
        [
        
          
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    1
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    2
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    3
                  
                  )
                
              
            
            
              ...
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    k
                  
                  )
                
              
            
          
          
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    2
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    3
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    4
                  
                  )
                
              
            
            
              ...
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    k
                    -
                    1
                  
                  )
                
              
            
          
          
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    3
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    4
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    5
                  
                  )
                
              
            
            
              ...
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    k
                    -
                    2
                  
                  )
                
              
            
          
          
            
              ⋮
            
            
              
                
              
            
            
              
                
              
            
            
              ⋰
            
            
              
                
              
            
          
          
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    N
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    N
                    -
                    1
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    N
                    -
                    2
                  
                  )
                
              
            
            
              ...
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    k
                    -
                    N
                    +
                    1
                  
                  )
                
              
            
          
        
        ]
      
      Nxk
    
  




  and




  
    
      a
      _
    
    =
    
      
        
          
            [
            
              
                
                  
                    a
                    1
                  
                
              
              
                
                  
                    a
                    2
                  
                
              
              
                
                  
                    a
                    3
                  
                
              
              
                
                  ⋮
                
              
              
                
                  
                    a
                    k
                  
                
              
            
            ]
          
          kx1
        
        ⁢
        
          
        
        ⁢
        
          
            s
            _
          
          ⁡
          
            (
            n
            )
          
        
      
      =
      
        
          
            
              [
              
                
                  
                    
                      s
                      ⁡
                      
                        (
                        n
                        )
                      
                    
                  
                
                
                  
                    
                      s
                      ⁡
                      
                        (
                        
                          n
                          -
                          1
                        
                        )
                      
                    
                  
                
                
                  
                    
                      s
                      ⁡
                      
                        (
                        
                          n
                          -
                          2
                        
                        )
                      
                    
                  
                
                
                  
                    ⋮
                  
                
                
                  
                    
                      s
                      ⁡
                      
                        (
                        
                          n
                          -
                          N
                          +
                          1
                        
                        )
                      
                    
                  
                
              
              ]
            
            Nx1
          
          ⁢
          
            
          
          ⁢
          
            
              
                
              
              ⁢
              e
            
            _
          
          ⁢
          
            (
            n
            )
          
        
        =
        
          
            [
            
              
                
                  
                    e
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                
              
              
                
                  
                    e
                    ⁡
                    
                      (
                      
                        n
                        -
                        1
                      
                      )
                    
                  
                
              
              
                
                  
                    e
                    ⁡
                    
                      (
                      
                        n
                        -
                        2
                      
                      )
                    
                  
                
              
              
                
                  ⋮
                
              
              
                
                  
                    e
                    ⁡
                    
                      (
                      
                        n
                        -
                        N
                        +
                        1
                      
                      )
                    
                  
                
              
            
            ]
          
          Nx1
        
      
    
  



As will be apparent from the following discussion, it is also convenient to rewrite equation (3) in terms of the random error component (often referred to as the residual) e(n). This gives:

e(n)=s(n)−a1s(n−1)−a2s(n−2)− . . . −aks(n−k)

e(n−1)=s(n−1)−a1s(n−2)−a2s(n−3)− . . . −aks(n−k−1)  (5)

e(n−N+1)=s(n−N+1)−a1s(n−N)−a2s(n−N−1)− . . . −aks(n−k−N+1)

which can be written in vector notation as:

e(n)=Äs(n)  (6)

where





  Ä
  =
  
    
      [
      
        
          
            1
          
          
            
              -
              
                a
                1
              
            
          
          
            
              -
              
                a
                2
              
            
          
          
            
              -
              
                a
                3
              
            
          
          
            ...
          
          
            
              -
              
                a
                k
              
            
          
          
            0
          
          
            0
          
          
            0
          
          
            ...
          
          
            0
          
        
        
          
            0
          
          
            1
          
          
            
              -
              
                a
                1
              
            
          
          
            
              -
              
                a
                2
              
            
          
          
            ...
          
          
            
              -
              
                a
                
                  k
                  -
                  1
                
              
            
          
          
            
              -
              
                a
                k
              
            
          
          
            0
          
          
            0
          
          
            ...
          
          
            0
          
        
        
          
            0
          
          
            0
          
          
            1
          
          
            
              -
              
                a
                1
              
            
          
          
            ...
          
          
            
              -
              
                a
                
                  k
                  -
                  2
                
              
            
          
          
            
              -
              
                a
                
                  k
                  -
                  1
                
              
            
          
          
            
              -
              
                a
                k
              
            
          
          
            0
          
          
            ...
          
          
            0
          
        
        
          
            ⋮
          
          
            
              
            
          
          
            
              
            
          
          
            
              
            
          
          
            ⋰
          
          
            
              
            
          
          
            
              
            
          
          
            
              
            
          
          
            
              
            
          
          
            
              
            
          
          
            
              
            
          
        
        
          
            0
          
          
            
              
            
          
          
            
              
            
          
          
            
              
            
          
          
            
              
            
          
          
            
              
            
          
          
            
              
            
          
          
            
              
            
          
          
            
              
            
          
          
            
              
            
          
          
            1
          
        
      
      ]
    
    NxN
  




Similarly, considering the channel model defined by equation (2), with h0=1 (since this provides a more stable solution), gives:

q(n)=h1s(n−1)+h2s(n−2)+ . . . +hrs(n−r)+ε(n)

q(n−1)=h1s(n−2)+h2s(n−3)+ . . . +hrs(n−r−1)+ε(n−1)  (7)

q(n−N+1)=h1s(n−N)+h2s(n−N−1)+ . . . +hrs(n−r−N+1)+ε(n−N+1)

(where q(n)=y(n)−s(n)) which can be written in vector form as:

q(n)=Y·h+ε(n)  (8)

where




  
    Y
    =
    
      
        [
        
          
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    1
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    2
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    3
                  
                  )
                
              
            
            
              ...
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    r
                  
                  )
                
              
            
          
          
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    2
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    3
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    4
                  
                  )
                
              
            
            
              ...
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    r
                    -
                    1
                  
                  )
                
              
            
          
          
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    3
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    4
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    5
                  
                  )
                
              
            
            
              ...
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    r
                    -
                    2
                  
                  )
                
              
            
          
          
            
              ⋮
            
            
              
                
              
            
            
              
                
              
            
            
              ⋰
            
            
              
                
              
            
          
          
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    N
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    N
                    -
                    1
                  
                  )
                
              
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    N
                    -
                    2
                  
                  )
                
              
            
            
              ...
            
            
              
                s
                ⁡
                
                  (
                  
                    n
                    -
                    r
                    -
                    N
                    +
                    1
                  
                  )
                
              
            
          
        
        ]
      
      Nxr
    
  




  and




  
    
      h
      _
    
    =
    
      
        
          
            [
            
              
                
                  
                    h
                    1
                  
                
              
              
                
                  
                    h
                    2
                  
                
              
              
                
                  
                    h
                    3
                  
                
              
              
                
                  ⋮
                
              
              
                
                  
                    h
                    r
                  
                
              
            
            ]
          
          rx1
        
        ⁢
        
          
        
        ⁢
        
          
            q
            _
          
          ⁡
          
            (
            n
            )
          
        
      
      =
      
        
          
            
              [
              
                
                  
                    
                      q
                      ⁡
                      
                        (
                        n
                        )
                      
                    
                  
                
                
                  
                    
                      q
                      ⁡
                      
                        (
                        
                          n
                          -
                          1
                        
                        )
                      
                    
                  
                
                
                  
                    
                      q
                      ⁡
                      
                        (
                        
                          n
                          -
                          2
                        
                        )
                      
                    
                  
                
                
                  
                    ⋮
                  
                
                
                  
                    
                      q
                      ⁡
                      
                        (
                        
                          n
                          -
                          N
                          +
                          1
                        
                        )
                      
                    
                  
                
              
              ]
            
            Nx1
          
          ⁢
          
            
          
          ⁢
          
            
              
                
              
              ⁢
              ɛ
            
            _
          
          ⁢
          
            (
            n
            )
          
        
        =
        
          
            [
            
              
                
                  
                    ɛ
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                
              
              
                
                  
                    ɛ
                    ⁡
                    
                      (
                      
                        n
                        -
                        1
                      
                      )
                    
                  
                
              
              
                
                  
                    ɛ
                    ⁡
                    
                      (
                      
                        n
                        -
                        2
                      
                      )
                    
                  
                
              
              
                
                  ⋮
                
              
              
                
                  
                    ɛ
                    ⁡
                    
                      (
                      
                        n
                        -
                        N
                        +
                        1
                      
                      )
                    
                  
                
              
            
            ]
          
          Nx1
        
      
    
  



In this embodiment, the analysis unit 21 aims to determine, amongst other things, values for the AR filter coefficients (a) which best represent the observed signal samples (y(n)) in the current frame. It does this by determining the AR filter coefficients (a) that maximise the joint probability density function of the speech model, channel model, speech samples and the noise statistics given the observed signal samples output from the analogue to digital converter 17, i.e. by determining:




  
    
      
        
          
            
              max
            
          
          
            
              
                a
                -
              
            
          
        
        ⁢
        
          {
          
            
              
                p
                (
                
                  
                    a
                    _
                  
                  ,
                  k
                  ,
                  
                    h
                    _
                  
                  ,
                  r
                  ,
                  
                    σ
                    e
                    2
                  
                  ,
                  
                    σ
                    ɛ
                    2
                  
                  ,
                  
                    
                      s
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                
              
              
            
            ⁢
            
              
                y
                _
              
              ⁡
              
                (
                n
                )
              
            
          
          }
        
      
    
    
      
        (
        9
        )
      
    
  




where σe2 and σε2 represent the process and measurement noise statistics respectively. As those skilled in the art will appreciate, this function defines the probability that a particular speech model, channel model, raw speech samples and noise statistics generated the observed frame of speech samples (y(n)) from the analogue to digital converter. To do this, the statistical analysis unit 21 must determine what this function looks like. This problem can be simplified by rearranging this probability density function using Bayes law to give:





  
    
      
        
          
            
              
                
                  
                    
                      
                        
                          
                            
                              
                                p
                                (
                                
                                  
                                    y
                                    _
                                  
                                  ⁡
                                  
                                    (
                                    n
                                    )
                                  
                                
                                
                              
                              ⁢
                              
                                
                                  s
                                  _
                                
                                ⁡
                                
                                  (
                                  n
                                  )
                                
                              
                            
                            ,
                            
                              h
                              _
                            
                            ,
                            r
                            ,
                            
                              σ
                              e
                              2
                            
                          
                          )
                        
                        ⁢
                        
                          
                            p
                            (
                            
                              
                                s
                                _
                              
                              ⁡
                              
                                (
                                n
                                )
                              
                            
                          
                          
                        
                        ⁢
                        
                          a
                          _
                        
                      
                      ,
                      k
                      ,
                      
                        σ
                        e
                        2
                      
                    
                    )
                  
                  ⁢
                  
                    
                      p
                      (
                      
                        a
                        _
                      
                    
                    
                  
                  ⁢
                  k
                
                )
              
              ⁢
              
                
                  p
                  (
                  
                    h
                    _
                  
                
                
              
              ⁢
              r
            
            )
          
          ⁢
          
            p
            ⁡
            
              (
              
                σ
                ɛ
                2
              
              )
            
          
          ⁢
          
            p
            ⁡
            
              (
              
                σ
                e
                2
              
              )
            
          
          ⁢
          
            p
            ⁡
            
              (
              k
              )
            
          
          ⁢
          
            p
            ⁡
            
              (
              r
              )
            
          
        
        
          p
          ⁡
          
            (
            
              
                y
                _
              
              ⁡
              
                (
                n
                )
              
            
            )
          
        
      
    
    
      
        (
        10
        )
      
    
  




As those skilled in the art will appreciate, the denominator of equation (10) can be ignored since the probability of the signals from the analogue to digital converter is constant for all choices of model. Therefore, the AR filter coefficients that maximise the function defined by equation (9) will also maximise the numerator of equation (10).
Each of the terms on the numerator of equation (10) will now be considered in turn.

p(s(n)|a, k, σe2)

This term represents the joint probability density function for generating the vector of raw speech samples (s(n)) during a frame, given the AR filter coefficients (a), the AR filter model order (k) and the process noise statistics (σe2). From equation (6) above, this joint probability density function for the raw speech samples can be determined from the joint probability density function for the process noise. In particular p(s(n)|a, k, σe2) is given by:




  
    
      
        
          
            
              
                
                  p
                  (
                  
                    
                      s
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                
                
              
              ⁢
              
                a
                _
              
            
            ,
            k
            ,
            
              σ
              e
              2
            
          
          )
        
        =
        
          
            p
            ⁡
            
              (
              
                
                  e
                  _
                
                ⁡
                
                  (
                  n
                  )
                
              
              )
            
          
          ⁢
          
            
              
              
                
                  δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    
                      e
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                
                
                  δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    
                      s
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                
              
              
            
            
              
                
                  e
                  _
                
                ⁡
                
                  (
                  n
                  )
                
              
              =
              
                
                  
                    s
                    _
                  
                  ⁡
                  
                    (
                    n
                    )
                  
                
                -
                
                  S
                  ⁢
                  
                    
                  
                  ⁢
                  
                    a
                    _
                  
                
              
            
          
        
      
    
    
      
        (
        11
        )
      
    
  




where p(e(n)) is the joint probability density function for the process noise during a frame of the input speech and the second term on the right-hand side is known as the Jacobean of the transformation. In this case, the Jacobean is unity because of the triangular form of the matrix Ä (see equations (6) above).

In this embodiment, the statistical analysis unit 21 assumes that the process noise associated with the speech source 31 is Gaussian having zero mean and some unknown variance σe2. The statistical analysis unit 21 also assumes that the process noise at one time point is independent of the process noise at another time point. Therefore, the joint probability density function for the process noise during a frame of the input speech (which defines the probability of any given vector of process noise e(n) occurring) is given by:




  
    
      
        
          p
          ⁡
          
            (
            
              
                e
                _
              
              ⁡
              
                (
                n
                )
              
            
            )
          
        
        =
        
          
            
              (
              
                2
                ⁢
                
                  πσ
                  e
                  2
                
              
              )
            
            
              -
              
                N
                2
              
            
          
          ⁢
          
            exp
            ⁡
            
              [
              
                
                  
                    -
                    
                      
                        
                          e
                          _
                        
                        ⁡
                        
                          (
                          n
                          )
                        
                      
                      T
                    
                  
                  ⁢
                  
                    
                      e
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                
                
                  2
                  ⁢
                  
                    σ
                    e
                    2
                  
                
              
              ]
            
          
        
      
    
    
      
        (
        12
        )
      
    
  




Therefore, the joint probability density function for a vector of raw speech samples given the AR filter coefficients (a), the AR filter model order (k) and the process noise variance (σe2) is given by:




  
    
      
        
          
            
              
                
                  p
                  (
                  
                    
                      s
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                
                
              
              ⁢
              
                a
                _
              
            
            ,
            k
            ,
            
              σ
              e
              2
            
          
          )
        
        =
        
          
            
              (
              
                2
                ⁢
                
                  πσ
                  e
                  2
                
              
              )
            
            
              -
              
                N
                2
              
            
          
          ⁢
          
            exp
            ⁡
            
              [
              
                
                  
                    -
                    1
                  
                  
                    2
                    ⁢
                    
                      σ
                      e
                      2
                    
                  
                
                ⁢
                
                  (
                  
                    
                      
                        
                          
                            s
                            _
                          
                          ⁡
                          
                            (
                            n
                            )
                          
                        
                        T
                      
                      ⁢
                      
                        
                          s
                          _
                        
                        ⁡
                        
                          (
                          n
                          )
                        
                      
                    
                    -
                    
                      2
                      ⁢
                      
                        
                          a
                          _
                        
                        T
                      
                      ⁢
                      S
                      ⁢
                      
                        
                          s
                          _
                        
                        ⁡
                        
                          (
                          n
                          )
                        
                      
                    
                    +
                    
                      
                        
                          a
                          _
                        
                        T
                      
                      ⁢
                      
                        S
                        T
                      
                      ⁢
                      S
                      ⁢
                      
                        a
                        _
                      
                    
                  
                  )
                
              
              ]
            
          
        
      
    
    
      
        (
        13
        )
      
    
  




p(y(n)|s(n), h, r, σε2)

This term represents the joint probability density function for generating the vector of speech samples (y(n)) output from the analogue to digital converter 17, given the vector of raw speech samples (s(n)), the channel filter coefficients (h), the channel filter model order (r) and the measurement noise statistics (σε2). From equation (8), this joint probability density function can be determined from the joint probability density function for the process noise. In particular, p(y(n)|s(n), h, r, σε2) is given by:




  
    
      
        
          
            
              
                p
                (
                
                  
                    y
                    _
                  
                  ⁡
                  
                    (
                    n
                    )
                  
                
                
              
              ⁢
              
                
                  s
                  _
                
                ⁡
                
                  (
                  n
                  )
                
              
            
            ,
            
              h
              _
            
            ,
            r
            ,
            
              σ
              ɛ
              2
            
          
          )
        
        =
        
          
            p
            ⁡
            
              (
              
                
                  ɛ
                  _
                
                ⁡
                
                  (
                  n
                  )
                
              
              )
            
          
          ⁢
          
            
              
              
                
                  δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    
                      ɛ
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                
                
                  δ
                  ⁢
                  
                    
                  
                  ⁢
                  
                    
                      y
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                
              
              
            
            
              
                
                  ɛ
                  _
                
                ⁡
                
                  (
                  n
                  )
                
              
              =
              
                
                  
                    q
                    _
                  
                  ⁡
                  
                    (
                    n
                    )
                  
                
                -
                
                  Y
                  ⁢
                  
                    
                  
                  ⁢
                  
                    h
                    _
                  
                
              
            
          
        
      
    
    
      
        (
        14
        )
      
    
  




where p(ε(n)) is the joint probability density function for the measurement noise during a frame of the input speech and the second term on the right hand side is the Jacobean of the transformation which again has a value of one.

In this embodiment, the statistical analysis unit 21 assumes that the measurement noise is Gaussian having zero mean and some unknown variance σε2. It also assumes that the measurement noise at one time point is independent of the measurement noise at another time point. Therefore, the joint probability density function for the measurement noise in a frame of the input speech will have the same form as the process noise defined in equation (12). Therefore, the joint probability density function for a vector of speech samples (y(n)) output from the analogue to digital converter 17, given the channel filter coefficients (h), the channel filter model order (r), the measurement noise statistics (σε2) and the raw speech samples (s(n)) will have the following form:




  
    
      
        
          
            
              
                p
                (
                
                  
                    y
                    _
                  
                  ⁡
                  
                    (
                    n
                    )
                  
                
                
              
              ⁢
              
                
                  s
                  _
                
                ⁡
                
                  (
                  n
                  )
                
              
            
            ,
            
              h
              _
            
            ,
            r
            ,
            
              σ
              ɛ
              2
            
          
          )
        
        =
        
          
            
              (
              
                2
                ⁢
                
                  πσ
                  ɛ
                  2
                
              
              )
            
            
              -
              
                N
                2
              
            
          
          ⁢
          
            exp
            ⁡
            
              [
              
                
                  
                    -
                    1
                  
                  
                    2
                    ⁢
                    
                      σ
                      ɛ
                      2
                    
                  
                
                ⁢
                
                  (
                  
                    
                      
                        
                          
                            q
                            _
                          
                          ⁡
                          
                            (
                            n
                            )
                          
                        
                        T
                      
                      ⁢
                      
                        
                          q
                          _
                        
                        ⁡
                        
                          (
                          n
                          )
                        
                      
                    
                    -
                    
                      2
                      ⁢
                      
                        
                          h
                          _
                        
                        T
                      
                      ⁢
                      Y
                      ⁢
                      
                        
                          q
                          _
                        
                        ⁡
                        
                          (
                          n
                          )
                        
                      
                    
                    +
                    
                      
                        
                          h
                          _
                        
                        T
                      
                      ⁢
                      
                        Y
                        T
                      
                      ⁢
                      Y
                      ⁢
                      
                        h
                        _
                      
                    
                  
                  )
                
              
              ]
            
          
        
      
    
    
      
        (
        15
        )
      
    
  




As those skilled in the art will appreciate, although this joint probability density function for the vector of speech samples (y(n)) is in terms of the variable q(n), this does not matter since q(n) is a function of y(n) and s(n), and s(n) is a given variable (ie known) for this probability density function.

p(a|k)

This term defines the prior probability density function for the AR filter coefficients (a) and it allows the statistical analysis unit 21 to introduce knowledge about what values it expects these coefficients will take. In this embodiment, the statistical analysis unit 21 models this prior probability density function by a Gaussian having an unknown variance (σa2) and mean vector (μa), i.e.:




  
    
      
        
          
            
              
                p
                (
                
                  a
                  _
                
                
              
              ⁢
              k
            
            ,
            
              σ
              a
              2
            
            ,
            
              
                μ
                _
              
              a
            
          
          )
        
        =
        
          
            
              (
              
                2
                ⁢
                
                  πσ
                  a
                  2
                
              
              )
            
            
              -
              
                N
                2
              
            
          
          ⁢
          
            exp
            ⁡
            
              [
              
                
                  
                    -
                    
                      
                        (
                        
                          
                            a
                            _
                          
                          -
                          
                            
                              μ
                              _
                            
                            a
                          
                        
                        )
                      
                      T
                    
                  
                  ⁢
                  
                    (
                    
                      
                        a
                        _
                      
                      -
                      
                        
                          μ
                          _
                        
                        a
                      
                    
                    )
                  
                
                
                  2
                  ⁢
                  
                    σ
                    a
                    2
                  
                
              
              ]
            
          
        
      
    
    
      
        (
        16
        )
      
    
  




By introducing the new variables σa2 and μa, the prior density functions (p(σa2) and p(μa)) for these variables must be added to the numerator of equation (10) above. Initially, for the first frame of speech being processed the mean vector (μa) can be set to zero and for the second and subsequent frames of speech being processed, it can be set to the mean vector obtained during the processing of the previous frame. In this case, p(μa) is just a Dirac delta function located at the current value of μa and can therefore be ignored.
With regard to the prior probability density function for the variance of the AR filter coefficients, the statistical analysis unit 21 could set this equal to some constant to imply that all variances are equally probable. However, this term can be used to introduce knowledge about what the variance of the AR filter coefficients is expected to be. In this embodiment, since variances are always positive, the statistical analysis unit 21 models this variance prior probability density function by an Inverse Gamma function having parameters αa and βa, i.e.:




  
    
      
        
          
            
              
                
                  p
                  (
                  
                    σ
                    a
                    2
                  
                
                
              
              ⁢
              
                α
                a
              
            
            ,
            
              β
              a
            
          
          )
        
        =
        
          
            
              
                (
                
                  σ
                  a
                  2
                
                )
              
              
                -
                
                  (
                  
                    
                      α
                      a
                    
                    +
                    1
                  
                  )
                
              
            
            
              
                β
                a
              
              ⁢
              
                Γ
                ⁡
                
                  (
                  
                    α
                    a
                  
                  )
                
              
            
          
          ⁢
          
            exp
            ⁡
            
              [
              
                
                  -
                  1
                
                
                  
                    σ
                    a
                    2
                  
                  ⁢
                  
                    β
                    a
                  
                
              
              ]
            
          
        
      
    
    
      
        (
        17
        )
      
    
  




At the beginning of the speech being processed, the statistical analysis unit 21 will not have much knowledge about the variance of the AR filter coefficients. Therefore, initially, the statistical analysis unit 21 sets the variance σa2 and the α and β parameters of the Inverse Gamma function to ensure that this probability density function is fairly flat and therefore non-informative. However, after the first frame of speech has been processed, these parameters can be set more accurately during the processing of the next frame of speech by using the parameter values calculated during the processing of the previous frame of speech.

p(h|r)

This term represents the prior probability density function for the channel model coefficients (h) and it allows the statistical analysis unit 21 to introduce knowledge about what values it expects these coefficients to take. As with the prior probability density function for the AR filter coefficients, in this embodiment, this probability density function is modelled by a Gaussian having an unknown variance (σh2) and mean vector (μh), i.e.:




  
    
      
        
          
            
              
                p
                (
                
                  h
                  _
                
                
              
              ⁢
              r
            
            ,
            
              σ
              h
              2
            
            ,
            
              
                μ
                _
              
              h
            
          
          )
        
        =
        
          
            
              (
              
                2
                ⁢
                
                  πσ
                  h
                  2
                
              
              )
            
            
              -
              
                N
                2
              
            
          
          ⁢
          
            exp
            ⁡
            
              [
              
                
                  
                    -
                    
                      
                        (
                        
                          
                            h
                            _
                          
                          -
                          
                            
                              μ
                              _
                            
                            h
                          
                        
                        )
                      
                      T
                    
                  
                  ⁢
                  
                    (
                    
                      
                        h
                        _
                      
                      -
                      
                        
                          μ
                          _
                        
                        h
                      
                    
                    )
                  
                
                
                  2
                  ⁢
                  
                    σ
                    h
                    2
                  
                
              
              ]
            
          
        
      
    
    
      
        (
        18
        )
      
    
  




Again, by introducing these new variables, the prior density functions (p(σh) and p(μh)) must be added to the numerator of equation (10). Again, the mean vector can initially be set to zero and after the first frame of speech has been processed and for all subsequent frames of speech being processed, the mean vector can be set to equal the mean vector obtained during the processing of the previous frame. Therefore, p(μh) is also just a Dirac delta function located at the current value of μh and can be ignored.
With regard to the prior probability density function for the variance of the channel filter coefficients, again, in this embodiment, this is modelled by an Inverse Gamma function having parameters αh and βh. Again, the variance (σh2) and the α and β parameters of the Inverse Gamma function can be chosen initially so that these densities are non-informative so that they will have little effect on the subsequent processing of the initial frame.

p(σe2) and p(σε2)

These terms are the prior probability density functions for the process and measurement noise variances and again, these allow the statistical analysis unit 21 to introduce knowledge about what values it expects these noise variances will take. As with the other variances, in this embodiment, the statistical analysis unit 21 models these by an Inverse Gamma function having parameters αe, βe and αε, βε respectively. Again, these variances and these Gamma function parameters can be set initially so that they are non-informative and will not appreciably affect the subsequent calculations for the initial frame.

p(k) and p(r)

These terms are the prior probability density functions for the AR filter model order (k) and the channel model order (r) respectively. In this embodiment, these are modelled by a uniform distribution up to some maximum order. In this way, there is no prior bias on the number of coefficients in the models except that they can not exceed these predefined maximums. In this embodiment, the maximum AR filter model order (k) is thirty and the maximum channel model order (r) is one hundred and fifty.
Therefore, inserting the relevant equations into the numerator of equation (10) gives the following joint probability density function which is proportional to p(a,k,h,r,σa2,σh2,σe2,σε2,s(n)|y(n)):




  
    
      
        
          
            (
            
              2
              ⁢
              
                πσ
                ɛ
                2
              
            
            )
          
          
            -
            
              N
              2
            
          
        
        ⁢
        
          exp
          ⁡
          
            [
            
              
                
                  -
                  1
                
                
                  2
                  ⁢
                  
                    σ
                    ɛ
                    2
                  
                
              
              ⁢
              
                (
                
                  
                    
                      
                        
                          q
                          _
                        
                        ⁡
                        
                          (
                          n
                          )
                        
                      
                      T
                    
                    ⁢
                    
                      
                        q
                        _
                      
                      ⁡
                      
                        (
                        n
                        )
                      
                    
                  
                  -
                  
                    2
                    ⁢
                    
                      
                        h
                        _
                      
                      T
                    
                    ⁢
                    Y
                    ⁢
                    
                      
                        q
                        _
                      
                      ⁡
                      
                        (
                        n
                        )
                      
                    
                  
                  +
                  
                    
                      
                        h
                        _
                      
                      T
                    
                    ⁢
                    
                      Y
                      T
                    
                    ⁢
                    Y
                    ⁢
                    
                      h
                      _
                    
                  
                
                )
              
            
            ]
          
        
        ×
        
          
            (
            
              2
              ⁢
              
                πσ
                e
                2
              
            
            )
          
          
            -
            
              N
              2
            
          
        
        ⁢
        
          exp
          ⁡
          
            [
            
              
                
                  -
                  1
                
                
                  2
                  ⁢
                  
                    σ
                    e
                    2
                  
                
              
              ⁢
              
                (
                
                  
                    
                      
                        
                          s
                          _
                        
                        ⁡
                        
                          (
                          n
                          )
                        
                      
                      T
                    
                    ⁢
                    
                      
                        s
                        _
                      
                      ⁡
                      
                        (
                        n
                        )
                      
                    
                  
                  -
                  
                    2
                    ⁢
                    
                      
                        a
                        _
                      
                      T
                    
                    ⁢
                    S
                    ⁢
                    
                      
                        s
                        _
                      
                      ⁡
                      
                        (
                        n
                        )
                      
                    
                  
                  +
                  
                    
                      
                        a
                        _
                      
                      T
                    
                    ⁢
                    
                      S
                      T
                    
                    ⁢
                    S
                    ⁢
                    
                      a
                      _
                    
                  
                
                )
              
            
            ]
          
        
        ×
        
           
          
            
              
                (
                
                  2
                  ⁢
                  
                    πσ
                    a
                    2
                  
                
                )
              
              
                -
                
                  N
                  2
                
              
            
            ⁢
            
              exp
              ⁡
              
                [
                
                  
                    
                      -
                      
                        
                          (
                          
                            
                              a
                              _
                            
                            -
                            
                              
                                μ
                                _
                              
                              a
                            
                          
                          )
                        
                        T
                      
                    
                    ⁢
                    
                      (
                      
                        
                          a
                          _
                        
                        -
                        
                          
                            μ
                            _
                          
                          a
                        
                      
                      )
                    
                  
                  
                    2
                    ⁢
                    
                      σ
                      a
                      2
                    
                  
                
                ]
              
            
            ×
            
               
              
                
                  
                    (
                    
                      2
                      ⁢
                      
                        πσ
                        h
                        2
                      
                    
                    )
                  
                  
                    -
                    
                      N
                      2
                    
                  
                
                ⁢
                
                   
                  
                    
                      exp
                      ⁡
                      
                        [
                        
                          
                            
                              -
                              
                                
                                  (
                                  
                                    
                                      h
                                      _
                                    
                                    -
                                    
                                      
                                        μ
                                        _
                                      
                                      h
                                    
                                  
                                  )
                                
                                T
                              
                            
                            ⁢
                            
                              (
                              
                                
                                  h
                                  _
                                
                                -
                                
                                  
                                    μ
                                    _
                                  
                                  h
                                
                              
                              )
                            
                          
                          
                            2
                            ⁢
                            
                              σ
                              h
                              2
                            
                          
                        
                        ]
                      
                    
                    ×
                    
                       
                      
                        
                          
                            
                              (
                              
                                σ
                                a
                                2
                              
                              )
                            
                            
                              -
                              
                                (
                                
                                  
                                    α
                                    a
                                  
                                  +
                                  1
                                
                                )
                              
                            
                          
                          
                            
                              β
                              a
                            
                            ⁢
                            
                              Γ
                              ⁡
                              
                                (
                                
                                  α
                                  a
                                
                                )
                              
                            
                          
                        
                        ⁢
                        
                          exp
                          ⁡
                          
                            [
                            
                              
                                -
                                1
                              
                              
                                
                                  σ
                                  a
                                  2
                                
                                ⁢
                                
                                  β
                                  a
                                
                              
                            
                            ]
                          
                        
                        ×
                        
                          
                            
                              (
                              
                                σ
                                h
                                2
                              
                              )
                            
                            
                              -
                              
                                (
                                
                                  
                                    α
                                    h
                                  
                                  +
                                  1
                                
                                )
                              
                            
                          
                          
                            
                              β
                              h
                            
                            ⁢
                            
                              Γ
                              ⁡
                              
                                (
                                
                                  α
                                  h
                                
                                )
                              
                            
                          
                        
                        ⁢
                        
                          exp
                          ⁡
                          
                            [
                            
                              
                                -
                                1
                              
                              
                                
                                  σ
                                  h
                                  2
                                
                                ⁢
                                
                                  β
                                  h
                                
                              
                            
                            ]
                          
                        
                        ×
                        
                          
                            
                              (
                              
                                σ
                                e
                                2
                              
                              )
                            
                            
                              -
                              
                                (
                                
                                  
                                    α
                                    e
                                  
                                  +
                                  1
                                
                                )
                              
                            
                          
                          
                            
                              β
                              e
                            
                            ⁢
                            
                              Γ
                              ⁡
                              
                                (
                                
                                  α
                                  e
                                
                                )
                              
                            
                          
                        
                        ⁢
                        
                          exp
                          ⁡
                          
                            [
                            
                              
                                -
                                1
                              
                              
                                
                                  σ
                                  e
                                  2
                                
                                ⁢
                                
                                  β
                                  e
                                
                              
                            
                            ]
                          
                        
                        ×
                        
                          
                            
                              (
                              
                                σ
                                ɛ
                                2
                              
                              )
                            
                            
                              -
                              
                                (
                                
                                  
                                    α
                                    ɛ
                                  
                                  +
                                  1
                                
                                )
                              
                            
                          
                          
                            
                              β
                              ɛ
                            
                            ⁢
                            
                              Γ
                              ⁡
                              
                                (
                                
                                  α
                                  ɛ
                                
                                )
                              
                            
                          
                        
                        ⁢
                        
                          exp
                          ⁡
                          
                            [
                            
                              
                                -
                                1
                              
                              
                                
                                  σ
                                  ɛ
                                  2
                                
                                ⁢
                                
                                  β
                                  ɛ
                                
                              
                            
                            ]
                          
                        
                      
                    
                  
                
              
            
          
        
      
    
    
      
        (
        19
        )
      
    
  




Gibbs Sampler

In order to determine the form of this joint probability density function, the statistical analysis unit 21 “draws samples” from it. In this embodiment, since the joint probability density function to be sampled is a complex multivariate function, a Gibbs sampler is used which breaks down the problem into one of drawing samples from probability density functions of smaller dimensionality. In particular, the Gibbs sampler proceeds by drawing random variates from conditional densities as follows:



  
    first
    ⁢
    
      
    
    ⁢
    iteration
  




  
    
      
        
          
            
              
                
                  
                    p
                    (
                    
                      
                        a
                        _
                      
                      ,
                      k
                    
                    
                  
                  ⁢
                  
                    h
                    0
                  
                
                ,
                
                  r
                  0
                
                ,
                
                  σ
                  e
                  
                    2
                    0
                  
                
                ,
                
                  σ
                  ɛ
                  
                    2
                    0
                  
                
                ,
                
                  σ
                  a
                  
                    2
                    0
                  
                
                ,
                
                  σ
                  h
                  
                    2
                    0
                  
                
                ,
                
                  
                    
                      s
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                  0
                
                ,
                
                  
                    y
                    _
                  
                  ⁡
                  
                    (
                    n
                    )
                  
                
              
              )
            
            ->
            
              
                a
                _
              
              1
            
          
          ,
          
            k
            1
          
        
      
    
    
      
        
          
            
              
                
                  
                    p
                    (
                    
                      
                        h
                        _
                      
                      ,
                      r
                    
                    
                  
                  ⁢
                  
                    
                      a
                      _
                    
                    1
                  
                
                ,
                
                  k
                  1
                
                ,
                
                  σ
                  e
                  
                    2
                    0
                  
                
                ,
                
                  σ
                  ɛ
                  
                    2
                    0
                  
                
                ,
                
                  σ
                  a
                  
                    2
                    0
                  
                
                ,
                
                  σ
                  h
                  
                    2
                    0
                  
                
                ,
                
                  
                    
                      s
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                  0
                
                ,
                
                  
                    y
                    _
                  
                  ⁡
                  
                    (
                    n
                    )
                  
                
              
              )
            
            ->
            
              
                h
                _
              
              1
            
          
          ,
          
            k
            1
          
        
      
    
    
      
        
          
            
              
                
                  p
                  (
                  
                    σ
                    e
                    2
                  
                  
                
                ⁢
                
                  
                    a
                    _
                  
                  1
                
              
              ,
              
                k
                1
              
              ,
              
                
                  h
                  _
                
                1
              
              ,
              
                r
                1
              
              ,
              
                σ
                ɛ
                
                  2
                  0
                
              
              ,
              
                σ
                a
                
                  2
                  0
                
              
              ,
              
                σ
                h
                
                  2
                  0
                
              
              ,
              
                
                  
                    s
                    _
                  
                  ⁡
                  
                    (
                    n
                    )
                  
                
                0
              
              ,
              
                
                  y
                  _
                
                ⁡
                
                  (
                  n
                  )
                
              
            
            )
          
          ->
          
            σ
            e
            
              2
              1
            
          
        
      
    
    
      
        ⋮
      
    
    
      
        
          
            
              
                
                  p
                  (
                  
                    σ
                    h
                    
                      2
                      1
                    
                  
                  
                
                ⁢
                
                  
                    a
                    _
                  
                  1
                
              
              ,
              
                k
                1
              
              ,
              
                
                  h
                  _
                
                1
              
              ,
              
                r
                1
              
              ,
              
                σ
                ɛ
                
                  2
                  1
                
              
              ,
              
                σ
                a
                
                  2
                  1
                
              
              ,
              
                σ
                h
                
                  2
                  1
                
              
              ,
              
                
                  
                    s
                    _
                  
                  ⁡
                  
                    (
                    n
                    )
                  
                
                0
              
              ,
              
                
                  y
                  _
                
                ⁡
                
                  (
                  n
                  )
                
              
            
            )
          
          ->
          
            σ
            h
            
              2
              1
            
          
        
      
    
  




  
    second
    ⁢
    
      
    
    ⁢
    iteration
  




  
    
      
        
          
            
              
                
                  
                    p
                    (
                    
                      
                        a
                        _
                      
                      ,
                      k
                    
                    
                  
                  ⁢
                  
                    
                      h
                      _
                    
                    1
                  
                
                ,
                
                  r
                  1
                
                ,
                
                  σ
                  e
                  
                    2
                    1
                  
                
                ,
                
                  σ
                  ɛ
                  
                    2
                    1
                  
                
                ,
                
                  σ
                  h
                  
                    2
                    1
                  
                
                ,
                
                  
                    
                      s
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                  1
                
                ,
                
                  
                    y
                    _
                  
                  ⁡
                  
                    (
                    n
                    )
                  
                
              
              )
            
            ->
            
              
                a
                _
              
              2
            
          
          ,
          
            k
            2
          
        
      
    
    
      
        
          
            
              
                
                  
                    p
                    (
                    
                      
                        h
                        _
                      
                      ,
                      r
                    
                    
                  
                  ⁢
                  
                    
                      a
                      _
                    
                    2
                  
                
                ,
                
                  k
                  2
                
                ,
                
                  σ
                  e
                  
                    2
                    1
                  
                
                ,
                
                  σ
                  ɛ
                  
                    2
                    1
                  
                
                ,
                
                  σ
                  a
                  
                    2
                    1
                  
                
                ,
                
                  σ
                  h
                  
                    2
                    1
                  
                
                ,
                
                  
                    
                      s
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                  1
                
                ,
                
                  
                    y
                    _
                  
                  ⁡
                  
                    (
                    n
                    )
                  
                
              
              )
            
            ->
            
              
                h
                _
              
              2
            
          
          ,
          
            r
            2
          
        
      
    
  



etc.

where (h0, r0, (σe2)0, (σε2)0, (σa2)0, (σh2)0, s(n)0) are initial values which may be obtained from the results of the statistical analysis of the previous frame of speech, or where there are no previous frames, can be set to appropriate values that will be known to those skilled in the art of speech processing.
As those skilled in the art will appreciate, these conditional densities are obtained by inserting the current values for the given (or known) variables into the terms of the density function of equation (19). For the conditional density p(a,k| . . . ) this results in:




  
    
      
        
          
            
              
                
                  p
                  (
                  
                    
                      a
                      _
                    
                    ,
                    k
                  
                  
                
                ⁢
                ...
                )
              
              ∝
              
              ⁢
              
                
                  exp
                  ⁡
                  
                    [
                    
                      
                        
                          -
                          1
                        
                        
                          2
                          ⁢
                          
                            σ
                            e
                            2
                          
                        
                      
                      ⁢
                      
                        (
                        
                          
                            
                              
                                
                                  s
                                  _
                                
                                ⁡
                                
                                  (
                                  n
                                  )
                                
                              
                              T
                            
                            ⁢
                            
                              
                                s
                                _
                              
                              ⁡
                              
                                (
                                n
                                )
                              
                            
                          
                          -
                          
                            2
                            ⁢
                            
                              
                                a
                                _
                              
                              T
                            
                            ⁢
                            S
                            ⁢
                            
                              
                                s
                                _
                              
                              ⁡
                              
                                (
                                n
                                )
                              
                            
                          
                          +
                          
                            
                              
                                a
                                _
                              
                              T
                            
                            ⁢
                            
                              S
                              T
                            
                            ⁢
                            S
                            ⁢
                            
                              a
                              _
                            
                          
                        
                        )
                      
                    
                    ]
                  
                
                ×
              
            
          
        
        
          
            
              
              ⁢
              
                exp
                ⁡
                
                  [
                  
                    
                      
                        -
                        
                          
                            (
                            
                              
                                a
                                _
                              
                              -
                              
                                
                                  μ
                                  _
                                
                                a
                              
                            
                            )
                          
                          T
                        
                      
                      ⁢
                      
                        (
                        
                          
                            a
                            _
                          
                          -
                          
                            
                              μ
                              _
                            
                            a
                          
                        
                        )
                      
                    
                    
                      2
                      ⁢
                      
                        σ
                        a
                        2
                      
                    
                  
                  ]
                
              
            
          
        
      
    
    
      
        (
        20
        )
      
    
  




which can be simplified to give:





  
    
      
        
          
            p
            (
            
              
                a
                _
              
              ,
              k
            
            
          
          ⁢
          ...
          )
        
        ∝
        
          exp
          ⁡
          
            [
            
              
                
                  -
                  1
                
                2
              
              ⁢
              
                (
                
                  
                    
                      
                        
                          
                            
                              
                                
                                  s
                                  _
                                
                                ⁡
                                
                                  (
                                  n
                                  )
                                
                              
                              T
                            
                            ⁢
                            
                              
                                s
                                _
                              
                              ⁡
                              
                                (
                                n
                                )
                              
                            
                          
                          
                            σ
                            e
                            2
                          
                        
                        +
                        
                          
                            
                              
                                μ
                                _
                              
                              a
                              T
                            
                            ⁢
                            
                              
                                μ
                                _
                              
                              a
                            
                          
                          
                            σ
                            a
                            2
                          
                        
                        -
                      
                    
                  
                  
                    
                      
                        
                          2
                          ⁢
                          
                            
                              
                                a
                                _
                              
                              T
                            
                            ⁡
                            
                              [
                              
                                
                                  
                                    S
                                    ⁢
                                    
                                      
                                        s
                                        _
                                      
                                      ⁡
                                      
                                        (
                                        n
                                        )
                                      
                                    
                                  
                                  
                                    σ
                                    e
                                    2
                                  
                                
                                +
                                
                                  
                                    
                                      μ
                                      _
                                    
                                    a
                                  
                                  
                                    σ
                                    a
                                    2
                                  
                                
                              
                              ]
                            
                          
                        
                        +
                      
                    
                  
                  
                    
                      
                        
                          
                            
                              a
                              _
                            
                            T
                          
                          ⁡
                          
                            [
                            
                              
                                
                                  
                                    S
                                    T
                                  
                                  ⁢
                                  S
                                
                                
                                  σ
                                  
                                    e
                                    2
                                  
                                
                              
                              +
                              
                                I
                                
                                  σ
                                  a
                                  2
                                
                              
                            
                            ]
                          
                        
                        ⁢
                        
                          a
                          _
                        
                      
                    
                  
                
                )
              
            
            ]
          
        
      
    
    
      
        (
        21
        )
      
    
  




which is in the form of a standard Gaussian distribution having the following covariance matrix:





  
    
      
        
          ∑
          
            a
            -
          
        
        ⁢
        
          
        
        ⁢
        
          
            [
            
              
                
                  
                    S
                    T
                  
                  ⁢
                  S
                
                
                  σ
                  e
                  2
                
              
              +
              
                I
                
                  σ
                  a
                  2
                
              
            
            ]
          
          
            -
            1
          
        
      
    
    
      
        (
        22
        )
      
    
  




The mean value of this Gaussian distribution can be determined by differentiating the exponent of equation (21) with respect to a and determining the value of a which makes the differential of the exponent equal to zero. This yields a mean value of:




  
    
      
        
          
            
              μ
              _
            
            ^
          
          a
        
        =
        
          
            
              [
              
                
                  
                    
                      S
                      T
                    
                    ⁢
                    S
                  
                  
                    σ
                    e
                    2
                  
                
                +
                
                  I
                  
                    σ
                    a
                    2
                  
                
              
              ]
            
            
              -
              1
            
          
          ⁡
          
            [
            
              
                
                  S
                  ⁢
                  
                    
                      s
                      _
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                
                
                  σ
                  e
                  2
                
              
              +
              
                
                  
                    μ
                    _
                  
                  a
                
                
                  σ
                  a
                  2
                
              
            
            ]
          
        
      
    
    
      
        (
        23
        )
      
    
  




A sample can then be drawn from this standard Gaussian distribution to give ag (where g is the gth iteration of the Gibbs sampler) with the model order (kg) being determined by a model order selection routine which will be described later. The drawing of a sample from this Gaussian distribution may be done by using a random number generator which generates a vector of random values which are uniformly distributed and then using a transformation of random variables using the covariance matrix and the mean value given in equations (22) and (23) to generate the sample. In this embodiment, however, a random number generator is used which generates random numbers from a Gaussian distribution having zero mean and a variance of one. This simplifies the transformation process to one of a simple scaling using the covariance matrix given in equation (22) and shifting using the mean value given in equation (23). Since the techniques for drawing samples from Gaussian distributions are well known in the art of statistical analysis, a further description of them will not be given here. A more detailed description and explanation can be found in the book entitled “Numerical Recipes in C”, by W. Press et al, Cambridge University Press, 1992 and in particular at chapter 7.
As those skilled in the art will appreciate, however, before a sample can be drawn from this Gaussian distribution, estimates of the raw speech samples must be available so that the matrix S and the vector s(n) are known. The way in which these estimates of the raw speech samples are obtained in this embodiment will be described later.
A similar analysis for the conditional density p(h,r| . . . ) reveals that it also is a standard Gaussian distribution but having a covariance matrix and mean value given by:




  
    
      
        
          
            ∑
            
              h
              -
            
          
          ⁢
          
            
              [
              
                
                  
                    
                      Y
                      T
                    
                    ⁢
                    Y
                  
                  
                    σ
                    ɛ
                    2
                  
                
                +
                
                  I
                  
                    σ
                    h
                    2
                  
                
              
              ]
            
            
              -
              1
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              
                μ
                _
              
              ^
            
            h
          
          =
          
            
              
                [
                
                  
                    
                      
                        Y
                        T
                      
                      ⁢
                      Y
                    
                    
                      σ
                      ɛ
                      2
                    
                  
                  +
                  
                    I
                    
                      σ
                      h
                      2
                    
                  
                
                ]
              
              
                -
                1
              
            
            ⁡
            
              [
              
                
                  
                    
                      Y
                      2
                    
                    ⁢
                    
                      
                        q
                        _
                      
                      ⁡
                      
                        (
                        n
                        )
                      
                    
                  
                  
                    σ
                    ɛ
                    2
                  
                
                +
                
                  
                    
                      μ
                      _
                    
                    h
                  
                  
                    σ
                    h
                    2
                  
                
              
              ]
            
          
        
      
    
    
      
        (
        24
        )
      
    
  




from which a sample for hg can be drawn in the manner described above, with the channel model order (rg) being determined using the model order selection routine which will be described later.

A similar analysis for the conditional density p(σe2| . . . ) shows that:




  
    
      
        
          p
          ⁡
          
            (
            
              
                σ
                e
                2
              
              |
              ...
            
            )
          
        
        ∝
        
          
            
              (
              
                σ
                e
                2
              
              )
            
            
              -
              
                N
                2
              
            
          
          ⁢
          
            exp
            ⁡
            
              [
              
                
                  -
                  E
                
                
                  2
                  ⁢
                  
                    σ
                    e
                    2
                  
                
              
              ]
            
          
          ⁢
          
            
          
          ⁢
          
            
              
                (
                
                  σ
                  e
                  2
                
                )
              
              
                -
                
                  (
                  
                    
                      α
                      e
                    
                    +
                    1
                  
                  )
                
              
            
            
              
                β
                e
              
              ⁢
              
                Γ
                ⁡
                
                  (
                  
                    α
                    e
                  
                  )
                
              
            
          
          ⁢
          
            exp
            ⁡
            
              [
              
                
                  -
                  1
                
                
                  
                    σ
                    e
                    2
                  
                  ⁢
                  
                    β
                    e
                  
                
              
              ]
            
          
        
      
    
    
      
        (
        25
        )
      
    
  




where:

E=s(n)Ts(n)−2aTSs(n)+aTSTSa

which can be simplified to give:





  
    
      
        
          p
          ⁡
          
            (
            
              
                σ
                e
                2
              
              |
              ...
            
            )
          
        
        ∝
        
          
            
              (
              
                σ
                e
                2
              
              )
            
            
              -
              
                [
                
                  
                    (
                    
                      
                        N
                        2
                      
                      +
                      
                        α
                        e
                      
                    
                    )
                  
                  +
                  1
                
                ]
              
            
          
          ⁢
          
            exp
            ⁡
            
              [
              
                
                  
                    -
                    1
                  
                  
                    σ
                    e
                    2
                  
                
                ⁢
                
                  (
                  
                    
                      E
                      2
                    
                    +
                    
                      1
                      
                        β
                        e
                      
                    
                  
                  )
                
              
              ]
            
          
        
      
    
    
      
        (
        26
        )
      
    
  




which is also an Inverse Gamma distribution having the following parameters:





  
    
      
        
          
            α
            ^
          
          e
        
        =
        
          
            
              N
              2
            
            +
            
              
                α
                e
              
              ⁢
              
                
              
              ⁢
              and
              ⁢
              
                
              
              ⁢
              
                
                  β
                  ^
                
                e
              
            
          
          =
          
            
              2
              ⁢
              
                β
                e
              
            
            
              2
              +
              
                
                  β
                  e
                
                ⁢
                E
              
            
          
        
      
    
    
      
        (
        27
        )
      
    
  




A sample is then drawn from this Inverse Gamma distribution by firstly generating a random number from a uniform distribution and then performing a transformation of random variables using the alpha and beta parameters given in equation (27), to give (σe2)g.
A similar analysis for the conditional density p(σε2| . . . ) reveals that it also is an Inverse Gamma distribution having the following parameters:




  
    
      
        
          
            α
            ^
          
          ɛ
        
        =
        
          
            
              N
              2
            
            +
            
              
                α
                e
              
              ⁢
              
                
              
              ⁢
              and
              ⁢
              
                
              
              ⁢
              
                
                  β
                  ^
                
                ɛ
              
            
          
          =
          
            
              2
              ⁢
              
                β
                ɛ
              
            
            
              2
              +
              
                
                  β
                  ɛ
                
                ·
                
                  E
                  *
                
              
            
          
        
      
    
    
      
        (
        28
        )
      
    
  




where:

E*=q(n)Tq(n)−2hTYq(n)+hTYTYh

A sample is then drawn from this Inverse Gamma distribution in the manner described above to give (σε2)g.
A similar analysis for conditional density p(σa2| . . . ) reveals that it too is an Inverse Gamma distribution having the following parameters:




  
    
      
        
          
            α
            ^
          
          a
        
        =
        
          
            
              N
              2
            
            +
            
              
                α
                a
              
              ⁢
              
                
              
              ⁢
              and
              ⁢
              
                
              
              ⁢
              
                
                  β
                  ^
                
                a
              
            
          
          =
          
            
              2
              ⁢
              
                β
                a
              
            
            
              2
              +
              
                
                  
                    β
                    a
                  
                  ·
                  
                    
                      (
                      
                        
                          α
                          _
                        
                        -
                        
                          
                            μ
                            _
                          
                          a
                        
                      
                      )
                    
                    T
                  
                
                ⁢
                
                  (
                  
                    
                      a
                      _
                    
                    -
                    
                      
                        μ
                        _
                      
                      a
                    
                  
                  )
                
              
            
          
        
      
    
    
      
        (
        29
        )
      
    
  




A sample is then drawn from this Inverse Gamma distribution in the manner described above to give (σa2)g.
Similarly, the conditional density p(σh2| . . . ) is also an Inverse Gamma distribution but having the following parameters:




  
    
      
        
          
            α
            ^
          
          h
        
        =
        
          
            
              N
              2
            
            +
            
              
                α
                h
              
              ⁢
              
                
              
              ⁢
              and
              ⁢
              
                
              
              ⁢
              
                
                  β
                  ^
                
                h
              
            
          
          =
          
            
              2
              ⁢
              
                β
                h
              
            
            
              2
              +
              
                
                  
                    β
                    h
                  
                  ·
                  
                    
                      (
                      
                        
                          h
                          _
                        
                        -
                        
                          
                            μ
                            _
                          
                          h
                        
                      
                      )
                    
                    T
                  
                
                ⁢
                
                  (
                  
                    
                      h
                      _
                    
                    -
                    
                      
                        μ
                        _
                      
                      h
                    
                  
                  )
                
              
            
          
        
      
    
    
      
        (
        30
        )
      
    
  




A sample is then drawn from this Inverse Gamma distribution in the manner described above to give (σh2)g.
As those skilled in the art will appreciate, the Gibbs sampler requires an initial transient period to converge to equilibrium (known as burn-in). Eventually, after L iterations, the sample (aL, kL, hL, rL, (σe2)L, (σε2)L, (σa2)L, (σh2)L, s(n)L) is considered to be a sample from the joint probability density function defined in equation (19). In this embodiment, the Gibbs sampler performs approximately one hundred and fifty (150) iterations on each frame of input speech and discards the samples from the first fifty iterations and uses the rest to give a picture (a set of histograms) of what the joint probability density function defined in equation (19) looks like. From these histograms, the set of AR coefficients (a) which best represents the observed speech samples (y(n)) from the analogue to digital converter 17 are determined. The histograms are also used to determine appropriate values for the variances and channel model coefficients (h) which can be used as the initial values for the Gibbs sampler when it processes the next frame of speech.
Model Order Selection
As mentioned above, during the Gibbs iterations, the model order (k) of the AR filter and the model order (r) of the channel filter are updated using a model order selection routine. In this embodiment, this is performed using a technique derived from “Reversible jump Markov chain Monte Carlo computation”, which is described in the paper entitled “Reversible jump Markov chain Monte Carlo Computation and Bayesian model determination” by Peter Green, Biometrika, vol 82, pp 711 to 732, 1995.
FIG. 4 is a flow chart which illustrates the processing steps performed during this model order selection routine for the AR filter model order (k). As shown, in step s1, a new model order (k2) is proposed. In this embodiment, the new model order will normally be proposed as k2=k1±1, but occasionally it will be proposed as k2=k1±2 and very occasionally as k2=k1±3 etc. To achieve this, a sample is drawn from a discretised Laplacian density function centred on the current model order (k1) and with the variance of this Laplacian density function being chosen a priori in accordance with the degree of sampling of the model order space that is required.
The processing then proceeds to step s3 where a model order variable (MO) is set equal to:




  
    
      
        MO
        =
        
          max
          ⁢
          
            {
            
              
                
                  p
                  (
                  
                    
                      
                        a
                        _
                      
                      
                        
                          <
                          1
                        
                        :
                        
                          
                            k
                            2
                          
                          >
                        
                      
                    
                    ,
                    
                      
                        k
                        2
                      
                      |
                      ...
                    
                  
                  ⁢
                  
                    
                  
                  )
                
                
                  p
                  (
                  
                    
                      
                        a
                        _
                      
                      
                        
                          <
                          1
                        
                        :
                        
                          
                            k
                            1
                          
                          >
                        
                      
                    
                    ,
                    
                      
                        k
                        1
                      
                      |
                      ...
                    
                  
                  ⁢
                  
                    
                  
                  )
                
              
              ,
              1
            
            }
          
        
      
    
    
      
        (
        31
        )
      
    
  




where the ratio term is the ratio of the conditional probability given in equation (21) evaluated for the current AR filter coefficients (a) drawn by the Gibbs sampler for the current model order (k1) and for the proposed new model order (k2). If k2>k1, then the matrix S must first be resized and then a new sample must be drawn from the Gaussian distribution having the mean vector and covariance matrix defined by equations (22) and (23) (determined for the resized matrix S), to provide the AR filter coefficients (a<1:k2>) for the new model order (k2). If k2<k1 then all that is required is to delete the last (k1−k2) samples of the a vector. If the ratio in equation (31) is greater than one, then this implies that the proposed model order (k2) is better than the current model order whereas if it is less than one then this implies that the current model order is better than the proposed model order. However, since occasionally this will not be the case, rather than deciding whether or not to accept the proposed model order by comparing the model order variable (MO) with a fixed threshold of one, in this embodiment, the model order variable (MO) is compared, in step s5, with a random number which lies between zero and one. If the model order variable (MO) is greater than this random number, then the processing proceeds to step s7 where the model order is set to the proposed model order (k2) and a count associated with the value of k2 is incremented. If, on the other hand, the model order variable (MO) is smaller than the random number, then the processing proceeds to step s9 where the current model order is maintained and a count associated with the value of the current model order (k1) is incremented. The processing then ends.

This model order selection routine is carried out for both the model order of the AR filter model and for the model order of the channel filter model. This routine may be carried out at each Gibbs iteration. However, this is not essential. Therefore, in this embodiment, this model order updating routine is only carried out every third Gibbs iteration.
Simulation Smoother
As mentioned above, in order to be able to draw samples using the Gibbs sampler, estimates of the raw speech samples are required to generate s(n), S and Y which are used in the Gibbs calculations. These could be obtained from the conditional probability density function p(s(n)| . . . ). However, this is not done in this embodiment because of the high dimensionality of S(n). Therefore, in this embodiment, a different technique is used to provide the necessary estimates of the raw speech samples. In particular, in this embodiment, a “Simulation Smoother” is used to provide these estimates. This Simulation Smoother was proposed by Piet de Jong in the paper entitled “The Simulation Smoother for Time Series Models”, Biometrika (1995), vol 82,2, pages 339 to 350. As those skilled in the art will appreciate, the Simulation Smoother is run before the Gibbs Sampler. It is also run again during the Gibbs iterations in order to update the estimates of the raw speech samples. In this embodiment, the Simulation Smoother is run every fourth Gibbs iteration.
In order to run the Simulation Smoother, the model equations defined above in equations (4) and (6) must be written in “state space” format as follows:

{circumflex over (s)}(n)=Ã·{acute over (s)}(n−1)+{circumflex over (e)}(n)

y(n)=hT·{circumflex over (s)}(n−1)+ε(n)  (32)

where




  
    
      A
      ~
    
    =
    
      
        
          [
          
            
              
                
                  a
                  1
                
              
              
                
                  a
                  2
                
              
              
                
                  a
                  3
                
              
              
                ⋯
              
              
                
                  a
                  k
                
              
              
                0
              
              
                ⋯
              
              
                0
              
            
            
              
                1
              
              
                0
              
              
                0
              
              
                ⋯
              
              
                0
              
              
                0
              
              
                ⋯
              
              
                0
              
            
            
              
                0
              
              
                1
              
              
                0
              
              
                ⋯
              
              
                0
              
              
                0
              
              
                ⋯
              
              
                0
              
            
            
              
                ⋮
              
              
                
                  
                
              
              
                
                  
                
              
              
                ⋰
              
              
                
                  
                
              
              
                
                  
                
              
              
                
                  
                
              
              
                
                  
                
              
            
            
              
                0
              
              
                
                  
                
              
              
                
                  
                
              
              
                
                  
                
              
              
                
                  
                
              
              
                
                  
                
              
              
                1
              
              
                0
              
            
          
          ]
        
        rxr
      
      ⁢
      
        
      
      ⁢
      and
    
  




  
    
      
        
          s
          _
        
        ^
      
      ⁢
      
        (
        n
        )
      
    
    =
    
      
        
          
            [
            
              
                
                  
                    
                      s
                      ^
                    
                    ⁡
                    
                      (
                      n
                      )
                    
                  
                
              
              
                
                  
                    
                      s
                      ^
                    
                    ⁡
                    
                      (
                      
                        n
                        -
                        1
                      
                      )
                    
                  
                
              
              
                
                  
                    
                      s
                      ^
                    
                    ⁡
                    
                      (
                      
                        n
                        -
                        2
                      
                      )
                    
                  
                
              
              
                
                  ⋮
                
              
              
                
                  
                    
                      s
                      ^
                    
                    ⁡
                    
                      (
                      
                        n
                        -
                        r
                        +
                        1
                      
                      )
                    
                  
                
              
            
            ]
          
          rx1
        
        ⁢
        
          
        
        ⁢
        
          
            
              e
              _
            
            ^
          
          ⁡
          
            (
            n
            )
          
        
      
      =
      
        
          [
          
            
              
                
                  
                    e
                    ^
                  
                  ⁡
                  
                    (
                    n
                    )
                  
                
              
            
            
              
                0
              
            
            
              
                0
              
            
            
              
                ⋮
              
            
            
              
                0
              
            
          
          ]
        
        rx1
      
    
  



With this state space representation, the dimensionality of the raw speech vectors ({circumflex over (s)}(n)) and the process noise vectors ({circumflex over (e)}(n)) do not need to be N×1 but only have to be as large as the greater of the model orders—k and r. Typically, the channel model order (r) will be larger than the AR filter model order (k). Hence, the vector of raw speech samples ({circumflex over (s)}(n)) and the vector of process noise ({circumflex over (e)}(n)) only need to be rx1 and hence the dimensionality of the matrix Ā only needs to be rxr.
The Simulation Smoother involves two stages—a first stage in which a Kalman filter is run on the speech samples in the current frame and then a second stage in which a “smoothing” filter is run on the speech samples in the current frame using data obtained from the Kalman filter stage. FIG. 5 is a flow chart illustrating the processing steps performed by the Simulation Smoother. As shown, in step s21, the system initialises a time variable t to equal one. During the Kalman filter stage, this time variable is run from t=1 to N in order to process the N speech samples in the current frame being processed in time sequential order. After step s21, the processing then proceeds to step s23, where the following Kalman filter equations are computed for the current speech sample (y(t)) being processed:

w(t)=y(t)−hT{circumflex over (s)}(t)

d(t)=hTP(t)h+σε2

kf(t)=(ÃP(t)h)·d(t)−1

{circumflex over (s)}(t+1)=Ã{circumflex over (s)}(t)+kf(t)·w(t)

L(t)=Ã−kf(t)·hT

P(t+1)=ÃP(t)L(t)T+σe2·I  (33)

where the initial vector of raw speech samples ({circumflex over (s)}(1)) includes raw speech samples obtained from the processing of the previous frame (or if there are no previous frames then s(i) is set equal to zero for i<1); P(1) is the variance of {circumflex over (s)}(1) (which can be obtained from the previous frame or initially can be set to σe2); h is the current set of channel model coefficients which can be obtained from the processing of the previous frame (or if there are no previous frames then the elements of h can be set to their expected values—zero); y(t) is the current speech sample of the current frame being processed and I is the identity matrix. The processing then proceeds to step s25 where the scalar values w(t) and d(t) are stored together with the rxr matrix L(t) (or alternatively the Kalman filter gain vector kf(t) could be stored from which L(t) can be generated). The processing then proceeds to step s27 where the system determines whether or not all the speech samples in the current frame have been processed. If they have not, then the processing proceeds to step s29 where the time variable t is incremented by one so that the next sample in the current frame will be processed in the same way. Once all N samples in the current frame have been processed in this way and the corresponding values stored, the first stage of the Simulation Smoother is complete.

The processing then proceeds to step s31 where the second stage of the Simulation Smoother is started in which the smoothing filter processes the speech samples in the current frame in reverse sequential order. As shown, in step s31 the system runs the following set of smoothing filter equations on the current speech sample being processed together with the stored Kalman filter variables computed for the current speech sample being processed:




  
    
      
        
          
            C
            ⁡
            
              (
              t
              )
            
          
          =
          
            
              σ
              e
              2
            
            ⁡
            
              (
              
                I
                -
                
                  
                    σ
                    e
                    2
                  
                  ⁢
                  
                    U
                    ⁡
                    
                      (
                      t
                      )
                    
                  
                
              
              )
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              η
              _
            
            ⁡
            
              (
              t
              )
            
          
          ~
          
            N
            ⁡
            
              (
              
                0
                ,
                
                  C
                  ⁡
                  
                    (
                    t
                    )
                  
                
              
              )
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            V
            ⁡
            
              (
              t
              )
            
          
          =
          
            
              σ
              e
              2
            
            ⁢
            
              U
              ⁡
              
                (
                t
                )
              
            
            ⁢
            
              L
              ⁡
              
                (
                t
                )
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              r
              _
            
            ⁡
            
              (
              
                t
                -
                1
              
              )
            
          
          =
          
            
              
                h
                _
              
              ⁢
              
                
                  d
                  ⁡
                  
                    (
                    t
                    )
                  
                
                
                  -
                  1
                
              
              ⁢
              
                w
                ⁡
                
                  (
                  t
                  )
                
              
            
            +
            
              
                
                  L
                  ⁡
                  
                    (
                    t
                    )
                  
                
                T
              
              ⁢
              
                
                  r
                  _
                
                ⁡
                
                  (
                  t
                  )
                
              
            
            -
            
              
                
                  V
                  ⁡
                  
                    (
                    t
                    )
                  
                
                T
              
              ⁢
              
                
                  C
                  ⁡
                  
                    (
                    t
                    )
                  
                
                
                  -
                  1
                
              
              ⁢
              
                
                  η
                  _
                
                ⁡
                
                  (
                  t
                  )
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            U
            ⁡
            
              (
              
                t
                -
                1
              
              )
            
          
          =
          
            
              
                h
                _
              
              ⁢
              
                
                  d
                  ⁡
                  
                    (
                    t
                    )
                  
                
                
                  -
                  1
                
              
              ⁢
              
                
                  h
                  _
                
                T
              
            
            +
            
              
                
                  L
                  ⁡
                  
                    (
                    t
                    )
                  
                
                T
              
              ⁢
              
                U
                ⁡
                
                  (
                  t
                  )
                
              
              ⁢
              
                L
                ⁡
                
                  (
                  t
                  )
                
              
            
            +
            
              
                
                  V
                  ⁡
                  
                    (
                    t
                    )
                  
                
                T
              
              ⁢
              
                
                  C
                  ⁡
                  
                    (
                    t
                    )
                  
                
                
                  -
                  1
                
              
              ⁢
              
                V
                ⁡
                
                  (
                  t
                  )
                
              
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              
                e
                _
              
              ~
            
            ⁡
            
              (
              t
              )
            
          
          =
          
            
              
                σ
                e
                2
              
              ⁢
              
                
                  r
                  _
                
                ⁡
                
                  (
                  t
                  )
                
              
            
            +
            
              
                
                  η
                  _
                
                ⁡
                
                  (
                  t
                  )
                
              
              ⁢
              
                
              
              ⁢
              where
            
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              
                e
                _
              
              ~
            
            ⁡
            
              (
              t
              )
            
          
          =
          
            
              [
              
                
                  
                    e
                    ~
                  
                  ⁡
                  
                    (
                    t
                    )
                  
                
                ⁢
                
                  
                
                ⁢
                
                  
                    e
                    ~
                  
                  ⁡
                  
                    (
                    
                      t
                      -
                      1
                    
                    )
                  
                
                ⁢
                
                  
                
                ⁢
                
                  
                    e
                    ~
                  
                  ⁡
                  
                    (
                    
                      t
                      -
                      2
                    
                    )
                  
                
                ⁢
                
                  
                
                ⁢
                ...
                ⁢
                
                  
                
                ⁢
                
                  
                    e
                    ~
                  
                  ⁡
                  
                    (
                    
                      t
                      -
                      r
                      +
                      1
                    
                    )
                  
                
              
              ]
            
            T
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              
                s
                _
              
              ^
            
            ⁡
            
              (
              t
              )
            
          
          =
          
            
              
                A
                ~
              
              ⁢
              
                
                  
                    s
                    _
                  
                  ^
                
                ⁡
                
                  (
                  
                    t
                    -
                    1
                  
                  )
                
              
            
            +
            
              
                
                  
                    e
                    _
                  
                  ^
                
                ⁡
                
                  (
                  t
                  )
                
              
              ⁢
              
                
              
              ⁢
              where
            
          
        
        ⁢
        
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              
                s
                _
              
              ^
            
            ⁡
            
              (
              t
              )
            
          
          =
          
            
              
                [
                
                  
                    
                      s
                      ^
                    
                    ⁡
                    
                      (
                      t
                      )
                    
                  
                  ⁢
                  
                    
                  
                  ⁢
                  
                    
                      s
                      ^
                    
                    ⁡
                    
                      (
                      
                        t
                        -
                        1
                      
                      )
                    
                  
                  ⁢
                  
                    
                  
                  ⁢
                  
                    
                      s
                      ^
                    
                    ⁡
                    
                      (
                      
                        t
                        -
                        2
                      
                      )
                    
                  
                  ⁢
                  
                    
                  
                  ⁢
                  ...
                  ⁢
                  
                    
                  
                  ⁢
                  
                    
                      s
                      ^
                    
                    ⁡
                    
                      (
                      
                        t
                        -
                        r
                        +
                        1
                      
                      )
                    
                  
                
                ]
              
              T
            
            ⁢
            
              
            
            ⁢
            and
          
        
        ⁢
        
          

        
        ⁢
        
          
            
              
                e
                _
              
              ^
            
            ⁡
            
              (
              t
              )
            
          
          =
          
            
              [
              
                
                  
                    e
                    ~
                  
                  ⁡
                  
                    (
                    t
                    )
                  
                
                ⁢
                
                  
                
                ⁢
                0
                ⁢
                
                  
                
                ⁢
                0
                ⁢
                
                  
                
                ⁢
                ...
                ⁢
                
                  
                
                ⁢
                0
              
              ]
            
            T
          
        
      
    
    
      
        (
        34
        )
      
    
  




where n(t) is a sample drawn from a Gaussian distribution having zero mean and covariance matrix C(t); the initial vector r(t=N) and the initial matrix U(t=N) are both set to zero; and s(0) is obtained from the processing of the previous frame (or if there are no previous frames can be set equal to zero). The processing then proceeds to step s33 where the estimate of the process noise ({tilde over (e)}(t)) for the current speech sample being processed and the estimate of the raw speech sample (ŝ(t)) for the current speech sample being processed are stored. The processing then proceeds to step s35 where the system determines whether or not all the speech samples in the current frame have been processed. If they have not, then the processing proceeds to step s37 where the time variable t is decremented by one so that the previous sample in the current frame will be processed in the same way. Once all N samples in the current frame have been processed in this way and the corresponding process noise and raw speech samples have been stored, the second stage of the Simulation Smoother is complete and an estimate of s(n) will have been generated.

As shown in equations (4) and (8), the matrix S and the matrix Y require raw speech samples s(n−N−1) to s(n−N−k+1) and s(n−N−1) to s(n−N−r+1) respectively in addition to those in s(n). These additional raw speech samples can be obtained either from the processing of the previous frame of speech or if there are no previous frames, they can be set to zero. With these estimates of raw speech samples, the Gibbs sampler can be run to draw samples from the above described probability density functions.
Statistical Analysis Unit—Operation
A description has been given above of the theory underlying the statistical analysis unit 21. A description will now be given with reference to FIGS. 6 to 8 of the operation of the statistical analysis unit 21 that is used in the embodiment.
FIG. 6 is a block diagram illustrating the principal components of the statistical analysis unit 21 of this embodiment. As shown, it comprises the above described Gibbs sampler 41, Simulation Smoother 43 (including the Kalman filter 43-1 and smoothing filter 43-2) and model order selector 45. It also comprises a memory 47 which receives the speech samples of the current frame to be processed, a data analysis unit 49 which processes the data generated by the Gibbs sampler 41 and the model order selector 45 and a controller 50 which controls the operation of the statistical analysis unit 21.
As shown in FIG. 6, the memory 47 includes a non volatile memory area 47-1 and a working memory area 47-2. The non volatile memory 47-1 is used to store the joint probability density function given in equation (19) above and the equations for the variances and mean values and the equations for the Inverse Gamma parameters given above in equations (22) to (24) and (27) to (30) for the above mentioned conditional probability density functions for use by the Gibbs sampler 41. The non volatile memory 47-1 also stores the Kalman filter equations given above in equation (33) and the smoothing filter equations given above in equation 34 for use by the Simulation Smoother 43.
FIG. 7 is a schematic diagram illustrating the parameter values that are stored in the working memory area (RAM) 47-2. As shown, the RAM includes a store 51 for storing the speech samples yf (1) to yf (N) output by the analogue to digital converter 17 for the current frame (f) being processed. As mentioned above, these speech samples are used in both the Gibbs sampler 41 and the Simulation Smoother 43. The RAM 47-2 also includes a store 53 for storing the initial estimates of the model parameters (g=0) and the M samples (g=1 to M) of each parameter drawn from the above described conditional probability density functions by the Gibbs sampler 41 for the current frame being processed. As mentioned above, in this embodiment, M is 100 since the Gibbs sampler 41 performs 150 iterations on each frame of input speech with the first fifty samples being discarded. The RAM 47-2 also includes a store 55 for storing W(t), d(t) and L(t) for t=1 to N which are calculated during the processing of the speech samples in the current frame of speech by the above described Kalman filter 43-1. The RAM 47-2 also includes a store 57 for storing the estimates of the raw speech samples (ŝf(t)) and the estimates of the process noise ({tilde over (e)}f(t)) generated by the smoothing filter 43-2, as discussed above. The RAM 47-2 also includes a store 59 for storing the model order counts which are generated by the model order selector 45 when the model orders for the AR filter model and the channel model are updated.
FIG. 8 is a flow diagram illustrating the control program used by the controller 50, in this embodiment, to control the processing operations of the statistical analysis unit 21. As shown, in step s41, the controller 50 retrieves the next frame of speech samples to be processed from the buffer 19 and stores them in the memory store 51. The processing then proceeds to step s43 where initial estimates for the channel model, raw speech samples and the process noise and measurement noise statistics are set and stored in the store 53. These initial estimates are either set to be the values obtained during the processing of the previous frame of speech or, where there are no previous frames of speech, are set to their expected values (which may be zero). The processing then proceeds to step s45 where the Simulation Smoother 43 is activated so as to provide an estimate of the raw speech samples in the manner described above. The processing then proceeds to step s47 where one iteration of the Gibbs sampler 41 is run in order to update the channel model, speech model and the process and measurement noise statistics using the raw speech samples obtained in step s45. These updated parameter values are then stored in the memory store 53.
The processing then proceeds to step s49 where the controller 50 determines whether or not to update the model orders of the AR filter model and the channel model. As mentioned above, in this embodiment, these model orders are updated every third Gibbs iteration. If the model orders are to be updated, then the processing proceeds to step s51 where the model order selector 45 is used to update the model orders of the AR filter model and the channel model in the manner described above. If at step s49 the controller 50 determines that the model orders are not to be updated, then the processing skips step s51 and the processing proceeds to step s53. At step s53, the controller 50 determines whether or not to perform another Gibbs iteration. If another iteration is to be performed, then the processing proceeds to decision block s55 where the controller 50 decides whether or not to update the estimates of the raw speech samples (s(t)). If the raw speech samples are not to be updated, then the processing returns to step s47 where the next Gibbs iteration is run.
As mentioned above, in this embodiment, the Simulation Smoother 43 is run every fourth Gibbs iteration in order to update the raw speech samples. Therefore, if the controller 50 determines, in step s55 that there has been four Gibbs iterations since the last time the speech samples were updated, then the processing returns to step s45 where the Simulation Smoother is run again to provide new estimates of the raw speech samples (s(t)). Once the controller 50 has determined that the required 150 Gibbs iterations have been performed, the controller 50 causes the processing to proceed to step s57 where the data analysis unit 49 analyses the model order counts generated by the model order selector 45 to determine the model orders for the AR filter model and the channel model which best represents the current frame of speech being processed. The processing then proceeds to step s59 where the data analysis unit 49 analyses the samples drawn from the conditional densities by the Gibbs sampler 41 to determine the AR filter coefficients (a), the channel model coefficients (h), the variances of these coefficients and the process and measurement noise variances which best represent the current frame of speech being processed. The processing then proceeds to step s61 where the controller 50 determines whether or not there is any further speech to be processed. If there is more speech to be processed, then processing returns to step S41 and the above process is repeated for the next frame of speech. Once all the speech has been processed in this way, the processing ends.
Data Analysis unit
A more detailed description of the data analysis unit 49 will now be given with reference to FIG. 9. As mentioned above, the data analysis unit 49 initially determines, in step s57, the model orders for both the AR filter model and the channel model which best represents the current frame of speech being processed. It does this using the counts that have been generated by the model order selector 45 when it was run in step s51. These counts are stored in the store 59 of the RAM 47-2. In this embodiment, in determining the best model orders, the data analysis unit 49 identifies the model order having the highest count. FIG. 9a is an exemplary histogram which illustrates the distribution of counts that is generated for the model order (k) of the AR filter model. Therefore, in this example, the data analysis unit 49 would set the best model order of the AR filter model as five. The data analysis unit 49 performs a similar analysis of the counts generated for the model order (r) of the channel model to determine the best model order for the channel model.
Once the data analysis unit 49 has determined the best model orders (k and r), it then analyses the samples generated by the Gibbs sampler 41 which are stored in the store 53 of the RAM 47-2, in order to determine parameter values that are most representative of those samples. It does this by determining a histogram for each of the parameters from which it determines the most representative parameter value. To generate the histogram, the data analysis unit 49 determines the maximum and minimum sample value which was drawn by the Gibbs sampler and then divides the range of parameter values between this minimum and maximum value into a predetermined number of sub-ranges or bins. The data analysis unit 49 then assigns each of the sample values into the appropriate bins and counts how many samples are allocated to each bin. It then uses these counts to calculate a weighted average of the samples (with the weighting used for each sample depending on the count for the corresponding bin), to determine the most representative parameter value (known as the minimum mean square estimate (MMSE)). FIG. 9b illustrates an example histogram which is generated for the variance (σe2) of the process noise, from which the data analysis unit 49 determines that the variance representative of the sample is 0.3149.
In determining the AR filter coefficients (ai for i=i to k), the data analysis unit 49 determines and analyses a histogram of the samples for each coefficient independently. FIG. 9c shows an exemplary histogram obtained for the third AR filter coefficient (a3), from which the data analysis unit 49 determines that the coefficient representative of the samples is −0.4977.
In this embodiment, the data analysis unit 49 outputs the AR coefficients (a) and the AR filter model order (k). The AR filter coefficients (a) are output to both the speech recognition unit 25 and the speech detection unit 61, whereas the AR filter model order (k) is only output to the speech detection unit 61. These parameter values (and the remaining parameter values determined by the data analysis unit 49) are also stored in the RAM 47-2 for use during the processing of the next frame of speech. As mentioned above, the speech detection unit 61 compares the AR filter model order (k) and the AR filter coefficient values with appropriate threshold values, and determines that speech is present within the input signal when the AR filter model order and the AR filter coefficient values exceed these threshold values. When the speech detection unit 61 detects the presence of speech, it outputs an appropriate control signal to the speech recognition unit 25, which causes it to start processing the AR coefficients it receives from the statistical analysis unit 21. Similarly, when the speech detection unit 61 detects the end of speech, it outputs an appropriate control signal to the speech recognition unit 25 which causes it to stop processing the AR coefficients it receives from the statistical analysis unit 21.
As those skilled in the art will appreciate, a technique has been described above which employs a statistical analysis to determine AR coefficients and AR model order which are used by a speech detection unit to detect the presence of speech within an input signal. The technique is more robust and accurate than prior art techniques which compare the energy of the input signal with some threshold value. Further, the statistical analysis techniques described above are also more robust and accurate than prior art techniques which employ maximum likelihood estimators to determine these coefficients. This is because the statistical analysis of each frame uses knowledge obtained from the processing of the previous frame. In addition, with the analysis performed above, the model order for the AR filter model is not assumed to be constant and can vary from frame to frame. In this way, the optimum number of AR filter coefficients can be used to represent the speech within each frame. As a result, the AR filter coefficients output by the statistical analysis unit 21 will more accurately represent the corresponding input speech. Further still, since the underlying process model that is used separates the speech source from the channel, the AR filter coefficients that are determined will be more representative of the actual speech and will be less likely to include distortive effects of the channel. Further still, since variance information is available for each of the parameters, this provides an indication of the confidence of each of the parameter estimates. This is in contrast to maximum likelihood and least squares approaches, such as linear prediction analysis, where point estimates of the parameter values are determined.
ALTERNATIVE EMBODIMENTS
In the above embodiment, the statistical analysis unit was used as a pre-processor for a speech recognition system in order to generate AR coefficients representative of the input speech. The statistical analysis unit was also used to determine the AR filter model order which was used together with the AR coefficients by a speech detection unit to detect the presence of speech within the input signal. As those skilled in the art will appreciate, since both the model order and the values of the AR coefficients will vary depending on whether or not there is speech present within the input signal, the speech detection unit can detect the presence of speech using only the AR filter model order or only the AR coefficient values. However, in the preferred embodiment, both the model order and the AR coefficient values are used, since this allows a more accurate speech detection to be performed. For example, for speech sounds where there is a weak correlation between adjacent speech samples (such as fricative sounds), if only the AR coefficient values are used, then the presence of such fricative sounds may be missed since all the AR filter coefficients may have small values below the corresponding threshold values. Nonetheless, with such fricative sounds, the model order is likely to exceed its threshold value, in which case the speech detection unit can still reliably detect the speech.
In the above embodiments, a speech detection system was described in use together with a speech recognition system. As those skilled in the art will appreciate, the speech detection system described above may be used in any speech processing system to control the initiation and termination of the speech processing operation. For example, it can be used in a speaker verification system or in a speech transmission system in order to control the verification process and the transmission process respectively.
In the above embodiment, the statistical analysis unit was used effectively as a “preprocessor” for both the speech recognition unit and the speech detection unit. As those skilled in the art will appreciate, in an alternative embodiment, a separate preprocessor may be provided as the front end to the speech recognition unit. In this case, the statistical analysis unit would only be used to provide information to the speech detection unit. However, such separate parameterisation of the input speech for the speech recognition unit is not preferred because of the additional processing overhead involved.
In the above embodiment, a speech recognition system was used which used the AR filter coefficients output by the statistical analysis unit. In embodiments where the speech recognition unit does not use AR filter coefficients but uses other spectral based coefficients (such as cepstral coefficients), an appropriate coefficient converter may be used to convert the AR coefficients into the appropriate coefficients for use by the speech recognition unit.
In the above embodiments, Gaussian and Inverse Gamma distributions were used to model the various prior probability density functions of equation (19). As those skilled in the art of statistical analysis will appreciate, the reason these distributions were chosen is that they are conjugate to one another. This means that each of the conditional probability density functions which are used in the Gibbs sampler will also either be Gaussian or Inverse Gamma. This therefore simplifies the task of drawing samples from the conditional probability densities. However, this is not essential. The noise probability density functions could be modelled by Laplacian or student-t distributions rather than Gaussian distributions. Similarly, the probability density functions for the variances may be modelled by a distribution other than the Inverse Gamma distribution. For example, they can be modelled by a Rayleigh distribution or some other distribution which is always positive. However, the use of probability density functions that are not conjugate will result in increased complexity in drawing samples from the conditional densities by the Gibbs sampler.
Additionally, whilst the Gibbs sampler was used to draw samples from the probability density function given in equation (19), other sampling algorithms could be used. For example the Metropolis-Hastings algorithm (which is reviewed together with other techniques in a paper entitled “Probabilistic inference using Markov chain Monte Carlo methods” by R. Neal, Technical Report CRG-TR-93-1, Department of Computer Science, University of Toronto, 1993) may be used to sample this probability density.
In the above embodiment, a Simulation Smoother was used to generate estimates for the raw speech samples. This Simulation Smoother included a Kalman filter stage and a smoothing filter stage in order to generate the estimates of the raw speech samples. In an alternative embodiment, the smoothing filter stage may be omitted, since the Kalman filter stage generates estimates of the raw speech (see equation (33)). However, these raw speech samples were ignored, since the speech samples generated by the smoothing filter are considered to be more accurate and robust. This is because the Kalman filter essentially generates a point estimate of the speech samples from the joint probability density function p(s(n)|a,k,σe2), whereas the Simulation Smoother draws a sample from this probability density function.
In the above embodiment, a Simulation Smoother was used in order to generate estimates of the raw speech samples. It is possible to avoid having to estimate the raw speech samples by treating them as “nuisance parameters” and integrating them out of equation (19). However, this is not preferred, since the resulting integral will have a much more complex form than the Gaussian and Inverse Gamma mixture defined in equation (19). This in turn will result in more complex conditional probabilities corresponding to equations (20) to (30). In a similar way, the other nuisance parameters (such as the coefficient variances or any of the Inverse Gamma, alpha and beta parameters) may be integrated out as well. However, again this is not preferred, since it increases the complexity of the density function to be sampled using the Gibbs sampler. The technique of integrating out nuisance parameters is well known in the field of statistical analysis and will not be described further here.
In the above embodiment, the data analysis unit analysed the samples drawn by the Gibbs sampler by determining a histogram for each of the model parameters and then determining the value of the model parameter using a weighted average of the samples drawn by the Gibbs sampler with the weighting being dependent upon the number of samples in the corresponding bin. In an alterative embodiment, the value of the model parameter may be determined from the histogram as being the value of the model parameter having the highest count. Alternatively, a predetermined curve (such as a bell curve) could be fitted to the histogram in order to identify the maximum which best fits the histogram.
In the above embodiment, the statistical analysis unit modelled the underlying speech production process with a separate speech source model (AR filter) and a channel model. Whilst this is the preferred model structure, the underlying speech production process may be modelled without the channel model. In this case, there is no need to estimate the values of the raw speech samples using a Kalman filter or the like, although this can still be done. However, such a model of the underlying speech production process is not preferred, since the speech model will inevitably represent aspects of the channel as well as the speech. Further, although the statistical analysis unit described above ran a model order selection routine in order to allow the model orders of the AR filter model and the channel model to vary, this is not essential.
In the above embodiments, the speech that was processed was received from a user via a microphone. As those skilled in the art will appreciate, the speech may be received from a telephone line or may have been stored on a recording medium. In this case, the channel model will compensate for this so that the AR filter coefficients representative of the actual speech that has been spoken should not be significantly affected.
In the above embodiments, the speech generation process was modelled as an auto-regressive (AR) process and the channel was modelled as a moving average (MA) process. As those skilled in the art will appreciate, other signal models may be used. However, these models are preferred because it has been found that they suitably represent the speech source and the channel they are intended to model.
In the above embodiments, during the running of the model order selection routine, a new model order was proposed by drawing a random variable from a predetermined Laplacian distribution function. As those skilled in the art will appreciate, other techniques may be used. For example the new model order may be proposed in a deterministic way (ie under predetermined rules), provided that the model order space is sufficiently sampled.

## Claims

1. An apparatus for detecting the presence of speech within an input audio signal, comprising:
a memory for storing a predetermined function which gives, for a given set of audio signal values, a probability density for parameters of a predetermined speech model which is assumed to have generated the set of audio signal values, the probability density defining, for a given set of model parameter values, the probability that the predetermined speech model has those parameter values, given that the speech model is assumed to have generated the set of audio signal values;
means for receiving a set of audio signal values representative of an input audio signal;
means for applying the set of received audio signal values to said stored function to give the probability density for said model parameters for the set of received audio signal values;
means for processing said function with said set of received audio signal values applied to obtain values of said parameters that are representative of said input audio signal; and
means for detecting the presence of speech using said obtained parameter values.

2. An apparatus according to claim 1, wherein said processing means comprises means for drawing samples from said probability density function and means for determining said values of said parameters that are representative of the speech from said drawn samples.

3. An apparatus according to claim 2, wherein said drawing means is operable to draw samples iteratively from said probability density function.

4. An apparatus according to claim 2, wherein said processing means comprises a Gibbs sampler.

5. An apparatus according to claim 2, wherein said processing means is operable to determine a histogram of said drawn samples and wherein said values of said parameters are determined from said histogram.

6. An apparatus according to claim 5, wherein said processing means is operable to determine said values of said parameters using a weighted sum of said drawn samples, and wherein the weighting is determined from said histogram.

7. An apparatus according to claim 1, wherein said receiving means is operable to receive a sequence of sets of signal values representative of an input audio signal and wherein said applying means, processing means and detecting means are operable to perform their function with respect to each set of received audio signal values in order to determine whether or not each set of received signal values corresponds to speech.

8. An apparatus according to claim 7, wherein said processing means is operable to use the values of parameters obtained during the processing of a preceding set of signal values as initial estimates for the values of the corresponding parameters of a current set of signal values being processed.

9. An apparatus according to claim 7, wherein said sets of signal values in said sequence are non-overlapping.

10. An apparatus according to claim 1, wherein said speech model comprises an auto-regressive process model, wherein said parameters include auto-regressive model coefficients and wherein said detecting means is operable to compare the value of at least one of said auto-regressive model coefficients with a prestored threshold value.

11. An apparatus according to claim 10, wherein said detecting means is operable to compare the values of a plurality of said auto-regressive model coefficients with a corresponding plurality of predetermined values.

12. An apparatus according to claim 1, wherein said processing means is operable to vary the number of parameters used to represent the speech within the audio signal values and wherein said detecting means is operable to compare the number of parameters used to represent speech within the audio signal values with a predetermined threshold value, in order to detect the presence of speech within said audio signal.

13. An apparatus according to claim 1, wherein received speech signal values are representative of a speech signal generated by a speech source as distorted by a transmission channel between the speech source and the receiving means; wherein said predetermined function includes a first part having first parameters which models said source and a second part having second parameters which models said channel; wherein said processing means is operable to obtain parameter values of at least said first parameters; and wherein said detecting means is operable to detect the presence of speech within said input audio signal from the obtained values of said first parameters.

14. An apparatus according to claim 13, wherein said function is in terms of a set of raw speech signal values representative of speech generated by said source before being distorted by said transmission channel, wherein the apparatus further comprises second processing means for processing the received set of signal values with initial estimates of said first and second parameters, to generate an estimate of the raw speech signal values corresponding to the received set of audio signal values and wherein said applying means is operable to apply said estimated set of raw speech signal values to said function in addition to said set of received signal values.

15. An apparatus according to claim 14, wherein said second processing means comprises a simulation smoother.

16. An apparatus according to claim 14, wherein said second processing means comprises a Kalman filter.

17. An apparatus according to claim 13, wherein said second part is a moving average model and wherein said second parameters comprise moving average model coefficients.

18. An apparatus according to claim 1, further comprising means for evaluating said probability density function for the set of received audio signal values using one or more derived samples of parameter values for different numbers of parameter values, to determine respective probabilities that the predetermined speech model has those parameter values and wherein said processing means is operable to process at least some of said derived samples of parameter values and said evaluated probabilities to determine said values of said parameters that are representative of the audio speech signal.

19. A speech recognition system comprising:
an apparatus according to claim 1 for detecting the presence of speech within an input signal; and
recognition processing means for performing a recognition processing of the portion of the input signal corresponding to speech.

20. A speech processing system comprising:
an apparatus according to claim 1 for detecting the presence of speech within an input audio signal; and
means for processing the portion of the input audio signal corresponding to speech.

21. A method of detecting the presence of speech within an input audio signal, comprising:
storing a predetermined function which gives, for a given set of audio signal values, a probability density for parameters of a predetermined speech model which is assumed to have generated the set of audio signal values, the probability density defining, for a given set of model parameter values, the probability that the predetermined speech model has those parameter values, given that the speech model is assumed to have generated the set of audio signal values;
receiving a set of audio signal values representative of an input audio signal at a receiver;
applying the set of received audio signal values to said stored function to give the probability density for said model parameters for the set of received audio signal values;
processing said function with said set of received audio signal values applied to obtain values of said parameters that are representative of said input audio signal; and
detecting the presence of speech using said obtained parameter values.

22. A method according to claim 21, wherein said processing step comprises the steps of drawing samples from said probability density function and determining said values of said parameters that are representative of the speech from said drawn samples.

23. A method according to claim 22, wherein said drawing step draws samples iteratively from said probability density function.

24. A method according to claim 22, wherein said processing step uses a Gibbs sampler.

25. A method according to claim 22, wherein said processing step determines a histogram of said drawn samples and wherein said values of said parameters are determined from said histogram.

26. A method according to claim 25, wherein said processing step determines said values of said parameters using a weighted sum of said drawn samples, and wherein the weighting is determined from said histogram.

27. A method according to claim 21, wherein said receiving step receives a sequence of sets of signal values representative of an input audio signal and wherein said applying step, processing step and detecting step are performed on each set of received audio signal values in order to determine whether or not each set of received signal values corresponds to speech.

28. A method according to claim 27, wherein said processing step uses the values of parameters obtained during the processing of a preceding set of signal values as initial estimates for the values of the corresponding parameters of a current set of signal values being processed.

29. A method according to claim 27, wherein said sets of signal values in said sequence are non-overlapping.

30. A method according to claim 21, wherein said speech model comprises an auto-regressive process model, wherein said parameters include auto-regressive model coefficients and wherein said detecting step compares the value of at least one of said auto-regressive model coefficients with a pre-stored threshold value.

31. A method according to claim 30, wherein said detecting step compares the values of a plurality of said auto-regressive model coefficients with a corresponding plurality of predetermined values.

32. A method according to claim 21, wherein said processing step varies the number of parameters used to represent the speech within the audio signal values and
wherein said detecting step compares the number of parameters used to represent speech within the audio signal values with a predetermined threshold value, in order to detect the presence of speech within said audio signal.

33. A method according to claim 21, wherein received speech signal values are representative of a speech signal generated by a speech source as distorted by a transmission channel between the speech source and the receiver; wherein said predetermined function includes a first part having first parameters which models said source and a second part having second parameters which models said channel; wherein said processing step obtains parameter values of at least said first parameters; and wherein said detecting step detects the presence of speech within said input audio signal from the obtained values of said first parameters.

34. A method according to claim 33, wherein said function is in terms of a set of raw speech signal values representative of speech generated by said source before being distorted by said transmission channel, wherein the apparatus further comprises a second processing step of processing the received set of signal values with initial estimates of said first and second parameters, to generate an estimate of the raw speech signal values corresponding to the received set of audio signal values and wherein said applying step applies said estimated set of raw speech signal values to said function in addition to said set of received signal values.

35. A method according to claim 34, wherein said second processing step uses a simulation smoother.

36. A method according to claim 34, wherein said second processing step uses a Kalman filter.

37. A method according to claim 33, wherein said second part is a moving average model and wherein said second parameters comprise moving average model coefficients.

38. A method according to claim 21, further comprising the step of evaluating said probability density function for the set of received audio signal values using one or more derived samples of parameter values for different numbers of parameter values, to determine respective probabilities that the predetermined speech model has those parameter values and wherein said processing step processes at least some of said derived samples of parameter values and said evaluated probabilities to determine said value of said parameters that are representative of the audio speech signal.

39. A speech recognition method comprising:
a method according to claim 21 for detecting the presence of speech within an input signal; and
performing a recognition processing of the portion of the input signal corresponding to speech.

40. A speech processing method comprising:
a method according to claim 21 for detecting the presence of speech within an input audio signal; and
processing the portion of the input audio signal corresponding to speech.

41. An apparatus for detecting the presence of speech within an input audio signal, comprising:
a memory operable to store a predetermined function which gives, for a given set of audio signal values, a probability density for parameters of a predetermined speech model which is assumed to have generated the set of audio signal values, the probability density defining, for a given set of model parameter values, the probability that the predetermined speech model has those parameter values, given that the speech model is assumed to have generated the set of audio signal values;
a receiver operable to receive a set of audio signal values representative of an input audio signal;
an applicator operable to apply the set of received audio signal values to said stored function to give the probability density for said model parameters for the set of received audio signal values;
a processor operable to process said function with said set of received audio signal values applied to obtain values of said parameters that are representative of said input audio signal; and
a detector operable to detect the presence of speech using said obtained parameter values.

42. An apparatus according to claim 41, wherein said processor comprises a sampler operable to draw samples from said probability density function and a determiner operable to determine said values of said parameters that are representative of the speech from said drawn samples.

43. An apparatus according to claim 42, wherein said processor comprises a Gibbs sampler.

44. An apparatus according to claim 43, wherein said processor is operable to determine a histogram of said drawn samples and wherein said values of said parameters are determined from said histogram.

45. An apparatus according to claim 44, wherein said processor is operable to determine said values of said parameters using a weighted sum of said drawn samples, and wherein the weighting is determined from said histogram.

46. An apparatus according to claim 41, wherein said receiver is operable to receive a sequence of sets of signal values representative of an input audio signal and wherein said applicator, processor and detector are operable to perform their function with respect to each set of received audio signal values in order to determine whether or not each set of received signal values corresponds to speech.

47. An apparatus according to claim 46, wherein said processor is operable to use the values of parameters obtained during the processing of a preceding set of signal values as initial estimates for the values of the corresponding parameters of a current set of signal values being processed.

48. An apparatus according to claim 41, wherein said speech model comprises an auto-regressive process model, wherein said parameters include auto-regressive model coefficients and wherein said detector is operable to compare the value of at least one of said auto-regressive model coefficients with a prestored threshold value.

49. An apparatus according to claim 41, wherein said processor is operable to vary the number of parameters used to represent the speech within the audio signal values and wherein said detector is operable to compare the number of parameters used to represent speech within the audio signal values with a predetermined threshold value, in order to detect the presence of speech within said audio signal.

50. An apparatus according to claim 41, wherein received audio signal values are representative of a speech signal generated by a speech source as distorted by a transmission channel between the speech source and the receiver, wherein said predetermined function includes a first part having first parameters which models said source and a second part having second parameters which models said channel, wherein said processor is operable to obtain parameter values of at least said first parameters, and wherein said detector is operable to detect the presence of speech within said input audio signal from the obtained values of said first parameters.

51. An apparatus according to claim 41, wherein said function is in terms of a set of raw speech signal values representative of speech generated by said source before being distorted by said transmission channel, wherein the apparatus further comprises a second processor operable to process the received set of signal values with initial estimates of said first and second parameters, to generate an estimate of the raw speech signal values corresponding to the received set of audio signal values and wherein said applicator is operable to apply said estimated set of raw speech signal values to said function in addition to said set of received signal values.

52. An apparatus according to claim 41, further comprising an evaluator operable to evaluate said probability density function for the set of received audio signal values using one or more derived samples of parameter values for different numbers of parameter values, to determine respective probabilities that the predetermined speech model has those parameter values and wherein said processor is operable to process at least some of said derived samples of parameter values and said evaluated probabilities to determine said values of said parameters that are representative of the audio speech signal.

53. A speech recognition system comprising:
a receiver operable to receive an input signal representative of an audio signal;
a memory operable to store a predetermined function which gives, for a given set of audio signal values, a probability density for parameters of a predetermined speech model which is assumed to have generated the set of audio signal values, the probability density defining, for a given set of model parameter values, the probability that the predetermined speech model has those parameter values, given that the speech model is assumed to have generated the set of audio signal values;
an applicator operable to apply a set of audio signal values representative of the input signal to said stored function to give the probability density for said model parameters for the set of audio signal values;
a processor operable to process said function with said set of audio signal values applied to obtain values of said parameters that are representative of said input signal;
a detector operable to detect the presence of speech using said obtained parameter values; and
a recognition processor operable to perform a recognition processing of the portion of the input signal corresponding to speech.

54. A speech processing system comprising:
a receiver operable to receive an input audio signal;
a memory operable to store a predetennined function which gives, for a given set of audio signal values, a probability density for parameters of a predetermined speech model which is assumed to have generated the set of audio signal values, the probability density defining, for a given set of model parameter values, the probability that the predetermined speech model has those parameter values, given that the speech model is assumed to have generated the set of audio signal values;
an applicator operable to apply a set of audio signal values representative of the input audio signal to said stored function to give the probability density for said model parameters for the set of audio signal values;
a first processor operable to process said function with said set of audio signal values applied to obtain values of said parameters that are representative of said input audio signal;
a detector operable to detect the presence of speech using said obtained parameter values; and
a second processor operable to process the portion of the input audio signal corresponding to speech.

55. A computer readable medium storing computer executable instructions for causing a programmable computer device to carry out a method of detecting the presence of speech within an input audio signal, the instructions comprising instructions for:
storing a predetermined function which gives, for a given set of audio signal values, a probability density for parameters of a predetermined speech model which is assumed to have generated the set of audio signal values, the probability density defining, for a given set of model parameter values, the probability that the predetermined speech model has those parameter values, given that the speech model is assumed to have generated the set of audio signal values;
receiving a set of audio signal values representative of an input audio signal at a receiver;
applying the set of received audio signal values to said stored function to give the probability density for said model parameters for the set of received audio signal values;
processing said function with said set of received audio signal values applied to obtain values of said parameters that are representative of said input audio signal; and
detecting the presence of speech using said obtained parameter values.