# SpeechDialogueTurn

> 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.speechdialogueturn/
> Summary: SpeechDialogueTurn: One turn of a dialogue: a text and the voice that speaks it.

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

One turn of a dialogue: a text and the voice that speaks it.

```csharp
public sealed record SpeechDialogueTurn : IEquatable<SpeechDialogueTurn>
```

<dl class="api-relations"><dt>Inheritance</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.object">object</a> ← <a href="/api/tracon.speechdialogueturn/">SpeechDialogueTurn</a></dd><dt>Implements</dt><dd><a href="https://learn.microsoft.com/dotnet/api/system.iequatable-1">IEquatable&lt;SpeechDialogueTurn&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_SpeechDialogueTurn__ctor"></a> SpeechDialogueTurn\(\)

```csharp
public SpeechDialogueTurn()
```

## Properties

### <a id="Tracon_SpeechDialogueTurn_Text"></a> Text

Gets the text to speak.

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

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

Sent as written. A provider's inline tags (for example ElevenLabs'
`[laughs]`) pass through unchanged and count toward the character limit.

### <a id="Tracon_SpeechDialogueTurn_VoiceId"></a> VoiceId

Gets the identifier of the voice that speaks the text.

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

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

Required: a dialogue turn has no default voice.

## Methods

### <a id="Tracon_SpeechDialogueTurn_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_SpeechDialogueTurn_Equals_Tracon_SpeechDialogueTurn_"></a> Equals\(SpeechDialogueTurn?\)

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

`other` [SpeechDialogueTurn](/api/tracon.speechdialogueturn/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_SpeechDialogueTurn_op_Equality_Tracon_SpeechDialogueTurn_Tracon_SpeechDialogueTurn_"></a> operator ==\(SpeechDialogueTurn?, SpeechDialogueTurn?\)

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

`left` [SpeechDialogueTurn](/api/tracon.speechdialogueturn/)?

`right` [SpeechDialogueTurn](/api/tracon.speechdialogueturn/)?

#### Returns

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

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

`left` [SpeechDialogueTurn](/api/tracon.speechdialogueturn/)?

`right` [SpeechDialogueTurn](/api/tracon.speechdialogueturn/)?

#### Returns

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