Class ZegoAIVoiceChanger

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract int getIndex()
      Get AI voice changer instance index.
      abstract void getSpeakerList()
      Get AI voice changer speaker list.
      abstract void initEngine()
      Initialize AI voice changer engine.
      abstract void setEventHandler​(IZegoAIVoiceChangerEventHandler handler)
      Set event notification callback handler of the AI voice changer.
      abstract void setSpeaker​(int speakerID)
      Set AI voice changer speaker.
      abstract void update()
      Update AI voice changer engine models.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ZegoAIVoiceChanger

        public ZegoAIVoiceChanger()
    • Method Detail

      • getIndex

        public abstract int getIndex()
        Get AI voice changer instance index.
        Returns:
        AI voice changer instance index.
      • setEventHandler

        public abstract void setEventHandler​(IZegoAIVoiceChangerEventHandler handler)
        Set event notification callback handler of the AI voice changer. Available since: 3.10.0 Description: Listen to the event notification callback of the AI voice changer. Use Cases: Developers can handle this according to the related event callback. When to call: After the [ZegoAIVoiceChanger] instance created. Restrictions: None. Caution: Calling this function will overwrite the callback set by the last call to this function.
        Parameters:
        handler - Event callback handler for AI voice changer
      • initEngine

        public abstract void initEngine()
        Initialize AI voice changer engine.
      • update

        public abstract void update()
        Update AI voice changer engine models.
      • getSpeakerList

        public abstract void getSpeakerList()
        Get AI voice changer speaker list.
      • setSpeaker

        public abstract void setSpeaker​(int speakerID)
        Set AI voice changer speaker.
        Parameters:
        speakerID - Speaker ID.