Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MM-56540 - Live-captions support #18

Merged
merged 58 commits into from
Mar 27, 2024
Merged

MM-56540 - Live-captions support #18

merged 58 commits into from
Mar 27, 2024

Conversation

cpoile
Copy link
Member

@cpoile cpoile commented Jan 25, 2024

Summary

  • At the moment this is pretty WIP, making a PR to get feedback on the general approach.
  • I am keeping the debug statements (starting with <><>) which give a lot of useful insight into what's happening in the transcriber.
  • I've left Todos to show what I'm still planning to do, and liberal comments to help explain why things are the way they are.
  • I'm open to changing anything and everything, so please suggest anything that comes to mind.

Ticket Link

@cpoile cpoile added 2: Dev Review Requires review by a core committer Do Not Merge Should not be merged until this label is removed labels Jan 25, 2024
@cpoile
Copy link
Member Author

cpoile commented Jan 25, 2024

Looks like the lint is failing on the C types -- I'm wondering if there's a way to make this work on both linux and darwin?

Edit: working on the fix, now lints, I'll get it green soon.

Fixed.

Copy link
Contributor

@streamer45 streamer45 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks pretty good 💪 . Gave it a very quick pass to potentially unblock further improvements. Still need to go through the meat (processLiveCaptionsForTrack).

My only "blocking" thought would be the need for a config setting to control whether we do live captions. This way we can have a related setting on the plugin side to globally enable/disable this functionality.

cmd/transcriber/call/transcriber.go Outdated Show resolved Hide resolved
cmd/transcriber/call/live_captions.go Outdated Show resolved Hide resolved
cmd/transcriber/call/live_captions.go Outdated Show resolved Hide resolved
cmd/transcriber/call/tracks.go Show resolved Hide resolved
cmd/transcriber/call/live_captions.go Outdated Show resolved Hide resolved
cmd/transcriber/call/live_captions.go Outdated Show resolved Hide resolved
cmd/transcriber/call/live_captions.go Outdated Show resolved Hide resolved
@streamer45 streamer45 self-requested a review February 9, 2024 15:30
@jupenur
Copy link
Member

jupenur commented Mar 14, 2024

@cpoile there was nothing particularly risky here. I can do another quick pass some time next week -- it shouldn't take me more than a few hours tops. Just tag me again once all the changes are in.

@cpoile
Copy link
Member Author

cpoile commented Mar 19, 2024

Changes are in, @jupenur. Thank you for taking the time.

jupenur
jupenur previously approved these changes Mar 19, 2024
Copy link
Member

@jupenur jupenur left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still looking pretty solid from my PoV. Thanks @cpoile!

@streamer45 streamer45 added this to the v0.2.0 milestone Mar 19, 2024
Copy link
Contributor

@streamer45 streamer45 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still a lot of complexity in here but if it works it works I suppose :)

Left some candid feedback, nothing truly blocking though.

cmd/transcriber/call/transcriber.go Outdated Show resolved Hide resolved
slog.Int("LiveCaptionsNumThreadsPerTranscriber", t.cfg.LiveCaptionsNumThreadsPerTranscriber))
go t.startTranscriberPool()
} else {
slog.Info("LiveCaptionsOn is false; not starting the transcriber pool")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess not totally needed -- was using it during development. Will remove.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we can infer if they are disabled. It's also a less interesting case.

cmd/transcriber/config/config.go Outdated Show resolved Hide resolved
cmd/transcriber/config/config.go Show resolved Hide resolved
cmd/transcriber/call/live_captions.go Outdated Show resolved Hide resolved
cmd/transcriber/call/live_captions.go Outdated Show resolved Hide resolved
cmd/transcriber/call/live_captions.go Outdated Show resolved Hide resolved
cmd/transcriber/call/live_captions.go Outdated Show resolved Hide resolved
cmd/transcriber/call/tracks.go Outdated Show resolved Hide resolved
cmd/transcriber/call/live_captions.go Show resolved Hide resolved
@streamer45 streamer45 self-requested a review March 26, 2024 15:38
Copy link
Contributor

@streamer45 streamer45 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I promise these are the last comments :)

cmd/transcriber/call/transcriber.go Outdated Show resolved Hide resolved
cmd/transcriber/call/transcriber.go Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
go.mod Outdated Show resolved Hide resolved
slog.Int("LiveCaptionsNumThreadsPerTranscriber", t.cfg.LiveCaptionsNumThreadsPerTranscriber))
go t.startTranscriberPool()
} else {
slog.Info("LiveCaptionsOn is false; not starting the transcriber pool")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we can infer if they are disabled. It's also a less interesting case.

cmd/transcriber/call/live_captions.go Outdated Show resolved Hide resolved
cmd/transcriber/call/live_captions.go Show resolved Hide resolved
cmd/transcriber/call/live_captions.go Show resolved Hide resolved
streamer45
streamer45 previously approved these changes Mar 27, 2024
@streamer45 streamer45 added 3: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core committer labels Mar 27, 2024
@cpoile cpoile requested a review from streamer45 March 27, 2024 19:00
@cpoile cpoile merged commit d5cfa96 into master Mar 27, 2024
2 checks passed
@cpoile cpoile deleted the MM-56540-live-captions branch March 27, 2024 19:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3: Reviews Complete All reviewers have approved the pull request Do Not Merge Should not be merged until this label is removed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants