How to delete batch transcription results automatically stored in Azure Storage?

Ulhas Hulyal, Nilesh 35 Reputation points
2024-01-04T10:46:43.8566667+00:00

For Batch transcription as suggested in document https://learn.microsoft.com/en-us/azure/ai-services/speech-service/batch-transcription-create?pivots=rest-api, we are storing transcription results in an Azure container by providing "destinationContainerUrl" also used TimetoLive parameter so that transcription results will be automatically deleted.

but we noticed that transcription results are not getting removed from Azure container, we are providing value in TimetoLive as "timeToLive": "PT0H10M", so expecting transcription will be deleted post 10 min after the transcription job is created, but we noticed that transcription is still present in the container. Can anyone please guide if there are any different / additional setting needs to be done while creating transcription request.

Please refer to below transcription payload

{
    "displayName": "TranscriptionDemo1",
    "locale": "en-US",
    "properties": {
        "diarizationEnabled": true,
        "wordLevelTimestampsEnabled": true,
        "timeToLive": "PT0H10M",
        "destinationContainerUrl": "SAS URL"
    },
    "contentUrls": [
        "https://www.signalogic.com/melp/EngSamples/Orig/male.wav"
    ],
    "contentContainerUrl": "",
    "customProperties": {
        "diarizationV3Enabled": true,
        "diarizationMinSpeakers": 1,
        "diarizationMaxSpeakers": 10
    }
}

Azure AI Speech
Azure AI Speech
An Azure service that integrates speech processing into apps and services.
2,081 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,211 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 14,185 Reputation points MVP
    2024-01-04T12:52:19.4+00:00

    The timeToLive countdown may not start until the transcribing task achieves a terminal state (such as "Succeeded" or "Failed"). It is also important to make sure the SAS URL you gave has the required rights, including delete permissions.

    or as an alternative according to the documentation

    https://learn.microsoft.com/en-us/azure/ai-services/speech-service/batch-transcription-create?pivots=rest-api

    you can call Transcriptions_Delete regularly after you retrieve the transcription results.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.