setReferenceAudio

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).

bufSize

Size of the PCM data in bytes.

channels

Number of channels.

samplingRate

Sampling rate (Hz).

features

Features of the reference text obtained by g2p.