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

Implement Metadata for Live, Missing Fields in Metadata for Prerecorded #182

Merged
merged 1 commit into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
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
26 changes: 26 additions & 0 deletions Deepgram/Models/LiveTranscriptionMetaData.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Newtonsoft.Json;
using System;

namespace Deepgram.Models
{
public class LiveTranscriptionMetaData
{
/// <summary>
/// Unique identifier for the submitted audio and derived data returned.
/// </summary>
[JsonProperty("request_id")]
public string Id { get; set; }

/// <summary>
/// Unique identifier for the submitted audio and derived data returned.
/// </summary>
[JsonProperty("model_uuid")]
public string ModelUuid { get; set; }

/// <summary>
/// Info about the Model
/// </summary>
[JsonProperty("model_info")]
public ModelInfo ModelInfo { get; set; }
}
}
26 changes: 26 additions & 0 deletions Deepgram/Models/ModelInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using System;
using Newtonsoft.Json;

namespace Deepgram.Models
{
public class ModelInfo
{
/// <summary>
/// Name of the Model
/// </summary>
[JsonProperty("name")]
public string Name { get; set; }

/// <summary>
/// Version of the Model
/// </summary>
[JsonProperty("version")]
public string Version { get; set; }

/// <summary>
/// Architecture of the Model
/// </summary>
[JsonProperty("arch")]
public string Arch { get; set; }
}
}
40 changes: 39 additions & 1 deletion Deepgram/Models/PrerecordedTranscriptionMetaData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,45 @@ public class PrerecordedTranscriptionMetaData
/// Warnings to provide feedback about unsupported and deprecated queries.
/// </summary>
[JsonProperty("warnings")]
public Warning[] Warnings { get; set; }
public Warning[] Warnings { get; set; }

/// <summary>
/// Models used in this API Request
/// </summary>
[JsonProperty("models")]
public Guid[] Models { get; set; }

/// <summary>
/// Info about the Model
/// </summary>
[JsonProperty("model_info")]
public ModelInfo ModelInfo { get; set; }

/*
/// <summary>
/// Intent tokens used in API Request
/// </summary>
[JsonProperty("intents_info")]
public IntentsInfo IntentsInfo { get; set; } = null;

/// <summary>
/// Summary tokens used in API Request
/// </summary>
[JsonProperty("summary_info")]
public SummaryInfo SummaryInfo { get; set; } = null;

/// <summary>
/// Sentiment tokens used in API Request
/// </summary>
[JsonProperty("sentiment_info")]
public SentimentInfo SentimentInfo { get; set; } = null;

/// <summary>
/// Topic tokens used in API Request
/// </summary>
[JsonProperty("topics_info")]
public TopicsInfo TopicsInfo { get; set; } = null;
*/

/// <summary>
/// Allows labeling your requests for the purpose of identification during usage reporting.
Expand Down
Loading