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.

92 lines
1.9 KiB

2 years ago
//
// XHVoiceCommonHelper.h
// MessageDisplayExample
//
// Created by Aevitx on 14-5-27.
// Copyright (c) 2014年 嗨,我是曾宪华(@xhzengAIB),曾加入YY Inc.担任高级移动开发工程师,拍立秀App联合创始人,热衷于简洁、而富有理性的事物 QQ:543413507 主页:http://zengxianhua.com 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;
/**
*
*
* @param _fileName
* @param _type
* @return
*/
+ (NSString*)getPathByFileName:(NSString *)_fileName;
+ (NSString*)getPathByFileName:(NSString *)_fileName ofType:(NSString *)_type;
/**
*
*
* @return
*/
+ (NSDictionary*)getAudioRecorderSettingDict;
@end