#"sentiment" missing sometimes in the Deepgram's payload making the output unreliable (Python SDK)

1 messages · Page 1 of 1 (latest)

iron bone
#

I am using the Python SDK and starting from the 23rd of December I oftentimes do not get the "sentiment" property in the payload. Sometimes I do, oftentimes I do not. Is there anything I am doing wrong?

Here's the way I access the response:

source = {"buffer": audio, "mimetype": "audio/mp3"}
response = deepgram.transcription.sync_prerecorded(
source,
{
"punctuate": True,
"smart_format": True,
"filler_words": True,
"diarize": True,
"model": "nova-2",
"language": "en-GB",
"paragraphs": True,
"utterances": True,
"sentiment": True,
})

words = response["results"]["channels"][0]["alternatives"][0]["words"]

gilded isleBOT
#

Thanks for asking your question. Please be sure to reply with as much detail as possible so we can assist you efficiently. Such as:

  • Provide the request_id if you've a question about a transcription response.
  • The options you used or the api.deepgram.com URL you sent your request to, including parameters.
  • Any code snippets you can include.
  • Any audio you can include, or if you can't share it here please email it to us at [email protected] and provide a link to this thread.
iron bone
#

Request ID: fd8ea073-f9d5-4ff5-a969-60c40fb334bd

safe ivy
#

There was a known issue and it should now be resolved?

iron bone
#

until yesterday it wasn't, has it been solved today?

safe ivy
#

Oh! I definitely saw an issue related to this resolved last week. Let me see what is happening with it

#

I've reached out to the team who were looking into this. I'll let you know as soon as I hear from them. We're still getting back up and running from the break, so it might not be until tomorrow now

#

@iron bone were you able to reproduce this today? And can you email me what audio you're trying it on?

#

I think I already have your audio from your email 😅

iron bone
#

yeah I sent it in the following email haha in general I have not tracked it anymore as I patched my code to default to "neutral" in case the sentiment is missing

#

on the last days of last year it has been consistent

safe ivy
#

Great, yeh we resolved it on the 29th from our records