Fix microphone privacy config (#727)
This commit is contained in:
5
ios-swiftui/SherpaOnnx/SherpaOnnx/Info.plist
Normal file
5
ios-swiftui/SherpaOnnx/SherpaOnnx/Info.plist
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict/>
|
||||
</plist>
|
||||
@@ -13,6 +13,7 @@ enum Status {
|
||||
case recording
|
||||
}
|
||||
|
||||
@MainActor
|
||||
class SherpaOnnxViewModel: ObservableObject {
|
||||
@Published var status: Status = .stop
|
||||
@Published var subtitles: String = ""
|
||||
@@ -44,9 +45,7 @@ class SherpaOnnxViewModel: ObservableObject {
|
||||
}
|
||||
|
||||
func updateLabel() {
|
||||
DispatchQueue.main.async {
|
||||
self.subtitles = self.results
|
||||
}
|
||||
self.subtitles = self.results
|
||||
}
|
||||
|
||||
init() {
|
||||
|
||||
Reference in New Issue
Block a user