fix: retry input and whisper (#785)

This commit is contained in:
Archer
2024-01-25 15:41:29 +08:00
committed by GitHub
parent 318116627c
commit 2c6dbe13d9
2 changed files with 32 additions and 38 deletions

View File

@@ -78,7 +78,7 @@ export const useSpeech = (props?: { shareId?: string }) => {
const duration = Math.round((Date.now() - startTimestamp.current) / 1000);
formData.append('files', blob, 'recording.webm');
formData.append('file', blob, 'recording.webm');
formData.append('metadata', JSON.stringify({ duration, shareId }));
setIsTransCription(true);