# SpeechTranscript

> 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.speechtranscript/
> Summary: SpeechTranscript: The result of speech-to-text conversion.

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

The result of speech-to-text conversion.

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

```csharp
public SpeechTranscript()
```

## Properties

### <a id="Tracon_SpeechTranscript_AudioDuration"></a> AudioDuration

The duration of the transcribed audio. Cost is computed from this.

```csharp
public TimeSpan? AudioDuration { get; init; }
```

#### Property Value

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

The detected language's code.

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

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

The confidence of language detection (0-1).

```csharp
public double? LanguageProbability { get; init; }
```

#### Property Value

 [double](https://learn.microsoft.com/dotnet/api/system.double)?

### <a id="Tracon_SpeechTranscript_ModelId"></a> ModelId

The model that transcribed the audio, as the transcriber reports it;
[null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) when the transcriber does not report one.

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

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

The transcribed text.

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

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

### <a id="Tracon_SpeechTranscript_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_SpeechTranscript_Equals_Tracon_SpeechTranscript_"></a> Equals\(SpeechTranscript?\)

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

`other` [SpeechTranscript](/api/tracon.speechtranscript/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_SpeechTranscript_op_Equality_Tracon_SpeechTranscript_Tracon_SpeechTranscript_"></a> operator ==\(SpeechTranscript?, SpeechTranscript?\)

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

`left` [SpeechTranscript](/api/tracon.speechtranscript/)?

`right` [SpeechTranscript](/api/tracon.speechtranscript/)?

#### Returns

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

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

`left` [SpeechTranscript](/api/tracon.speechtranscript/)?

`right` [SpeechTranscript](/api/tracon.speechtranscript/)?

#### Returns

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