 
     init(manager: WebSocketManager) {
         self.manager = manager
+        print("initialized StreamAudioToWatson")
     }
 
     func captureOutput(

            session.addOutput(output)
        }

        session.startRunning()

        let stopRecording = {
            self.session?.stopRunning()
            manager.writeString(stop)
        }

        return stopRecording
    }
}

            completionHandler(nil, error)
        }

        print("6")

        manager.writeString(start)

        print("7")

        session = AVCaptureSession()
        guard let session = session else {
            return { }
        }

        print("8")

        let microphoneDevice = AVCaptureDevice.defaultDeviceWithMediaType(AVMediaTypeAudio)
        let microphoneInput = try? AVCaptureDeviceInput(device: microphoneDevice)
        if session.canAddInput(microphoneInput) {
            session.addInput(microphoneInput)
        }

        print("9")

        let output = AVCaptureAudioDataOutput()
        let queue = dispatch_queue_create("sample buffer_delegate", DISPATCH_QUEUE_SERIAL)
