Skip to content

Commit 1d2d6dd

Browse files
Merge pull request #13 from deepgram/adding-tier
Adding tier to transcription options
2 parents 785665a + 0c53db3 commit 1d2d6dd

2 files changed

Lines changed: 28 additions & 3 deletions

File tree

Deepgram/Transcription/LiveTranscriptionOptions.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Text;
32
using Newtonsoft.Json;
43

54
namespace Deepgram.Transcription
@@ -24,6 +23,13 @@ public class LiveTranscriptionOptions
2423
[JsonProperty("language")]
2524
public string Language { get; set; } = null;
2625

26+
/// <summary>
27+
/// Level of model you would like to use in your request.
28+
/// </summary>
29+
/// <remarks>Defaults to base. Possible values are: base, enhanced</remarks>
30+
[JsonProperty("tier")]
31+
public string Tier { get; set; } = null;
32+
2733
/// <summary>
2834
/// Indicates whether to add punctuation and capitalization to the transcript.
2935
/// </summary>
@@ -81,6 +87,13 @@ public class LiveTranscriptionOptions
8187
[JsonProperty("search")]
8288
public string[] SearchTerms { get; set; }
8389

90+
/// <summary>
91+
/// Terms or phrases to search for in the submitted audio and replace.
92+
/// </summary>
93+
/// <remarks>Phrases should be submitted in the format: searchfor:replacewith</remarks>
94+
[JsonProperty("replace")]
95+
public string[] Replace { get; set; }
96+
8497
/// <summary>
8598
/// Callback URL to provide if you would like your submitted audio to be processed asynchronously.
8699
/// When passed, Deepgram will immediately respond with a request_id.

Deepgram/Transcription/PrerecordedTranscriptionOptions.cs

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Text;
42
using Newtonsoft.Json;
53

64
namespace Deepgram.Transcription
@@ -25,6 +23,13 @@ public class PrerecordedTranscriptionOptions
2523
[JsonProperty("language")]
2624
public string Language { get; set; } = null;
2725

26+
/// <summary>
27+
/// Level of model you would like to use in your request.
28+
/// </summary>
29+
/// <remarks>Defaults to base. Possible values are: base, enhanced</remarks>
30+
[JsonProperty("tier")]
31+
public string Tier { get; set; } = null;
32+
2833
/// <summary>
2934
/// Indicates whether to add punctuation and capitalization to the transcript.
3035
/// </summary>
@@ -81,6 +86,13 @@ public class PrerecordedTranscriptionOptions
8186
/// </summary>
8287
[JsonProperty("search")]
8388
public string[] SearchTerms { get; set; }
89+
90+
/// <summary>
91+
/// Terms or phrases to search for in the submitted audio and replace.
92+
/// </summary>
93+
/// <remarks>Phrases should be submitted in the format: searchfor:replacewith</remarks>
94+
[JsonProperty("replace")]
95+
public string[] Replace { get; set; }
8496

8597
/// <summary>
8698
/// Callback URL to provide if you would like your submitted audio to be processed asynchronously.

0 commit comments

Comments
 (0)