Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
import React from 'react';
import { Slider, InputNumber } from '@librechat/client';
import { useRecoilState, useRecoilValue } from 'recoil';
import { useLocalize } from '~/hooks';
import store from '~/store';
export default function DecibelSelector() {
const localize = useLocalize();
const speechToText = useRecoilValue(store.speechToText);
const [decibelValue, setDecibelValue] = useRecoilState(store.decibelValue);
return (
<div className="flex items-center justify-between">
<div className="flex items-center justify-between">
<div id="decibel-selector-label">{localize('com_nav_db_sensitivity')}</div>
<div className="w-2" />
<small className="high-contrast:opacity-100 opacity-40">
({localize('com_endpoint_default_with_num', { 0: '-45' })})
</small>
</div>
<div className="flex items-center justify-between">
<Slider
value={[decibelValue ?? -45]}
onValueChange={(value) => setDecibelValue(value[0])}
onDoubleClick={() => setDecibelValue(-45)}
min={-100}
max={-30}
step={1}
className="ms-4 flex h-4 w-24"
disabled={!speechToText}
aria-labelledby="decibel-selector-label"
/>
<div className="w-2" />
<InputNumber
value={decibelValue}
disabled={!speechToText}
onChange={(value) => setDecibelValue(value ? value[0] : 0)}
min={-100}
max={-30}
aria-labelledby="decibel-selector-label"
variant="option"
className="w-12"
/>
</div>
</div>
);
}