API reference
API reference
Select your platform
No SDKs available
No versions available

BaseAudioPlayer Class

Extends MonoBehaviour, IAudioPlayer
Custom MonoBehaviour audio player that handles some custom method handling

Properties

The currently playing clip stream
Wit response node containin originating speech data of currently playing clip stream.

Fields

Whether the player is currently playing back audio
Default to not being able to obtain elapsed samples
The currently elapsed sample count for accurate sample based animations and determination of playback completion.

Member Functions

Performs all player initialization
A string returned to describe any reasons playback is currently unavailable
Stops previous playback if applicable, sets clip stream and begins local playback
Parameters
clipStream
The clip stream to be played
offsetSamples
The starting offset of the clip
Performs a pause if the current clip is playing
Performs a resume if the current clip is paused
Stops playback & removes the current clip reference

Protected Functions

Performs playback starting with a specific sample
Did you find this page helpful?
Thumbs up icon
Thumbs down icon