Skip to main content
Version: Latest

AIPlayer

namespace AIHuman.Media

Modifier and TypeMethod / Property Description
ctorAIPlayer(IAIPlayerCallback callback) Create AIPlayer with Default AI and register callback for state monitoring. (valid only when authentication is complete)
ctorAIPlayer(string aiName, IAIPlayerCallback callback) Creates AIPlayer with an AI model defined in aiName and registers callback for state monitoring. (valid only when authentication is complete)
AIHuman.Media.AIPlayerViewGetObject() It is the actual Control object to be linked(binding) with the View (Xaml) of the Cutom App.
voidSend(string[] sentences) Let the AI speak. (using pure-text string)
voidSend(AIClipSet[] clips) Let the AI play. (using AIHuman.Common.Model.AIClipSet)
voidStopSpeaking() Stop the current conversation. It also deletes the content in the speaking queue.
voidPause() Pauses speaking.
voidResume() Continue speaking again from when it was paused.
voidPreload(string[] sentences) Prepare the sentences to be spoken in advance.
voidPreload(AIClipSet[] clips) Prepare the clips to be play in advance.
Collection<AIGesture>GetGestures() Get a collection of gesture. (available gestures)
boolSetCustomVoice(CustomVoice cv) Set AI's voice to cv. return true if success.
CustomVoiceGetCustomVoice() Get the current CustomVoice object of set ai. It returns null if not set.
boolSetCustomVoiceForLanguage(string languageCode, string gender = null) Set the voice by the desired language and gender. All available languages when language null is entered, and all genders when null is entered in gender are searched and set as the first voice. If it succeeds, it returns true. Otherwise the default voice will be set.
floatSpeed { get; set; } Get or Set the AI's speech rate.
floatScale { get; set; } Get or Set the AI's scale.
AIHuman.Common.MarginMargin { get; set; } Get or Set the AI's margin.
doubleVolume { get; set; } Get or Set the AI's volume.
boolIsMute { get; set; } Get or Set the AI's mute.
stringAIName { get; } Get the AI's name.
stringAIGender { get; } Get the AI's gender.
stringAILanguageCode { get; } Get the AI's language code.
AIHuman.Interface.AIPlayerStateState { get; } Get the current state of the AIPlayer.
stringReconncet(Action<bool> callback) Attempt to reconnect with AI. Callback lets you know the result of the reconnection.
voidDispose() Called when destroying AIPlayer.