whisper_flutter_new/example/lib/providers.dart

13 lines
442 B
Dart
Raw Normal View History

import "package:flutter_riverpod/flutter_riverpod.dart";
import "package:whisper_flutter_new/whisper_flutter_new.dart";
final modelProvider = StateProvider.autoDispose((ref) => WhisperModel.base);
final langProvider = StateProvider.autoDispose((ref) => "auto");
final translateProvider = StateProvider((ref) => false);
final withSegmentsProvider = StateProvider((ref) => false);
final splitWordsProvider = StateProvider((ref) => false);