STTRequest.fromFile constructor
STTRequest.fromFile(
- String filePath, {
- String? model,
- String? language,
- String? format,
- bool includeWordTiming = false,
- bool includeConfidence = false,
- double? temperature,
- TimestampGranularity timestampGranularity = TimestampGranularity.word,
- bool diarize = false,
- int? numSpeakers,
- bool tagAudioEvents = true,
- bool webhook = false,
- String? prompt,
- String? responseFormat,
- bool enableLogging = true,
Create STT request from file
Implementation
factory STTRequest.fromFile(
String filePath, {
String? model,
String? language,
String? format,
bool includeWordTiming = false,
bool includeConfidence = false,
double? temperature,
TimestampGranularity timestampGranularity = TimestampGranularity.word,
bool diarize = false,
int? numSpeakers,
bool tagAudioEvents = true,
bool webhook = false,
String? prompt,
String? responseFormat,
bool enableLogging = true,
}) =>
STTRequest(
filePath: filePath,
model: model,
language: language,
format: format,
includeWordTiming: includeWordTiming,
includeConfidence: includeConfidence,
temperature: temperature,
timestampGranularity: timestampGranularity,
diarize: diarize,
numSpeakers: numSpeakers,
tagAudioEvents: tagAudioEvents,
webhook: webhook,
prompt: prompt,
responseFormat: responseFormat,
enableLogging: enableLogging,
);