CHMlib Logo Leading Translation Management System for Translation Agencies, Top Translation Management Software for Freelance Translators, Time Tracking Software, Word Count, Character Count and Line Count Software, Computer Assisted Translation Tool for Easy Word Count, Clipboard Character Count Software, User-Friendly Translation Memory Software, Terminology Management Software, Terminology Management Server, Microsoft Glossary Software, Dictionary of Acronyms, Social Network for Translators and Translation Agencies, Acronyms and Abbreviations Search Engine, Russian Translation Lab, Ukrainian Translation Lab.
You are reading help file online using chmlib.com
CrisisHelper - First Aid in Tough Times of World Economic Crisis


Intelligent Interface Technologies Home Page Microsoft Speech SDK

Speech Automation 5.1

Interface: ISpeechVoiceStatus

LastStreamNumberQueued Property


The LastStreamNumberQueued property retrieves the number of the last audio stream enqueued by the voice.


Syntax

Set: (This property is read-only)
Get: Long = ISpeechVoiceStatus.LastStreamNumberQueued

Parts

ISpeechVoiceStatus
The owning object.
Long
Set: (This property is read-only)
Get: A Long variable returning the stream number of the last audio stream spoken.

Example

The following code snippet demonstrates the use of the LastStreamNumberQueued property. To run this code, create a form with the following control:

  • A command button called Command1
  • Paste this code into the Declarations section of the form.

    The Form_Load procedure creates a voice object. The Command1_Click procedure speaks three streams asynchronously, creates an ISpeechVoiceStatus object and prints the LastStreamNumberQueued property value. The WaitUntilDone method then blocks execution until the voice finishes speaking the three streams, and the LastStreamNumberQueued property value is printed again. The value of the LastStreamNumberQueued property in both cases is 3.


    Option Explicit
    
    Private V As SpeechLib.SpVoice
    Private S As SpeechLib.ISpeechVoiceStatus
    
    Private Sub Command1_Click()
    
        'Enqueue three streams
        
        V.Speak "this is stream number one.", SVSFlagsAsync
        V.Speak "a second stream, now.", SVSFlagsAsync
        V.Speak "the third stream is next", SVSFlagsAsync
        
        'Get status while voice is speaking
    
        Set S = V.Status  'Get status thru ISpeechVoiceStatus object
        
        Print "Voice is speaking and LastStreamNumberQueued is " _
                & S.LastStreamNumberQueued
        DoEvents  'Let Print results be seen immediately
        
        
        V.WaitUntilDone (99999)     'Wait until voice finishes
        
        'Get status thru "Voice.Status.Property" syntax
        
        Print "Voice is finished and LastStreamNumberQueued is " _
                & V.Status.LastStreamNumberQueued
    
    End Sub
    
    Private Sub Form_Load()
        
        Set V = New SpVoice
    
    End Sub


    You are reading help file online using chmlib.com

    If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com
    Partner sites: Logo Design, Simple Anti-Crisis Accounting Software, Voice Search for Web