# SpeechTranscriptionOptions

> 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.speechtranscriptionoptions/
> Summary: SpeechTranscriptionOptions: Speech-to-text conversion settings.

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

Speech-to-text conversion settings.

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

```csharp
public SpeechTranscriptionOptions()
```

## Properties

### <a id="Tracon_SpeechTranscriptionOptions_Credential"></a> Credential

The tenant's own credential for the provider, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) to use
the credential the transcriber was configured with.

```csharp
public ModelProviderCredential? Credential { get; init; }
```

#### Property Value

 [ModelProviderCredential](/api/tracon.modelprovidercredential/)?

#### Remarks

Tracon sets it only for a transcriber whose
[ISpeechTranscriber.SupportsTenantCredentials](/api/tracon.ispeechtranscriber/#Tracon_ISpeechTranscriber_SupportsTenantCredentials) is
[true](https://learn.microsoft.com/dotnet/csharp/language-reference/builtin-types/bool). It lives in memory for the call and is never persisted.

### <a id="Tracon_SpeechTranscriptionOptions_LanguageCode"></a> LanguageCode

The expected language's ISO 639-1 code. The provider detects it if empty.

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

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

The model to use. When empty, the transcriber uses its own default (the
built-in client: `VoiceOptions.TranscriptionModelId`).

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

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

### <a id="Tracon_SpeechTranscriptionOptions_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_SpeechTranscriptionOptions_Equals_Tracon_SpeechTranscriptionOptions_"></a> Equals\(SpeechTranscriptionOptions?\)

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

`other` [SpeechTranscriptionOptions](/api/tracon.speechtranscriptionoptions/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_SpeechTranscriptionOptions_op_Equality_Tracon_SpeechTranscriptionOptions_Tracon_SpeechTranscriptionOptions_"></a> operator ==\(SpeechTranscriptionOptions?, SpeechTranscriptionOptions?\)

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

`left` [SpeechTranscriptionOptions](/api/tracon.speechtranscriptionoptions/)?

`right` [SpeechTranscriptionOptions](/api/tracon.speechtranscriptionoptions/)?

#### Returns

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

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

`left` [SpeechTranscriptionOptions](/api/tracon.speechtranscriptionoptions/)?

`right` [SpeechTranscriptionOptions](/api/tracon.speechtranscriptionoptions/)?

#### Returns

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