 
      - parameter error: The error that occurred.
      */
-    private func didReceiveError(error: SpeechToTextError) {
+    private func onError(error: SpeechToTextError) {
         state = .Listening
         let error = createError(SpeechToTextConstants.domain, description: error.error)
         failure?(error)

        }

        switch response {
        case .State(let state): didReceiveState(state)
        case .Results(let wrapper): didReceiveResults(wrapper)
        case .Error(let error): didReceiveError(error)
        }
    }



     - parameter text: The text payload from Speech to Text.
     */
    func onText(text: String) {
        guard let response = SpeechToTextGenericResponse.parseResponse(text) else {
            let description = "Could not serialize a generic text response to an object."
            failure?(createError(SpeechToTextConstants.domain, description: description))
