# SpeechToTextClientBinding

> 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.speechtotextclientbinding/
> Summary: SpeechToTextClientBinding: Binds a Microsoft.Extensions.AI speech-to-text client in the container to a named Tracon speech transcriber.

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

Binds a `Microsoft.Extensions.AI` speech-to-text client in the container to a named
Tracon speech transcriber.

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

Pass it to [TraconBuilderExtensions.AddSpeechTranscriber](/api/tracon.traconbuilderextensions/).
The client stays in the container, as for [TextToSpeechClientBinding](/api/tracon.texttospeechclientbinding/).

## Constructors

### <a id="Tracon_SpeechToTextClientBinding__ctor"></a> SpeechToTextClientBinding\(\)

```csharp
public SpeechToTextClientBinding()
```

## Properties

### <a id="Tracon_SpeechToTextClientBinding_ProviderName"></a> ProviderName

Gets the provider name, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) to read it from the client's metadata.

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

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

The same rule as [TextToSpeechClientBinding.ProviderName](/api/tracon.texttospeechclientbinding/#Tracon_TextToSpeechClientBinding_ProviderName): a tenant's egress
policy names this value, and a client with no name stops the host at startup.

### <a id="Tracon_SpeechToTextClientBinding_ServiceKey"></a> ServiceKey

Gets the service key the client is registered under, or [null](https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null) for the
unkeyed registration.

```csharp
public object? ServiceKey { get; init; }
```

#### Property Value

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

### <a id="Tracon_SpeechToTextClientBinding_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_SpeechToTextClientBinding_Equals_Tracon_SpeechToTextClientBinding_"></a> Equals\(SpeechToTextClientBinding?\)

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

`other` [SpeechToTextClientBinding](/api/tracon.speechtotextclientbinding/)?

#### Returns

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

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

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

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

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

### <a id="Tracon_SpeechToTextClientBinding_op_Equality_Tracon_SpeechToTextClientBinding_Tracon_SpeechToTextClientBinding_"></a> operator ==\(SpeechToTextClientBinding?, SpeechToTextClientBinding?\)

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

`left` [SpeechToTextClientBinding](/api/tracon.speechtotextclientbinding/)?

`right` [SpeechToTextClientBinding](/api/tracon.speechtotextclientbinding/)?

#### Returns

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

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

`left` [SpeechToTextClientBinding](/api/tracon.speechtotextclientbinding/)?

`right` [SpeechToTextClientBinding](/api/tracon.speechtotextclientbinding/)?

#### Returns

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