Commit Graph

10 Commits

Author SHA1 Message Date
58b9cb586c feat(libs): integrate Ollama and Whisper clients with config models
- Add `AppConfig` and `PresetConfig` models using Pydantic for config validation
- Refactor `read_configurations` to return an `AppConfig` instance
- Implement `OllamaClient` for chat-based server interaction
- Implement `WhisperClient` for transcription via Whisper CLI
- Migrate notification utilities to `libs` directory
- Update tray application to use new clients and config structure
- Simplify Whisper and Ollama integration logic in `WhisperWorker`

Signed-off-by: Max P. <Mail@MPassarello.de>
2025-05-05 12:00:33 +02:00
f4604d4485 refactor(voice_to_text_tray): improve configuration handling
- Replace direct usage of global configuration dictionaries with local
  variables for better readability and maintainability.
- Update all references to use the newly introduced local variables.

Signed-off-by: Max P. <Mail@MPassarello.de>
2025-04-30 17:52:40 +02:00
495452f7bd feat(pyvtt): add support for optional preset in commands
- Add `preset` argument to `send_cmd` for passing optional presets.
- Modify command formatting to include preset if provided.
- Update CLI to accept an optional `preset` argument.
- Extend socket listener to parse and validate preset values.
- Enhance functionality to allow preset-based dynamic behavior.

Signed-off-by: Max P. <Mail@MPassarello.de>
2025-04-30 15:44:35 +02:00
d7f783834f fix(voice_to_text_tray): use get() method for safer access to CURRENT_PRESET mode
Signed-off-by: Max P. <Mail@MPassarello.de>
2025-04-30 15:30:48 +02:00
da76f9420b fix(voice_to_text_tray): update journal timestamp format to include seconds
Signed-off-by: Max P. <Mail@MPassarello.de>
2025-04-30 15:24:10 +02:00
f33b583aec feat(voice_to_text_tray): enhance journal creation with error handling and timestamp formatting
Signed-off-by: Max P. <Mail@MPassarello.de>
2025-04-30 15:21:24 +02:00
0a808a8471 feat(voice_to_text_tray): add journal saving for transcription results
- Add functionality to save transcription results to a journal file.
- Use current date and time to organize entries in the journal.
- Retain clipboard copy behavior for non-journal modes.
- Enhance error handling for journal writing operations.

Signed-off-by: Max P. <Mail@MPassarello.de>
2025-04-30 15:18:22 +02:00
b5281b393c refactor(configuration): simplify import paths
- Update import statements to remove redundant `src` prefix.
- Improve clarity and maintainability of module references.

Signed-off-by: Max P. <Mail@MPassarello.de>
2025-04-30 15:07:10 +02:00
a569bb6206 refactor(configuration): use pathlib for config path handling
- Replace `os` with `pathlib` for defining the default config path.
- Simplify configuration file path management for readability.
- Improve code maintainability by centralizing the default path.

Signed-off-by: Max P. <Mail@MPassarello.de>
2025-04-30 15:03:51 +02:00
5b343b68cf feat(pyvtt): add CI pipeline and restructure project
All checks were successful
Build and Publish / build-and-publish (push) Successful in 21s
- Add GitHub Actions workflow for building and publishing packages.
- Introduce `pyproject.toml` for project metadata and dependency management.
- Remove `requirements.txt` in favor of Poetry for dependency handling.
- Restructure source files under `src/pyvtt` for better organization.
- Enhance `notify.py` with sound playback and improve error handling.
- Update `voice_to_text_tray.py` to support dynamic configuration reload.
- Add `.vscode/settings.json` for improved IDE configuration.
- Update `.gitignore` to exclude build artifacts.

Signed-off-by: Max P. <Mail@MPassarello.de>
2025-04-30 15:01:58 +02:00