Hi shane.lessa,
import RLPy
avatar_list = RLPy.RScene.GetAvatars()
avatar = avatar_list[0]
viseme_component = avatar.GetVisemeComponent()
audio = RLPy.RAudio.CreateAudioObject()
audio_path = "2.wav"
#This function loads the audio file into the RAudioObject you created.
audio.Load(audio_path)
start_time = RLPy.RGlobal.GetTime()
#This function loads the audio into the character’s soundtrack, you can see it in the timeline
RLPy.RAudio.LoadAudioToObject(avatar, audio_path, start_time)
clip_name = "Default"
result = viseme_component.LoadVocal(audio, start_time, clip_name)
Allen Lee