Watson speech to text3/18/2023 Now websocket sends data packet over a single TCP connection and thereby reducing connection overheads for every request. Implementing streaming service was bit tricky considering i know very less javascript and it works by having a bi-directional websocket connection sending data back and forth between client and server. Making the valid post request requires username and password authentication.Ĭode Example: import requests # request url is given when you signup for speech to text service response_data = requests.post(url, auth=(username, password), headers=headers) IBM Watson provides a rest api and you just have to make a post request with the audio file and let the server do the work and sends you back the results. Implementing non-streaming service was pretty straight forward task. Now that we have explored the task at hand and the different speech to text service. The Non-streaming service takes the audio file and sends back the text transcript after processing the complete audio, Whereas Streaming service works by listening to the audio stream via the user microphone, processing the speech and displaying the results in real time. Let me come back to the difference between streaming and non-streaming service. The service comes with 100 mins of free monthly quota and beyond this requires the account to be upgraded. Once you signup for Watson Speech to Text, you will be given username and password, that you will use as authentication for every request. So i had the task of developing Speech to text web application using both streaming and non-streaming service(I’ll explore more on the difference later in this post).ĭeveloping this project was something new to me as i never explored speech recognition before and choosing one from many available services like Google cloud and IBM Watson required a bit of research.Īt the end i chose IBM watson for a simple reason that watson has better documentation for beginners to get started and signing up for IBM watson is very easy with no requirement of providing debit/credit card details unlike Google.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |