setTranscript method

void setTranscript(
  1. String fileId,
  2. String text, {
  3. String language = 'en',
  4. String source = 'agent',
})

Sets the transcript of fileId to text (transcript_status = done) and appends file.updated (12 8.2).

Implementation

void setTranscript(
  String fileId,
  String text, {
  String language = 'en',
  String source = 'agent',
}) {
  final f = files[fileId]!;
  f.transcriptText = text;
  f.json
    ..['transcript_status'] = 'done'
    ..['transcript_language'] = language
    ..['transcript_source'] = source;
  _fileUpdated(f);
}