Skip to main content
Version: 1.4.x

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) Returns a filtered list of AI models based on the specified type (2D or 3D) If the type is 3D, 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 failure) will be delivered to the listener function and after that, the getCustomVoicesWith(String language, String gender) is valid.
static String[]getSpeakableLanguages(String gender) Returns the list of languages for 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 calling loadCustomVoice() or generateToken() methods.
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.