Implemented the pre-installation of speech model assets for the selected locale for the ContentViewModel view model in the Sample app target.
This commit is contained in:
@@ -61,6 +61,9 @@ struct ContentView: View {
|
||||
.task {
|
||||
await model.load()
|
||||
}
|
||||
.task(id: model.locale) {
|
||||
await model.preinstallAssets()
|
||||
}
|
||||
}
|
||||
.sheet(item: $model.transcription) { transcription in
|
||||
NavigationStack {
|
||||
|
||||
Reference in New Issue
Block a user