Share via


OpenTelemetrySpeechToTextClient Class

Definition

Represents a delegating speech-to-text client that implements the OpenTelemetry Semantic Conventions for Generative AI systems.

public ref class OpenTelemetrySpeechToTextClient sealed : Microsoft::Extensions::AI::DelegatingSpeechToTextClient
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001")]
public sealed class OpenTelemetrySpeechToTextClient : Microsoft.Extensions.AI.DelegatingSpeechToTextClient
public sealed class OpenTelemetrySpeechToTextClient : Microsoft.Extensions.AI.DelegatingSpeechToTextClient
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001")>]
type OpenTelemetrySpeechToTextClient = class
    inherit DelegatingSpeechToTextClient
type OpenTelemetrySpeechToTextClient = class
    inherit DelegatingSpeechToTextClient
Public NotInheritable Class OpenTelemetrySpeechToTextClient
Inherits DelegatingSpeechToTextClient
Inheritance
OpenTelemetrySpeechToTextClient
Attributes

Remarks

This class provides an implementation of the Semantic Conventions for Generative AI systems v1.37, defined at https://opentelemetry.io/docs/specs/semconv/gen-ai/. The specification is still experimental and subject to change; as such, the telemetry output by this client is also subject to change.

Constructors

OpenTelemetrySpeechToTextClient(ISpeechToTextClient, ILogger, String)

Initializes a new instance of the OpenTelemetrySpeechToTextClient class.

Properties

EnableSensitiveData

Gets or sets a value indicating whether potentially sensitive information should be included in telemetry.

InnerClient

Gets the inner ISpeechToTextClient.

(Inherited from DelegatingSpeechToTextClient)

Methods

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

(Inherited from DelegatingSpeechToTextClient)
Dispose(Boolean)

Provides a mechanism for releasing unmanaged resources.

(Inherited from DelegatingSpeechToTextClient)
GetService(Type, Object)

Asks the ISpeechToTextClient for an object of the specified type serviceType.

GetStreamingTextAsync(Stream, SpeechToTextOptions, CancellationToken)

Sends audio speech content to the model and streams back the generated text.

GetTextAsync(Stream, SpeechToTextOptions, CancellationToken)

Sends audio speech content to the model and returns the generated text.

Extension Methods

AsBuilder(ISpeechToTextClient)

Creates a new SpeechToTextClientBuilder using innerClient as its inner client.

GetService<TService>(ISpeechToTextClient, Object)

Asks the ISpeechToTextClient for an object of type TService.

GetStreamingTextAsync(ISpeechToTextClient, DataContent, SpeechToTextOptions, CancellationToken)

Generates text from speech providing a single audio speech DataContent.

GetTextAsync(ISpeechToTextClient, DataContent, SpeechToTextOptions, CancellationToken)

Generates text from speech providing a single audio speech DataContent.

Applies to