Now we want to transcribe an audio file. It turns the audio into a text we can manipulate and analyze later.
First, you need to download this sample audio file on your machine.
And after a few seconds you should get the following response:
Code
{ { "text": "is the micro machine man presenting the most midget miniature motorcade of micro machine each one has dramatic details terrific trim precision page outs plus incredible micro machine pocket play sets there's a police station fire station restaurant service station and more perfect pocket portables to take any place and there are many miniature play sets to play with it each one comes with its own special edition micro machine vehicle and fun fantastic features that miraculously move raise the bolt to fit the airport marina man the gun turret at the army base clean your car at the car wash raise the toll bridge and these play sets fit together to form a micro machine world micro machine pocket play sets so tremendously tiny so perfectly precise so dazzlingly detailed you wanna pocket them all micro machines and micro machine pocket play sets sold separately from galoob the smaller they are the better they are", "transcript": "is the micro machine man presenting the most midget miniature motorcade of micro machine each one has dramatic details terrific trim precision page outs plus incredible micro machine pocket play sets there's a police station fire station restaurant service station and more perfect pocket portables to take any place and there are many miniature play sets to play with it each one comes with its own special edition micro machine vehicle and fun fantastic features that miraculously move raise the bolt to fit the airport marina man the gun turret at the army base clean your car at the car wash raise the toll bridge and these play sets fit together to form a micro machine world micro machine pocket play sets so tremendously tiny so perfectly precise so dazzlingly detailed you wanna pocket them all micro machines and micro machine pocket play sets sold separately from galoob the smaller they are the better they are", "confidence": 0.9749991, "duration": 29.888374, "language": "en", "metadata": { "request_id": "f5778fa4-40f9-4d60-993b-2f43f0164221", "model": "nova-3", "duration": 29.888374, "channels": 1, "alternatives": [ ... ] }},
This works with local files but it also works with remote files by providing a URL instead of uploading the audio data directly.
Here is how you would do that: