Export (0) Print
Expand All

ITfFnPlayBack interface

The ITfFnPlayBack interface is implemented by the Speech API (SAPI) text service. This interface is used by the TSF manager or a client (application or other text service) to control the audio data for speech input text.

Each spoken word or phrase has audio data stored with the text. This interface is used to obtain the range that covers the spoken text and to play back the audio data.

A client obtains an instance of this interface by obtaining the ITfFunctionProvider for the SAPI text service and calling ITfFunctionProvider::GetFunction with IID_ITfFnPlayBack.

Members

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

Methods

The ITfFnPlayBack interface has these methods.

MethodDescription
Play

Causes the audio data for a range of text to be played.

QueryRange

Obtains the range of text for a word or phrase that contains audio data.

 

Examples



HRESULT hr;
ITfFunctionProvider *pFuncProv;

hr = pThreadMgr->GetFunctionProvider(CLSID_SapiLayr, &pFuncProv);
if(SUCCEEDED(hr))
{
    ITfFnPlayBack *pPlayBack;

    hr = pFuncProv->GetFunction(GUID_NULL, IID_ITfFnPlayBack, (IUnknown**)&pPlayBack);
    if(SUCCEEDED(hr))
    {
        //Use the ITfFnPlayBack interface. 
        
        //Release the interface. 
        pPlayBack->Release();
    }

    pFuncProv->Release();
}


Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

TSF 1.0 on Windows 2000 Professional

Header

Ctffunc.h

IDL

Ctffunc.idl

DLL

Msctf.dll

See also

ITfFunctionProvider
ITfFunctionProvider::GetFunction

 

 

Community Additions

ADD
Show:
© 2014 Microsoft