Skip to content

Commit

Permalink
Merge pull request #247 from dvonthenen/encoding-rate-prerecorded
Browse files Browse the repository at this point in the history
Implements Encoding and SampleRate in Prerecorded
  • Loading branch information
dvonthenen authored Mar 25, 2024
2 parents 55641dc + fe99d86 commit e62992e
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 e62992e

Please sign in to comment.