feat: 添加唤醒功能

This commit is contained in:
2025-09-28 18:42:56 +08:00
parent c6765ab29c
commit 5be50b4dbb
18 changed files with 746 additions and 28 deletions

View File

@@ -30,6 +30,10 @@
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<service
android:name="com.tsystems.flutter_vosk_wakeword.WakewordService"
android:exported="false"
android:foregroundServiceType="microphone" />
</application>
<!-- Required to query activities that can process text, see:
https://developer.android.com/training/package-visibility and

View File

@@ -66,7 +66,9 @@ void main() async {
runApp(const MyApp());
AIChatAssistantManager.instance.setWakeWordDetection(true);
// AIChatAssistantManager.instance.setWakeWordDetection(true);
AIChatAssistantManager.instance.startVoskWakeword();
}
class MyApp extends StatelessWidget {