Skip to main content

AudioInteraction

This component is used to send and receive audio from the server.

Inspector Variables

VariableDescription
CharacterThe InworldCharacter that it is attached to
Playback SourceThe AudioSource that it is referred to

Properties

PropertyTypeDescription
CharacterInworldCharacterGets or sets an attached Inworld Character
PlaybackSourceAudioSourceGets or sets the audio source for playback
IsPlayingBoolGet if the playback source is playing
CurrentChunkAudioChunkGet the current playing audio chunk

Events

EventTypeDescription
OnAudioStartedAction<PacketId>Triggered when a piece of audio source started
OnAudioFinishedAction<InworldPacket>Triggered when a piece of audio source finished playing

API

FunctionReturn TypeDescriptionParameters
ClearvoidCall this function to clean up the cached queueN/A