migueldeicaza/SwiftTermApp

Voice dictation into terminal does not work [iOS 16.4.1 (a)]

Opened this issue · 0 comments

Attempting dictation into the terminal by tapping the microphone key on the keyboard fails. After speaking, -insertText is just called with blank strings apparently containing some number of spaces.

I saw this behavior with my own app, and then tested the same thing with an SSH connection in La Terminal, and I saw the exact same behavior.

When I do this with my own app, in the console log I see the following error before dictation ends:

[Dictation] UIDictationController could not find the last hypothesis " T" in range '(null)'. The likely cause is that something modified the text store or the hypothesis during dictation. Canceling dictation

Any ideas what's going wrong?

Ha, I just found your post here: https://developer.apple.com/forums/thread/677162