- Next let's take a look
at the additional import declarations
that we see here in lines seven through 11.
Now as we did back in the data mining Twitter lesson
we used a keys.py file to hide our credentials
for interacting with the web services in this example.
So you'll see down below whenever we need those keys
we will refer to them as keys. and a variable name
that's defined in that file.
So it is critical in order to run this example
that you modify that file and insert your own API keys.
Now separately we're also going to be using
the pyaudio module to enable us to record audio
from the microphone on our system
and we're going to be using the pydub module
and it's sub-module pydub.playback to load and play back
the audio files that we create in this example.
And then finally we're going to use the built-in
python standard library module called wave
and basically what this is going to enable us to do
is work with wave audio file formats.
So wav is an audio file format that was originally
developed by Microsoft and IBM a very long time ago
and we'll be using that format to store the files
that we send off to Watson's speech to text service
for transcription purposes.