finish()
Stops accepting new audio and finishes processing on the audio input that has already been accepted.
Declaration
func finish()Discussion
For audio buffer–based recognition, recognition does not finish until this method is called, so be sure to call it when the audio source is exhausted.