Ayushi Garg
Ayushi Garg

Reputation: 23

How to use OneDrive for audio file storage instead of Azure Blob for Batch Speech Transcription?

I want to use Azure Cognitive Service Speech Batch Transcription APIs with OneDrive instead of using an Azure blob storage location. Is this possible? Any workarounds that can help me achieve the same? Can I create a stream and pass that instead?

I already have the git hub sample for batch processing working but changing it to a location other than Azure Storage gives an error "The recordings URI contains invalid data."

I am trying to change RecordingsBlobUri in Program.cs in the sample where I want to provide a OneDrive url instead of Azure Blob

        // recordings and locale
        private const string Locale = "en-US";
        private const string RecordingsBlobUri = "<SAS URI pointing to an audio file stored in Azure Blob Storage>";

Upvotes: 0

Views: 242

Answers (1)

Nicolas R
Nicolas R

Reputation: 14609

As indicated in the documentation:

Batch transcription supports Azure Blob storage for reading audio and writing transcriptions to storage.

There is no possibility to use OneDrive to provide the audio file that you want to process.

Upvotes: 1

Related Questions