Skip to main content
Version: Latest

AIAPI

namespace AIHuman.Core

Modifier and TypeMethod and Description
AIHuman.Common.AIErrorAuthenticate(string appId, string userKey, string platform) Attempts to authenticate with the issued userKey. If it fails, it returns the relevant information through AIError.
voidGetAIList(AIListType listType, Action<AIList, AIError> OnComplete) Get a list of available AI models.
stringDefaultAIName { get; } Get the default AI information.
voidGetSampleTexts(string aiName, Action<string[], AIError> OnComplete) Get AI sample sentences using aiName.
voidGetSampleTextList(string languageCode, Action<string[], AIError> OnComplete) Get the list of sample texts for the language from server.
AIHuman.Model.AIClipSetCreateClipSet(string speechText, string gestureName = "", CustomVoice customVoice = null) Create AIClipSet Object.
AIHuman.Common.AIErrorLoadCustomVoices() Load a list of available languages and gender-specific voices.
List<string>GetSpeakableLanguages(string gender = null) Get a list of speakable languages.
List<CustomVoice>GetCustomVoices(string language = null, string gender = null) Get a list of available custom voices.
voidGetAudioClip(string aiName, string speechText, string voiceID, Action<string, AIClipSet, AIError, AudioClip> onComplete) AudioClip is imported using information such as Text and voice ID as a factor.
CustomVoiceFindCustomVoice(string id) Find CustomVoice by id. return null if there is none.