Well, i searched about voice assistants like Google assistant ,Siri .
i searched about how the voice assistants are working …
after then ,i started thinking about writing an program which converts audio to text using Python Script .
Finally ,i am done with it .
This is my repo link ,https://github.com/bhargavgana/Speech-Recognition-with-Python.git
To install PyAudiio and SpeechRecognition follow the following steps :p 1.Type pip3 install SpeechRecognition to install SpeechRecognition packages .
2.Type pip3 install PyAudio to install PyAudio package.
Btw,if you got an error while installing PyAudio packages like
running install
running build
running build_py
running build_ext
building '_portaudio' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-2.7/src/_portaudiomodule.o
In file included from /usr/include/python2.7/Python.h:8:0,
from src/_portaudiomodule.c:28:
/usr/include/python2.7/pyconfig.h:1161:0: warning: "_POSIX_C_SOURCE" redefined [enabled by default]
/usr/include/features.h:215:0: note: this is the location of the previous definition
src/_portaudiomodule.c:29:23: fatal error: portaudio.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1
Type this command in the terminal:)
sudo apt-get install python-pyaudio
by installing all the library packages you can get started:)
cheers;
