TextToSpeechEngineError

public enum TextToSpeechEngineError : Error

Errors that can occur in the TextToSpeechEngine.

The TextToSpeechEngineError enum defines the error types that can be encountered when using the TextToSpeechEngine. These errors provide information about specific issues such as unsupported alphabets in phonetics or unavailable voices for a set locale.

Important

This is a Public Preview API. It may be changed or removed at any time.
  • Occurs when in phonetics there is an alphabet that SDK doesn’t support.

    Declaration

    Swift

    case unsupportedAlphabet
  • Occurs when there are no voices for the locale that was set. Contains a list of available voices as an associated value.

    Declaration

    Swift

    case unavailableLocaleInVoices([String])