UNPKG

@chengsokdara/use-whisper

Version:

React Hook for OpenAI Whisper API with speech recorder and silence removal built-in.

7 lines (5 loc) 455 B
declare const defaultStopTimeout = 5000; declare const ffmpegCoreUrl = "https://unpkg.com/@ffmpeg/core-st@0.11.1/dist/ffmpeg-core.js"; declare const silenceRemoveCommand = "silenceremove=start_periods=1:stop_periods=-1:start_threshold=-30dB:stop_threshold=-30dB:start_silence=2:stop_silence=2"; declare const whisperApiEndpoint = "https://api.openai.com/v1/audio/"; export { defaultStopTimeout, ffmpegCoreUrl, silenceRemoveCommand, whisperApiEndpoint };