Skip to content

Commit

Permalink
🐛 fix: Fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
canisminor1990 committed Nov 16, 2023
1 parent 4402715 commit a01cb3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/SpeechSynthesisTTS/options.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { SelectProps } from 'antd';
import { flatten } from 'lodash-es';

import { speechSynthesis } from '@/core/const/polyfill';
import { SpeechSynthesis } from '@/core/const/polyfill';
import voiceLocale from '@/core/data/locales';

import speechSynthesisVoiceList from './voiceList';

const genSpeechSynthesisVoiceList = () => {
if (!speechSynthesis) return;
const data = speechSynthesis?.getVoices();
if (!SpeechSynthesis) return;
const data = SpeechSynthesis?.getVoices();
const localeKeys = Object.keys(voiceLocale);
const list: any = {};
for (const voice of data) {
Expand Down

0 comments on commit a01cb3c

Please sign in to comment.