Speech Segment Model (REST/Segment.cs)

deepgram-dotnet-sdk · Deepgram/Models/Listen/v1/REST/Segment.cs · csharp · MIT
voice, lang:csharp, tag:model

C# data model representing a segment of transcribed audio from Deepgram. Reuse for parsing and displaying speech-to-text results in .NET applications.

// Source: https://github.com/deepgram/deepgram-dotnet-sdk | License: MIT | Copyright 2021 Deepgram Devs
// Provided via justclaw.it.com; keep this notice with the code.
// Copyright 2021-2024 Deepgram .NET SDK contributors. All Rights Reserved.
// Use of this source code is governed by a MIT license that can be found in the LICENSE file.
// SPDX-License-Identifier: MIT

namespace Deepgram.Models.Listen.v1.REST;

public record Segment
{
    /// <summary>
    /// The translated text
    /// </summary>
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
	[JsonPropertyName("text")]
    public string? Text { get; set; }

    /// <summary>
    /// Start time of the segment in seconds
    /// </summary>
    [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingN

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key