🌩️ 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:
Marco Beretta 2024-07-10 22:44:12 +02:00 committed by GitHub
parent 7d5b03dd98
commit b34a4ddac1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 177 additions and 37 deletions

View file

@ -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;