DictationManager.fromCustomSpeechURL constructor
DictationManager.fromCustomSpeechURL(
- String customSpeechURL, {
- dynamic onConnected()?,
- dynamic onError()?,
- dynamic onDisconnected()?,
- dynamic onFinalResult(
- String transcription
- dynamic onPartialResult(
- String hypothesis
- dynamic onCommandResult(
- ActionRecipe actionRecipe
- bool enableLogs = false,
Implementation
DictationManager.fromCustomSpeechURL(String customSpeechURL,
{this.onConnected,
this.onError,
this.onDisconnected,
this.onFinalResult,
this.onPartialResult,
this.onCommandResult,
bool enableLogs = false}) {
_logger = enableLogs ? AugnitoPrintLogger() : null;
_augnitoAudioStream = AugnitoAudioStream(enableLogs: enableLogs);
_augnitoWebClient = AugnitoWebClient(customSpeechURL,
onMessage: _socketHandleMessage,
onDisconnected: _onSocketDisconnected,
onError: _onSocketError,
enableLogs: enableLogs);
}