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: ISpeechRecognizer

AudioInput Property


The AudioInput property gets and sets the recognizer's audio input device.


Syntax

Set: SpeechRecognizer.AudioInput = SpObjectToken
Get: SpObjectToken = SpeechRecognizer.AudioInput

Parts

SpeechRecognizer
The owning object.
SpObjectToken
Set: An SpObjectToken object that sets the property. If this parameter is Nothing, the default audio input device will be used.
Get: An SpObjectToken object that sets the property.

Example

The following Visual Basic form code demonstrates the use of the AudioInput property. The current audio input device (commonly a sound card) is displayed. 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 Command1 procedure creates a new recognizer object and displays the default audio input device. It then sets the recognizer's AudioInput property to Nothing and shows the results. Finally, the procedure lists the names of all available audio input devices.


    Option Explicit
    
    Dim R As SpeechLib.SpSharedRecognizer
    Dim T As SpeechLib.SpObjectToken
    
    Private Sub Command1_Click()
    
        Set R = New SpSharedRecognizer
        
        Debug.Print "New SpSharedRecognizer"
        Debug.Print "   AudioInput: " & R.AudioInput.GetDescription
        Debug.Print
        
        Set R.AudioInput = Nothing
        
        Debug.Print "Set to Nothing"
        Debug.Print "   AudioInput: " & R.AudioInput.GetDescription
        Debug.Print
        
        Debug.Print "Show all available inputs"
        For Each T In R.GetAudioInputs
            Debug.Print "   AudioInput: " & T.GetDescription
        Next
        
    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