You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| autoStart | boolean | false | auto start speech recording on component mount |
239
-
| autoTranscribe | boolean | true | should auto transcribe after stop recording |
240
-
| nonStop | boolean | false | if true, record will auto stop after stopTimeout. However if user keep on speaking, the recorder will keep recording |
241
-
| removeSilence | boolean | false | remove silence before sending file to OpenAI API |
242
-
| stopTimeout | number | 5,000 ms | if nonStop is true, this become required. This control when the recorder auto stop |
243
-
| streaming | boolean | false | transcribe speech in real-time based on timeSlice |
244
-
| timeSlice | number | 2000 ms | interval between each onDataAvailable event |
245
-
| whisperConfig |[WhisperApiConfig](#whisperapiconfig)| undefined | Whisper API transcription config |
246
-
| onDataAvailable | (blob: Blob) => void | undefined | callback function for getting recorded blob in interval between timeSlice |
247
-
| onTranscribe | (blob: Blob) => Promise<[Transcript](#transcript)> | undefined | callback function to handle transcription on your own custom server |
| autoStart | boolean | false | auto start speech recording on component mount |
239
+
| autoTranscribe | boolean | true | should auto transcribe after stop recording |
240
+
| mode | string | transcriptions | control Whisper mode either transcriptions or translations, currently only support translation to English |
241
+
| nonStop | boolean | false | if true, record will auto stop after stopTimeout. However if user keep on speaking, the recorder will keep recording |
242
+
| removeSilence | boolean | false | remove silence before sending file to OpenAI API |
243
+
| stopTimeout | number | 5,000 ms | if nonStop is true, this become required. This control when the recorder auto stop |
244
+
| streaming | boolean | false | transcribe speech in real-time based on timeSlice |
245
+
| timeSlice | number | 1000 ms | interval between each onDataAvailable event |
246
+
| whisperConfig |[WhisperApiConfig](#whisperapiconfig)| undefined | Whisper API transcription config |
247
+
| onDataAvailable | (blob: Blob) => void | undefined | callback function for getting recorded blob in interval between timeSlice |
248
+
| onTranscribe | (blob: Blob) => Promise<[Transcript](#transcript)> | undefined | callback function to handle transcription on your own custom server |
0 commit comments