Skip to content

Commit

Permalink
chore: upgrade to WhisperKit v0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasn committed May 26, 2024
1 parent dade624 commit ec0c6ab
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@
repositoryURL = "https://github.com/argmaxinc/whisperkit";
requirement = {
kind = exactVersion;
version = 0.6.1;
version = 0.7.1;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
4 changes: 2 additions & 2 deletions ios/Runner.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/argmaxinc/whisperkit",
"state" : {
"revision" : "c20943d3f5d6f64981e9eaed8a3a9c3a62124fc5",
"version" : "0.6.1"
"revision" : "3aa94e8c3950afdeaf916cb1da71e44f62bd2864",
"version" : "0.7.1"
}
}
],
Expand Down
4 changes: 2 additions & 2 deletions ios/Runner/WhisperKitRunner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ public class WhisperKitRunner: NSObject, FlutterStreamHandler {
callback: self.sendTranscriptionProgressEvent
)

let text = transcription?.text
let language = transcription?.language
let text : String? = transcription?.first?.text
let language = transcription?.first?.language

let data = [language, self.model, text]
result(data)
Expand Down
2 changes: 1 addition & 1 deletion macos/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@
repositoryURL = "https://github.com/argmaxinc/whisperkit";
requirement = {
kind = exactVersion;
version = 0.6.1;
version = 0.7.1;
};
};
/* End XCRemoteSwiftPackageReference section */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/argmaxinc/whisperkit",
"state" : {
"revision" : "c20943d3f5d6f64981e9eaed8a3a9c3a62124fc5",
"version" : "0.6.1"
"revision" : "3aa94e8c3950afdeaf916cb1da71e44f62bd2864",
"version" : "0.7.1"
}
}
],
Expand Down
6 changes: 3 additions & 3 deletions macos/Runner/WhisperKitRunner.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ public class WhisperKitRunner: NSObject, FlutterStreamHandler {
),
callback: self.sendTranscriptionProgressEvent
)
let text = transcription?.text
let language = transcription?.language

let text : String? = transcription?.first?.text
let language = transcription?.first?.language

let data = [language, self.model, text]
result(data)
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: lotti
description: Achieve your goals and keep your data private with Lotti.
publish_to: 'none'
version: 0.9.468+2534
version: 0.9.468+2535

msix_config:
display_name: LottiApp
Expand Down

0 comments on commit ec0c6ab

Please sign in to comment.