Questions tagged [dictation]
75 questions
20
votes
3 answers
UITextField begin dictation
I'd like to programmatically put my UITextField input into dictation mode, without requiring the user to bring up and select dictation from the keyboard. Searched the API documentation but can find no solution. Any ideas?

pjg
- 565
- 4
- 19
13
votes
1 answer
Siri Dictation Bypasses UITextView:shouldChangeTextInRange Delegate
I use (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *) to perform real-time regex validation on every character input into a UITextView.
This works well and even handles pasted text that might…

Sebastian Dwornik
- 2,526
- 2
- 34
- 57
9
votes
1 answer
Using Mac OSX Dictation with Speech API
In OSX Mavericks, speech dictation is now included, and is very useful. I am trying to use the dictation capability to create my own digital life assistant, but I can't find how to use the recognition functionality to get the speech in an…

user3166505
- 91
- 4
6
votes
1 answer
Programmatically toggle dictation on MacOS
Due to injury I use dictation on MacOS:
As can be seen from the screenshot, I can toggle it using a keyboard shortcut.
I wish to toggle it from code (preferably ObjC).
I can manually inject the events:
// Assumes CTRL OPT CMD Space toggles…

P i
- 29,020
- 36
- 159
- 267
6
votes
3 answers
Using Dictation - iOS 6 - DidStart?
How to respond to starting dictation?
Known ways of responding to dictation:
dictationRecordingDidEnd - respond to the completion of the recognition of a dictated
phrase.
dictationRecognitionFailed - respond to failed dictation…

Zelko
- 3,793
- 3
- 34
- 40
5
votes
0 answers
OS X Yosemite (10.10) API for continuous speech recognition
OSX has now had continuous speech recognition built in for several versions.
It is remarkably good now.
Does OSX 10.10 have an API for this continuous speech recognition engine?
Googling tells me that circa 2009 there was only NSSpeechRecogniser (MS…

P i
- 29,020
- 36
- 159
- 267
5
votes
1 answer
Using Mac’s Dictation Inside Python
Does anyone have any ideas on how to use the Mac’s built-in dictation tool to create strings to be used by Python?
To launch a dictation, you have to double-press the Fn key inside any text editor. If this is the case, is there a way to combine the…

RollingStone1234
- 73
- 1
- 10
5
votes
3 answers
Dictation results for UITextField different than UITextView
I can't seem to find any documentation on the speech to text option for text entry in iOS. I know you can do it manually with some the AV stuff, but the out of the box dictation you get when Siri is enabled has some quirks to it.
Try this. Open any…

Bill Burgess
- 14,054
- 6
- 49
- 86
4
votes
2 answers
Make Python Speech Recognition Faster
I have been using Google Speech Recognition for Python. Here is my code:
import speech_recognition as sr
r = sr.Recognizer()
with sr.Microphone() as source:
print("Say something!")
audio = r.listen(source)
…

Manan Shukla
- 59
- 1
- 1
- 5
4
votes
0 answers
App getting crashed while using dictation in UITextView
The app is getting crashed while using dictation in UITextView .
While using dictation feature in keyboard the text is getting auto saved and the application getting crashed due to the same reason.
Normal Scenario:
While user uses keyboard to enter…

rajthar
- 41
- 2
4
votes
1 answer
Know when dictation has ended in a UITextView
I'd like to know when dictation has end (ideally also when it started).
My UIViewController which includes the UITextView conforms to the UITextInputDelegate protocol.
To make it work I had to subscribe to the…

Bernd
- 11,133
- 11
- 65
- 98
4
votes
0 answers
Is it possible to add words to the iOS dictation dictionary?
I am building an iOS app and it would be very nice if I could enable some custom words for the dictation feature (dictation when entering text into UITextView, etc) in addition to the existing dictionary.
In other words, I want some words that are…

Anton
- 3,998
- 25
- 40
3
votes
1 answer
How to start and stop dictation in Apple Watch witout pressing button
I wrote code to use dictation on my apple watch. I used presentTextInputControllerWithSuggestions without suggestions to directly start dictation.
But, I have two problem :
I want to start dictation when my app starts. For this, I call my function…

Pierre Charpentier
- 270
- 4
- 16
3
votes
1 answer
Use OSX speech recognition without the microphone widget
Is there a way to use voice commands on OSX without the on-screen microphone widget, either on an app-specific basis or system wide?
I'm currently trying to build a speech recognition app in Python on OSX that I can use whilst playing Elite to…

WaferMouse
- 33
- 1
- 5
3
votes
0 answers
Objective C AVAudioRecorder with Dictation
I've been trying to make the AVAudioRecorder work with iOS dictation. What I have done so far was to start the AVAudioRecorder first then the user with press the mic button on the keyboard to start the dictation. I found out that the dictation…

Jace
- 439
- 1
- 7
- 19