You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

93 lines
1.8 KiB

//
// XHVoiceCommonHelper.h
// MessageDisplayExample
//
// Created by Aevitx on 14-5-27.
// Copyright (c) 2014年 曾宪华 开发团队(http://iyilunba.com ) 本人QQ:543413507 本人QQ群(142557668). All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#define AUDIO_LOCAL_FILE @"localfile"
typedef void(^DidDeleteAudioFileBlock)();
@interface XHVoiceCommonHelper : NSObject
/**
* ()
*
* @param fileName ()
* @param block
*/
+ (void)removeRecordedFileWithOnlyName:(NSString*)fileName block:(DidDeleteAudioFileBlock)block;
/**
* /documents/Audio下的文件
*
* @param exception
* @param block
*/
+ (void)removeAudioFile:(NSString*)exception block:(DidDeleteAudioFileBlock)block;
/**
*
*
* @return
*/
+ (NSString*)getCurrentTimeString;
/**
*
*
* @return
*/
+ (NSString*)getCacheDirectory;
/**
*
*
* @param _path
*
* @return YES
*/
+ (BOOL)fileExistsAtPath:(NSString*)_path;
/**
*
*
* @param _path
*
* @return YES
*/
+ (BOOL)deleteFileAtPath:(NSString*)_path;
+ (NSString*)getPathByFileName:(NSString *)_fileName;
/**
*
*
* @param _fileName
* @param _type
* @return
*/
+ (NSString*)getPathByFileName:(NSString *)_fileName ofType:(NSString *)_type;
/**
*
*
* @return
*/
+ (NSDictionary*)getAudioRecorderSettingDict;
@end