MyGit

v0.9.3

argmaxinc/WhisperKit

版本发布时间: 2024-11-06 02:01:25

argmaxinc/WhisperKit最新发布版本:v0.9.4(2024-11-07 09:51:16)

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

Full Changelog: https://github.com/argmaxinc/WhisperKit/compare/v0.9.2...v0.9.3

相关地址:原始地址 下载(tar) 下载(zip)

查看:2024-11-06发行的版本