Class GENVoiceGenerationTask<TSelf, TOptions, TPrompt>
public abstract class GENVoiceGenerationTask<TSelf, TOptions, TPrompt> : GENAudioGenerationTask<TSelf, TOptions, TPrompt>, IGENTask where TSelf : GENVoiceGenerationTask<TSelf, TOptions, TPrompt> where TOptions : IGENAudioOptions
Type Parameters
TSelfTOptionsTPrompt
- Inheritance
-
objectTaskBase<TSelf, GeneratedAudio>GENTask<TSelf, TOptions, TPrompt, GeneratedAudio>GENAudioGenerationTask<TSelf, TOptions, TPrompt>GENVoiceGenerationTask<TSelf, TOptions, TPrompt>
- Implements
- Derived
- Inherited Members
Constructors
GENVoiceGenerationTask(TPrompt)
protected GENVoiceGenerationTask(TPrompt prompt)
Parameters
promptTPrompt
Properties
VoiceId
public string VoiceId { get; set; }
Property Value
- string
Methods
SetVoice(Api, string)
Sets the voice preset name (string-based, for future compatibility).
public TSelf SetVoice(Api api, string voice)
Parameters
apiApivoicestring
Returns
- TSelf
SetVoice(Voice)
public TSelf SetVoice(Voice voice)
Parameters
voiceVoice
Returns
- TSelf