Skip to content

Commit

Permalink
remove dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
hockyy committed Sep 25, 2024
1 parent 972b5da commit c758b6c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions renderer/pages/learn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function Learn() {
}, []);


const {speak, speaking, supported, printVoices, voices} = useSpeech(); // Use the useSpeech hook
const {speak, speaking, supported, voices} = useSpeech(); // Use the useSpeech hook

// Function to get supported language codes
const getSupportedLangCodes = useCallback(() => {
Expand All @@ -142,10 +142,6 @@ function Learn() {
}, [speak, supported, directInput, selectedVoice, lang]);


useEffect(() => {
printVoices();
}, [printVoices]);

return (
<React.Fragment>
<Head>
Expand Down

0 comments on commit c758b6c

Please sign in to comment.