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: intnewSampleRate: intnewStreamReadyLength: floatbufferLengthSeconds: float |
SampleBuffer
: float []
[Get] |
Sample buffer containing all raw float data
Signature
float [] Meta.Voice.Audio.RawAudioClipStream.SampleBuffer |
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 |