Skip to content

Commit

Permalink
Add plugin hook for transcriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
inukshuk committed Apr 19, 2024
1 parent bcf2324 commit 3d3f31b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/common/plugins.js
Expand Up @@ -111,6 +111,10 @@ export class Plugins extends EventEmitter {
return this.exec({ id, action: 'extract' }, ...args)
}

transcribe = (id, ...args) => {
return this.exec({ id, action: 'transcribe' }, ...args)
}

flush = async () => {
if (this.changes != null) { // TODO check if the config is different!
await this.save(this.changes)
Expand Down

0 comments on commit 3d3f31b

Please sign in to comment.