# SpeechDialogueSegment

> Tracon documentation. Tracon is a .NET package family that adds a control
> plane on Microsoft Agent Framework, published as NuGet packages that run
> inside your own ASP.NET Core application.
>
> Page: https://tracon.dev/api/tracon.speechdialoguesegment/
> Summary: SpeechDialogueSegment: The time range one turn takes in a dialogue's audio.

<div class="api-provenance">Namespace Tracon · Assembly <code>Tracon.Abstractions.dll</code></div>

The time range one turn takes in a dialogue's audio.

```csharp
public sealed record SpeechDialogueSegment : IEquatable<SpeechDialogueSegment>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.speechdialoguesegment/">SpeechDialogueSegment</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;SpeechDialogueSegment&gt;</a></dd><dt>Inherited Members</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object.gettype">object.GetType()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.tostring">object.ToString()</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)">object.Equals(object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)">object.Equals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.referenceequals">object.ReferenceEquals(object?, object?)</a>, <a href="https://learn.microsoft.com/dotnet/api/system.object.gethashcode">object.GetHashCode()</a></dd></dl>

## Constructors

### <a id="Tracon_SpeechDialogueSegment__ctor"></a> SpeechDialogueSegment\(\)

```csharp
public SpeechDialogueSegment()
```

## Properties

### <a id="Tracon_SpeechDialogueSegment_End"></a> End

Gets when the turn ends, relative to the start of the audio.

```csharp
public required TimeSpan End { get; init; }
```

#### Property Value

 [TimeSpan](https://learn.microsoft.com/dotnet/api/system.timespan)

### <a id="Tracon_SpeechDialogueSegment_Start"></a> Start

Gets when the turn starts, relative to the start of the audio.

```csharp
public required TimeSpan Start { get; init; }
```

#### Property Value

 [TimeSpan](https://learn.microsoft.com/dotnet/api/system.timespan)

### <a id="Tracon_SpeechDialogueSegment_TurnIndex"></a> TurnIndex

Gets the zero-based index of the turn in [SpeechDialogueRequest.Turns](/api/tracon.speechdialoguerequest/#Tracon_SpeechDialogueRequest_Turns).

```csharp
public required int TurnIndex { get; init; }
```

#### Property Value

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="Tracon_SpeechDialogueSegment_VoiceId"></a> VoiceId

Gets the voice that spoke the turn.

```csharp
public required string VoiceId { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Methods

### <a id="Tracon_SpeechDialogueSegment_Equals_System_Object_"></a> Equals\(object?\)

```csharp
public override bool Equals(object? obj)
```

#### Parameters

`obj` [object](https://learn.microsoft.com/dotnet/api/system.object)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_SpeechDialogueSegment_Equals_Tracon_SpeechDialogueSegment_"></a> Equals\(SpeechDialogueSegment?\)

```csharp
public bool Equals(SpeechDialogueSegment? other)
```

#### Parameters

`other` [SpeechDialogueSegment](/api/tracon.speechdialoguesegment/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_SpeechDialogueSegment_GetHashCode"></a> GetHashCode\(\)

```csharp
public override int GetHashCode()
```

#### Returns

 [int](https://learn.microsoft.com/dotnet/api/system.int32)

### <a id="Tracon_SpeechDialogueSegment_ToString"></a> ToString\(\)

```csharp
public override string ToString()
```

#### Returns

 [string](https://learn.microsoft.com/dotnet/api/system.string)

## Operators

### <a id="Tracon_SpeechDialogueSegment_op_Equality_Tracon_SpeechDialogueSegment_Tracon_SpeechDialogueSegment_"></a> operator ==\(SpeechDialogueSegment?, SpeechDialogueSegment?\)

```csharp
public static bool operator ==(SpeechDialogueSegment? left, SpeechDialogueSegment? right)
```

#### Parameters

`left` [SpeechDialogueSegment](/api/tracon.speechdialoguesegment/)?

`right` [SpeechDialogueSegment](/api/tracon.speechdialoguesegment/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

### <a id="Tracon_SpeechDialogueSegment_op_Inequality_Tracon_SpeechDialogueSegment_Tracon_SpeechDialogueSegment_"></a> operator \!=\(SpeechDialogueSegment?, SpeechDialogueSegment?\)

```csharp
public static bool operator !=(SpeechDialogueSegment? left, SpeechDialogueSegment? right)
```

#### Parameters

`left` [SpeechDialogueSegment](/api/tracon.speechdialoguesegment/)?

`right` [SpeechDialogueSegment](/api/tracon.speechdialoguesegment/)?

#### Returns

 [bool](https://learn.microsoft.com/dotnet/api/system.boolean)
