|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface InputMediaLocatorFactory
A factory to create a media locators for the spoken input.
The audio is streamed from a data source to a data sink. The result
of the call to getSourceMediaLocator(SpokenInput) is
used to retrieve the URI of the JSAPI 2.0 compliant speech recognizer.
The result of the call to
getSinkMediaLocator(SpokenInput, URI) is used to
determine the sink of the data stream.
| Method Summary | |
|---|---|
URI |
getSinkMediaLocator(SpokenInput input,
URI sourceLocator)
Factory method to create a media locator for the given recognizer input. |
URI |
getSourceMediaLocator(SpokenInput input)
Factory method to create a media locator for the given recognizer input. |
| Method Detail |
|---|
URI getSourceMediaLocator(SpokenInput input)
throws URISyntaxException
This defines the data source of the audio stream. This is the media
locator which is used as the media locator for the
AudioManager.
input - the input for which to create a media locator.
URISyntaxException - error creating the URI
URI getSinkMediaLocator(SpokenInput input,
URI sourceLocator)
throws URISyntaxException
This defines the data sink of the audio stream.
input - the input for which to create the media locatorsourceLocator - the source media locator
URISyntaxException - error creating the URI
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||