Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

Regression: Google Cloud TTS feature (PR #285) lost in v2.3 pack update

Open fayerman-source opened this issue 10 months ago • 3 comments

Description

PR #285 ("Add Google Cloud TTS provider") was merged on January 1, 2026, adding Google Cloud TTS as an alternative to ElevenLabs with 400x more free characters (4M/month vs ~10K).

This feature was lost in commit fec59c2 ("Update all 23 packs for PAI v2.3") on January 15, 2026.

What Was Lost

The following functionality from PR #285 is no longer in the codebase:

  • TTS_PROVIDER environment variable (google/elevenlabs selection)
  • generateSpeechGoogle() function for Google Cloud TTS API
  • Multi-provider architecture in VoiceServer
  • Linux audio player detection (mpg123, mpv, paplay)
  • Linux desktop notifications (notify-send)
  • Provider status in /health endpoint

Evidence

Original code exists at commit 944914f:

git show 944914f:Packs/kai-voice-system/src/voice/server.ts | grep -c "google"
# Returns: 20+ matches

Current code has no Google TTS:

grep -c "google" Packs/pai-voice-system/src/VoiceServer/server.ts
# Returns: 0

Root Cause

When packs were renamed from kai-* to pai-* and restructured for v2.3, the voice server file was rewritten without preserving the Google TTS additions from PR #285.

Impact

  • Users cannot use Google Cloud TTS (400x more free tier than ElevenLabs)
  • Linux audio/notification support also lost
  • My contribution from PR #285 effectively reverted

Proposed Fix

Restore Google TTS functionality to Packs/pai-voice-system/src/VoiceServer/server.ts from commit 944914f. I can submit a PR with the restoration.

Related

  • Original PR: #285 (merged Jan 1, 2026)
  • Overwriting commit: fec59c2 (Jan 15, 2026)

fayerman-source avatar Jan 17 '26 04:01 fayerman-source

Update (2026-01-31)

I now understand why this hasn't been addressed - per discussion #500, the team is focused on building CI/CD infrastructure for v3.x before merging new features. This is the right approach given PAI's rapid growth.

Context from #500:

  • Kayvan Sylvan joined to bring professional CI/CD practices
  • Priority #1: Installation wizard improvements
  • Priority #2: Update process fixes (which this falls under)
  • Team is pausing feature merges to build proper release infrastructure

This issue fits perfectly with the v3.x roadmap since:

  • It's about the installation/update flow
  • It demonstrates the exact problem CI/CD will prevent (features lost in refactoring)
  • The fix is ready and tested

Status: Ready when you are

I have the Google Cloud TTS restoration code from the original PR #285 and can resubmit it when:

  1. The v3.x CI/CD infrastructure is in place
  2. You're ready to accept feature restorations
  3. There's a testing framework to prevent future regression

No rush - I recognize you're building the foundation that will make this sustainable long-term. Just wanted to acknowledge the strategic pause and confirm this is ready for when the time comes.

Thanks for the front-page credit, even though the feature got lost in transition. Looking forward to v3.x!

fayerman-source avatar Jan 31 '26 18:01 fayerman-source

Thanks for reporting this! We've been doing a major restructuring of PAI's core systems, including a complete redesign of the hook architecture (consolidated from 22 to ~19 hooks), a rewritten Algorithm (now v0.5.1 with PRD-based verification), removal of the observability system, and numerous path/configuration fixes.

This specific issue is addressed by those changes. We're targeting a v3.0 release soon that will include all of this. We appreciate your patience and your help in identifying these issues — it directly informed our redesign work. Stay tuned!

danielmiessler avatar Feb 10 '26 21:02 danielmiessler

Thanks for flagging! The voice system was restructured in v3.0 (now released). Google Cloud TTS can be re-integrated as a voice provider in the new architecture. If this is something you'd like to see, please open a feature request for v3.0.

kaimagnus avatar Feb 15 '26 17:02 kaimagnus