March 2019
Beginner to intermediate
778 pages
34h 20m
English
First, we'll record the voice which needs to be transcribed in FLAC format. Then, we'll use a Python program to invoke the Speech API and get the transcribed response:
$ sudo apt-get install sox
Or for CentOS:
$ sudo yum install sox
$ rec -c 1 -r 16000 record.flac trim 0 3
The preceding command will record an audio message for 3 seconds with a sample rate of 16000 Hz.
$ virtualenv ENV$ source ENV/bin/activate$ pip ...
Read now
Unlock full access