Skip to content

Commit

Permalink
Merge pull request cloudflare#144 from cloudflare/update-voice-options
Browse files Browse the repository at this point in the history
Update voice options
  • Loading branch information
third774 authored Dec 18, 2024
2 parents 656bfcc + c39969d commit 778f5f6
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions app/components/InviteAiDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ import type { ClientMessage } from '~/types/Messages'
import { Button } from './Button'
import { Dialog, DialogContent, DialogOverlay, Portal } from './Dialog'

const aiVoices = [
'Alloy',
'Ash',
'Ballad',
'Coral',
'Echo',
'Sage',
'Shimmer',
'Verse',
]

export function InviteAiDialog(props: { children?: ReactNode }) {
const [open, setOpen] = useState(false)

Expand Down Expand Up @@ -70,8 +81,11 @@ export function InviteAiDialog(props: { children?: ReactNode }) {
name="voice"
defaultValue={voice ?? 'ash'}
>
<option value="ash">Ash</option>
<option value="ballad">Ballad</option>
{aiVoices.map((voice) => (
<option key={voice} value={voice.toLowerCase()}>
{voice}
</option>
))}
</select>
</div>
</div>
Expand Down

0 comments on commit 778f5f6

Please sign in to comment.