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

Add public callbacks to help expose internal state a little more #240

Merged

Conversation

iandundas
Copy link
Contributor

I've been using these four extra callbacks to help me keep track of WK internal state more easily:

public typealias SegmentDiscoveryCallback = (([TranscriptionSegment]) -> Void)
public typealias ModelStateCallback = ((ModelState?, ModelState) -> Void)
public typealias FractionCompletedCallback = ((Float) -> Void)
public typealias TranscriptionPhaseCallback = ((TranscriptionPhase) -> Void)

public enum TranscriptionPhase {
    case convertingAudio
    case transcribing
    case finished
} 

I just wanted to share in case they'd be useful for others. Happy to remove any that shouldn't be pulled in, or to rename them or whatever!

@ZachNagengast ZachNagengast merged commit 03f0bb4 into argmaxinc:main Nov 5, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants