TextToSpeechClientExtensions.GetService<TService> 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
형식ITextToSpeechClient의 TService 개체를 묻습니다.
public static TService? GetService<TService>(this Microsoft.Extensions.AI.ITextToSpeechClient client, object? serviceKey = default);
static member GetService : Microsoft.Extensions.AI.ITextToSpeechClient * obj -> 'Service
<Extension()>
Public Function GetService(Of TService) (client As ITextToSpeechClient, Optional serviceKey As Object = Nothing) As TService
형식 매개 변수
- TService
검색할 개체의 형식입니다.
매개 변수
- client
- ITextToSpeechClient
클라이언트입니다.
- serviceKey
- Object
대상 서비스를 식별하는 데 사용할 수 있는 선택적 키입니다.
반품
TService
찾은 개체입니다. 그렇지 않으면 null.
설명
이 메서드의 목적은 자체 또는 래핑할 수 있는 서비스를 포함하여 사용자가 제공할 ITextToSpeechClient수 있는 강력한 형식의 서비스를 검색할 수 있도록 하는 것입니다.