Skip to content

Minecraft: Java Edition 26.3 rewritten from scratch in Rust, checked against vanilla with 281 differential harnesses. Get it with the Horizon launcher.

1.1 KB
Raw Blame
[package]
name = "horizon-narrator"
version = "0.1.0"
edition.workspace = true
license.workspace = true
rust-version = "1.85"
description = "The narrator: vanilla's text-to-speech (GameNarrator, com.mojang.text2speech) and screen narration state"

[dependencies]
log = "0.4"

# NarratorWindows: SAPI's SpVoice over COM, the voice the Windows narrator settings pick.
[target.'cfg(windows)'.dependencies]
windows = { version = "0.62.2", features = ["Win32_Foundation", "Win32_Media_Speech", "Win32_System_Com"] }

# NarratorLinux: flite and its cmu_us_kal16 voice, opened at run time as JNA does.
[target.'cfg(target_os = "linux")'.dependencies]
libloading = "0.8.9"

# NarratorMac: AppKit's NSSpeechSynthesizer, the voice of the system's spoken content settings.
[target.'cfg(target_os = "macos")'.dependencies]
objc2 = { version = "0.6.5", default-features = false, features = ["std"] }
objc2-app-kit = { version = "0.3.2", default-features = false, features = ["std", "NSSpeechSynthesizer"] }
objc2-foundation = { version = "0.3.2", default-features = false, features = ["std", "NSDate", "NSObjCRuntime", "NSRunLoop", "NSString"] }

[lints]
workspace = true