ITfSpeechUIServer interface (ctfspui.h)

The ITfSpeechUIServer interface manages the speech-related user interface on the TSF language bar.

Inheritance

The ITfSpeechUIServer interface inherits from the IUnknown interface. ITfSpeechUIServer also has these types of members:

Methods

The ITfSpeechUIServer interface has these methods.

 
ITfSpeechUIServer::Initialize

ITfSpeechUIServer::Initialize method
ITfSpeechUIServer::ShowUI

ITfSpeechUIServer::ShowUI method
ITfSpeechUIServer::UpdateBalloon

ITfSpeechUIServer::UpdateBalloon method

Remarks

The user interface elements on the TSF language bar managed by this interface include the microphone button, the speech configuration menu button, the dictation button, the command button, and the speech balloon. The standard speech text service usually manages these user interface elements in an application, including initialization. This type of application does not require the ITfSpeechUIServer interface.

An application that does not use the speech text service might require use of the features provided by the speech-related interface elements. In that case, the following code example shows how an application can obtain a pointer to the ITfSpeechUIServer interface by calling the CoCreateInstance function with the CLSID_SpeechUIServer CLSID.


HRESULT hr;
ITfSpeechUIServer* piSpeechUIServer;

hr = CoCreateInstance(CLSID_SpeechUIServer,
                      NULL,
                      CLSCTX_INPROC_SERVER,
                      IID_ITfSpeechUIServer,
                      (void**)&piSpeechUIServer);

Subsequently, the application can use the ITfSpeechUIServer::Initialize method to initialize the user interface and the other methods of the ITfSpeechUIServer interface to manage the user interface.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header ctfspui.h (include Ctfutb.h)
Redistributable TSF 1.0 on Windows 2000 Professional

See also

CoCreateInstance

IUnknown