Skip to content

Use environment variable for VoiceVox URL and ensure recordings directory creation#13

Merged
74th merged 2 commits intomainfrom
feat/env
Mar 7, 2026
Merged

Use environment variable for VoiceVox URL and ensure recordings directory creation#13
74th merged 2 commits intomainfrom
feat/env

Conversation

@74th
Copy link
Owner

@74th 74th commented Mar 7, 2026

This pull request makes improvements to the stackchan_server/ws_proxy.py module to enhance configurability and fix directory creation logic. The most important changes are grouped below:

Configuration Improvements:

  • The create_voicevox_client function now allows the Voicevox server URL to be set via the STACKCHAN_VOICEVOX_URL environment variable, making it easier to configure the server location without modifying code.

Directory Management Fixes:

  • The recordings directory is now only created when debug recording is enabled, preventing unnecessary directory creation. The logic for creating the directory has been moved from the module level to the WsProxy class's initialization, ensuring it is only created when needed. [1] [2]

@74th 74th merged commit a7298c6 into main Mar 7, 2026
1 check passed
@74th 74th deleted the feat/env branch March 7, 2026 12:40
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