|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SpokenInputConnectionHandler
JSAPI 1.0 does not know how to stream audio from a client to a server. However, custom implementations exist to fill this gap. Classes implementing this interface can be used to address this custom implementation.
Note that there is only one object to handle the connections for all recognizers.
| Field Summary | |
|---|---|
static String |
CONFIG_KEY
Configuration key. |
| Method Summary | |
|---|---|
void |
connect(ConnectionInformation client,
SpokenInput input,
Recognizer recognizer)
Establishes a connection from the given ConnectionInformation to this
object. |
void |
disconnect(ConnectionInformation client,
SpokenInput input,
Recognizer recognizer)
Disconnects a previously established connection. |
URI |
getUriForNextSpokenInput(ConnectionInformation client)
Delegate from SpokenInput.getUriForNextSpokenInput().
. |
| Field Detail |
|---|
static final String CONFIG_KEY
| Method Detail |
|---|
void connect(ConnectionInformation client,
SpokenInput input,
Recognizer recognizer)
throws IOException
ConnectionInformation to this
object.
client - data container with connection relevant data.input - the current spoken input.recognizer - the current recognizer.
IOException - error establishing the connection.
void disconnect(ConnectionInformation client,
SpokenInput input,
Recognizer recognizer)
client - data container with connection relevant data.input - the current spoken input.recognizer - the current recognizer.
URI getUriForNextSpokenInput(ConnectionInformation client)
throws NoresourceError
SpokenInput.getUriForNextSpokenInput().
.
client - data container with connection relevant data.
null if the
streaming uses other means of audio output.
NoresourceError - Error accessing the device.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||