Skip to main content
Version: Latest

AIModelInfoManager

Modifier and TypeMethod and Description
static voidgenerateToken(@NonNull Context context, @NonNull String appId, @NonNull String userKey, @NonNull IAuthListener listener) try to authorize with the userkey. If it is successful, you can use the default ai and listener function will be called.
static voidgenerateToken(@NonNull Context context, @NonNull String userKey, @NonNull IAuthListener listener) try to authorize with the appId and userkey. If it is successful, you can use the default ai and listener function will be called.
static voidgetAIList(AIModelInfoManager.IAPIListener listener) get available ai list
static JSONArraygetReceivedAIWithType(String type2Dor3D) get the ai filtered list with type(2D or 3D). In case of 3D ai, UnityActivity should be used.
static voidgetSampleTextList(String language, IAPIListener listener) The sample text for the language will be delivered with listener function.
static voidloadCustomVoiceList(IAPIListener listener) Load a list of available languages and gender-specific voices. The result(success or fail) will be delivered to the listener function and after that, the getCustomVoicesWith(String language, String gender) is valid.
static String[]getSpeakableLanguages(String gender) Check the language list of the currently loaded CustomVoices. This is also effective after loadCustomVoice() or generateToken() called.
static CustomVoice[]getCustomVoicesWith(String language, String gender) Among the loaded voices, a list of voices corresponding to an input value and a voice corresponding to gender is obtained. If you type null in language, you will get values corresponding to all languages, and if you type null in gender, you will get values corresponding to all genders. Valid after loadCustomVoice() or generateToken() method call.
static CustomVoicefindCustomVoice(String customVoiceId) Search the CustomVoice with id. return null if not found.
static AIModelInfogetDefaultAIModelInfo() get default ai info. Valid after generateToken() method call.