Microsoft Speech API 4 rebuilt in Go
Repo phyce/OpenSAPI4, read from GitHub 33 min ago. phyce has not joined Take My Repo.
OpenSAPI4 v0.2.0 adds the ten L&H TruVoice voices beside the Microsoft ones: Adult Male #1 to #8 and Adult Female #1 and #2, American English, identical to the original engine in every sample and event, on Windows, Linux and macOS.
Get the archive for your system, unpack it, and run the programs from its folder. They need nothing installed; keep the voices folder next to them.
| System | Archive |
|---|---|
| Windows | windows-x64, windows-x86 (32-bit), windows-arm64 |
| Linux | linux-x64, linux-arm64, linux-armv7 (such as a Raspberry Pi with a 32-bit system) |
| macOS | macos-arm64 (Apple silicon), macos-x64 (Intel) |
The programs aren't signed. On macOS, allow them once with xattr -dr com.apple.quarantine <the unpacked folder>. On Windows, SmartScreen may ask the first time.
opensapi4-voices-v0.2.0.zip has only the voice data, its microsoft and truvoice folders, for programs that use the Go package. SHA256SUMS lists every file's SHA-256.
opensapi4, with every tag, event and setting. They also answer to their speakers' names: -voice Peter is Adult Male #1, American English (TruVoice). Package truvoice gives the rest of the engine: pausing, Phoneme and the user lexicon.sapi4out and sapi4limits list and speak the TruVoice voices as the original tools do where TruVoice is installed: only a voice's exact name selects it, and any other name gives Mary.opensapi4 has its own Event, Sink and Format types for both engines, in place of package whistler's, and Speech.Microsoft and Speech.TruVoice give a speech's engine in place of Speech.Engine.Not yet: TruVoice reformats texts in its address, e-mail and spreadsheet contexts (\Ctx=) before it reads them, and this release doesn't, so texts in those contexts can sound different from the original.
Everything is in docs/command-line.md.
The first release of OpenSAPI4: the Microsoft Speech API 4 voices (Sam, Mike, Mary and their 16 variants) in Go, identical to the original in every sample and event, on Windows, Linux and macOS.
Get the archive for your system, unpack it, and run the programs from its folder. They need nothing installed; keep the voices folder next to them.
| System | Archive |
|---|---|
| Windows | windows-x64, windows-x86 (32-bit), windows-arm64 |
| Linux | linux-x64, linux-arm64, linux-armv7 (such as a Raspberry Pi with a 32-bit system) |
| macOS | macos-arm64 (Apple silicon), macos-x64 (Intel) |
The programs aren't signed. On macOS, allow them once with xattr -dr com.apple.quarantine <the unpacked folder>. On Windows, SmartScreen may ask the first time.
opensapi4-voices-v0.1.0.zip has only the voice data, for programs that use the Go package. SHA256SUMS lists every file's SHA-256.
opensapi4 speak: speaks a text into a WAV file, with flags or a JSON request.opensapi4 voices: lists the voices with their pitch and speed ranges.opensapi4 stream: speaks JSON requests from standard input and sends audio and events (words, bookmarks, mouth shapes) as JSON messages.opensapi4 serve: speaks over HTTP, with a page to try the voices at http://127.0.0.1:5040.sapi4out and sapi4limits: drop-in replacements for the tools of TETYYS/SAPI4.Everything is in docs/command-line.md. The L&H TruVoice voices aren't in this release yet.