ISpeechResourceLoader Interface (SAPI 5.4)

Speech API 5.4
Microsoft Speech API 5.4


New in SAPI 5.3

The ISpeechResourceLoader interface gives applications control over loading resources. For example, applications may want to cache remote resources, enforce custom security policies, or redirect resources to other locations.

Applications implement a resource loader by implementing either LoadResource or both GetLocalCopy and ReleaseLocalCopy. The resource loader can be provided via ISpRecoGrammar2::SetGrammarLoader.

Automation Interface Elements

The ISpeechResourceLoader automation interface contains the following elements:

GetLocalCopy MethodGets a local copy of the specified speech resource.
LoadResource MethodLoads the specified speech resource.
ReleaseLocalCopy MethodReleases the local copy of the specified speech resource.