The '''AvatarVoiceSourceAssigner''' sets the <code>IAudioSource</code> field referenced by <code>TargetReference</code> to the voice stream of the active user when the avatar this component is attached to is equipped.
<!--T:2-->
This component is useful when adding voice-driven effects to an avatar, such as a [[Component:VisemeAnalyzer]] or [[Component:VolumeMeter]]
== Introduction ==
The '''AvatarVoiceSourceAssigner''' sets the <code>IAudioSource</code> field referenced by <code>TargetReference</code> to the voice stream of the active user when the avatar this component is attached to is equipped.
<!--T:3-->
<!--T:3-->
Line 19:
Line 17:
<!--T:4-->
<!--T:4-->
== Behavior ==
== Usage ==
This component only functions when it is attached to a slot in an active avatar.
When an avatar is equipped, all instances of this component will assign the <code>TargetReference</code> to the active user's voice stream.
<!--T:5-->
<!--T:5-->
== Examples ==
== Examples ==
This component is useful when adding voice-driven effects to an avatar, such as a [[VisemeAnalyzer (Component) | VisemeAnalyzer]] or [[VolumeMeter (Component) | VolumeMeter]]
AvatarVoiceSourceAssigner component as seen in the Scene Inspector
The AvatarVoiceSourceAssigner sets the IAudioSource field referenced by TargetReference to the voice stream of the active user when the avatar this component is attached to is equipped.