The RecognitionResult
object typically contains a ResultId
property, which is a unique identifier for the recognition result so you can use it to link the result to the corresponding audio file.
The audio log metadata (as shown in your YAML example) contains a self
URL and a contentUrl
. These URLs point to the audio file and its location in Azure Blob Storage.
The name
field in the metadata often contains a unique identifier for example 050047__00a3bf3e-6289-4320-9e47-d3920d24114f.wav
and you can use it to correlate with the ResultId
.
When you submit an audio file for recognition, Azure AI Speech generates a ResultId
for the recognition result. You should store this ResultId
along with the audio file metadata (the name
or contentUrl
) in your application database or logging system.
You can have 3 cases of usage :
If you are using Azure Blob Storage for audio files, you can include the ResultId
as part of the metadata for the blob. This way, you can query the blob metadata using the ResultId
to retrieve the corresponding audio file.
If you are using the Azure Speech SDK, you can access the ResultId
from the RecognitionResult
object and log it alongside the audio file metadata.
If you are using the REST API, the response will include the ResultId
, which you can then associate with the audio file.