- [Presenter] In this video, I'm going to discuss
the first three imports that you see here, each of which
is from the IBM Watson Module
from the Watson Developer Cloud SDK.
Now, if by any chance you're following along
with these videos in our book
"Python for Programmers" or our textbook
"Intro to Python for Computer Science and Data Science"
in the book you're going to see here,
instead of IBM underscore watson,
you'll see watson underscore developer underscore cloud.
And that's because they renamed the module since
we published the book.
However, the code as is in the book will also work.
So they still have backwards compatibility.
Now you'll notice we've imported three classes from
the IBM Watson Module.
The class called Speech to Text V1 is the first version
of their speech to text class that accesses
the Watson Speech to Text service for you.
And as you're going to see in the code down below,
with simple method calls on this object,
we are going to be able to submit an audio file
off to the speech to text service.
It will then transcribe that text for us, assuming it's
in a language that the service understands.
And what it's going to give us back is a JSON document
that contains the text transcription, which we of course
will then access and pull out of that JSON object.
We have the Language Translator service version 3.
So this class encapsulates everything that needs to be done
to communicate with Watson's Language Translator.
And again, we'll take texts, in this case, hand it off
to the language translator service,
and what it will give us back, once again,
is a JSON document containing the translated text.
And, of course, this assumes
that it's supported languages once again.
And finally, we have the class Text to Speech V1,
and for that one, we're going to give it text,
which we then want to turn into an audio file.
And what it's going to give us back is the audio file
that we can then play back in our app.
So, we'll see the use of each of these three classes
as we take a look in a couple of videos from now
at the run translator method, or function rather.