org.jvoicexml.implementation.jsapi20
Interface InputMediaLocatorFactory

All Known Implementing Classes:
JlibRtpMediaLocatorFactory

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.

Since:
0.7
Version:
$Revision: 2355 $
Author:
Dirk Schnelle-Walka

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

getSourceMediaLocator

URI getSourceMediaLocator(SpokenInput input)
                          throws URISyntaxException
Factory method to create a media locator for the given recognizer input.

This defines the data source of the audio stream. This is the media locator which is used as the media locator for the AudioManager.

Parameters:
input - the input for which to create a media locator.
Returns:
media locator.
Throws:
URISyntaxException - error creating the URI

getSinkMediaLocator

URI getSinkMediaLocator(SpokenInput input,
                        URI sourceLocator)
                        throws URISyntaxException
Factory method to create a media locator for the given recognizer input.

This defines the data sink of the audio stream.

Parameters:
input - the input for which to create the media locator
sourceLocator - the source media locator
Returns:
media locator for the sink
Throws:
URISyntaxException - error creating the URI


Copyright © 2005-2009JVoiceXML group.