v0.9.3
版本发布时间: 2024-11-06 02:01:25
argmaxinc/WhisperKit最新发布版本:v0.10.1(2024-12-21 13:48:53)
This release adds a number of useful callbacks that you can receive updates from while the transcription is processing:
/// A callback that provides transcription segments as they are discovered.
/// - Parameters:
/// - segments: An array of `TranscriptionSegment` objects representing the transcribed segments
public typealias SegmentDiscoveryCallback = (_ segments: [TranscriptionSegment]) -> Void
/// A callback that reports changes in the model's state.
/// - Parameters:
/// - oldState: The previous state of the model, if any
/// - newState: The current state of the model
public typealias ModelStateCallback = (_ oldState: ModelState?, _ newState: ModelState) -> Void
/// A callback that reports changes in the transcription process.
/// - Parameter state: The current `TranscriptionState` of the transcription process
public typealias TranscriptionStateCallback = (_ state: TranscriptionState) -> Void
Thanks you @iandundas for the excellent contribution! ✨
What's Changed
- Add public callbacks to help expose internal state a little more by @iandundas in https://github.com/argmaxinc/WhisperKit/pull/240
Full Changelog: https://github.com/argmaxinc/WhisperKit/compare/v0.9.2...v0.9.3