IBM Watson Studio is an integrated environment designed to develop, train, manage models, and deploy AI-powered applications and is a Software as a Service (SaaS) solution delivered on the IBM Cloud. The IBM Cloud provides lots of services like Speech To Text, Text To Speech, Visual Recognition, Natural Language Classifier, Language Translator, etc.
The Speech to Text service transcribes audio to text to enable speech transcription capabilities for applications.
Create an instance of the service
- Go to the Speech to Text page in the IBM Cloud Catalog.
- Sign up for a free IBM Cloud account or log in.
- Click Create.
Copy the Credentials to Authenticate to your service instance
- From the IBM Cloud Resource list, click on your Speech to Text service instance to go to the Speech to Text service dashboard page.
- On the Manage page, click Show Credentials to view your credentials.
- Copy the API Key and URL values.
- ibm_watson: This module does not comes pre-defined with Python. To install it type the below command in the terminal.
pip install ibm_watson
Now you’re ready to use the IBM Cloud Services.
Below code illustrates the use of IBM Watson studio’s Speech To Text Service using Python and web socket interface
The Output will be Transcript (Text) of audio file.
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.