I’m trying to complete a coding challenge where we are asked to build a basic web app that uses the IBM Watson Speech To Text API. I’m still beginner but have worked with openweather and google books apis before, but this time it feels I dont know what is what…
Anyone had any experience with this API that may be able to help me get the logic part done?
I got as far as getting an IBM Id and API Key as well.
App would be either plain old html+js or might go the React way also, no preference.
Working example.
This won’t work in a browser because the enpoint have CORS.
Put this code into .js file and run with node. audio-file.flac must be in the same directory.
Don’t forget to install node-fetch.