Skip to content

Commit f2dfb32

Browse files
authored
Merge pull request #17 from jatinkrmalik/chore/alpha-release-prep
chore: alpha release preparation
2 parents f13cbeb + ce159b3 commit f2dfb32

7 files changed

Lines changed: 276 additions & 150 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build & Test
22

33
on:
4+
push:
5+
branches: [main]
46
pull_request:
57
branches: [main]
68

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# 🎙️ VocaMac
1+
<p align="center">
2+
<img src="web/logo.png" alt="VocaMac" width="128" height="128">
3+
</p>
4+
5+
<h1 align="center">VocaMac</h1>
26

37
[![Build & Test](https://github.com/jatinkrmalik/vocamac/actions/workflows/ci.yml/badge.svg)](https://github.com/jatinkrmalik/vocamac/actions/workflows/ci.yml) [![License: AGPL-3.0](https://img.shields.io/badge/License-AGPL--3.0-blue.svg)](https://www.gnu.org/licenses/agpl-3.0) [![Platform: macOS](https://img.shields.io/badge/Platform-macOS%2013%2B-lightgrey.svg)](https://github.com/jatinkrmalik/vocamac) [![Swift 5.9+](https://img.shields.io/badge/Swift-5.9%2B-orange.svg)](https://swift.org) [![Website](https://img.shields.io/badge/Web-vocamac.com-007AFF.svg)](https://vocamac.com) [![GitHub stars](https://img.shields.io/github/stars/jatinkrmalik/vocamac?style=social)](https://github.com/jatinkrmalik/vocamac/stargazers)
48

@@ -215,7 +219,7 @@ swift build -c release
215219
swift run VocaMac
216220

217221
# Run tests (requires Xcode)
218-
xcodebuild test -scheme VocaMac -destination 'platform=macOS'
222+
swift test
219223
```
220224

221225
---

Sources/VocaMac/Models/WhisperModel.swift

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ enum ModelSize: String, CaseIterable, Codable, Identifiable {
2828
}
2929
}
3030

31-
/// Model file name in GGML format
32-
var fileName: String {
33-
"ggml-\(rawValue).bin"
34-
}
35-
3631
/// Approximate file size on disk in bytes
3732
var fileSizeBytes: Int64 {
3833
switch self {
@@ -83,11 +78,6 @@ enum ModelSize: String, CaseIterable, Codable, Identifiable {
8378
case .largeV3: return "Best"
8479
}
8580
}
86-
87-
/// Download URL from Hugging Face
88-
var downloadURL: URL {
89-
URL(string: "https://huggingface.co/ggerganov/whisper.cpp/resolve/main/\(fileName)")!
90-
}
9181
}
9282

9383
// MARK: - WhisperModelInfo
@@ -120,6 +110,7 @@ struct WhisperModelInfo: Identifiable {
120110
/// Human-readable status description
121111
var statusDescription: String {
122112
if isActive { return "Active" }
113+
if isLoading { return "Loading..." }
123114
if let progress = downloadProgress {
124115
return "Downloading (\(Int(progress * 100))%)"
125116
}
@@ -130,6 +121,7 @@ struct WhisperModelInfo: Identifiable {
130121
/// SF Symbol name for the status icon
131122
var statusIconName: String {
132123
if isActive { return "checkmark.circle.fill" }
124+
if isLoading { return "arrow.trianglehead.2.clockwise" }
133125
if downloadProgress != nil { return "arrow.down.circle" }
134126
if isDownloaded { return "checkmark.circle" }
135127
return "arrow.down.to.line"

0 commit comments

Comments
 (0)