-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IngestionClient] Refactor transcription analytics (#1961)
- Loading branch information
1 parent
a278cfa
commit 2fd035a
Showing
16 changed files
with
390 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 0 additions & 50 deletions
50
...n/ingestion-client/FetchTranscription/Extensions/TranscriptionStartedMessageExtensions.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
...stion-client/FetchTranscription/TranscriptionAnalytics/ITranscriptionAnalyticsProvider.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
// <copyright file="ITranscriptionAnalyticsProvider.cs" company="Microsoft Corporation"> | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information. | ||
// </copyright> | ||
|
||
namespace FetchTranscription | ||
{ | ||
using System.Collections.Generic; | ||
using System.Threading.Tasks; | ||
|
||
using Connector; | ||
using Connector.Enums; | ||
using Connector.Serializable.TranscriptionStartedServiceBusMessage; | ||
|
||
public interface ITranscriptionAnalyticsProvider | ||
{ | ||
/// <summary> | ||
/// Gets the status of the transcription analytics jobs that are monitored by the provider | ||
/// </summary> | ||
/// <param name="audioFileInfos">The audio file infos with transcription analytics jobs info</param> | ||
/// <returns>The overall status of all jobs monitored by the provider</returns> | ||
Task<TranscriptionAnalyticsJobStatus> GetTranscriptionAnalyticsJobStatusAsync(IEnumerable<AudioFileInfo> audioFileInfos); | ||
|
||
/// <summary> | ||
/// Submits transcription analytics jobs based on the transcript in speechtranscript and sets the job ids in the corresponding audio file infos. | ||
/// </summary> | ||
/// <param name="speechTranscriptMappings">The mapping from audio file info to transcript</param> | ||
/// <returns>The errors if any.</returns> | ||
Task<IEnumerable<string>> SubmitTranscriptionAnalyticsJobsAsync(Dictionary<AudioFileInfo, SpeechTranscript> speechTranscriptMappings); | ||
|
||
/// <summary> | ||
/// Fetches the transcription analytics results and adds them to the corresponding speech transcript | ||
/// </summary> | ||
/// <param name="speechTranscriptMappings">The mapping from audio file info to transcript</param> | ||
/// <returns>The errors if any.</returns> | ||
Task<IEnumerable<string>> AddTranscriptionAnalyticsResultsToTranscriptsAsync(Dictionary<AudioFileInfo, SpeechTranscript> speechTranscriptMappings); | ||
} | ||
} |
Oops, something went wrong.