C# Speech Recognition – Is this what the user said?

A similar question was asked on Joel on Software a while back. You can use the System.Speech.Recognition namespace to do this…with some limitations. Add System.Speech (should be in the GAC) to your project. Here’s some sample code for a WinForms app: public partial class Form1 : Form { SpeechRecognizer rec = new SpeechRecognizer(); public Form1() … Read more

ImportError: No module named request

The SpeechRecognition library requires Python 3.3 or up: Requirements […] The first software requirement is Python 3.3 or better. This is required to use the library. and from the Trove classifiers: Programming Language :: Python Programming Language :: Python :: 3 Programming Language :: Python :: 3.3 Programming Language :: Python :: 3.4 The urllib.request … Read more

Android: Speech Recognition without using google server

We used to recommend pocketsphinx, but now more advanced technology based on Kaldi toolkit is available. The demo is here: Vosk API, you can simply load it in Android Studio and run. Full disclosure: I am the primary author of Vosk. It supports speech recognition in 7 major languages – English, Chinese, Spanish, Portuguese, German, … Read more

Offline Speech Recognition In Android (JellyBean)

Google did quietly enable offline recognition in that Search update, but there is (as yet) no API or additional parameters available within the SpeechRecognizer class. {See Edit at the bottom of this post} The functionality is available with no additional coding, however the user’s device will need to be configured correctly for it to begin … Read more

What is the difference between System.Speech.Recognition and Microsoft.Speech.Recognition?

The short answer is that Microsoft.Speech.Recognition uses the Server version of SAPI, while System.Speech.Recognition uses the Desktop version of SAPI. The APIs are mostly the same, but the underlying engines are different. Typically, the Server engine is designed to accept telephone-quality audio for command & control applications; the Desktop engine is designed to accept higher-quality … Read more

Remove quotes from String in Python

Just use string methods .replace() if they occur throughout, or .strip() if they only occur at the start and/or finish: a=””sajdkasjdsak” “asdasdasds”” a = a.replace(‘”‘, ”) ‘sajdkasjdsak asdasdasds’ # or, if they only occur at start and end… a = a.strip(‘\”‘) ‘sajdkasjdsak” “asdasdasds’ # or, if they only occur at start… a = a.lstrip(‘\”‘) # … Read more

How can I use speech recognition without the annoying dialog in android phones

Use the SpeechRecognizer interface. Your app needs to have the RECORD_AUDIO permission, and you can then create a SpeechRecognizer, give it a RecognitionListener and then call its startListening method. You will get callbacks to the listener when the speech recognizer is ready to begin listening for speech and as it receives speech and converts it … Read more