🎥 Make videos programmatically with React
document getLoadedModels() API
Igor Samokhovets21045f863d6b
diff --git a/packages/docs/docs/whisper-wasm/get-loaded-models.mdx b/packages/docs/docs/whisper-wasm/get-loaded-models.mdxnew file mode 100644index 0000000000..9c41370172--- /dev/null+++ b/packages/docs/docs/whisper-wasm/get-loaded-models.mdx@@ -0,0 +1,9 @@+---+title: getLoadedModels()+---++Returns an array of Whisper models that have already been downloaded and stored in the browser's IndexedDB storage.++## Return value++Returns a Promise that resolves to an array of `WhisperWasmModel` strings, representing the models that are already downloaded and available locally.diff --git a/packages/docs/docs/whisper-wasm/whisper-wasm.tsx b/packages/docs/docs/whisper-wasm/whisper-wasm.tsxindex da50d820d6..b63fe5f86c 100644--- a/packages/docs/docs/whisper-wasm/whisper-wasm.tsx+++ b/packages/docs/docs/whisper-wasm/whisper-wasm.tsx@@ -10,20 +10,24 @@ export const TableOfContents: React.FC = () => {<strong>canUseWhisperWasm()</strong><div>Check if the browser supports Whisper WASM</div></TOCItem>+ <TOCItem link="/docs/whisper-wasm/download-whisper-model">+ <strong>downloadWhisperModel()</strong>+ <div>Download a Whisper model in browser</div>+ </TOCItem><TOCItem link="/docs/whisper-wasm/resample-to-16khz"><strong>resampleTo16khz()</strong><div>Prepare an audio file for transcription by resampling it to 16kHz</div></TOCItem>- <TOCItem link="/docs/whisper-wasm/download-whisper-model">- <strong>downloadWhisperModel()</strong>- <div>Download a Whisper model in browser</div>- </TOCItem><TOCItem link="/docs/whisper-wasm/transcribe"><strong>transcribe()</strong><div>Transcribe an audio file in the WASM environemnt</div></TOCItem>+ <TOCItem link="/docs/whisper-wasm/get-loaded-models">+ <strong>getLoadedModels()</strong>+ <div>Get a list of Whisper models that are already downloaded</div>+ </TOCItem></Grid></div>);diff --git a/packages/docs/sidebars.js b/packages/docs/sidebars.jsindex 69288c9e84..113f47cd78 100644--- a/packages/docs/sidebars.js+++ b/packages/docs/sidebars.js@@ -724,6 +724,7 @@ module.exports = {'whisper-wasm/transcribe','whisper-wasm/resample-to-16khz','whisper-wasm/can-use-whisper-wasm',+ 'whisper-wasm/get-loaded-models',],},{