Files
youle_app_ios/msext/Class/Common/VoiceConvert/VoiceConverter.h
2023-12-27 20:38:37 +08:00

42 lines
891 B
Objective-C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
//
// VoiceConverter.h
// Jeans
//
// Created by Jeans Huang on 12-7-22.
// Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
@interface VoiceConverter : NSObject
/**
* 转换wav到amr
*
* @param aWavPath wav文件路径
* @param aSavePath amr保存路径
*
* @return 0失败 1成功
*/
+ (int)ConvertWavToAmr:(NSString *)aWavPath amrSavePath:(NSString *)aSavePath;
/**
* 转换amr到wav
*
* @param aAmrPath amr文件路径
* @param aSavePath wav保存路径
*
* @return 0失败 1成功
*/
+ (int)ConvertAmrToWav:(NSString *)aAmrPath wavSavePath:(NSString *)aSavePath;
/**
获取录音设置.
建议使用此设置如有修改则转换amr时也要对应修改参数比较麻烦
@returns 录音设置
*/
+ (NSDictionary*)GetAudioRecorderSettingDict;
@end