-
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] Revert faulty ingestion client commits (#2258)
* reset back to commit 2fd035a * merge commit 1c5f343 * update template version * update VisualStudioVersion
- Loading branch information
1 parent
3d62e3a
commit 3ce1dff
Showing
21 changed files
with
752 additions
and
559 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
14 changes: 14 additions & 0 deletions
14
samples/ingestion/ingestion-client/Connector/Enums/TranscriptionAnalyticsJobStatus.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,14 @@ | ||
// <copyright file="TranscriptionAnalyticsJobStatus.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 Connector.Enums | ||
{ | ||
public enum TranscriptionAnalyticsJobStatus | ||
{ | ||
NotSubmitted, | ||
Running, | ||
Completed | ||
} | ||
} |
23 changes: 0 additions & 23 deletions
23
...s/ingestion/ingestion-client/Connector/Serializable/TextAnalytics/TextAnalyticsRequest.cs
This file was deleted.
Oops, something went wrong.
19 changes: 0 additions & 19 deletions
19
...stion/ingestion-client/Connector/Serializable/TextAnalytics/TextAnalyticsRequestsChunk.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
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
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.