Class: Win32::SpVoice

Inherits:
SAPI5
  • Object
show all
Defined in:
lib/win32/sapi5.rb

Overview

The SpVoice object brings the text-to-speech (TTS) engine capabilities to applications using SAPI automation. An application can create numerous SpVoice objects, each independent of and capable of interacting with the others. An SpVoice object, usually referred to simply as a voice, is created with default property settings so that it is ready to speak immediately.

Constant Summary collapse

SPF_DEFAULT =

For use with the Speak method.

0
SPF_ASYNC =

Not asynchronous

1
SPF_PURGEBEFORESPEAK =

Asynchronous

2
SPF_IS_FILENAME =

Purges all pending speak requests prior to this speak call.

4
SPF_IS_XML =

The string passed is a file name, and the file text should be spoken.

8
SPF_IS_NOT_XML =

The input text will be parsed for XML markup.

16

Constants inherited from SAPI5

Win32::SAPI5::VERSION

Instance Method Summary collapse

Constructor Details

#initializeSpVoice

The input text should not be considered XML markup.



193
194
195
# File 'lib/win32/sapi5.rb', line 193

def initialize
  super("{96749377-3391-11D2-9EE3-00C04F797396}")
end