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: floatnewMaxLength: 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: intnewSampleRate: intnewReadyLength: floatnewMaxLength: float |
SampleBuffer
: float []
[Get] |
Sample buffer containing all raw float data
Signature
float [] Meta.Voice.Audio.RawAudioClipStream.SampleBuffer |
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 |
ReadSamples
(
readOffset
, destinationSamples
, destinationOffset
)
|
Reads as many samples as possible from the specified read offset into the destination with the specified offset
Signature
override int Meta.Voice.Audio.RawAudioClipStream.ReadSamples(int readOffset, float[] destinationSamples, int destinationOffset=0) Parameters readOffset: intdestinationSamples: float []destinationOffset: intReturns override int |
ReadSamples
(
readOffset
, onReadSamples
)
|
Reads as many samples as possible from the specified read offset
Signature
override int Meta.Voice.Audio.RawAudioClipStream.ReadSamples(int readOffset, AudioClipStreamSampleDelegate onReadSamples) Parameters readOffset: intonReadSamples: AudioClipStreamSampleDelegateReturns override int |