Type Alias ContentSafetyLabelsResult

ContentSafetyLabelsResult: {
    results: ContentSafetyLabelResult[];
    severity_score_summary: {
        [key: string]: SeverityScoreSummary;
    };
    status: AudioIntelligenceModelStatus;
    summary: {
        [key: string]: number;
    };
}

An array of results for the Content Moderation model, if it is enabled. See Content moderation for more information.

Type declaration

  • results: ContentSafetyLabelResult[]

    An array of results for the Content Moderation model

  • severity_score_summary: {
        [key: string]: SeverityScoreSummary;
    }

    A summary of the Content Moderation severity results for the entire audio file

  • status: AudioIntelligenceModelStatus

    The status of the Content Moderation model. Either success, or unavailable in the rare case that the model failed.

  • summary: {
        [key: string]: number;
    }

    A summary of the Content Moderation confidence results for the entire audio file

    • [key: string]: number
{
"status": "success",
"results": [
{
"text": "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.",
"labels": [
{
"label": "disasters",
"confidence": 0.8142836093902588,
"severity": 0.4093044400215149
}
],
"sentences_idx_start": 0,
"sentences_idx_end": 5,
"timestamp": {
"start": 250,
"end": 28840
}
}
],
"summary": {
"disasters": 0.9940800441842205,
"health_issues": 0.9216489289040967
},
"severity_score_summary": {
"disasters": {
"low": 0.5733263024656846,
"medium": 0.42667369753431533,
"high": 0
},
"health_issues": {
"low": 0.22863814977924785,
"medium": 0.45014154926938227,
"high": 0.32122030095136983
}
}
}