textToSpeech method

Future<TTSResponse> textToSpeech(
  1. TTSRequest request, {
  2. CancelToken? cancelToken,
})

Convert text to speech with full configuration support

request - The text-to-speech request cancelToken - Optional token to cancel the request

Throws UnsupportedError if not supported. Check supportedFeatures first.

Implementation

Future<TTSResponse> textToSpeech(
  TTSRequest request, {
  CancelToken? cancelToken,
}) {
  throw UnsupportedError('Text-to-speech not supported by this provider');
}