chore: add bot speech to text to respresentations list

This commit is contained in:
ggurdin 2025-06-30 14:46:14 -04:00
parent 3cbb701a68
commit 2efafbe3c1
No known key found for this signature in database
GPG key ID: A01CB41737CBB478

View file

@ -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;
}