public static class ITMG_VoiceType {public static final int ITMG_VOICE_TYPE_ORIGINAL_SOUND = 0;public static final int ITMG_VOICE_TYPE_LOLITA = 1;public static final int ITMG_VOICE_TYPE_UNCLE = 2;public static final int ITMG_VOICE_TYPE_INTANGIBLE = 3;public static final int ITMG_VOICE_TYPE_DEAD_FATBOY = 4;public static final int ITMG_VOICE_TYPE_HEAVY_MENTAL = 5;public static final int ITMG_VOICE_TYPE_DIALECT = 6;public static final int ITMG_VOICE_TYPE_INFLUENZA = 7;public static final int ITMG_VOICE_TYPE_CAGED_ANIMAL = 8;public static final int ITMG_VOICE_TYPE_HEAVY_MACHINE = 9;public static final int ITMG_VOICE_TYPE_STRONG_CURRENT = 10;public static final int ITMG_VOICE_TYPE_KINDER_GARTEN = 11;public static final int ITMG_VOICE_TYPE_HUANG = 12;};public abstract int SetVoiceType(int type);
-(QAVResult)SetVoiceType:(ITMG_VOICE_TYPE) type
public abstract class ITMGAudioEffectCtrl{public static int VOICE_TYPE_ORIGINAL_SOUND = 0;public static int VOICE_TYPE_LOLITA = 1;public static int VOICE_TYPE_UNCLE = 2;public static int VOICE_TYPE_INTANGIBLE = 3;public static int VOICE_TYPE_DEAD_FATBOY = 4;public static int VOICE_TYPE_HEAVY_MENTAL = 5;public static int VOICE_TYPE_DIALECT = 6;public static int VOICE_TYPE_INFLUENZA = 7;public static int VOICE_TYPE_CAGED_ANIMAL = 8;public static int VOICE_TYPE_HEAVY_MACHINE = 9;public static int VOICE_TYPE_STRONG_CURRENT = 10;public static int VOICE_TYPE_KINDER_GARTEN = 11;public static int VOICE_TYPE_HUANG = 12;public abstract int SetVoiceType(int voiceType);}
class ITMGAudioEffectCtrl {public:virtual ~ITMGAudioEffectCtrl(){};virtual int SetVoiceType(ITMG_VOICE_TYPE voiceType) = 0;}
参数 | 类型 | 意义 |
type | int | 表示本端音频变声类型 |
类型参数 | 参数代表 | 意义 |
ITMG_VOICE_TYPE_ORIGINAL_SOUND | 0 | 原声 |
ITMG_VOICE_TYPE_LOLITA | 1 | 萝莉 |
ITMG_VOICE_TYPE_UNCLE | 2 | 大叔 |
ITMG_VOICE_TYPE_INTANGIBLE | 3 | 空灵 |
ITMG_VOICE_TYPE_DEAD_FATBOY | 4 | 小胖子 |
ITMG_VOICE_TYPE_HEAVY_MENTA | 5 | 重金属 |
ITMG_VOICE_TYPE_DIALECT | 6 | 歪果仁 |
ITMG_VOICE_TYPE_INFLUENZA | 7 | 感冒 |
ITMG_VOICE_TYPE_CAGED_ANIMAL | 8 | 困兽 |
ITMG_VOICE_TYPE_HEAVY_MACHINE | 9 | 重机器 |
ITMG_VOICE_TYPE_STRONG_CURRENT | 10 | 强电流 |
ITMG_VOICE_TYPE_KINDER_GARTEN | 11 | 幼稚园 |
ITMG_VOICE_TYPE_HUANG | 12 | 小顽童 |
ITMGContextGetInstance()->GetAudioEffectCtrl()->setVoiceType(0);
public abstract int PlayRecordedFile(String filePath,int voicetype);
-(int)PlayRecordedFile:(NSString*)filePath VoiceType:(ITMG_VOICE_TYPE) type
ITMGPTT PlayRecordedFile(string filePath,int voiceType);
public abstract int PlayRecordedFile(string filePath,int voiceType);
参数 | 类型 | 含义 |
filePath | string | 本地语音文件的路径 |
voicetype | int | 变声类型 |
错误码值 | 原因 | 建议方案 |
20485 | 播放未开始 | 确保文件存在,文件路径的合法性 |
本页内容是否解决了您的问题?