LoggingTextToSpeechClient 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
텍스트 음성 변환 작업을 ILogger에 기록하는 위임 텍스트-음성 클라이언트입니다.
public ref class LoggingTextToSpeechClient : Microsoft::Extensions::AI::DelegatingTextToSpeechClient
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public class LoggingTextToSpeechClient : Microsoft.Extensions.AI.DelegatingTextToSpeechClient
public class LoggingTextToSpeechClient : Microsoft.Extensions.AI.DelegatingTextToSpeechClient
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type LoggingTextToSpeechClient = class
inherit DelegatingTextToSpeechClient
type LoggingTextToSpeechClient = class
inherit DelegatingTextToSpeechClient
Public Class LoggingTextToSpeechClient
Inherits DelegatingTextToSpeechClient
- 상속
- 특성
설명
제공된 구현 ITextToSpeechClient 은 동시 사용 시 스레드로부터 안전하므로 동시 사용 ILogger 시 스레드로부터 안전합니다.
사용이 활성화Trace되면 ILogger 메시지 및 옵션의 내용이 기록됩니다. 이러한 메시지 및 옵션에는 중요한 애플리케이션 데이터가 포함될 수 있습니다. Trace 는 기본적으로 사용하지 않도록 설정되며 프로덕션 환경에서는 사용하지 않도록 설정해서는 안 됩니다. 메시지 및 옵션은 다른 로깅 수준에서 기록되지 않습니다.
생성자
| Name | Description |
|---|---|
| LoggingTextToSpeechClient(ITextToSpeechClient, ILogger) |
LoggingTextToSpeechClient 클래스의 새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| InnerClient |
내부 ITextToSpeechClient를 가져옵니다. (다음에서 상속됨 DelegatingTextToSpeechClient) |
| JsonSerializerOptions |
로깅 데이터를 serialize할 때 사용할 JSON serialization 옵션을 가져오거나 설정합니다. |
메서드
| Name | Description |
|---|---|
| Dispose() |
관리되지 않는 리소스의 해제, 해제 또는 재설정과 관련된 애플리케이션 정의 작업을 수행합니다. (다음에서 상속됨 DelegatingTextToSpeechClient) |
| Dispose(Boolean) |
관리되지 않는 리소스를 해제하는 메커니즘을 제공합니다. (다음에서 상속됨 DelegatingTextToSpeechClient) |
| GetAudioAsync(String, TextToSpeechOptions, CancellationToken) |
텍스트 콘텐츠를 모델에 보내고 생성된 오디오 음성을 반환합니다. |
| GetService(Type, Object) |
ITextToSpeechClient 지정된 형식 |
| GetStreamingAudioAsync(String, TextToSpeechOptions, CancellationToken) |
텍스트 콘텐츠를 모델에 보내고 생성된 오디오 음성을 다시 스트리밍합니다. |
확장명 메서드
| Name | Description |
|---|---|
| AsBuilder(ITextToSpeechClient) |
내부 클라이언트로 사용하여 TextToSpeechClientBuilder 새 |
| GetService<TService>(ITextToSpeechClient, Object) |
형식ITextToSpeechClient의 |