[GH-ISSUE #2438] [Issue]: 11-PROV-RUNTIME-tts-voices-and-speech ElevenLabs voice discovery misses legacy pagination #1191

Closed
opened 2026-10-21 05:28:36 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @Promansis on GitHub (Jun 6, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2438

Originally assigned to: @SpicyMarinara on GitHub.

Summary

11-PROV-RUNTIME-tts-voices-and-speech parity gap: refactor ElevenLabs voice listing only reads one /v2/voices response, while legacy paginated and merged default plus account voices. This can hide available ElevenLabs voices in the refactor TTS provider voice picker.

Linked source tracker: #2410.

Expected behavior

ElevenLabs TTS voice discovery should match legacy behavior by collecting provider voices across pages and including both default voices and account voices before returning the normalized TTSVoicesResponse.

Acceptance criteria:

  • ElevenLabs voice discovery requests default voices and account voices, or an equivalent provider-complete voice catalog.
  • Paginated /v2/voices results are followed until no more pages remain, with a bounded loop.
  • Returned voice options stay normalized with id, name, optional metadata, fromProvider: true, and fallback/error metadata when provider lookup fails.
  • Existing OpenAI-compatible, NanoGPT ElevenLabs, PocketTTS, fallback voice, audio format, and non-audio rejection behavior remains intact.

Actual behavior

Refactor elevenlabs_voices performs a single /v2/voices?page_size=100&include_total_count=false request and parses that one response. It does not repeat legacy's default/account voice merge or pagination loop.

Steps to reproduce

  1. Configure TTS source as ElevenLabs with an API key and enough available voices to require pagination or default/account merging.
  2. Request TTS voices through tts_voices.
  3. Compare the returned voice catalog against legacy main behavior.

Impact area

  • App shell, navigation, startup, or providers
  • Catalog resources
  • Chat mode
  • Roleplay mode
  • Game mode
  • Shared mode UI
  • Runtime systems: generation, world-state, visuals, tracker, or haptics
  • Professor Mari or shell tools
  • React-free engine behavior, contracts, agents, or capability ports
  • Shared API wrapper or remote runtime routing
  • Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime
  • Docs, contributor workflow, or templates

Environment

  • Branch or commit: refactor parityscan receipt, 2026-06-06
  • Run mode: Tauri desktop / remote runtime provider command path
  • OS + version: not relevant
  • Node + pnpm versions: not relevant
  • Rust version, if relevant: not captured
  • Remote Runtime URL configured? not relevant
  • Provider, model, or integration, if relevant: ElevenLabs TTS voices

Logs, screenshots, or video

Proof used: static trace only.

Legacy behavior:

  • main:packages/server/src/routes/tts.routes.ts:426 paginates ElevenLabs /v2/voices.
  • main:packages/server/src/routes/tts.routes.ts:490 merges voice_type=default and account voices.

Refactor behavior:

  • src-tauri/src/commands/storage/integrations/tts.rs:596 has the ElevenLabs voice request helper.
  • src-tauri/src/commands/storage/integrations/tts.rs:601 calls one /v2/voices?page_size=100&include_total_count=false URL.
  • src-tauri/src/commands/storage/integrations/tts.rs:624 parses only that one response.

Files inspected:

  • src/shared/api/tts-api.ts:79
  • src/engine/contracts/types/tts.ts:102
  • src-tauri/src/commands/storage/integrations/tts.rs:199
  • src-tauri/src/commands/storage/integrations/tts.rs:285
  • src-tauri/src/commands/storage/integrations/tts.rs:596
  • main:packages/server/src/routes/tts.routes.ts:426
  • main:packages/server/src/routes/tts.routes.ts:490

Regression notes

This worked in legacy main. The refactor keeps TTS provider fanout and speech proxy behavior, but the ElevenLabs voice listing is narrower than legacy.

Additional context

Surface: 11-PROV-RUNTIME-tts-voices-and-speech.

Batch receipt result: gap.

Translation provider transport in the same batch was scanned with no confirmed parity gap, so no translation issue was created.

Template check

Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @Promansis on GitHub (Jun 6, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2438 Originally assigned to: @SpicyMarinara on GitHub. ## Summary `11-PROV-RUNTIME-tts-voices-and-speech` parity gap: refactor ElevenLabs voice listing only reads one `/v2/voices` response, while legacy paginated and merged default plus account voices. This can hide available ElevenLabs voices in the refactor TTS provider voice picker. Linked source tracker: #2410. ## Expected behavior ElevenLabs TTS voice discovery should match legacy behavior by collecting provider voices across pages and including both default voices and account voices before returning the normalized `TTSVoicesResponse`. Acceptance criteria: - ElevenLabs voice discovery requests default voices and account voices, or an equivalent provider-complete voice catalog. - Paginated `/v2/voices` results are followed until no more pages remain, with a bounded loop. - Returned voice options stay normalized with `id`, `name`, optional metadata, `fromProvider: true`, and fallback/error metadata when provider lookup fails. - Existing OpenAI-compatible, NanoGPT ElevenLabs, PocketTTS, fallback voice, audio format, and non-audio rejection behavior remains intact. ## Actual behavior Refactor `elevenlabs_voices` performs a single `/v2/voices?page_size=100&include_total_count=false` request and parses that one response. It does not repeat legacy's default/account voice merge or pagination loop. ## Steps to reproduce 1. Configure TTS source as ElevenLabs with an API key and enough available voices to require pagination or default/account merging. 2. Request TTS voices through `tts_voices`. 3. Compare the returned voice catalog against legacy `main` behavior. ## Impact area - [ ] App shell, navigation, startup, or providers - [ ] Catalog resources - [ ] Chat mode - [ ] Roleplay mode - [ ] Game mode - [ ] Shared mode UI - [ ] Runtime systems: generation, world-state, visuals, tracker, or haptics - [ ] Professor Mari or shell tools - [ ] React-free engine behavior, contracts, agents, or capability ports - [x] Shared API wrapper or remote runtime routing - [x] Tauri/Rust storage, assets, LLM, integrations, security, imports, or HTTP runtime - [ ] Docs, contributor workflow, or templates ## Environment - Branch or commit: refactor parityscan receipt, 2026-06-06 - Run mode: Tauri desktop / remote runtime provider command path - OS + version: not relevant - Node + pnpm versions: not relevant - Rust version, if relevant: not captured - Remote Runtime URL configured? not relevant - Provider, model, or integration, if relevant: ElevenLabs TTS voices ## Logs, screenshots, or video Proof used: static trace only. Legacy behavior: - `main:packages/server/src/routes/tts.routes.ts:426` paginates ElevenLabs `/v2/voices`. - `main:packages/server/src/routes/tts.routes.ts:490` merges `voice_type=default` and account voices. Refactor behavior: - `src-tauri/src/commands/storage/integrations/tts.rs:596` has the ElevenLabs voice request helper. - `src-tauri/src/commands/storage/integrations/tts.rs:601` calls one `/v2/voices?page_size=100&include_total_count=false` URL. - `src-tauri/src/commands/storage/integrations/tts.rs:624` parses only that one response. Files inspected: - `src/shared/api/tts-api.ts:79` - `src/engine/contracts/types/tts.ts:102` - `src-tauri/src/commands/storage/integrations/tts.rs:199` - `src-tauri/src/commands/storage/integrations/tts.rs:285` - `src-tauri/src/commands/storage/integrations/tts.rs:596` - `main:packages/server/src/routes/tts.routes.ts:426` - `main:packages/server/src/routes/tts.routes.ts:490` ## Regression notes This worked in legacy `main`. The refactor keeps TTS provider fanout and speech proxy behavior, but the ElevenLabs voice listing is narrower than legacy. ## Additional context Surface: `11-PROV-RUNTIME-tts-voices-and-speech`. Batch receipt result: `gap`. Translation provider transport in the same batch was scanned with no confirmed parity gap, so no translation issue was created. ## Template check Please uncheck the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:28:36 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Jun 6, 2026):

Fixed on refactor in commit c92bbcfc.

What changed:

  • ElevenLabs voice discovery now scans the v2 voice catalog with bounded pagination.
  • It requests both default and non-default voice catalogs, following has_more plus next_page_token until exhausted or the page cap is reached.
  • Returned voices are de-duped by normalized id and still use the existing normalized voiceOptions/fromProvider/fallback response shape.
  • Existing NanoGPT ElevenLabs, OpenAI-compatible voice lookup, PocketTTS, fallback metadata, and speech audio validation paths were left intact.

Verification:

  • cargo check --manifest-path src-tauri/Cargo.toml --workspace
  • cargo test --manifest-path src-tauri/Cargo.toml -p marinara-engine tts -- --nocapture
  • pnpm check:architecture
<!-- gh-comment-id:4638111205 --> @SpicyMarinara commented on GitHub (Jun 6, 2026): Fixed on refactor in commit c92bbcfc. What changed: - ElevenLabs voice discovery now scans the v2 voice catalog with bounded pagination. - It requests both default and non-default voice catalogs, following has_more plus next_page_token until exhausted or the page cap is reached. - Returned voices are de-duped by normalized id and still use the existing normalized voiceOptions/fromProvider/fallback response shape. - Existing NanoGPT ElevenLabs, OpenAI-compatible voice lookup, PocketTTS, fallback metadata, and speech audio validation paths were left intact. Verification: - cargo check --manifest-path src-tauri/Cargo.toml --workspace - cargo test --manifest-path src-tauri/Cargo.toml -p marinara-engine tts -- --nocapture - pnpm check:architecture
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#1191
No description provided.