Skip to content

Add Python output modules - #1105

Open
daxmawal wants to merge 1 commit into
brailcom:masterfrom
daxmawal:python-module-foundations
Open

Add Python output modules#1105
daxmawal wants to merge 1 commit into
brailcom:masterfrom
daxmawal:python-module-foundations

Conversation

@daxmawal

@daxmawal daxmawal commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR is a follow-up to #1104 and adds reusable helpers for implementing Speech Dispatcher output modules in Python.
Disclosure: Codex assisted with code review and testing.

Follow-up work

Planned follow-up PRs will:

  1. Python output module protocol implementation (module_main and module_process) and server-side audio transport.
  2. add the Pocket TTS output module.
  3. implement the remaining features, including sound icons, STOP, PAUSE, and complete custom debug logging.

if cur_item != "log_level":
return -1

match = re.match(r"\s*([+-]?[0-9]+)", cur_value)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't find equivalent to strtol()

#
# module_readline.py - Input buffering for Python output modules.
#
# Copyright (C) 2020 Samuel Thibault <samuel.thibault@ens-lyon.org>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Python code is simply a translation of the C code, it's therefore justified to add his name.

@daxmawal

Copy link
Copy Markdown
Contributor Author

The Python tests have been successfully run and are available here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant