diff --git a/public/components/faq.html b/public/components/faq.html index 49611c5e..6661ad61 100644 --- a/public/components/faq.html +++ b/public/components/faq.html @@ -124,7 +124,7 @@
-

Yes. Click the Read button on any generated note to hear it spoken aloud. This uses text-to-speech (TTS) powered by Google, OpenAI, or ElevenLabs depending on your setup. You can choose your preferred voice in Settings > Voice Preferences.

+

Yes. Click the Read button on any generated note to hear it spoken aloud. Which voice engine does the speaking depends on what your administrator has configured. You can choose your preferred voice in Settings > Voice Preferences.

diff --git a/server.js b/server.js index 2ebf4d30..bad23431 100644 --- a/server.js +++ b/server.js @@ -308,8 +308,12 @@ app.get('/api/health/detailed', _hcAuth, _hcAdmin, (req, res) => { bedrock: process.env.AWS_BEDROCK_REGION ? 'configured' : 'not configured', azure: process.env.AZURE_OPENAI_ENDPOINT ? 'configured' : 'not configured', litellm: process.env.LITELLM_API_BASE ? 'configured' : 'not configured', - whisper: process.env.OPENAI_API_KEY ? 'configured' : 'missing', - tts: process.env.LITELLM_API_BASE ? 'litellm' : (process.env.ELEVENLABS_API_KEY ? 'elevenlabs' : 'none') + // Asked of the same functions the routes ask, so this cannot drift from what + // speech actually does. It used to answer from environment variables of its + // own and would report tts: 'elevenlabs' for a provider that does not exist + // in this app — a health check that lies is worse than one that is absent. + stt: require('./src/utils/sttProvider').getSTTProvider(), + tts: require('./src/utils/ttsProvider').getTTSProvider() }); }); diff --git a/test/tts-provider.test.js b/test/tts-provider.test.js index c547589b..79ed56cb 100644 --- a/test/tts-provider.test.js +++ b/test/tts-provider.test.js @@ -27,8 +27,8 @@ test('TTS provider defaults to LiteLLM when gateway is configured', () => { test('TTS provider ignores non-LiteLLM provider overrides', () => { const ttsProvider = require('../src/utils/ttsProvider'); - withEnv({ TTS_PROVIDER: 'elevenlabs', LITELLM_API_BASE: 'https://llm.example.com' }, () => { - assert.equal(ttsProvider.getTTSEnvProvider(), 'elevenlabs'); + withEnv({ TTS_PROVIDER: 'some-other-provider', LITELLM_API_BASE: 'https://llm.example.com' }, () => { + assert.equal(ttsProvider.getTTSEnvProvider(), 'some-other-provider'); assert.equal(ttsProvider.getTTSProvider(), 'litellm'); }); });