tts add voice choose (#2391)

Co-authored-by: luowei <glpat-EjySCyNjWiLqAED-YmwM>
Co-authored-by: crazywoola <427733928@qq.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
Charlie.Wei
2024-02-15 22:41:18 +08:00
committed by GitHub
parent e47b5b43b8
commit 300d9892a5
35 changed files with 746 additions and 92 deletions

View File

@@ -2,6 +2,7 @@
import type { FC, ReactNode } from 'react'
import React from 'react'
import cn from 'classnames'
import ParamsConfig from '@/app/components/app/configuration/config-voice/param-config'
export type IFeaturePanelProps = {
className?: string
@@ -12,6 +13,7 @@ export type IFeaturePanelProps = {
isFocus?: boolean
noBodySpacing?: boolean
children?: ReactNode
isShowTextToSpeech?: boolean
}
const FeaturePanel: FC<IFeaturePanelProps> = ({
@@ -23,6 +25,7 @@ const FeaturePanel: FC<IFeaturePanelProps> = ({
isFocus,
noBodySpacing,
children,
isShowTextToSpeech,
}) => {
return (
<div
@@ -41,7 +44,13 @@ const FeaturePanel: FC<IFeaturePanelProps> = ({
<div className='text-sm font-semibold text-gray-800'>{title}</div>
</div>
<div>
{headerRight}
{isShowTextToSpeech
? (
<div className='flex items-center'>
<ParamsConfig/>
</div>
)
: headerRight}
</div>
</div>
</div>