Skip to content
New issue

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

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

Already on GitHub? # to your account

Change static var stored properties to static let #190

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Sources/WhisperKit/Core/WhisperKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ open class WhisperKit {
public var segmentSeeker: any SegmentSeeking

/// Shapes
public static var sampleRate: Int = 16000
public static var hopLength: Int = 160
public static var chunkLength: Int = 30 // seconds
public static var windowSamples: Int = 480_000 // sampleRate * chunkLength
public static var secondsPerTimeToken = Float(0.02)
public static let sampleRate: Int = 16000
public static let hopLength: Int = 160
public static let chunkLength: Int = 30 // seconds
public static let windowSamples: Int = 480_000 // sampleRate * chunkLength
public static let secondsPerTimeToken = Float(0.02)

/// Progress
public private(set) var currentTimings: TranscriptionTimings
Expand Down