TextToSpeechClientBuilder Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Générateur de création de pipelines de ITextToSpeechClient.
public ref class TextToSpeechClientBuilder sealed
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public sealed class TextToSpeechClientBuilder
public sealed class TextToSpeechClientBuilder
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type TextToSpeechClientBuilder = class
type TextToSpeechClientBuilder = class
Public NotInheritable Class TextToSpeechClientBuilder
- Héritage
-
TextToSpeechClientBuilder
- Attributs
Constructeurs
| Nom | Description |
|---|---|
| TextToSpeechClientBuilder(Func<IServiceProvider,ITextToSpeechClient>) |
Initialise une nouvelle instance de la classe TextToSpeechClientBuilder. |
| TextToSpeechClientBuilder(ITextToSpeechClient) |
Initialise une nouvelle instance de la classe TextToSpeechClientBuilder. |
Méthodes
| Nom | Description |
|---|---|
| Build(IServiceProvider) |
Génère un ITextToSpeechClient pipeline qui représente l’intégralité du pipeline. Les appels à cette instance passent à tour de chacune des étapes du pipeline. |
| Use(Func<ITextToSpeechClient,IServiceProvider,ITextToSpeechClient>) |
Ajoute une fabrique pour un client de synthèse vocale intermédiaire au pipeline client de synthèse vocale. |
| Use(Func<ITextToSpeechClient,ITextToSpeechClient>) |
Ajoute une fabrique pour un client de synthèse vocale intermédiaire au pipeline client de synthèse vocale. |
Méthodes d’extension
| Nom | Description |
|---|---|
| ConfigureOptions(TextToSpeechClientBuilder, Action<TextToSpeechOptions>) |
Ajoute un rappel qui configure une TextToSpeechOptions valeur à passer au client suivant dans le pipeline. |
| UseLogging(TextToSpeechClientBuilder, ILoggerFactory, Action<LoggingTextToSpeechClient>) |
Ajoute la journalisation au pipeline client de synthèse vocale. |
| UseOpenTelemetry(TextToSpeechClientBuilder, ILoggerFactory, String, Action<OpenTelemetryTextToSpeechClient>) |
Ajoute la prise en charge d’OpenTelemetry au pipeline client de synthèse vocale, en suivant les conventions sémantiques OpenTelemetry pour les systèmes d’INTELLIGENCE artificielle générative. |