Merge pull request from juangf7/ts-error

Ts error
main
Cogent Apps 2023-03-08 10:24:35 -08:00 committed by GitHub
commit d259de817c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

2
.gitignore vendored 100644
View File

@ -0,0 +1,2 @@
node_modules
package-lock.json

View File

@ -222,7 +222,7 @@ export default function SettingsScreen(props: SettingsScreenProps) {
<audio controls style={{ display: 'none' }} id="voice-preview" key={context.voice.id}>
<source src={voices.find(v => v.voice_id === context.voice.id)?.preview_url} type="audio/mpeg" />
</audio>
<Button onClick={() => document.getElementById('voice-preview')?.play()} variant='light' compact style={{ marginTop: '1rem' }}>
<Button onClick={() => (document.getElementById('voice-preview') as HTMLMediaElement)?.play()} variant='light' compact style={{ marginTop: '1rem' }}>
<i className='fa fa-headphones' />
<span>Preview voice</span>
</Button>