Skip to content

Conversation

@neoOpus
Copy link

@neoOpus neoOpus commented Dec 15, 2022

No description provided.

Copy link
Owner

@idosal idosal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Added a few comments. It looks like there are missing commits.
Please attach a screenshot of the resulting UI.

voices.sort((a, b) => a.lang.localeCompare(b.lang));

// Limit number of voices shown to 250
voices = voices.slice(0, 250);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

};

const handleLanguageChange = (event) => {
setSelectedLanguage(event.target.value);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This method doesn't exist in this PR.

))}
</select>
<select value={ selectedVoice } onChange={handleVoiceChange}>
{voices.map((voice) => (
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this list be filtered by the chosen language? We should filter a new list on change and display that.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exactly

{voice.name} ({voice.lang})
</option>
))}
<select value={ selectedLanguage } onChange={handleLanguageChange}>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please reformat the code using Prettier.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure I will do

@neoOpus
Copy link
Author

neoOpus commented Dec 15, 2022

Sorry I did a mistake, by making the pull while I am still setting up the environnement for Node (I am not familiar with how it works), while I am also trying to have ChatGPT "help"...

The idea is to make a separate dropdown list for languages so it becomes easier to select... I am still trying to figure out a lot of things including how to test locally and debug, I thought that I am doing the PR on my fork...

Thank you for taking time to comment, I will try to be more careful (I did but still failed)

@idosal
Copy link
Owner

idosal commented Dec 15, 2022

No worries, it's all good. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants