Skip to content

How to get best two 'alternatives' in Deepgram Self-hosted Streaming speech-to-text setup #1022

Closed Answered by deepgram-community bot
devalbham asked this question in General help
Discussion options

You must be logged in to vote

I did some testing, It seems Alternatives does work for our older models specifically nova , base , enhanced NOT nova-2 . Also instead of true you'd need to pass in an integer value for the number of alternatives you want back.

Here's an example cURL that worked for me:

curl --location '<https://api.deepgram.com/v1/listen?alternatives=2&model=nova>' \
--header 'Content-Type: audio/wave' \
--header 'Authorization:  Your API KEY' \
--data-binary '@/YOUR FILE'

This message was sent by John Vajda from Deepgram, via our community automation.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@devalbham
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by deepgram-community
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant