Questions tagged [speech-recognition-api]

Use this tag for Apple speech recognition api, that was introduce with iOS 10

Speech Recognition API for iOS is introduced with iOS 10. It is a new framework which will allow speech recognition for more than 50 languages. This will help audio to text conversion from audio file as well as user voice. Frame work name is Speech and base class for the framework is Speech.h.

You can check more detail about this tag here.

22 questions
5
votes
2 answers

SpeechRecognition, AssertionError "Source must be an audio source"

Here is my code: import speech_recognition as sr r = sr.Recognizer() with sr.Microphone() as source: print('Say Something') audio = r.listen(source) voice_data = r.record(audio) print(voice_data) When I type "python main.py" on…
5
votes
4 answers

How To Make iOS Speech-To-Text Persistent

I am conducting initial research on a new potential product. Part of this product requires Speech-To-Text on both iPhones and iPads to remain on until the user turns it off. Upon using it myself, I noticed that it either automatically shuts off…
Ethan
  • 1,905
  • 2
  • 21
  • 50
4
votes
1 answer

How to force iOS Speech API to read only numbers and recognize "one" as "1"

I want to use iOS Speech API to recognize mathematical expressions. It works okay for things like two plus four times three - reads it as 2+4*3, but when I start expression with 1 it always reads it as "One". When "One" is in the middle of…
3
votes
0 answers

Error with Apple's SFSpeechRecognition when app in Background Mode (phone locked)

I am attempting to use Apple's SFSpeechRecognition (xcode 9, ios11, swift 4). The following code uses a timer to start a new request for speech recognition. I have background capability on, microphone usage granted and speech recognition granted. If…
2
votes
1 answer

Google's Speech Recognition API (recognize_google function in python) Usage Limits?

Can you give more information about Google's Speech Recognition API (recognize_google function in python) Usage Limits? The website (https://pypi.org/project/SpeechRecognition/3.1.3/) shows To obtain your API key, follow the steps on the API Keys…
2
votes
0 answers

How to convert audio blob bytes to .wav in python

I am trying to develop a api using flask from speech recoginition. Where i am getting request.data as I want to convert Bytes to as a .wav file so, i can use in speech recognition api. here is my…
2
votes
3 answers

Speech to text in python with a WAV file

I try to convert a speech in a WAV file but I'm stuck here. A lot of tutorial give the same code but it doesn't work for me. Here it is: import speech_recognition as sr r = sr.Recognizer() with sr.AudioFile("hello_world.wav") as source: audio =…
2
votes
0 answers

Why is the "matches" option not working for cordova-plugin-speechrecognition?

Problem: using the "Cordova Plugin for Speech Recognition" in an Android app, the startListening() function almost always returns 5 matches, despite setting matches: 1. matches is defined as: {Number} number of return matches (default 5) For…
1
vote
1 answer

Speech Recognition is not working in Android 11+

I using speech recognition google API its working fine in Android 10 and below but unfortunately stop working after updating API to android 30, and Method Provide null result @Override public void onPartialResults(Bundle partialResults) { …
1
vote
0 answers

I am always getting network error in recongition.onerror() Listener in Javascript Speech Recognition

I am creating one Application where I want to ask multiple question to user as Voice input using speech Recognition in JavaScript,But When user gives first answer then Mike listens for long time even after The User stop speaking and in…
1
vote
0 answers

Android Speech to text API masking bad words

I am developing an android app in which user can search any text from a document using Speech to text functionality. I have implemented Android's Sppech recogniser class. If user speak swear or bad word it will return result in masked form e.g.…
1
vote
1 answer

Speech Language Recognition issues on Android

I'm currently working on an Android application using SpeechRecognizer provided by Google. However, this recognizer only uses the default language of the device, and not languages provided with RecognizerIntent.ADD_EXTRA_LANGUAGES…
1
vote
1 answer

Issue with Speech Recognition API in React to enable voice command

I am creating voice-controlled React app that will switch on and switch off a lamp using 'react-speech-recognition' module on voice command ON and OFF. Everything working as expected however there is one issue that I'm facing is, the App is…
sandy
  • 283
  • 1
  • 7
  • 27
1
vote
0 answers

Speech Recognition in python3.7 does not work

I'm use OSX and trying the voice assistant concept. However, the code stuck in audio = r.listen(source). I try to upgrade all of stuff but it does not work. My code is: r = sr.Recognizer() with sr.Microphone() as source: audio =…
Dat.N.V
  • 21
  • 1
1
vote
0 answers

Shiny.SpeechRecognition (Plugin) integration with MvvmCross and Xamarin.Forms

I have implemented the Shiny Speech Recognition plugin in a MvvmCross Xamarin.Forms solution. => https://github.com/shinyorg/shiny Nuget => https://www.nuget.org/packages/Shiny.SpeechRecognition/1.0.0.357-beta I'm trying to use the…
1
2