Speech-to-Text

IBM Watson

Talha Hanif Butt
2 min readSep 30, 2021

Recently I have used IBM Watson for speech-to-text, how I used it is as follows:

Installation

pip install --upgrade ibm-watsonpip install --upgrade watson-developer-cloudsudo -H pip install --ignore-installed six ibm-watson

Getting credentials

  1. Go to https://www.ibm.com/cloud/watson-speech-to-text
  2. Choose to Get started free
  3. Choose the Lite plan
  4. Login
  5. Choose Create
  6. Go to the Manage option on the left-hand side and copy the API key.

The Code

I have used the following file by replacing my API key and changing the input audio file.

It provides the output including the start and end of each word along with confidence. It also provides the complete script along with the overall confidence.

References

--

--

Talha Hanif Butt

PhD Student -- Signal and Systems Engineering, Halmstad University, Volvo Trucks http://pk.linkedin.com/in/talhahanifbutt