en fr

Sysquake Pro – Table of Contents

Sysquake – Table of Contents

Sysquake for LaTeX – Table of Contents

Extension - Speech

This section describes functions which support speech output on Windows and Mac.

Functions

isspeaking

Check if last speech is still uttered.

Syntax

b = isspeaking

Description

Function isspeaking returns true if the last call to speak is still uttered, or false otherwise.

See also

speak

speak

Speak a string.

Syntax

speak(str)
speak(str, opt)

Description

speak(str) speaks string str, using the default system settings.

speak(str,opt) uses the speech options in opt.

speak returns as soon as possible, without waiting until the text has been uttered. Function isspeaking checks if the last speak call is completed. If speak is called before the previous call is completed, it waits, so that continuous speech is produced.

Speech options are set with speakset or with named arguments.

Example

speak('Hello, L M E !')

See also

speakset, isspeaking

speakset

Options for speech synthesis.

Syntax

options = speakset
options = speakset(name1, value1, ...)
options = speakset(options0, name1, value1, ...)

Description

speakset(name1,value1,...) creates the option argument used by speak. Options are specified with name/value pairs, where the name is a string which must match exactly the names in the table below. Case is significant. Options which are not specified have a default value. The result is a structure whose fields correspond to each option. Without any input argument, speakset creates a structure with all the default options. Note that speak also interprets the lack of an option argument, or the empty array [], as a request to use the default values.

When its first input argument is a structure, speakset adds or changes fields which correspond to the name/value pairs which follow.

Here is the list of options. Some of them are not available on all platforms; type speakset without argument to verify. Experimenting is the best way to find the values you prefer.

NameMeaning
Pitchvoice pitch (frequency, only on Mac)
Raterate (words per minute, only on Mac)
RateAdjustmentrate adjustment between -10 and 10 (only on Windows)
Voicename of the voice (empty string=default)

The list of voices available on your computer can be obtained with speakvoices.

Example

Default options on Mac:

speakset
  Pitch: 5.8763
  Rate: 201
  Voice: ''

See also

speak, speakvoices

speakvoices

List of voices for speech synthesis.

Syntax

list = speakvoices

Description

speakvoices gives the list of all voices installed on the computer which can be used for speech synthesis. One of them can be used with the option 'Voice' of speackset.

Example

speakvoices
  {'Agnes','Albert','Bad News','Bahh','Bells',
  (more voices here)}

See also

speak, speakset