# LiveVoiceEvent

> 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.livevoiceevent/
> Summary: LiveVoiceEvent: One event observed on a live voice session's sideband.

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

One event observed on a live voice session's sideband.

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

## Remarks

A single record with optional fields, distinguished by [LiveVoiceEvent.Kind](/api/tracon.livevoiceevent/#Tracon_LiveVoiceEvent_Kind). The
growth surface is the record and the enum, not the interface: a provider that
reports a new fact adds a field here without breaking a consumer.

## Constructors

### <a id="Tracon_LiveVoiceEvent__ctor"></a> LiveVoiceEvent\(\)

```csharp
public LiveVoiceEvent()
```

## Properties

### <a id="Tracon_LiveVoiceEvent_DelegationId"></a> DelegationId

Gets the delegation this event belongs to.

```csharp
public string? DelegationId { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

### <a id="Tracon_LiveVoiceEvent_EndMilliseconds"></a> EndMilliseconds

Gets when a transcript segment ends, in milliseconds from the session's start.

```csharp
public int? EndMilliseconds { get; init; }
```

#### Property Value

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

Gets the provider's identifier for the conversation item, when it carries one.

```csharp
public string? ItemId { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

### <a id="Tracon_LiveVoiceEvent_Kind"></a> Kind

Gets what the event says.

```csharp
public required LiveVoiceEventKind Kind { get; init; }
```

#### Property Value

 [LiveVoiceEventKind](/api/tracon.livevoiceeventkind/)

### <a id="Tracon_LiveVoiceEvent_OffsetMilliseconds"></a> OffsetMilliseconds

Gets the point in the conversation, in milliseconds from the session's start,
that a delegation was cut at.

```csharp
public int? OffsetMilliseconds { get; init; }
```

#### Property Value

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

This answers "which part of the conversation is the delegated task". It is the
start of the last utterance segment before the delegation, so a cut that keeps
every entry starting at or before it includes that segment.

### <a id="Tracon_LiveVoiceEvent_Reason"></a> Reason

Gets the provider's stated reason for a close.

```csharp
public string? Reason { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

### <a id="Tracon_LiveVoiceEvent_Seconds"></a> Seconds

Gets the session duration the provider reports as billable, in seconds.

```csharp
public decimal? Seconds { get; init; }
```

#### Property Value

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

The provider's number, not a wall clock. Tracon does not see the media
and therefore cannot measure the duration itself; when the provider reports
none, the duration stays [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) rather than being invented.

### <a id="Tracon_LiveVoiceEvent_SessionId"></a> SessionId

Gets the provider's session identifier, when the event carries one.

```csharp
public string? SessionId { get; init; }
```

#### Property Value

 [string](https://learn.microsoft.com/dotnet/api/system.string)?

### <a id="Tracon_LiveVoiceEvent_StartMilliseconds"></a> StartMilliseconds

Gets when a transcript segment begins, in milliseconds from the session's start.

```csharp
public int? StartMilliseconds { get; init; }
```

#### Property Value

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

Gets the text of a transcript delta or of an error.

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

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

### <a id="Tracon_LiveVoiceEvent_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_LiveVoiceEvent_Equals_Tracon_LiveVoiceEvent_"></a> Equals\(LiveVoiceEvent?\)

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

`other` [LiveVoiceEvent](/api/tracon.livevoiceevent/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_LiveVoiceEvent_op_Equality_Tracon_LiveVoiceEvent_Tracon_LiveVoiceEvent_"></a> operator ==\(LiveVoiceEvent?, LiveVoiceEvent?\)

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

`left` [LiveVoiceEvent](/api/tracon.livevoiceevent/)?

`right` [LiveVoiceEvent](/api/tracon.livevoiceevent/)?

#### Returns

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

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

`left` [LiveVoiceEvent](/api/tracon.livevoiceevent/)?

`right` [LiveVoiceEvent](/api/tracon.livevoiceevent/)?

#### Returns

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