jbilcke-hf HF staff commited on
Commit
c08cffe
β€’
1 Parent(s): 4ddd98f

autodownload

Browse files
src/speechToText/speechToTextWithWhisperLib.mts CHANGED
@@ -11,7 +11,8 @@ export async function speechToText(sound: string): Promise<string> {
11
  const wavFilePath = await convertMp3ToWavFilePath(sound)
12
 
13
  const result = await nodewhisper(wavFilePath, {
14
- modelName: 'base.en', //Downloaded models name
 
15
  })
16
 
17
  console.log(result)
 
11
  const wavFilePath = await convertMp3ToWavFilePath(sound)
12
 
13
  const result = await nodewhisper(wavFilePath, {
14
+ modelName: "base.en", //Downloaded models name
15
+ autoDownloadModelName: "base.en"
16
  })
17
 
18
  console.log(result)