aboutsummaryrefslogtreecommitdiffstats
path: root/lib/data/data_providers/app_provider.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/data/data_providers/app_provider.dart')
-rw-r--r--lib/data/data_providers/app_provider.dart17
1 files changed, 16 insertions, 1 deletions
diff --git a/lib/data/data_providers/app_provider.dart b/lib/data/data_providers/app_provider.dart
index 0f7ed0c..64c0e47 100644
--- a/lib/data/data_providers/app_provider.dart
+++ b/lib/data/data_providers/app_provider.dart
@@ -16,10 +16,14 @@ import 'package:flutter_ics_homescreen/data/data_providers/radio_client.dart';
import 'package:flutter_ics_homescreen/data/data_providers/storage_client.dart';
import 'package:flutter_ics_homescreen/data/data_providers/mpd_client.dart';
import 'package:flutter_ics_homescreen/data/data_providers/play_controller.dart';
+import 'package:flutter_ics_homescreen/data/data_providers/voice_agent_client.dart';
+import 'package:flutter_ics_homescreen/data/data_providers/voice_assistant_notifier.dart';
import 'package:flutter_ics_homescreen/export.dart';
import 'package:flutter_ics_homescreen/data/models/users.dart';
+import '../models/voice_assistant_state.dart';
+
enum AppState {
home,
dashboard,
@@ -44,7 +48,9 @@ enum AppState {
clock,
date,
time,
- year
+ year,
+ voiceAssistant,
+ sttModel,
}
class AppStateNotifier extends Notifier<AppState> {
@@ -73,6 +79,11 @@ final valClientProvider = Provider((ref) {
return ValClient(config: config, ref: ref);
});
+final voiceAgentClientProvider = Provider((ref){
+ VoiceAgentConfig config = ref.watch(appConfigProvider).voiceAgentConfig;
+ return VoiceAgentClient(config: config, ref: ref);
+});
+
final appLauncherProvider = Provider((ref) {
return AppLauncher(ref: ref);
});
@@ -154,3 +165,7 @@ final currentTimeProvider =
StateNotifierProvider<CurrentTimeNotifier, DateTime>((ref) {
return CurrentTimeNotifier();
});
+
+
+final voiceAssistantStateProvider =
+ NotifierProvider<VoiceAssistantStateNotifier, VoiceAssistantState>(VoiceAssistantStateNotifier.new);