/// <summary> /// Allocate the resources needed for the recognizer. Note this method make take some time to complete. This method /// should only be called when the recognizer is in the deallocated state. /// throws IllegalStateException if the recognizer is not in the DEALLOCATED state /// </summary> public void Allocate() { CheckState(State.Deallocated); SetState(State.Allocating); _decoder.Allocate(); SetState(State.Allocated); SetState(State.Ready); }