Vokturz commited on
Commit
e081e36
·
1 Parent(s): 363a465
src/contexts/TextToSpeechContext.tsx CHANGED
@@ -19,7 +19,11 @@ interface TextToSpeechContextType {
19
  setAudioResults: React.Dispatch<React.SetStateAction<AudioResult[]>>
20
  currentText: string
21
  setCurrentText: React.Dispatch<React.SetStateAction<string>>
22
- addAudioResult: (text: string, audio: Omit<AudioResult, 'text'>) => void
 
 
 
 
23
  clearAudioResults: () => void
24
  }
25
 
 
19
  setAudioResults: React.Dispatch<React.SetStateAction<AudioResult[]>>
20
  currentText: string
21
  setCurrentText: React.Dispatch<React.SetStateAction<string>>
22
+ addAudioResult: (
23
+ text: string,
24
+ audio: Omit<AudioResult, 'text'>,
25
+ voice?: string
26
+ ) => void
27
  clearAudioResults: () => void
28
  }
29