April 2018
Intermediate to advanced
280 pages
6h 18m
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 ...