Skip to content

Commit 4bae233

Browse files
authored
Use OpenAI voices for desktop TTS
Make OpenAI Onyx the default desktop response voice, remove desktop ElevenLabs TTS wiring, and rename the local voice label.
1 parent 515170f commit 4bae233

22 files changed

Lines changed: 362 additions & 741 deletions

.github/workflows/desktop_auto_release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ jobs:
8585
ANTHROPIC_API_KEY=DESKTOP_ANTHROPIC_API_KEY:latest
8686
DESKTOP_LEGACY_ANTHROPIC_KEY=DESKTOP_LEGACY_ANTHROPIC_KEY:latest
8787
GOOGLE_CALENDAR_API_KEY=DESKTOP_GOOGLE_CALENDAR_API_KEY:latest
88-
ELEVENLABS_API_KEY=DESKTOP_ELEVENLABS_API_KEY:latest
8988
9089
deploy-desktop-backend-prod:
9190
needs: deploy-desktop-backend
@@ -150,7 +149,6 @@ jobs:
150149
ANTHROPIC_API_KEY=DESKTOP_ANTHROPIC_API_KEY:latest
151150
DESKTOP_LEGACY_ANTHROPIC_KEY=DESKTOP_LEGACY_ANTHROPIC_KEY:latest
152151
GOOGLE_CALENDAR_API_KEY=DESKTOP_GOOGLE_CALENDAR_API_KEY:latest
153-
ELEVENLABS_API_KEY=DESKTOP_ELEVENLABS_API_KEY:latest
154152
155153
tag-release:
156154
needs: [deploy-desktop-backend, deploy-desktop-backend-prod]

.github/workflows/desktop_backend_auto_dev.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ jobs:
7474
ANTHROPIC_API_KEY=DESKTOP_ANTHROPIC_API_KEY:latest
7575
DESKTOP_LEGACY_ANTHROPIC_KEY=DESKTOP_LEGACY_ANTHROPIC_KEY:latest
7676
GOOGLE_CALENDAR_API_KEY=DESKTOP_GOOGLE_CALENDAR_API_KEY:latest
77-
ELEVENLABS_API_KEY=DESKTOP_ELEVENLABS_API_KEY:latest
7877
7978
- name: Show Output
8079
run: echo "Desktop backend deployed to development environment"

desktop/Backend-Rust/charts/desktop-backend/dev_values.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@ env:
3232
secretKeyRef:
3333
name: dev-omi-backend-secrets
3434
key: GEMINI_API_KEY
35-
- name: ELEVENLABS_API_KEY
36-
valueFrom:
37-
secretKeyRef:
38-
name: dev-omi-backend-secrets
39-
key: ELEVENLABS_API_KEY
4035
- name: RESEND_API_KEY
4136
valueFrom:
4237
secretKeyRef:

desktop/Backend-Rust/charts/desktop-backend/prod_values.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,6 @@ env:
3434
secretKeyRef:
3535
name: prod-omi-backend-secrets
3636
key: DEEPGRAM_API_KEY
37-
- name: ELEVENLABS_API_KEY
38-
valueFrom:
39-
secretKeyRef:
40-
name: prod-omi-backend-secrets
41-
key: ELEVENLABS_API_KEY
4237
- name: ENCRYPTION_SECRET
4338
valueFrom:
4439
secretKeyRef:

desktop/Backend-Rust/src/config.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,8 @@ pub struct Config {
6969
pub anthropic_api_key: Option<String>,
7070
/// Legacy Anthropic key served to old desktop clients via /api-keys (deprecated; remove after major release)
7171
pub desktop_legacy_anthropic_key: Option<String>,
72-
/// ElevenLabs API key for TTS proxy (used server-side by /v1/tts/synthesize, never served to clients)
73-
pub elevenlabs_api_key: Option<String>,
7472
/// Google Calendar API key (served to desktop clients)
7573
pub google_calendar_api_key: Option<String>,
76-
/// When true, omit ElevenLabs API key from /v1/config/api-keys response.
77-
/// Set this after all clients have updated to use the TTS proxy (issue #6622).
78-
pub disable_elevenlabs_key_response: bool,
7974
/// When true, route Gemini calls through Vertex AI instead of AI Studio.
8075
/// Uses service account auth (GOOGLE_APPLICATION_CREDENTIALS) instead of API key.
8176
pub use_vertex_ai: bool,
@@ -142,11 +137,7 @@ impl Config {
142137
agent_gcs_bucket: env::var("AGENT_GCS_BUCKET").ok(),
143138
anthropic_api_key: env::var("ANTHROPIC_API_KEY").ok(),
144139
desktop_legacy_anthropic_key: env::var("DESKTOP_LEGACY_ANTHROPIC_KEY").ok(),
145-
elevenlabs_api_key: env::var("ELEVENLABS_API_KEY").ok(),
146140
google_calendar_api_key: env::var("GOOGLE_CALENDAR_API_KEY").ok(),
147-
disable_elevenlabs_key_response: env::var("DISABLE_ELEVENLABS_KEY_RESPONSE")
148-
.map(|v| v == "true" || v == "1")
149-
.unwrap_or(false),
150141
use_vertex_ai: env::var("USE_VERTEX_AI")
151142
.map(|v| v != "false" && v != "0")
152143
.unwrap_or(true),

desktop/Backend-Rust/src/main.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ use config::Config;
3636
use routes::{
3737
// Active (real traffic from current app)
3838
agent_routes, auth_routes, chat_completions_routes, config_routes, crisp_routes,
39-
health_routes, proxy_routes, screen_activity_routes, tts_routes, updates_routes,
40-
webhook_routes,
39+
health_routes, proxy_routes, screen_activity_routes, updates_routes, webhook_routes,
4140
// Deprecated stubs (return 410 Gone — current app uses Python for all data CRUD)
4241
deprecated_routes,
4342
};
@@ -258,7 +257,6 @@ async fn main() {
258257
.merge(crisp_routes())
259258
.merge(proxy_routes())
260259
.merge(screen_activity_routes())
261-
.merge(tts_routes())
262260
.merge(chat_completions_routes())
263261
.merge(updates_routes())
264262
.merge(webhook_routes())

desktop/Backend-Rust/src/models/user_settings.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,6 @@ pub struct MemorySettingsData {
151151
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
152152
pub struct FloatingBarSettingsData {
153153
pub voice_answers_enabled: Option<bool>,
154-
pub elevenlabs_api_key: Option<String>,
155-
pub elevenlabs_voice_id: Option<String>,
156154
}
157155

158156
/// All assistant settings (response and request — all fields optional for partial updates)

desktop/Backend-Rust/src/routes/config.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
//
44
// Keys NO LONGER served here (proxied server-side):
55
// - Gemini: /v1/proxy/gemini/* (issue #5861); Deepgram proxy removed (#7137)
6-
// - ElevenLabs: /v1/tts/synthesize (issue #6622)
76
// - Anthropic: kept server-side for /v2/chat/completions proxy only (issue #6594)
87
//
98
// Legacy compat (explicit manager decision for backward compat):
@@ -35,7 +34,6 @@ struct ApiKeysResponse {
3534
/// GET /v1/config/api-keys — return non-secret config for the authenticated user
3635
/// NOTE: Anthropic key removed — proxied server-side via /v2/chat/completions (issue #6594)
3736
/// NOTE: Gemini keys proxied server-side (issue #5861); Deepgram proxy removed (#7137)
38-
/// NOTE: ElevenLabs key removed — proxied via /v1/tts/synthesize (issue #6622, #6827)
3937
async fn get_api_keys(State(state): State<AppState>, _user: AuthUser) -> Json<ApiKeysResponse> {
4038
Json(ApiKeysResponse {
4139
firebase_api_key: state.config.firebase_api_key.clone(),

desktop/Backend-Rust/src/routes/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ pub mod health;
1010
pub mod proxy;
1111
pub mod rate_limit;
1212
pub mod screen_activity;
13-
pub mod tts;
1413
pub mod updates;
1514
pub mod webhooks;
1615

@@ -29,6 +28,5 @@ pub use deprecated::deprecated_routes;
2928
pub use health::health_routes;
3029
pub use proxy::proxy_routes;
3130
pub use screen_activity::screen_activity_routes;
32-
pub use tts::tts_routes;
3331
pub use updates::updates_routes;
3432
pub use webhooks::webhook_routes;

0 commit comments

Comments
 (0)