google-speech-api

Custom phrases/words are ignored by Google Speech-To-Text

Custom phrases/words are ignored by Google Speech-To-Text Question: I am using python3 to transcribe an audio file with Google speech-to-text via the provided python packages (google-speech). There is an option to define custom phrases which should be used for transcription as stated in the docs: https://cloud.google.com/speech-to-text/docs/speech-adaptation For testing purposes I am using a small audio …

Total answers: 1

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

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