set Reference Audio
fun setReferenceAudio(buf: FloatArray, bufSize: Int, channels: Int, samplingRate: Int, features: String)
Specifies the voice that will serve as the timbre for speech synthesis.
Parameters
buf
PCM data of the reference audio (interleaved if multi channel).
buf Size
Size of the PCM data in bytes.
channels
Number of channels.
sampling Rate
Sampling rate (Hz).
features
Features of the reference text obtained by g2p.