mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-27 07:58:01 +01:00
Align desktop projections, processing fallback, history retention, contributor setup, Linux requirements, SDK contracts, and personal command examples with the implementation. Clarify prototype cleanup and historical validation limits without rewriting published release notes.
69 lines
3.1 KiB
Markdown
69 lines
3.1 KiB
Markdown
# HEX For iOS
|
|
|
|
**Status:** Native prototype, not the distributed macOS product. The containing
|
|
app records a temporary WAV, transcribes on-device with Apple Speech or
|
|
FluidAudio Parakeet V2, and attempts to remove the file after inference,
|
|
cancellation, or failure. A crash, recording-setup failure, or failed deletion
|
|
can leave a file in the app's temporary directory until iOS removes it. The
|
|
keyboard extension requests jobs and inserts completed text; it does not own
|
|
the microphone or speech model.
|
|
|
|
## Build On A Physical iPhone
|
|
|
|
Useful microphone and inference testing requires a physical iPhone. The
|
|
simulator verifies compilation and UI only.
|
|
|
|
Prerequisites:
|
|
|
|
- Xcode 26 or newer.
|
|
- [XcodeGen](https://github.com/yonaskolb/XcodeGen) 2.46.0 or newer.
|
|
- An Apple development team that can sign an app and keyboard extension.
|
|
|
|
Before generating the project, replace the checked-in development team and
|
|
bundle identifiers in `project.yml`. Create an App Group in your Apple developer
|
|
account and use the same identifier in `HEXMobile/HEXMobile.entitlements`,
|
|
`HEXKeyboard/HEXKeyboard.entitlements`, and `KeyboardBridge.appGroup` in
|
|
`HEXShared/KeyboardBridge.swift`.
|
|
|
|
Generate the project:
|
|
|
|
```sh
|
|
cd ios
|
|
xcodegen generate
|
|
open HEXMobile.xcodeproj
|
|
```
|
|
|
|
On iOS 26, HEX prefers Apple's on-device `SpeechTranscriber`. iOS installs and
|
|
maintains its language asset. On iOS 17-25 or when Apple Speech is unavailable,
|
|
HEX uses the English-only FluidAudio Parakeet V2 fallback. The progress bar
|
|
covers asset download and model preparation. An Apple Speech authorization or
|
|
preparation failure is reported as an error, not retried through Parakeet.
|
|
|
|
## Test The Keyboard
|
|
|
|
1. Launch HEX and prepare its speech model. Grant Speech Recognition access if
|
|
Apple Speech requests it. Microphone access is requested when you first start
|
|
a recording or keyboard session.
|
|
2. Add **HEX Keyboard** under **Settings > General > Keyboard > Keyboards**.
|
|
3. Enable **Allow Full Access**. iOS requires this for the keyboard extension to
|
|
use the private App Group shared with its containing app. The keyboard
|
|
extension does not use Full Access for network, microphone, or model access.
|
|
4. Open a text field, switch to HEX Keyboard, and tap **Open HEX**.
|
|
5. Grant Microphone access if prompted. HEX prepares a 15-minute keyboard session
|
|
and may immediately start the pending recording. Return to the previous app
|
|
with the bottom-edge gesture.
|
|
6. If the keyboard says **Listening**, tap **Stop and insert**. If it says
|
|
**Ready**, tap **Record** first.
|
|
|
|
The orange microphone indicator remains visible while the containing app owns
|
|
an active keyboard session. Each recording stops automatically after 60 seconds;
|
|
recordings shorter than 300 ms are discarded.
|
|
|
|
## App Review Notes
|
|
|
|
HEX requires no account or sign-in. To review keyboard dictation, follow the
|
|
steps above. Full Access is required only for the App Group bridge between the
|
|
keyboard and containing app. Speech inference stays on-device, the keyboard
|
|
extension does not access the microphone or network, and HEX removes temporary
|
|
recording audio on a best-effort basis after each handled job, subject to the
|
|
cleanup limitations above.
|