4

How can I have dictation show when pressing on a button in a UIViewController.

I see that this is done when the microphone is selected in the search field in Apple Store App. But I am not sure how this same action can be replicated in Swift.

The following image shows what I would like to accomplish:

enter image description here

108g
  • 406
  • 3
  • 10
John
  • 965
  • 8
  • 16
  • I think you misunderstood my question, I just need to know how to write a function that brings up dictation right away – John Jul 08 '19 at 06:47
  • Have you had made the audio equaliser view or the dictation you are asking to show. – Shivam Gaur Jul 08 '19 at 06:57
  • Hi @PeterDavon this will help you https://stackoverflow.com/questions/53849787/recognize-speech-to-text-swift – Vicky_Vignesh Jul 08 '19 at 06:59
  • 1
    @ShivamGaur Dictation view is already made, its in the keyboard..I just want to present it when a button is pressed. – John Jul 08 '19 at 13:21
  • @PeterDavon you can not use keyboard dictation view , there is no api or property to use it, you have to make your custom one, please go trough this link - https://medium.com/ios-os-x-development/speech-recognition-with-swift-in-ios-10-50d5f4e59c48 – Shivam Gaur Jul 09 '19 at 07:16
  • Hello john were you able so solve this? – rptwsthi Aug 11 '23 at 13:36

0 Answers0