-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: async transcribe prerecorded result (#111)
* Adding methods and return object for Prerecorded transcription with callback for completion. * Tests pass * Some cleanup, new tests pass, commenting interface. * Fixing broken queryparam test. * Fixing docs. Marking all async tests as Tasks instead of voids. * Changing test names to match project standard. * Fixing casing error on intellisense summary comments for IPrerecordedTranscriptionClient. * Making sure the tests use the urlSource instead of regenerating a callback url over and over. * The same as last * Adding support for actually using the old options.Callback parameter, as long as callbackUrl is sent as null/empty in async call. * Adding check to make sure the correct method is called if async transcription is requested. * Reverting breaking change when calling with GetTranscriptionResult with no callbackUrl argument but with Callback set in the options object. Now works as previously. * Fixing conflict and validating tests.
- Loading branch information
Showing
8 changed files
with
189 additions
and
36 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
|
||
namespace Deepgram.Models | ||
{ | ||
public class PrerecordedTranscriptionCallbackResult | ||
|
||
{ | ||
/// <summary> | ||
/// Id of the request. | ||
/// </summary> | ||
[JsonProperty("request_id")] | ||
public Guid RequestId { get; set; } | ||
} | ||
} |
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