Class SpeechService
Inheritance
SpeechService
Assembly: Glitch9.AIDevKit.Provider.OpenAI.dll
Syntax
public sealed class SpeechService : CrudServiceBase<OpenAIClient>, ICrudService
Constructors
|
Edit this page
View Source
SpeechService(OpenAIClient)
Declaration
public SpeechService(OpenAIClient client)
Parameters
Fields
|
Edit this page
View Source
k_Endpoint
Declaration
public const string k_Endpoint = "VERSION/audio/speech"
Field Value
Methods
|
Edit this page
View Source
CreateAsync(OpenAISpeechGenerationRequest, RequestOptions)
Generates audio from the input text.
Declaration
public UniTask<Generated<IAudioAsset>> CreateAsync(OpenAISpeechGenerationRequest request, RequestOptions options = null)
Parameters
Returns
|
Edit this page
View Source
StreamAsync(OpenAISpeechGenerationRequest, RequestOptions)
Declaration
public IGenerativeStream<Delta<IAudioChunk>, IAudioAsset> StreamAsync(OpenAISpeechGenerationRequest request, RequestOptions options = null)
Parameters
Returns
Implements
Extension Methods