ITextToSpeechClient 인터페이스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
텍스트 음성 변환 클라이언트를 나타냅니다.
public interface class ITextToSpeechClient : IDisposable
[System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")]
public interface ITextToSpeechClient : IDisposable
public interface ITextToSpeechClient : IDisposable
[<System.Diagnostics.CodeAnalysis.Experimental("MEAI001", UrlFormat="https://aka.ms/dotnet-extensions-warnings/{0}")>]
type ITextToSpeechClient = interface
interface IDisposable
type ITextToSpeechClient = interface
interface IDisposable
Public Interface ITextToSpeechClient
Implements IDisposable
- 파생
- 특성
- 구현
설명
달리 지정하지 않는 한, 모든 멤버 ITextToSpeechClient 는 동시 사용을 위해 스레드로부터 안전합니다. 여러 요청에서 동시에 사용되는 지원의 ITextToSpeechClient 모든 구현이 필요합니다.
그러나 구현은 옵션 인스턴스를 ITextToSpeechClient 구성하는 등 제공된 GetAudioAsync(String, TextToSpeechOptions, CancellationToken) 인수를 GetStreamingAudioAsync(String, TextToSpeechOptions, CancellationToken)변경할 수 있습니다. 따라서 인터페이스의 소비자는 동시 호출에 이러한 인수의 공유 인스턴스를 사용하지 않아야 하거나, 그렇지 않으면 생성 시 이러한 변형을 사용할 수 있는 인스턴스가 사용되지 않도록 ITextToSpeechClient 해야 합니다. 예를 들어 ConfigureOptions 메서드는 제공된 옵션 인수를 변경할 수 있는 콜백과 함께 제공될 수 있으며 싱글톤 옵션 인스턴스를 사용하는 경우 이를 피해야 합니다.
메서드
| Name | Description |
|---|---|
| Dispose() |
관리되지 않는 리소스의 해제, 해제 또는 재설정과 관련된 애플리케이션 정의 작업을 수행합니다. (다음에서 상속됨 IDisposable) |
| GetAudioAsync(String, TextToSpeechOptions, CancellationToken) |
텍스트 콘텐츠를 모델에 보내고 생성된 오디오 음성을 반환합니다. |
| GetService(Type, Object) |
ITextToSpeechClient 지정된 형식 |
| GetStreamingAudioAsync(String, TextToSpeechOptions, CancellationToken) |
텍스트 콘텐츠를 모델에 보내고 생성된 오디오 음성을 다시 스트리밍합니다. |
확장명 메서드
| Name | Description |
|---|---|
| AsBuilder(ITextToSpeechClient) |
내부 클라이언트로 사용하여 TextToSpeechClientBuilder 새 |
| GetService<TService>(ITextToSpeechClient, Object) |
형식ITextToSpeechClient의 |