Skip to content

hyc0812/deepgram-local-voice-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Play with a Speech-to-Text API using Node.js

Let's login to your Deepgram , navigate to your Dashboard , and choose Get a Transcript via API or SDK:

Image description

Click reveal Key and copy your API KEY SECRET:

Image description

Image description

The next step, paste your API KEY SECRET into line 5 of your index.js, like the following:

Image description

Then let's replace line 8 and 9 with our voice file path and mimetype (Hint: use a new CLI to navigate to the directory where your voice file is located and use pwd to acquire absolute path):

Image description

Now lastly let's run our application with the following command (Make sure you are at /sttApp):

node index.js

And you’ll receive a JSON response including a transcript that you want, including word arrays, timings, and confidence scores:

Image description

Image description

Pretty COOL!

If you still get confused about the above content, please feel free to get my git repository here: linkToGit

References

https://console.deepgram.com/project/850abca5-449a-47fa-8c40-6a463e59ad00/mission/transcript-via-api-or-sdk https://dev.to/devteam/join-us-for-a-new-kind-of-hackathon-on-dev-brought-to-you-by-deepgram-2bjd

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published