Commit 3deb0ad 1 parent fb91db3 commit 3deb0ad Copy full SHA for 3deb0ad
File tree 3 files changed +9
-6
lines changed
3 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -118,12 +118,17 @@ class AsrService {
118
118
119
119
if (result != null && result is List <dynamic >) {
120
120
if (result.length == 3 ) {
121
- final [language, model, text] = result.cast <String >();
121
+ final [language, model, text] = result.cast <String ?>();
122
+
123
+ if (text == null ) {
124
+ return ;
125
+ }
126
+
122
127
final transcript = AudioTranscript (
123
128
created: DateTime .now (),
124
129
library: 'WhisperKit' ,
125
- model: model,
126
- detectedLanguage: language,
130
+ model: model ?? '-' ,
131
+ detectedLanguage: language ?? '-' ,
127
132
transcript: text.trim (),
128
133
processingTime: finish.difference (start),
129
134
);
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import 'package:lotti/database/database.dart';
8
8
import 'package:lotti/database/logging_db.dart' ;
9
9
import 'package:lotti/database/settings_db.dart' ;
10
10
import 'package:lotti/get_it.dart' ;
11
- import 'package:lotti/logic/persistence_logic.dart' ;
12
11
import 'package:lotti/services/sync_config_service.dart' ;
13
12
import 'package:lotti/services/vector_clock_service.dart' ;
14
13
import 'package:lotti/sync/connectivity.dart' ;
@@ -25,7 +24,6 @@ class InboxService {
25
24
final ConnectivityService _connectivityService = getIt <ConnectivityService >();
26
25
final FgBgService _fgBgService = getIt <FgBgService >();
27
26
final SyncConfigService _syncConfigService = getIt <SyncConfigService >();
28
- final PersistenceLogic persistenceLogic = getIt <PersistenceLogic >();
29
27
final VectorClockService _vectorClockService = getIt <VectorClockService >();
30
28
late final StreamSubscription <FGBGType > fgBgSubscription;
31
29
SendPort ? _sendPort;
Original file line number Diff line number Diff line change 1
1
name : lotti
2
2
description : Achieve your goals and keep your data private with Lotti.
3
3
publish_to : ' none'
4
- version : 0.9.443+2427
4
+ version : 0.9.443+2428
5
5
6
6
msix_config :
7
7
display_name : LottiApp
You can’t perform that action at this time.
0 commit comments