read text aloud

This commit is contained in:
2026-10-23 09:40:20 +02:00
parent 281f5465a6
commit 92b90c0e13
20 changed files with 471 additions and 18 deletions
@@ -0,0 +1,13 @@
import HelderServices
/// Records what would have been read aloud; `finish()` plays the voice reaching the end.
@MainActor
final class FakeSpeech: SpeechServicing {
var onFinish: (() -> Void)?
private(set) var spoken: [String] = []
private(set) var stops = 0
func speak(_ text: String) { spoken.append(text) }
func stop() { stops += 1 }
func finish() { onFinish?() }
}