RapportAudioClipInput
Description
The RapportAudioClipInput class is an implementation of the IRapportAudioInput interface that allows you to use a Unity AudioClip as the audio source for the Rapport system. This is useful for playing pre-recorded audio files through your Rapport character.
Namespace: SpeechGraphics.Rapport.Audio
Properties
Name | Type | Description |
|---|---|---|
Frequency | int | The sample rate of the audio input, in Hertz (Hz). This value is set in the constructor and cannot be changed after instantiation. |
SystemMute | bool | A property that gets or sets the system-level mute state, as required by the |
IsMuted | bool | A read-only property that returns |
Methods
Name | Type | Description |
|---|---|---|
OnAudioRead(int sampleOffset, float[] buffer) | void | This method is called internally from the audio thread to get samples from the currently playing Parameters:
|
Update() | void | This method is required by the |
PlayClip(AudioClip clip) | void | Loads a new Parameters:
|