45

I know that there is no public API for the SIRI-Services, but is there an API for simple Speech-Recognition? So if I have a textfield and the user taps onto that textfield, a keyboard with the typically microphone button appears and if he pressed it the speech get recognized and transformed into a string object? Or is this button maybe presented by default?

Sebastian Boldt
  • 5,283
  • 9
  • 52
  • 64
  • 2
    This below is two speech api http://www.politepix.com/openears/ && http://www.ispeech.org/ – Priyank Gandhi May 29 '13 at 11:19
  • Check [Text to speech on iPhone](http://stackoverflow.com/questions/416064/text-to-speech-on-iphone) and http://stackoverflow.com/questions/12839671/text-to-speech-libraries-for-iphone – Midhun MP May 29 '13 at 14:08
  • This question is not a duplicate of TTS questions. This question is asking how to convert speech into text, not the other way around. – Dan Dyer Jan 31 '14 at 02:01
  • 1
    Checkout GIRI: https://github.com/jhurt/GIRI. Disclaimer: I wrote it. – Jason Hurt Jun 11 '14 at 19:27
  • You should tell us what languages shall be recognized. – rwitzel Mar 04 '15 at 13:11
  • 3
    Apple introduced Speech Recognition in iOS10 -> ```let recognizer = SFSpeechRecognizer() let request = SFSpeechURLRecognitionRequest(url: audioFileURL) recognizer?.recognitionTask(with: request, resultHandler: { (result, error) in print (result?.bestTranscription.formattedString) })``` – Tiago Almeida Jun 14 '16 at 09:45
  • 1
    @TiagoAlmeida, Yeah, but code you put here that is for preRecorded audio files – Mrugesh Tank Jun 29 '16 at 06:56
  • @TiagoAlmeida: SFSpeechAudioBufferRecognitionRequest will be helpful for you. Its objects records and buffers the audio data while you are giving input. So your buffered data can be given to the SFSpeechURLRecognitionRequest. – Vin Sep 29 '16 at 13:38
  • @TiagoAlmeida :http://mindbowser.com/blog/siri-speech-to-text/ refer this for more information – Vin Sep 29 '16 at 13:45

2 Answers2

43

There are many libraries availble. You can use any of them.

  1. openears // This is the best library

  2. VocalKit (Deprecated for open ears)

  3. TTS
  4. ispeech (Not free)

Hope it helps you.

NOTE:

if you download openears (which contains a sample project called "OpenEarsSampleApp") @efimovD mentions this

Check the code in view controller and you will see an array with possible commands. This thing detects commands! Not some talk. It listens and tries to compare what you've said with the words from array

d1jhoni1b
  • 7,497
  • 1
  • 51
  • 37
Nishant Tyagi
  • 9,893
  • 3
  • 40
  • 61
  • 4
    It seems openear's sample app always thinks I am repeating the word "GO". Fails completely. Using iPhone 6+ with 8.1.2 – ruralcoder Jan 23 '15 at 06:01
  • You can also consider CeedVocal (not free) which has been used in many apps on iOS. https://github.com/creaceed/CeedVocal and http://www.creaceed.com/ceedvocal – rsebbe Feb 14 '15 at 16:06
  • 1
    Is TTS for speech recognition or only for text-to-speech? If only for the latter one, please remove it from the list. – rwitzel Mar 04 '15 at 12:53
  • which one is best for indian accent ? – abh Mar 17 '15 at 13:14
  • I checked the docs and made an edit. TTS does indeed do TTS only and not recognition. – mike nelson Mar 21 '15 at 21:10
  • 2
    @ruralcoder Yes, this is because you don' t understand what it does. Check the code in view controller and you will see an array with possible commands. This thing detects commands! Not some talk. It listens and tries to compare what you've said with the words from array. The best comparison will be displayed. – efimovdk Nov 20 '15 at 23:10
  • http://www.ispeech.org/#/home/ claims iSpeech is free and open-source for Mobile use..? – Ammar Mujeeb Apr 19 '16 at 13:33
  • You can find sample app for TTS over here ---> https://github.com/jonbarlo/iPhoneTTSSampleApp – d1jhoni1b Aug 04 '16 at 08:52
1

You can use the MindMeld iOS SDK provided by Expect Labs. It supports continuous (streaming) speech recognition on iOS. It also supports natural language understanding and content discovery for any custom content domain.

Try it out at: https://expectlabs.com/docs/sdks/ios/gettingStarted

nicael
  • 18,550
  • 13
  • 57
  • 90
tim176
  • 11
  • 1
  • To the suggester: you shouldn't do that, the link should be left as is, because the reader could understand where are they going to click. – nicael Jun 28 '16 at 11:04