Skip to main content
Version: Next

Function: useTextToSpeech()

useTextToSpeech(TextToSpeechProps): TextToSpeechType

Defined in: packages/react-native-executorch/src/hooks/natural_language_processing/useTextToSpeech.ts:19

React hook for managing Text to Speech instance.

Parameters

TextToSpeechProps

TextToSpeechProps

Configuration object containing model source, voice and optional preventLoad.

Returns

TextToSpeechType

Ready to use Text to Speech model.