Class GENTranscriptTask
Task for converting speech audio into text (speech-to-text).
Inheritance
object
GENTranscriptTask
Assembly: .dll
Syntax
public class GENTranscriptTask : GENAudioRecordingTask<GENTranscriptTask, Transcript>, IGENTask
Constructors
GENTranscriptTask(AudioClip)
Declaration
public GENTranscriptTask(AudioClip prompt)
Parameters
Type |
Name |
Description |
AudioClip |
prompt |
|
Properties
Method
Declaration
public override string Method { get; }
Property Value
Overrides
SpokenLanguage
Declaration
public SystemLanguage? SpokenLanguage { get; set; }
Property Value
Type |
Description |
SystemLanguage? |
|
Temperature
Declaration
public float? Temperature { get; set; }
Property Value
Methods
ExecuteAsyncINTERNAL()
Sets the temperature for transcription.
Higher values (e.g., 0.7) make the output more random,
while lower values (e.g., 0.2) make it more focused and deterministic.
If set to 0, the model will use log probability to automatically increase the temperature until certain thresholds are hit.
Declaration
protected override UniTask<Transcript> ExecuteAsyncINTERNAL()
Returns
Overrides
SetSpokenLanguage(SystemLanguage)
Optionally sets the language hint to improve transcription accuracy.
Declaration
public GENTranscriptTask SetSpokenLanguage(SystemLanguage language)
Parameters
Type |
Name |
Description |
SystemLanguage |
language |
|
Returns
StreamAsync(TranscriptStreamHandler)
Declaration
public UniTask StreamAsync(TranscriptStreamHandler streamHandler)
Parameters
Returns
Implements