Commit Graph

17 Commits

Author SHA1 Message Date
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
58c8bf5c8f Adds detailed docstrings for SocketListener and TrayApp classes
Enhances maintainability by providing comprehensive docstrings for
SocketListener and TrayApp classes. Documents attributes and methods,
clarifying their purposes and usage.
2025-03-24 14:27:57 +01:00
649b48ef53 Adds requirements section to README
Includes Python dependencies and external software requirements
to guide users on necessary tools and libraries for the project.
2025-03-24 14:26:33 +01:00
92d66fb46c Extracts notification logic into a reusable utility
Moves desktop notification functionality to a separate module for better code reuse and maintainability. Updates the main application to use the new utility.
2025-03-24 14:26:24 +01:00
36bad26e91 Updates default paths in sample settings
Replaces placeholder paths with temporary file paths for audio, output, and socket.
Updates the default URL to use localhost for better local testing.
2025-03-24 14:17:42 +01:00
697d6ec5fc Updates copyright and improves README formatting 2025-03-24 14:16:47 +01:00
82a7e6b968 Refactors configuration loading to use shared module
Replaces inline configuration loading logic with an import from a shared `configuration` module to improve code reuse and maintainability.
2025-03-24 14:16:31 +01:00
210e0e95fb Refactors command sending and adds CLI support
Introduces argument parsing for command-line interaction, allowing
users to specify commands dynamically. Refactors the command
sending function to include detailed error handling and support
for configurable socket paths via external configuration.
2025-03-24 14:15:28 +01:00
af048b9333 Adds configuration file reader utility
Introduces a function to read and parse configuration settings from a JSON file. Handles errors gracefully with exception handling to ensure reliability.

Facilitates centralized management of configuration settings.
2025-03-24 14:14:57 +01:00
1a1e7c0658 Improves error handling in transcription workflow
Adds detailed error handling for subprocess calls, file I/O, and HTTP requests to enhance robustness. Notifies the user of specific failures during transcription and clipboard operations. Fixes duplicate import and improves UI action configuration.
2025-03-24 13:51:08 +01:00
c35c01dbae Improves error handling in notification function
Updates the notify function to handle subprocess errors gracefully, ensuring better feedback and preventing crashes when notifications fail.
2025-03-24 13:50:29 +01:00
58cec63314 Add requirements file for project dependencies 2025-03-24 13:49:45 +01:00
fee80c3fbe Add main application and command sender for voice to text processing 2025-03-22 11:27:30 +01:00
154a5690ac Add sample configuration file for pyvtt settings 2025-03-22 11:27:24 +01:00
efc40c20b0 Add .gitignore to exclude pyvtt.settings.json and __pycache__/ 2025-03-22 11:27:17 +01:00
20Max01
5460d8a653 Initial commit 2025-03-22 10:02:02 +01:00