VoiceHandler [Deprecated]
Mouth animation using microphone feedback.
Uses microphone feedback to animate the mouthOpen
blend shape based on the amplitude of the voice. The animation will have a 1-second delay due to the minimum recording length.
To add mouth animations to your avatar, do one of the following.
Select Component > Ready Player Me >VoiceHandler.
At runtime, use Unity's
AddComponent()
method.
Properties
Property | Type | Description |
---|---|---|
AudioClip | AudioClip | Audio clip to play. |
AudioSource | AudioSource | Audio Source that will play the provided audio. If not assigned in the Inspector, it will be created on the same object as the VoiceHandler component. |
AudioProviderType | AudioProvider | Enum type of audio provider. Microphone or Audio Clip. |
Public Methods
Method | Returns | Description |
---|---|---|
| void | Plays the current Audio Clip. |
| void | Sets the current Audio Clip with the given parameter and plays it. |
Examples
Last updated