Speech processing method and apparatus, and recording medium

Abstract: The invention intends to successively extract a proper speech zone from a speech inputted in such a fashion that noise is mixed in a speech to be recognized, and to remove noise from the detected speech zone. To this end, a noise position is estimated from an input waveform, a speech zone is detected from a speech inputted subsequently by using power information of a speech at the estimated noise position, and noise is removed from the speech in the detected speech zone by using spectrum information of the speech at the estimated noise position. Further, the estimated noise zone is updated as appropriate by using a result of comparison between the power information of the input speech and the power information of the speech in the estimated noise zone so that the noise position is always properly estimated.

Description: BACKGROUND OF THE INVENTION Field of the Invention The present invention relates to the art of inputting information using the speech recognition technology. The present invention relates to the art of producing a speech suitable for speech recognition from an input speech. The present invention relates to the art of extracting necessary information from an input speech. The present invention relates to the art of processing a speech mixed with noise. Description of the Related Art An interactive system for inputting information based on recognition of a speech uttered by a user and carrying out a process corresponding to the contents of the input information, e.g., outputting a response speech, has been proposed. Also, in consideration of that an input speech is spoken under noise environment, it has been thought to improve a detection rate of user speaking zones or a speech recognition rate by using noise data. General methods of acquiring noise data are below. (1) A method of preparing several speech input devices, placing one of speech input devices near the user's mouth and the others at places remote from the user's mouth, and acquiring a user speech and noises by the separate input devices at the same time. (2) A method of preparing a noise training mode to inhibit the user from speaking, and taking in only noise before the user speaks. The method (1) is advantageous in acquiring noise data in real time, but the user cannot use a plurality of speech input devices at a time in many cases. In particular, personal computers becoming increasingly common in these days each have only one microphone terminal, and therefore a system employing the method (1) has a difficulty in finding widespread use. The method (2) has such a disadvantage that if sudden or peculiar noise is taken in during the noise training mode, noise data different from that produced in actual environment is held, and therefore all results of subsequent speech recognition are affected. Also, if noise taken in during the noise training mode differs from actual noise, an adverse effect acts on results of speech recognition. In addition, a noise training step is redundant work for the user. The document US 4 696 040 discloses a method of detecting speech zones based on energy thresholds. According to one aspect, the present invention provides a method for detecting a speaking time zone in a sound signal, the method comprising the steps of: estimating a noise position at which sound power is minimum in sound data of a predetermined certain zone; extracting power information of the sound at said estimated noise position; and detecting a speaking zone from sound data in another certain zone next to said certain zone, by using said extracted power information. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a chart for explaining an input speech. Fig. 2 is a functional block diagram of an apparatus according to the present invention. Fig. 3 is a flowchart of speech processing according to the present invention. Fig. 4 is a diagram showing a hardware configuration of the apparatus according to the present invention. DESCRIPTION OF THE PREFERRED EMBODIMENTS Fig. 1 is a chart for explaining a manner of estimating a noise zone. Considering that environmental noise always exists on the background of the user, an input waveform 100 taken in from a speech input device can be regarded as the simple sum of a user speech and the environmental noise. If there is a moment at which the user speaks nothing, data (input waveform) taken in at that moment represents the environmental noise itself. It is therefore required to capture the moment at which the user speaks nothing. Because of such an expectation that the user speaks nothing once per several seconds for breathing or other reason, the moment at which the user speaks nothing can be found by seeking a position where the power of the observed waveform taken in for a certain period of time is minimum. This position is referred as noise position. Fig. 2 is a functional block diagram of an apparatus according to the present invention. An embodiment of the present invention will now be described with reference to Fig. 2. A speech response device 109 receives a speech waveform from a speech input device 101 such as a microphone, and outputs a speech waveform from a speech output device 102 such as a loudspeaker. This arrangement enables the user to dialogue with the speech response device 109 by speech. The speech input device 101 and the speech output device 102 may be provided in any other terminal connected to the speech response device 109 via, e.g., a public line or LAN. With such a connection, a response system using the apparatus of the present invention can be utilized in telephones, etc. The observed waveform inputted from the speech input device 101 is sent to a speech zone detecting portion 105 and an input waveform memory 103. The input waveform memory 103 stores speech data in length corresponding to the latest certain period of time; for example, speech waveform data taken in during a predetermined certain zone. The term "certain zone" means a period from the start of inputting of a speech to a point of change to a first not-speaking zone, or a period from a point of change to one detected not-speaking zone to a point of change to the next not-speaking zone, and includes waveforms in both the not-speaking zone and the speaking zone. A noise zone estimating portion 104 estimates, from the speech waveform stored in the input waveform memory 103, a zone having minimum power and thereabout, e.g., a period of 0.1 second with a minimum power point being at the center, as a non-speech zone (noise zone). Then, the noise zone estimating portion 104 sends the power resulted from the waveform in the estimated non-speech zone to the speech zone detecting portion 105, and also sends the power spectrum of the waveform in the same zone to a speech recognizing portion 106. Here, the power and the power spectrum in the estimated non-speech zone, which are both sent from the noise zone estimating portion 104, may be average data calculated respectively by dividing the power and the power spectrum in the estimated non-speech zone by the number of frames in the same zone. Further, the noise zone estimating portion 104 calculates and holds a speech zone cutting-out threshold that is obtained, for example, by multiplying the input power in the estimated not-speech zone by a preset factor. The speech zone detecting portion 105 performs a Power Subtraction process in which the input waveform entered from the speech input device 101 in real time is determined to be a waveform in a speech zone when the power of the input waveform is larger than the speech zone cutting-out threshold obtained from the noise power estimated by the noise zone estimating portion 104, and the above result continues for a certain period of time. The input waveform determined to be present in the speech zone by the Power Subtraction process is sent to the speech recognizing portion 106. The speech recognizing portion 106 performs a Spectral Subtraction process in which the estimated noise power spectrum obtained in the noise zone estimating portion 104 is subtracted from the power spectrum of the input waveform in the speech zone sent from the speech zone detecting portion 105. With the Spectral Subtraction process, the power spectrum of only the speech is calculated from the observed power spectrum containing both the speech and noise in a mixed manner. Speech recognition is then carried out by matching the speech power spectrum, which is cleaned by removal of the noise therefrom, with speech dictionary data (acoustic models). A recognition result is sent to a dialogue sentence generating portion 107. The dialogue sentence generating portion 107 generates a text of a suitable dialogue (response) sentence corresponding to the recognition result of the user speech. The generated text of the dialogue sentence is sent to a speech synthesis portion 108 for conversion into a speech waveform. The speech waveform is sent to the speech output device 102 such as a loudspeaker. A hardware configuration of the apparatus according to the present invention will be described below with reference to Fig. 4. A CPU 1 controls and executes various processing in accordance with a control program stored in an MEM 2 or an external storage 3. The MEM 2 is a storage which is provided in the apparatus of the present invention and comprises a ROM and a RAM. The MEM 2 stores various parameters, speech recognition dictionary data (acoustic models), text information outputted in response to the recognition results, a table of correspondence between the acoustic models and text information, the control program, and message data which are employed in the processing executed according to the present invention, and also includes a working area. The external storage 3 is a recording medium capable of being loaded into the apparatus of the present invention, such as a CD-ROM, CD-R, FD and MO disk. The data stored in the MEM 2 may be downloaded from the external storage 3. A communication I/F 4 executes control for enabling information to be transmitted to and received from another terminal via any communication means such as a public line or LAN. A display unit 5 is in the form of a CRT, LCD or the like, and displays a screen for prompting the user to enter a speech, the recognition result, or an output screen corresponding to the recognition result. A speech input device 6 is a microphone, and a speech output device 7 is a loudspeaker. A microphone and a loudspeaker provided in another terminal connected via the communication I/F 4 may be used respectively as the speech input device 6 and the speech output device 7. A keyboard 8 includes a ten-key pad for entering numeral values and other keys for providing various instructions. A bus 9 serves to transmit and receive data between the various components. Fig. 3 is a flowchart of the entire processing according to the present invention. The processing is executed by the CPU 1 in accordance with the control program stored in the MEM 2 or the external storage 3. An extension number guidance system for executing speech recognition of the name spoken by the user and informing the user of the extension number to the spoken name by outputting the number in speech will be described below, by way of example, with reference to the flowchart. Also, the following description will be made on an example in which the speech cutting-out threshold is changed and the speech waveform is modified by setting minimum power and thereabout of the input waveform, which corresponds to a user speech in the latest one speaking zone, to noise power. Upon start-up of the system, a default value is set in a "estimated noise" parameter storing portion inside the MEM 2 (S201). The default value set in this step is zero, for example, and is used for cutting out the first speaking zone after the user has started inputting a speech (i.e., for the Power Subtraction process). The control flow then enters a loop waiting for a phone call from the user (S202). If it is determined upon detection of a calling signal that a phone call is placed from the user, guidance for prompting the user to speak the name is read out of the MEM 2 and outputted (S203). The value in an "estimated noise"' parameter storing portion inside the MEM 2 is then initialized (S204). The value used for the initialization in this step is a preset value stored in the MEM 2, and is given by, e.g., a maximum power value that is expected to be inputted. After the "estimated noise" parameter and the "estimated noise"' parameter in the MEM 2 are both decided, a value between the maximum power and "estimated noise" parameters at a level corresponding to 80 % from the smaller parameter is calculated as a threshold K for use in cutting out a speech zone. In other words, a difference between the two parameters is calculated, and the calculated difference is multiplied by 0.8. The resulting product is added to the smaller parameter, and a value of the resulting sum is stored in the MEM 2 (S204). A value of the threshold K is not limited to 80 %, and can be selected appropriately based on experimental results, environment in use, etc. The value of the threshold K, however, should not be in excess of 100 %. Then, a speech is taken in for a certain period of time (about 10 ms) (S205), and the power of the taken-in speech is compared with the power of the "estimated noise"' (S206). If it is determined in S206 that the power of the taken-in speech is smaller than the power of the "estimated noise"', the value in the "estimated noise"' parameter storing portion inside the MEM 2 is updated to the value of the speech power taken in step S205 (S207). Subsequently, speech recognition is performed (S208) after executing the Power Subtraction process by using the speech cutting-out threshold K stored in the MEM 2 and then modifying the input waveform through the Spectral Subtraction process. If it is determined that the input waveform taken in at that time is smaller than the threshold K and the speech is ended, the speech recognition is ended with the waveform so far inputted (S209), and the value of the "estimated noise"' parameter is put in the "estimated noise" parameter storing portion inside the MEM 2 (S210). The extension number stored in the MEM 2 corresponding to a character string of the name, which is resulted from the speech recognition in S208, is read out of the MEM 2 and outputted to be informed to the user (S211). If the end of the speech zone is not determined in S209 and the speech recognition is not yet ended, the process of taking in a speech is performed again (S205). The above-described processing is repeated until the user cuts the phone (S212). With the process of S210, the "estimated noise" parameter in the latest one speaking zone can be used for recognition of the speech waveform next inputted. As an alternative, the "estimated noise" parameter (noise power) may be derived before inputting of a speech to be recognized. In this case, guidance for indicating a message "Please speak something for five seconds from now in order for the system to take in your speech" is read out of the MEM 2 and outputted between steps S202 and S203, followed by taking in a speech for five seconds. After the elapse of five seconds, taking-in of the speech is ended and a position where power is minimum in the observed waveform taken in at that time is sought. The minimum power and the spectrum information around that position are stored in the MEM 2 as noise power and noise spectrum information, respectively. The control flow then goes to step S203. Subsequently, the processing in steps S205 to S207 is performed using the noise power obtained in the above-described steps to execute the Power Subtraction process for cutting out only a zone containing the speech from the observed waveform taken in at that time. The Spectral Subtraction process is then executed using both the cut-out waveform and the noise spectrum information, thereby modifying the cut-out waveform into a clean waveform free from noise (S208). The process of removing noise with the Spectral Subtraction process in this step is performed in a like manner as described above by using the spectrum information that was derived from the waveform, from which the "estimated noise" parameter was also obtained, and has been stored in the MEM 2. Each time when the "estimated noise" parameter is updated in S207, the spectrum information corresponding to the position, at which the noise power used for update is obtained, is also held in the MEM 2. The spectrum information is stored in the MEM 2 in step S210 for the Spectral Subtraction process. The thus-stored waveform is then used for executing the speech recognition (S208). With the above method, the speech recognition can be performed using the noise generated at the time when the user utters a speech. Therefore, if the user utters a speech for a time shorter than five seconds and only noise is inputted within a part of that period, a high hit rate in the speech recognition is expected. While, in the flowchart of Fig. 3, the power value and the spectrum information for use in the Power Subtraction process and the Spectral Subtraction process are obtained by seeking minimum power in one speaking zone and employing the waveform around the position providing the minimum power as a noise waveform, the present invention is not limited to the illustrated embodiment. For example, it is also possible to always monitor minimum power in the latest speech for a preset length of several seconds, and to set the waveform around the position providing the minimum power to a noise waveform. In this case, a minimum value in the waveform for the latest several seconds can be always sought, for example, by providing a memory area, in which stored data makes a round for the preset several seconds, in the MEM 2, writing waveform power in the memory area whenever a waveform is taken in, and observing a minimum value in the memory area. Also, in the flowchart of Fig. 3, the extension number is read and outputted, as one example of processing, in speech or characters to be informed to the user in S211. On that occasion, however, automatic calling may be issued in accordance with the read extension number for transferring the phone call from the user. In this case, the processing may be modified such that if the phone call is not answered at the transferred party for a certain period of time, the transfer is canceled and the control flow returns to S203 for asking another person's name. Further, while the present invention has been described, by way of example, in connection with an extension relaying system operating in response to phone calls from users, the present invention is not limited to the illustrated embodiment. The present invention can be implemented in any applications by preparing information to be stored in the MEM 2 beforehand (i.e., information outputted in accordance with a code of the recognition result) such as used for floor guidance at the reception of a building, traffic guidance until the destination, and outputting of speech, characters and/or images in response to a speech input from users.

Claims: A method for detecting a speaking time zone in a sound signal, the method comprising the steps of: estimating a noise position at which sound power is minimum in sound data of a predetermined certain zone; extracting power information of the sound at said estimated noise position; and detecting a speaking zone from sound data in another certain zone next to said certain zone, by using said extracted power information. A method according to claim 1, wherein said noise position is estimated for each certain zone. A method according to claim 1 or 2, wherein said certain zone is from the start of inputting of a sound data to a point of finishing speaking zone. A method according to claim 1, wherein said certain zone includes one speaking zone and one not-speaking zone. A method according to any preceding claim, wherein a zone in which power exceeds a threshold defined between said extracted power information and a predetermined value is detected as said speaking zone. A method according to any preceding claim, wherein said extracted power information is compared with power information of a sound data inputted in said next certain zone, and power information smaller in value than said extracted power information is set as the power information extracted from said next certain zone. A method according to any preceding claim, wherein spectrum information of the sound data at said estimated noise position is extracted, and noise is removed from the sound data in said detected speaking zone by using said extracted spectrum information. A method according to claim 7, wherein sound data resulted from removing the noise is subjected to speech recognition. A method according to any preceding claim, wherein the sound data is input via a telephone line. A method according to any of claims 1 to 7, wherein the sound data in said detected speaking zone is subjected to speech recognition. A method according to claim 10, wherein information corresponding to a result of said speech recognition is output. An apparatus for detecting a speaking time zone in a sound signal, the apparatus comprising: noise position estimating means (104) for estimating a noise position at which sound power is minimum in a sound data of a predetermined certain zone; power information extracting means (104) for extracting power information of the sound at said estimated noise position; and speaking zone detecting means (105) for detecting a speaking zone from a sound data in another certain zone next to said certain zone, by using said extracted power information. An apparatus according to claim 12, wherein said noise position estimating means (104) is operable to estimate said noise position for each certain zone. An apparatus according to claim 12 or 13, wherein said certain zone is from the start of inputting of a sound data to a point of finishing speaking zone. An apparatus according to any of claims 12 to 14, wherein said certain zone includes one speaking zone and one not-speaking zone. An apparatus according to any of claims 12 to 15, wherein said speaking zone detecting means (105) is operable to detect, as said speaking zone, a zone in which power exceeds a threshold defined between said extracted power information and a predetermined value. An apparatus according to any of claims 12 to 16, further comprising power comparing means (104) for comparing said extracted power information with power information of a sound data input in said next certain zone, and power information updating means (104) for setting power information smaller in value than said extracted power information, as the power information extracted from said next certain zone, to update the power information extracted by said power information extraction means. An apparatus according to claim 17, wherein said speaking zone detecting means (105) is operable to detect a speaking zone by using the power information updated by said power information updating means. An apparatus according to any of claims 12 to 18, further comprising spectrum information extracting means (104) for extracting spectrum information of the sound data at said estimated noise position, and noise removing means (105) for removing noise from the sound data in said detected speaking zone by using said extracted spectrum information. An apparatus according to claim 19, further comprising speech recognising means (106) for recognising sound data resulted from removing the noise. An apparatus according to any of claims 12 to 20, comprising an input (101) for receiving said sound data via a telephone line. An apparatus according to any of claims 12 to 19, further comprising speech recognising means (106) for recognising the speech in said detected speaking zone. An apparatus according to claim 22, further comprising information outputting means (102) for outputting information corresponding to a result of said speech recognition. A storage medium storing processor implementable instructions for controlling a processor to implement the method of any of claims 1 to 11. Processor implementable instructions for controlling a processor to implement the method of any of claims 1 to 11.

Inventors: KOMORI YASUHIRO, KOSAKA TETSUO, NAKAGAWA KENICHIRO, KOMORI, YASUHIRO, KOSAKA, TETSUO, NAKAGAWA, KENICHIRO
Applicants: CANON KK, CANON KABUSHIKI KAISHA
Application year: 1999
Main classification: G10L15
IPC codes: G10L15, G10L21