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

RawAudioClipStream Class

A data container that stores all data within a float buffer

Constructors

RawAudioClipStream ( newReadyLength , newMaxLength )
Generates sample buffer on construct
Signature
Meta.Voice.Audio.RawAudioClipStream.RawAudioClipStream(float newReadyLength=WitConstants.ENDPOINT_TTS_DEFAULT_READY_LENGTH, float newMaxLength=WitConstants.ENDPOINT_TTS_DEFAULT_MAX_LENGTH)
Parameters
newReadyLength: float
newMaxLength: float
RawAudioClipStream ( newChannels , newSampleRate , newReadyLength , newMaxLength )
Generates sample buffer on construct
Signature
Meta.Voice.Audio.RawAudioClipStream.RawAudioClipStream(int newChannels, int newSampleRate, float newReadyLength=WitConstants.ENDPOINT_TTS_DEFAULT_READY_LENGTH, float newMaxLength=WitConstants.ENDPOINT_TTS_DEFAULT_MAX_LENGTH)
Parameters
newChannels: int
newSampleRate: int
newReadyLength: float
newMaxLength: float

Properties

SampleBuffer : float []
[Get]
Sample buffer containing all raw float data
Signature
float [] Meta.Voice.Audio.RawAudioClipStream.SampleBuffer

Methods

AddSamples ( buffer , bufferOffset , bufferLength )
Adds a sample buffer to the current stream in its entirety.
Signature
override void Meta.Voice.Audio.RawAudioClipStream.AddSamples(float[] buffer, int bufferOffset, int bufferLength)
Parameters
buffer: float []  A buffer of decoded floats that were decoded
bufferOffset: int  The offset of the buffer to be used
bufferLength: int  The total samples to be used
Returns
override void