Skip to main content

tts_create

Function tts_create 

Source
#[unsafe(no_mangle)]
pub extern "C" fn tts_create( engine_id: *const c_char, credentials_json: *const c_char, ) -> *mut tts_ctx
Expand description

Create a new TTS engine instance.

Returns an opaque context pointer on success, or null on failure. Call tts_get_last_error to retrieve the error message on failure.

§Safety

engine_id must be a valid null-terminated C string. credentials_json may be null or a valid null-terminated JSON string.