 import Navi
 import MonkeyKing
 import Ruler
+import AudioBot
 
 final class ConversationViewController: BaseViewController {
 


            messageToolbar.voiceRecordBeginAction = { [weak self] messageToolbar in

                YepAudioService.sharedManager.shouldIgnoreStart = false

                if let strongSelf = self {

                    strongSelf.view.addSubview(strongSelf.waverView)

                    strongSelf.swipeUpPromptLabel.text = NSLocalizedString("Swipe Up to Cancel", comment: "")
                    strongSelf.swipeUpView.hidden = false
                    strongSelf.view.bringSubviewToFront(strongSelf.swipeUpView)
                    strongSelf.view.bringSubviewToFront(strongSelf.messageToolbar)
                    strongSelf.view.bringSubviewToFront(strongSelf.moreMessageTypesView)

                    let audioFileName = NSUUID().UUIDString

                    strongSelf.waverView.waver.resetWaveSamples()
                    strongSelf.samplesCount = 0

                    if let fileURL = NSFileManager.yepMessageAudioURLWithName(audioFileName) {

                        YepAudioService.sharedManager.beginRecordWithFileURL(fileURL, audioRecorderDelegate: strongSelf)

                        YepAudioService.sharedManager.recordTimeoutAction = { [weak self] in

                            hideWaver()

                            self?.sendAudio()
                        }

                        YepAudioService.sharedManager.startCheckRecordTimeoutTimer()
                    }

                    self?.trySendInstantMessageWithType(.Audio)
                }
            }

            messageToolbar.voiceRecordEndAction = { [weak self] messageToolbar in

                YepAudioService.sharedManager.shouldIgnoreStart = true

                hideWaver()

                let interruptAudioRecord: () -> Void = {
                    YepAudioService.sharedManager.endRecord()
                    YepAudioService.sharedManager.recordTimeoutAction = nil


                interruptAudioRecord()

                if let fileURL = YepAudioService.sharedManager.audioFileURL, audioSamples = waverView.waver.compressSamples() { {
                    self?.sendAudioWithURL(fileURL, compressedDecibelSamples: audioSamples)
                }
                 */
            }

            messageToolbar.voiceRecordCancelAction = { messageToolbar in
