public final class SpeechToTextService
extends java.lang.Object
| Constructor and Description |
|---|
SpeechToTextService() |
| Modifier and Type | Method and Description |
|---|---|
static void |
GetGrammars(ClientIdentity identity,
OnCompleteListener<SpeechServiceResult> completedCallback,
java.lang.Object state)
Helper method to initiate the call that gets the grammars.
|
static void |
Recognition(byte[] speechBuffer,
java.lang.String grammar,
ClientIdentity identity,
OnCompleteListener<SpeechServiceResult> completedCallback,
java.lang.Object state)
Helper method to initiate the call to recognition speech.
|
public static void GetGrammars(ClientIdentity identity, OnCompleteListener<SpeechServiceResult> completedCallback, java.lang.Object state) throws java.lang.Exception
identity - the client identitycompletedCallback - completion callbackstate - user defined state objectjava.lang.Exceptionpublic static void Recognition(byte[] speechBuffer,
java.lang.String grammar,
ClientIdentity identity,
OnCompleteListener<SpeechServiceResult> completedCallback,
java.lang.Object state)
throws java.lang.Exception
speechBuffer - the speech buffergrammar - the required grammaridentity - the client identitycompletedCallback - completion callbackstate - user defined state object voidjava.lang.Exception