API reference

RawAudioClipStream Class

A data container that stores all data within a float buffer

Constructors

RawAudioClipStream ( newChannels , newSampleRate , newStreamReadyLength , bufferLengthSeconds )
Generates sample buffer on construct
Signature
Meta.Voice.Audio.RawAudioClipStream.RawAudioClipStream(int newChannels, int newSampleRate, float newStreamReadyLength=WitConstants.ENDPOINT_TTS_DEFAULT_READY_LENGTH, float bufferLengthSeconds=WitConstants.ENDPOINT_TTS_DEFAULT_BUFFER_LENGTH)
Parameters
newChannels: int
newSampleRate: int
newStreamReadyLength: float
bufferLengthSeconds: float

Properties

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

Methods

AddSamples ( samples , offset , length )
Adds an array of samples to the current stream
Signature
override void Meta.Voice.Audio.RawAudioClipStream.AddSamples(float[] samples, int offset, int length)
Parameters
samples: float []  A list of decoded floats from 0f to 1f
offset: int  The index of samples to begin adding from
length: int  The total number of samples that should be appended
Returns
override void