Skip to main content

AudioPacket

Module: Inworld.AI. Namespace: Inworld.Packet. Inherited from InworldPacket

This packet is used for audio chunks and phoneme information for lipsync.

VariablesDescription
dataChunkThe DataChunk of the audio.
PropertiesDescription
ClipGenerates an AudioClip based on its DataChunk.
ToJsonGenerates the string of json to send to the Inworld server.

DataChunk

Module: Inworld.AI. Namespace: Inworld.Packet.

VariablesDescription
chunkThe base64 string of the audio wave data.
typeIn Unity SDK, it's always AUDIO.
additionalPhonemeInfoA list of the PhonemeInfo in the datachunk

PhonemeInfo

Module: Inworld.AI. Namespace: Inworld.Packet.

VariablesDescription
phonemeThe actual phoneme
startOffsetThe start offset in the audio clip.