chore: add bot speech to text to respresentations list

pull/2245/head
ggurdin 4 months ago
parent 3cbb701a68
commit 2efafbe3c1
No known key found for this signature in database
GPG Key ID: A01CB41737CBB478

@ -266,6 +266,21 @@ class PangeaMessageEvent {
final botTranscription = SpeechToTextModel.fromJson(
Map<String, dynamic>.from(rawBotTranscription),
);
_representations?.add(
RepresentationEvent(
timeline: timeline,
parentMessageEvent: _event,
content: PangeaRepresentation(
langCode: botTranscription.langCode,
text: botTranscription.transcript.text,
originalSent: false,
originalWritten: false,
speechToText: botTranscription,
),
),
);
return botTranscription;
}

Loading…
Cancel
Save