/************************************************************
|
* * Hyphenate CONFIDENTIAL
|
* __________________
|
* Copyright (C) 2016 Hyphenate Inc. All rights reserved.
|
*
|
* NOTICE: All information contained herein is, and remains
|
* the property of Hyphenate Inc.
|
* Dissemination of this information or reproduction of this material
|
* is strictly forbidden unless prior written permission is obtained
|
* from Hyphenate Inc.
|
*/
|
|
#import <Foundation/Foundation.h>
|
#import <AVFoundation/AVFoundation.h>
|
@interface EMAudioRecorderUtil : NSObject
|
|
+(BOOL)isRecording;
|
|
// Start recording
|
+ (void)asyncStartRecordingWithPreparePath:(NSString *)aFilePath
|
completion:(void(^)(NSError *error))completion;
|
// Stop recording
|
+(void)asyncStopRecordingWithCompletion:(void(^)(NSString *recordPath))completion;
|
|
// Cancel recording
|
+(void)cancelCurrentRecording;
|
|
// Current recorder
|
+(AVAudioRecorder *)recorder;
|
@end
|