feat(transcription): allow use of a local mode in timestamped-whisper

pull/6303/head
lutangar 2024-04-30 11:03:18 +02:00
parent a8f39db913
commit 154eba502f
1 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,10 @@ you
`)
})
it('May transcribe a media file using a local PyTorch model file', async function () {
await transcriber.transcribe(frVideoPath, { name: 'myLocalModel', path: buildAbsoluteFixturePath('transcription/models/tiny.pt') }, 'fr')
})
it('May transcribe a media file in french', async function () {
this.timeout(45000)
const transcript = await transcriber.transcribe(frVideoPath, { name: 'tiny' }, 'fr', 'txt')