mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-20 18:30:15 +01:00
🌩️ feat: cloud-based browser voices (#3297)
* initial voice support * feat: local voices; feat: switch cloud-based voices * feat: apply voice to hook
This commit is contained in:
parent
7d5b03dd98
commit
b34a4ddac1
9 changed files with 177 additions and 37 deletions
|
|
@ -1,19 +0,0 @@
|
|||
import { useRecoilState } from 'recoil';
|
||||
import store from '~/store';
|
||||
|
||||
export enum AudioEndpoints {
|
||||
browser = 'browser',
|
||||
external = 'external',
|
||||
}
|
||||
|
||||
const useGetAudioSettings = () => {
|
||||
const [engineSTT] = useRecoilState<string>(store.engineSTT);
|
||||
const [engineTTS] = useRecoilState<string>(store.engineTTS);
|
||||
|
||||
const externalSpeechToText = engineSTT === AudioEndpoints.external;
|
||||
const externalTextToSpeech = engineTTS === AudioEndpoints.external;
|
||||
|
||||
return { externalSpeechToText, externalTextToSpeech };
|
||||
};
|
||||
|
||||
export default useGetAudioSettings;
|
||||
Loading…
Add table
Add a link
Reference in a new issue