Options
All
  • Public
  • Public/Protected
  • All
Menu

assemblyai-v2-node-sdk

Index

Type aliases

ContentSafetySummary: Record<string, number>

For each label that was predicted in the results set, the summary key provides the confidence of each label in relation to the entire audio file. For example, there could be a single result of disasters with 0.99 confidence, but if this was a single result in a 3 hour audio file, the summary would show a low confidence for disasters - indicating that disasters is not spoken of widely throughout the entire audio file.

IabCategoriesSummary: Record<string, number>

For each unique topic label detected in the results array, the summary key will show the relevancy for that label across the entire audio file. For example, if the Science>Environment label is detected only 1 time in a 60 minute audio file, the summary key will show a low relevancy score for that label, since the entire transcription was not found to consistently be about Science>Environment.

SeverityScoreSummary: Record<string, SeverityScore>

The severity_score_summary key lists each label that was detected along with low, medium, and high keys.

    "severity_score_summary": {
"health_issues": {
"low": 0.7210625030587972,
"medium": 0.2789374969412028,
"high": 0.0
}
}

The value of the low, medium, and high keys reflect the API's confidence that the label is "low," "medium," or "high" in severity throughout the entire audio file. This score is based on the intersection of the length of the audio file, the frequency of low/medium/high severity tags through the file, and the confidence score for each of those occurrences.

Generated using TypeDoc