[GH-ISSUE #7848] [Feature]: Select an existing Audio connection in the Text to Speech card #4321

Closed
opened 2026-10-21 06:14:49 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ebev on GitHub (Oct 19, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7848

Originally assigned to: @SpicyMarinara on GitHub.

What problem does this solve?

First-class Audio connections already exist (#5146 / #5152), but the Connections → Text to Speech card still offers only four standalone adapter configurations. Its preview and voice discovery deliberately use the legacy settings blob, while ordinary speech can resolve an Audio connection. Users therefore enter endpoint/key/model twice and cannot select the same connection for the card and playback.

The remaining profile identity gap matters for two connections using the same adapter: sourceProfiles is keyed by adapter, and resolveAudioConfig can inherit a legacy endpoint/model/voice when a different connection has blank fields. OpenAI-compatible identifies a protocol, not a particular service.

Proposed solution

  • Let the TTS Source selector choose configured, usable Audio connections alongside explicit standalone/legacy choices.
  • Resolve provider identity and credentials from the selected connection on the server; do not copy keys into TTS settings.
  • Scope TTS voice/presentation profiles by connection ID, preserving existing standalone settings as legacy choices without assigning them to an arbitrary connection.
  • Keep preview, voice discovery, normal playback and character voice editing aligned with the selection. Preserve explicit per-game Audio routing and existing master-toggle behavior.
  • Flag saved voice IDs not found in the selected connection's authoritative catalog, including switches between connections using the same adapter.
  • Cover migration, credential updates, profile isolation, missing/quarantined connections and UI selection with regression tests.

Alternatives considered

A copy-from-connection button is only a snapshot and credentials would drift again. Replacing existing Audio connections would duplicate the model already shipped in #5152. This proposal builds on that model and keeps standalone TTS available.

Additional context

Implementation owner: @ebev (agent-assisted). Work will be submitted from ebev/Marinara-Engine against staging. No production deployment, provider calls with real credentials, or release/version bump is part of this contribution.

The implementation will be developed with regression proof and local checks; this issue is not a claim that maintainers have approved the design.

Template check

  • I DID NOT read this template and provide the requested details.
Originally created by @ebev on GitHub (Oct 19, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7848 Originally assigned to: @SpicyMarinara on GitHub. ## What problem does this solve? First-class Audio connections already exist (#5146 / #5152), but the Connections → Text to Speech card still offers only four standalone adapter configurations. Its preview and voice discovery deliberately use the legacy settings blob, while ordinary speech can resolve an Audio connection. Users therefore enter endpoint/key/model twice and cannot select the same connection for the card and playback. The remaining profile identity gap matters for two connections using the same adapter: `sourceProfiles` is keyed by adapter, and `resolveAudioConfig` can inherit a legacy endpoint/model/voice when a different connection has blank fields. OpenAI-compatible identifies a protocol, not a particular service. ## Proposed solution - Let the TTS Source selector choose configured, usable Audio connections alongside explicit standalone/legacy choices. - Resolve provider identity and credentials from the selected connection on the server; do not copy keys into TTS settings. - Scope TTS voice/presentation profiles by connection ID, preserving existing standalone settings as legacy choices without assigning them to an arbitrary connection. - Keep preview, voice discovery, normal playback and character voice editing aligned with the selection. Preserve explicit per-game Audio routing and existing master-toggle behavior. - Flag saved voice IDs not found in the selected connection's authoritative catalog, including switches between connections using the same adapter. - Cover migration, credential updates, profile isolation, missing/quarantined connections and UI selection with regression tests. ## Alternatives considered A copy-from-connection button is only a snapshot and credentials would drift again. Replacing existing Audio connections would duplicate the model already shipped in #5152. This proposal builds on that model and keeps standalone TTS available. ## Additional context Implementation owner: @ebev (agent-assisted). Work will be submitted from `ebev/Marinara-Engine` against `staging`. No production deployment, provider calls with real credentials, or release/version bump is part of this contribution. The implementation will be developed with regression proof and local checks; this issue is not a claim that maintainers have approved the design. ## Template check - [ ] I DID NOT read this template and provide the requested details.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 19, 2026):

Thanks @ebev, this is a clear, well-scoped proposal. The maintainer wants it in the upcoming release, so we're building it now and will link the PR here. Please don't start a parallel implementation. Reviews and testing on the PR are very welcome.

<!-- gh-comment-id:6275185996 --> @SpicyMarinara commented on GitHub (Oct 19, 2026): Thanks @ebev, this is a clear, well-scoped proposal. The maintainer wants it in the upcoming release, so we're building it now and will link the PR here. Please don't start a parallel implementation. Reviews and testing on the PR are very welcome.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 19, 2026):

@ebev the PR is up: #7851. It builds the proposal from this issue. You're welcome to review it and test it on your setup. Comments on the PR are the best place for any feedback.

<!-- gh-comment-id:6277538942 --> @SpicyMarinara commented on GitHub (Oct 19, 2026): @ebev the PR is up: #7851. It builds the proposal from this issue. You're welcome to review it and test it on your setup. Comments on the PR are the best place for any feedback.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 19, 2026):

Added on staging by #7851; it ships in the next release. Thank you @ebev!

<!-- gh-comment-id:6278227607 --> @SpicyMarinara commented on GitHub (Oct 19, 2026): Added on staging by #7851; it ships in the next release. Thank you @ebev!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4321
No description provided.