EngineSTTSetting (Settings/SpeechControls.tsx)

librechat · client/src/components/Nav/Settings/SpeechControls.tsx · typescript · MIT
voice

Provides dropdowns for selecting STT/TTS engines in settings.

// Source: https://github.com/danny-avila/librechat | License: MIT | Copyright 2026 LibreChat
// Provided via justclaw.it.com; keep this notice with the code.
import { useGetCustomConfigSpeechQuery } from 'librechat-data-provider/react-query';
import { EngineSTTDropdown } from '../SettingsTabs/Speech/STT';
import { EngineTTSDropdown } from '../SettingsTabs/Speech/TTS';

export function EngineSTTSetting() {
  const { data } = useGetCustomConfigSpeechQuery();
  return <EngineSTTDropdown external={Boolean(data?.sttExternal)} />;
}

export function EngineTTSSetting() {
  const { data } = useGetCustomConfigSpeechQuery();
  return <EngineTTSDropdown external={Boolean(data?.ttsExternal)} />;
}

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key