Skip to content

Commit

Permalink
version bump to 1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
djmango committed Jan 13, 2023
1 parent 9ad5c3e commit 1fc9442
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "obsidian-transcription",
"name": "Transcription",
"version": "1.0.2",
"version": "1.0.3",
"minAppVersion": "0.15.0",
"description": "Obsidian plugin to create high-quality transcriptions from markdown linked audio files",
"author": "djmango",
Expand Down
7 changes: 4 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ export default class Transcription extends Plugin {
settings: TranscriptionSettings;
public static plugin: Plugin;
public static children: Array<ChildProcess> = [];
public transcription_engine: TranscriptionEngine;

async onload() {
await this.loadSettings();
Transcription.plugin = this;
if (this.settings.debug) console.log('Loading Obsidian Transcription');
this.transcription_engine = new TranscriptionEngine(this.settings, this.app.vault, TranscriptionEngine.prototype.getTranscriptionWhisperASR)

this.addCommand({
id: 'obsidian-transcription-transcribe-all-in-view',
Expand Down Expand Up @@ -59,13 +61,12 @@ export default class Transcription extends Plugin {
}
}


// Now that we have all the files to transcribe, we can transcribe them
for (const fileToTranscribe of filesToTranscribe) {
if (this.settings.debug) console.log('Transcribing ' + fileToTranscribe.path);

const transcription_engine = new TranscriptionEngine(this.settings, this.app.vault, TranscriptionEngine.prototype.getTranscriptionWhisperASR)

transcription_engine.getTranscription(fileToTranscribe).then(async (transcription) => {
this.transcription_engine.getTranscription(fileToTranscribe).then(async (transcription) => {
if (this.settings.debug) console.log(transcription);

var fileText = await this.app.vault.read(view.file)
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
"1.0.0": "0.15.0",
"1.0.0": "0.15.0",
"1.0.0": "0.15.0",
"1.0.2": "0.15.0"
"1.0.2": "0.15.0",
"1.0.3": "0.15.0"
}

0 comments on commit 1fc9442

Please sign in to comment.