Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implements Encoding and SampleRate in Prerecorded #247

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading