Hey I am looking to build a code in python which will recognise what i speak through the micrphone and convert to speech, can you please give me few effcient speech processing libraries for achieving the same??
Microphone speech into text We need to install PyAudio library which used to receive audio input and output through the microphone and speaker.
This can be done with the help of the “Speech Recognition” API and “PyAudio” library. Speech Recognition API supports several API's, in this blog I used Google speech recognition API. For more details, please check this. It helps to translate for converting speech into text.
Translation of Speech to Text: First, we need to import the library and then initialize it using init() function. This function may take 2 arguments. After initialization, we will make the program speak the text using say() function. This method may also take 2 arguments.
First, make sure you have all the requirements listed in the “Requirements” section. The easiest way to install this is using pip install SpeechRecognition. Otherwise, download the source distribution from PyPI, and extract the archive. In the folder, run python setup.py install.
See pyspeech (python) - Transcribe mp3 files?
which talks about http://code.google.com/p/pyspeech/. You may also want to look at http://code.google.com/p/dragonfly/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With