speech-recognition

Speech to text in python with a WAV file

Speech to text in python with a WAV file Question: 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 = r.record(source) …

Total answers: 3

Python, speech_recognition tool does not recognize .wav file

Python, speech_recognition tool does not recognize .wav file Question: I have generated a .wav audio file containing some speech with some other interference speech in the background. This code worked for me for a test .wav file: import speech_recognition as sr r = sr.Recognizer() with sr.WavFile(wav_path) as source: audio = r.record(source) text = r.recognize_google(audio) If …

Total answers: 3

portaudio.h: No such file or directory

portaudio.h: No such file or directory Question: I got the following error while trying to install pyaudio using pip3 in ubuntu 16.04: Collecting pyaudio Downloading PyAudio-0.2.11.tar.gz Installing collected packages: pyaudio Running setup.py install for pyaudio … error Complete output from command /usr/bin/python3 -u -c “import setuptools, tokenize;__file__=’/tmp/pip-build-mxgvewdb/pyaudio/setup.py’;f=getattr(tokenize, ‘open’, open)(__file__);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, __file__, ‘exec’))” install –record /tmp/pip-v55chjee-record/install-record.txt …

Total answers: 5

ImportError: No module named 'speech_recognition' in python IDLE

ImportError: No module named 'speech_recognition' in python IDLE Question: I’m trying to use the speech recognition module with python 3.5.1 to make my jarvis AI voice activated! I have looked through stack overflow and found some questions similar to mine but they did not have the answer that i needed, i need an answer individualized …

Total answers: 12

Remove quotes from String in Python

Remove quotes from String in Python Question: I have a python Code that will recognize speech using the Google STT engine and give me back the results but I get the results in strings with “quotes”. I don’t want that quotes in my code as I will use it to run many commands and it …

Total answers: 8

Split speech audio file on words in python

Split speech audio file on words in python Question: I feel like this is a fairly common problem but I haven’t yet found a suitable answer. I have many audio files of human speech that I would like to break on words, which can be done heuristically by looking at pauses in the waveform, but …

Total answers: 5

ImportError: No module named request

ImportError: No module named request Question: I am trying to install python SpeechRecognition on my machine.When i am trying to install the package as pip install SpeechRecognition. I am getting the following error. import json, urllib.request ImportError: No module named request And then i referred and installed requests as pip install requests i am i …

Total answers: 3

How to embed Google Speech to Text API in Python program?

How to embed Google Speech to Text API in Python program? Question: I have a project in which I have created a chat program between a client and host, and I have to embed Speech to Text in it. Is there any way by which I can embed Google Speech to Text API in my …

Total answers: 4