Skip to content

Commit

Permalink
Implements Encoding and SampleRate in Prerecorded
Browse files Browse the repository at this point in the history
  • Loading branch information
dvonthenen committed Mar 23, 2024
1 parent 9a52ec9 commit fe99d86
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Deepgram/Models/PreRecorded/v1/PrerecordedSchema.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,14 @@ public class PrerecordedSchema
[JsonPropertyName("dictation")]
public bool? Dictation { get; set; }

/// <summary>
/// Encoding allows you to specify the expected encoding of your submitted audio.
/// <see href="https://developers.deepgram.com/docs/encoding">
/// supported encodings <see cref="AudioEncoding"/>
/// </summary>
[JsonPropertyName("encoding")]
public string? Encoding { get; set; }

/// <summary>
/// Deepgram’s Extra Metadata feature allows you to attach arbitrary key-value pairs to your API requests that are attached to the API response for usage in downstream processing.
/// Extra metadata is limited to 2048 characters per key-value pair.
Expand Down Expand Up @@ -187,6 +195,14 @@ public class PrerecordedSchema
[JsonPropertyName("replace")]
public List<string>? Replace { get; set; }

/// <summary>
/// Sample Rate allows you to specify the sample rate of your submitted audio.
/// <see href="https://developers.deepgram.com/docs/sample-rate">
/// only applies when Encoding has a value
/// </summary>
[JsonPropertyName("sample_rate")]
public int? SampleRate { get; set; }

/// <summary>
/// Search searches for terms or phrases in submitted audio.
/// <see href="https://developers.deepgram.com/docs/search">
Expand Down

0 comments on commit fe99d86

Please sign in to comment.