'use client' import React, { type FC } from 'react' import { useTranslation } from 'react-i18next' import { useContext } from 'use-context-selector' import Panel from '@/app/components/app/configuration/base/feature-panel' import { Speaker } from '@/app/components/base/icons/src/vender/solid/mediaAndDevices' import ConfigContext from '@/context/debug-configuration' import { languages } from '@/utils/language' const TextToSpeech: FC = () => { const { t } = useTranslation() const { textToSpeechConfig, } = useContext(ConfigContext) return (
{t('appDebug.feature.textToSpeech.title')}
} headerIcon={} headerRight={
{languages.find(i => i.value === textToSpeechConfig.language)?.name} {textToSpeechConfig.voice}
} noBodySpacing isShowTextToSpeech={true} /> ) } export default React.memo(TextToSpeech)