fix: clarify talk mode simulator limits (#1358) (thanks @vignesh07)
This commit is contained in:
1 parent
6f42c623b9
commit
b02c47043d
8 files changed
+39
-12
No files matched your search
@@ -133,8 +133,9 @@ final class TalkModeManager: NSObject {
|
||||
|
||||
private func startRecognition() throws {
|
||||
#if targetEnvironment(simulator)
|
||||
// Apple Speech live-audio recognition is not supported on Simulator.
|
||||
throw NSError(domain: "TalkMode", code: 2, userInfo: [
|
||||
NSLocalizedDescriptionKey: "Talk mode is not supported on the iOS simulator",
|
||||
NSLocalizedDescriptionKey: "Talk mode is not supported on the iOS simulator (Speech live audio requires a device).",
|
||||
])
|
||||
#endif
|
||||
|
||||
|
||||
Reference in new issue
Block a user