Speech Automation 5.1
Interface: ISpeechVoiceStatus
LastBookmark Property
The LastBookmark property retrieves the text value of the last bookmark encountered by the text-to-speech (TTS) engine.
The text value of a bookmark is enclosed in an XML attribute called Mark.
Syntax
Set: | (This property is read-only) |
Get: | String = ISpeechVoiceStatus.LastBookmark |
Parts
- ISpeechVoiceStatus
- The owning object.
- String
-
Set: (This property is read-only)
Get: A String variable returning the string value of the last bookmark.
Example
The following code snippet demonstrates the use of the LastBookmark and LastBookmarkId properties. The code creates a voice that speaks a text stream containing several bookmarks, and then calls the Status method to get an ISpeechVoiceStatus object. This example demonstrates how the LastBookmark and the LastBookmarkId properties return the bookmark text and also displays the format of a bookmark.
Dim objVOICE As SpeechLib.SpVoice
Dim objSTATUS As SpeechLib.ISpeechVoiceStatus
Set objVOICE = New SpVoice
objVOICE.Speak "<BOOKMARK MARK='1. Monday'/> monday " _
& "<bookmark mark='2. Tuesday'/> tuesday ", SVSFIsXML
Set objSTATUS = objVOICE.Status
MsgBox "LastBookmark is " & objSTATUS.LastBookmark ' "2. Tuesday"
MsgBox "LastBookmarkId is " & objSTATUS.LastBookmarkId ' "2"