Skip to content

Commit

Permalink
Merge pull request #182 from dvonthenen/implement-metadata-precorded
Browse files Browse the repository at this point in the history
Implement Metadata for Live, Missing Fields in Metadata for Prerecorded
  • Loading branch information
dvonthenen authored Jan 24, 2024
2 parents 12c5acb + c3f8e90 commit af297d2
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 1 deletion.
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

0 comments on commit af297d2

Please sign in to comment.