         if let audioPlayer = YepAudioService.sharedManager.audioPlayer where audioPlayer.playing {
             audioPlayer.pause()
         }
+
+        if AudioBot.playing {
+            AudioBot.stopPlay()
+        }
     }
 
     // MARK: - Actions
 
     @IBAction private func cancel(sender: UIBarButtonItem) {
 
-        dismissViewControllerAnimated(true, completion: { [weak self] in
-
+        dismissViewControllerAnimated(true) {
+
+            AudioBot.stopRecord { _, _, _ in
+            }
+
+            /*
             self?.displayLink?.invalidate()
             self?.playbackTimer?.invalidate()
 

            }
            
            YepAudioService.sharedManager.endRecord()

        } else {
            let audioFileName = NSUUID().UUIDString
            if let fileURL = NSFileManager.yepMessageAudioURLWithName(audioFileName) {


        }
    }

    var feedVoice: FeedVoice?

    deinit {
        displayLink?.invalidate()
        playbackTimer?.invalidate()
