whisper_flutter_new/example/lib/providers.dart
小草林(田梓萱) af91fc48cb
feat: publish v1.0.1
Signed-off-by: 小草林(田梓萱) <xcl@xuegao-tzx.top>
2024-06-12 10:31:01 +08:00

13 lines
442 B
Dart

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);