Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Say] Fix voice picker #12396

Merged
merged 1 commit into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions extensions/say/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Say - Spoken Content Changelog

## [Fixes] - 2024-05-16

- Fix voice picker

## [Initial Version] - 2024-05-11

- Add Type to Say feature
Expand Down
2 changes: 1 addition & 1 deletion extensions/say/src/configureSay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function ConfigureSay() {
}
}}
>
<Form.Dropdown.Item value="System Default" title="System Default" />
{voices.length > 0 && <Form.Dropdown.Item value={defaultVoice} title={defaultVoice} />}
{Object.entries(
groupBy(voices, (v) => new Intl.DisplayNames(["en"], { type: "language" }).of(v.languageCode.slice(0, 2))),
).map(([language, voices]) => (
Expand Down