-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add timestamps to TranscriptionSegment (#459)
This adds tracking of transcription receipt times which simplifies the consumption of this feature. I also removed startTime and endTime from the version we expose, since neither is used yet at the protocol level. The new fields are `firstReceivedTime` and `lastReceivedTime`. I tried this out in my sample project and it really simplified things. Now I can implement a very basic real-time chat thread without needing multiple data structures or new types. The only thing that still requires extra bookkeeping is tracking participant name, etc, since TranscriptionSegment lives under TrackPublication and Participant, and we don't denormalize the Participant id down the chain. See the [associated commit in my docs PR](livekit/web@0076c75) for a visual of how this simplifies basic uses
- Loading branch information
Showing
3 changed files
with
29 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters