speechControl Driver

Last updated: · On hold
Future Plans
Version 1 is intentionally focused on reliable game-oriented speech. The protocol and backend abstraction leave room for more ambitious features later without requiring existing games to understand the Pi implementation.
Character voice profiles
Games could assign abstract voice numbers to narrators, computers, monsters, NPCs or radio characters. A configuration layer on the Pi could decide which synthesis voice and processing settings each number represents, allowing the same game to use different installed voice packs without changing BASIC code.
Multilingual speech
The initial game-facing text path is deliberately simple and ASCII-oriented. A later translation layer could map Spectrum text to UTF-8, expose language selection and provide language-specific voice or recognition profiles while keeping the core driver calls unchanged.
Richer speech synthesis
Once the basic controls are stable, later backends could offer optional pronunciation dictionaries, pauses, emphasis, style or character presets. These should remain capabilities rather than mandatory assumptions so the driver still works with lightweight engines.
Free-form dictation
Version 1 prioritises commands because they are useful to games and realistic for the original Pi Zero. More capable Pi hardware or recognisers could later expose unrestricted text recognition as an optional extension without changing the command-oriented path.
Wake-word support
A later STT backend could listen for a small activation phrase before opening the main grammar, useful for games where permanent command listening would otherwise be intrusive.
Barge-in and echo cancellation
Version 1 pauses recognition while TTS is speaking. Future audio processing could add echo cancellation so a player can interrupt spoken dialogue or issue commands while the computer is talking.
Accessibility
speechControl could provide a low-level foundation for spoken menus, voiced text adventures, screen-reader-style interfaces, audio descriptions and games designed around voice input. Because the service sits below individual games, improvements to the backend could benefit several projects.
Higher-level dialogue systems
speechControl should remain a low-level driver, but a separate dialogue layer could combine it with subtitles, branching conversations, NPC scripts and character voice profiles. Keeping that logic above the driver avoids turning speechControl into a game engine.
Event-driven integration
The initial game-facing design uses polling because it is simple and predictable from BASIC. The protocol leaves room for a future event-driven mode that could use Pi-UART interrupt facilities while keeping the existing polling API available.
Service management and packaging
A polished release could include a small installer/updater for the Pi service, version reporting, integrity checking and safe replacement of the persistent service. This would make speechControl much easier to distribute to people who do not want to interact with the Supervisor shell.
Controlling the Next through speech
speechControl is currently a gaming driver. Later development could extend spoken commands to control the ZX Spectrum Next itself, after the core gaming speech features are developed.