Skip to main content
Version: Next

Function: useTextToSpeech()

useTextToSpeech(model, options?): TextToSpeechType

Defined in: hooks/natural_language_processing/useTextToSpeech.ts:20

React hook for managing Text to Speech instance.

Parameters

model

TextToSpeechModelConfig

Configuration object containing model config.

options?

Additional options for the hook.

preventLoad?

boolean = false

If true, prevents the model from loading automatically on initialization.

Returns

TextToSpeechType

Ready to use Text to Speech model.