Ailia Voice
class AiliaVoice(envId: Int = -1, numThread: Int = 0, memoryMode: Int = 11, flags: Int = AILIA_VOICE_FLAG_NONE) : Closeable
Text to speech (TTS) library.
This class provides speech synthesis (Tacotron2 and GPT-SoVITS) via the ailia Voice native library.
Parameters
env Id
Environment ID of ailia (-1 to select automatically).
num Thread
Number of threads (0 to select automatically).
memory Mode
Memory mode of ailia.
flags
OR of the AILIA_VOICE_FLAG_* constants.
Types
Functions
Link copied to clipboard
Opens a dictionary.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Set the model type for G2P processing. Sets the model type when using G2P standalone without loading model files. Automatically set when openModelFile or openGPTSoVITSV3ModelFile is called.
Link copied to clipboard
fun setReferenceAudio(buf: FloatArray, bufSize: Int, channels: Int, samplingRate: Int, features: String)
Specifies the voice that will serve as the timbre for speech synthesis.
Link copied to clipboard
Sets the number of CFM sampling steps.
Link copied to clipboard
fun setUserDictionaryFile(path: String, dictionaryType: Int = AILIA_VOICE_DICTIONARY_TYPE_OPEN_JTALK)
Sets a user dictionary file.
Link copied to clipboard
Synthesizes voice from the input text.