AbstractOptionalcleanupClean up resources used by the TTS engine. Optional method for backends that need to release resources.
AbstractinitializeAbstractsynthesizeSynthesize text to WAV audio. Both backends should validate input text and return audio as a Buffer in WAV format. Voice is configured at engine initialization time and cannot be changed per synthesis call.
Text to synthesize
WAV audio buffer
Abstract Text-to-Speech Engine Base Class
Defines the interface for TTS backends (IBM Watson, sherpa-onnx, etc.) All implementations must extend this class and implement the required methods.