Class GENTranscriptTask
Task for converting speech audio into text (speech-to-text).
Inheritance
object
GENTranscriptTask
Implements
Inherited Members
Namespace: Glitch9.AIDevKit
Assembly: .dll
Syntax
public class GENTranscriptTask : GENAudioInputTask<GENTranscriptTask, Transcript>, IGENTask
Constructors
GENTranscriptTask(AudioClip)
Declaration
public GENTranscriptTask(AudioClip prompt)
Parameters
Type | Name | Description |
---|---|---|
AudioClip | prompt |
Methods
ExecuteAsyncINTERNAL()
Executes the task and returns the generated result.
Declaration
protected override UniTask<Transcript> ExecuteAsyncINTERNAL()
Returns
Type | Description |
---|---|
UniTask<Transcript> |
Overrides
SetLanguage(SystemLanguage)
Optionally sets the language hint to improve transcription accuracy.
Declaration
public GENTranscriptTask SetLanguage(SystemLanguage language)
Parameters
Type | Name | Description |
---|---|---|
SystemLanguage | language |
Returns
Type | Description |
---|---|
GENTranscriptTask |