When the keyboard appears for UITextViews and UITextFields there is a microphone button that lets you do Speech to Text. Is there anyway for me to activate this functionality without having the user to click on the button?
Currently there is no public API to access that feature. You can do this using third party libraries like Nuance or OpenEars.
Related
How to convert speech to text on iphone chrome browser. I have done using speech recognition API for android devices and desktops,laptop but this API is not working on iphone. Any suggestions?
iOS has speech to text built in. Tap on any text entry field, when the keyboard shows tap on the 'microphone' button on the bottom row of the keyboard. Speak into the mike and watch the words appear.
How to read text from custom keyboard from third party apps like Skype, whats up and so on?
Step1: I have to create custom keyboard in swift ios
Step2: Enable and add custom keyboard in ios device.
Step3: User will open skype and chat using custom keyboard .
Step 4: I need to read text or detect text or get text , user typed text from third party apps like skype , whats up, message and so on.
Eg: User open skype and chat using custom keyboard like "Hello" . I wants to read text or get text or detect text as Hello using ios swift.
If you have created your own custom keyboard, then you are the one who implemented creating the text from the keyboard -> it should be super easy to record the user input (since you are generating it). E.g., if you generate a character using:
self.textDocumentProxy.insertText(characterString)
Then just at the same moment track that character:
self.textGeneratedInThisSession = self.textGeneratedInThisSession + characterString
Assuming there is textGeneratedInThisSession variable into which you are appending the text.
Moreover, at any moment you can just examine the content of self.textDocumentProxy which gives you the power to find out even the content of the document proxy that was generated by other keyboards, e.g.:
let contentDescription = textDocumentProxy.description
Read more in UITextDocumentProxy documentation.
However, you should know that this is something Apple is very sensitive about. Recording the text and leaking it anywhere might very easily end in rejection of the custom keyboard.
I am building keyboard app, and I am wondering if there is a possibility to open my custom keyboard when user pressing on textField within my app. Keyboard is built using storyboard.
I know that I can force textField to open number Pad, Phone pad and other Apple's keyboard options but can I open my own keyboard without going to settings and adding my 3rd party keyboard.
Thanks in advance.
No, it's not possible, You have to add keyboard once from settings and then automatically your keyboard will pop up.
if you really want your own keyboard without adding settings then you need to develop your own custom inputView.
Additional notes I have just go through better approach which might be helpful for you check here and about your second question to detect keyboard please visit here
Note: Apple will not allow you to forcefully active your own keyboard at anycast because of its policy violation.
There is a little mic button on the keyboard that when pressed allows the users to vocally talk the text into a text view. Is it possible to automatically force this mic as soon as the text view is pressed? As to not have them go through the hassle of having to click on the mic button themselves? This is what I am talking about:this
After taking a look a the UITextInputTraits documentation, I see no way of showing the voice-input mode automatically.
This would also make sense, since there are a lot of languages which don't have this feature.
Does any one know how to Create custom keyboard in iphone? Pls give me any samples for custom keyboard
Hi you need to try following link. They have explained very well and step by step that how to create Custom Keyboard. http://www.appdesignvault.com/ios-8-custom-keyboard-extension/
But while creating Custom Keyboard there are some limitations you must know:
A Custom Keyboard cannot be used to type into certain text input objects. These include the secure text input objects (any object that has its secureText property set to YES) and phone pad objects (any object that has a keyboard type trait of UIKeyboardTypePhonePad or UIKeyboardTypeNamePhonePad). When the user types in any of these text input objects, the system temporarily replaces your custom keyboard with the system keyboard, and on typing in a non-secure or non-phone pad object, your keyboard resumes.
Input dictation isn’t possible for a custom keyboard since, like all extensions in iOS 8, it has no access to the device microphone.
Selecting text is also not possible. Text selection is under the control of the app that is using the keyboard.
Closely related to the above point, editing menu options i.e. Cut, Copy, Paste are inaccessible. If an app provides an editing menu interface, the keyboard has no access to it.
App developers can reject the use of custom keyboards in their app. This can especially be done in apps that are sensitive to security such as banking apps.
You cannot display key artwork above the top edge of a custom keyboard’s primary view the same way Apple does when you tap and hold a key in the top view.
and very Important you must follow the Apple Extensions guide
https://developer.apple.com/library/ios/documentation/General/Conceptual/ExtensibilityPG/Keyboard.html#//apple_ref/doc/uid/TP40014214-CH16-SW1
Enjoy. Happy coding.!!!