DelegatingTextToSpeechClient Classe
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Fornece uma classe base opcional para um ITextToSpeechClient que passa chamadas para outra instância.
public ref class DelegatingTextToSpeechClient : IDisposable, Microsoft::Extensions::AI::ITextToSpeechClient
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public class DelegatingTextToSpeechClient : IDisposable, Microsoft.Extensions.AI.ITextToSpeechClient
public class DelegatingTextToSpeechClient : IDisposable, Microsoft.Extensions.AI.ITextToSpeechClient
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type DelegatingTextToSpeechClient = class
interface ITextToSpeechClient
interface IDisposable
type DelegatingTextToSpeechClient = class
interface ITextToSpeechClient
interface IDisposable
Public Class DelegatingTextToSpeechClient
Implements IDisposable, ITextToSpeechClient
- Herança
-
DelegatingTextToSpeechClient
- Derivado
- Atributos
- Implementações
Observações
Isto é recomendado como tipo base ao construir clientes que podem ser encadeados em qualquer ordem em torno de um subjacente ITextToSpeechClient. A implementação padrão simplesmente passa cada chamada para a instância interna do cliente.
Construtores
| Name | Description |
|---|---|
| DelegatingTextToSpeechClient(ITextToSpeechClient) |
Inicializa uma nova instância da DelegatingTextToSpeechClient classe. |
Propriedades
| Name | Description |
|---|---|
| InnerClient |
Obtém o interior ITextToSpeechClient. |
Métodos
| Name | Description |
|---|---|
| Dispose() |
Realiza tarefas definidas pela aplicação associadas à libertação, libertação ou reinício de recursos não geridos. |
| Dispose(Boolean) |
Fornece um mecanismo para libertar recursos não geridos. |
| GetAudioAsync(String, TextToSpeechOptions, CancellationToken) |
Envia conteúdo de texto para o modelo e devolve a fala áudio gerada. |
| GetService(Type, Object) |
Pergunta a ITextToSpeechClient um objeto do tipo |
| GetStreamingAudioAsync(String, TextToSpeechOptions, CancellationToken) |
Envia conteúdo de texto para o modelo e transmite de volta a fala de áudio gerada. |
Métodos da Extensão
| Name | Description |
|---|---|
| AsBuilder(ITextToSpeechClient) |
Cria um novo TextToSpeechClientBuilder uso |
| GetService<TService>(ITextToSpeechClient, Object) |
Pede a ITextToSpeechClient um objeto do tipo |