Skip to content

Commit

Permalink
Restrict to wav file
Browse files Browse the repository at this point in the history
  • Loading branch information
Shanks0465 committed Sep 13, 2024
1 parent a00a32c commit 0023e03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/components/TryOut/ASR.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ function FileUploadButton({
ref={inputRef}
onChange={handleFileChange}
display="none"
accept=".wav"
onClick={(event: any) => {
event.target.value = null;
}}
Expand Down Expand Up @@ -391,6 +392,7 @@ export default function ASR({ services }: { services: any }) {
recorderControls={recorderControls}
/>
<FileUploadButton handleFileChange={handleFileChange} />
<FormHelperText>(Upload .wav files)</FormHelperText>
</HStack>
<Textarea value={outputText} isReadOnly></Textarea>
{success ? (
Expand Down

0 comments on commit 0023e03

Please sign in to comment.