revSetSpeechProvider

The speechProvider is either "sapi4", "sapi5" or "speechmanager", or empty for the default.

# Metadata

Platforms: desktop, server OS: mac, windows Introduced: 2.8.1 Security:

# Syntax

revSetSpeechProvider speechProvider

# Params

# Examples

revSetSpeechProvider "speechmanager"

revSetSpeechProvider "sapi5"

# Description

Sets the API that LiveCode uses to speak. SAPI4 and SAPI5 are only supported on Windows. SpeechManager is only supported on OS X.

If an invalid API is specified, the default API for the currrent platform will be used. Changes to the speech provider will take affect straight away if the speech library was not loaded (i.e. nothing has been spoken), otherwise they will not take affect until the speech library is reloaded using the revUnloadSpeech command followed by the revLoadSpeech command.

The default is speechManager on OS X and SAPI5 on Windows (falling back to SAPI4 if SAPI5 is not supported).

>*Important:* The revSetSpeechProvider command is part of the > Speech library. To ensure that the command works in a > standalone application, you must include this > LiveCode custom library when you create your > standalone application. In the Inclusions pane of the > Standalone Application Settings window, make sure the "Speech" > library checkbox is checked.

# Tags

# See