Skip to content
1 min read · 115 words

@nhtio/adk/batteries/tts/transformers_js/exceptions

Battery-scoped exception constructors for the transformers.js TTS adapter.

Remarks

Battery-scoped exception classes for the transformers.js (@huggingface/transformers) text-to-speech adapter, minted via createException from @nhtio/adk/factories. Categories mirror the transformers.js STT battery one-to-one — only the engine-specific failure differs.

Variables

VariableDescription
E_INVALID_TRANSFORMERS_JS_TTS_OPTIONSThrown when the resolved adapter options fail validation against transformersJsTtsOptionsSchema — e.g. a missing/empty model or an unknown option key. Fatal: config bugs fail loud, not at synthesize time.
E_TRANSFORMERS_JS_TTS_ENGINE_ERRORThrown when the transformers.js pipeline fails to load (e.g. the @huggingface/transformers peer is not installed) or the text-to-speech call throws/returns a malformed result. Non-fatal. Printf arg: [detail].