libdengjen
C API bindings for the dengjen-tts speech synthesis engine.
Exposes extern "C" functions such as libdengjenLoadVoiceFromConfigPath, libdengjenSpeak, and libdengjenSpeakToFile, delivering audio and completion events to a caller-supplied SpeechSynthesisCallback via a SynthesisEvent struct; the C header is generated from this crate with cbindgen.
ABI stability
libdengjenAbiVersion()returns the ABI version, equal toDENGJEN_ABI_VERSIONin the header. The Goinitand the JavaDengjenLibstatic initializer compare it with the version they were built for before any other call; an incompatible change to an exported function or struct bumps it.libdengjenSpeakandlibdengjenSpeakToFiletakeconst SynthesisParams *. Setstruct_sizetosizeof(SynthesisParams)as you compiled it. Later versions only append fields and read them whenstruct_sizecovers them, so a caller built against an older header keeps working.- A
struct_sizesmaller than the first layout is reported asINVALID_CONFIGURATIONinout_error.