 
      - parameter state: The state of the Speech to Text recognition request.
      */
-    private func onState(state: SpeechToTextState) {
+    private func onStateDelegate(state: SpeechToTextState) {
         if self.state == .ReceivingResults && state.state == "listening" {
             self.state = .Listening
             operations.suspended = false

        reconnecting. If this error represents a successful disconnection, then it is ignored.
        Otherwise, the error is returned to the client through this instance's `failure` function.
     */
    func onDisconnect(error: NSError?) {
        state = .Disconnected
        operations.suspended = true
        if isAuthenticationFailure(error) {

            return nil
        }
        super.init(url: url)
        self.onConnect = onConnectDelegate
        self.onDisconnect = onDisconnectDelegate
        self.onData = onDataDelegate
        self.onText = onTextDelegate
    }

    /**
