voiceModeProvider property

VoiceModeProvider voiceModeProvider
latefinal

Implementation

late final voiceModeProvider = VoiceModeProvider(
  errorReporter: (context, message) {
    _showError(
      title: context,
      message: message,
    );
  },
  notifyListeners: () => notifyListeners(),
  isVoiceMode: () => isVoiceMode,
  setStatus: (status) => this.status = status,
  getStatus: () => status,
  send: ({
    required onChunk,
    required text,
  }) async {
    controller.text = text;
    await send(
      onChunk: onChunk,
      endStatus: null,
    );
  },
);