Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| bf27867d20 | |||
| e2c4a5264c |
@@ -89,6 +89,10 @@ export default class NibbleAI extends Plugin {
|
|||||||
new Notice("Already recording");
|
new Notice("Already recording");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!this.audioHandler.getTranscriptionApiKey()) {
|
||||||
|
new Notice("✘ Add your API key for the selected transcription provider in NibbleAI settings");
|
||||||
|
return;
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
await this.recorder.startRecording();
|
await this.recorder.startRecording();
|
||||||
this.statusBar.updateStatus(RecordingStatus.Recording);
|
this.statusBar.updateStatus(RecordingStatus.Recording);
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "nibbleai",
|
"id": "nibbleai",
|
||||||
"name": "NibbleAI",
|
"name": "NibbleAI",
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"minAppVersion": "1.12.7",
|
"minAppVersion": "1.12.7",
|
||||||
"description": "AI-powered tools for your Obsidian vault: speech-to-text, proofreading, title generation, property filling, and more.",
|
"description": "AI-powered tools for your Obsidian vault: speech-to-text, proofreading, title generation, property filling, and more.",
|
||||||
"author": "Olivier",
|
"author": "Olivier",
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "nibbleai",
|
"name": "nibbleai",
|
||||||
"version": "1.2.0",
|
"version": "1.2.1",
|
||||||
"description": "AI-powered tools for your Obsidian vault",
|
"description": "AI-powered tools for your Obsidian vault",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ export class AudioHandler {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private getTranscriptionApiKey(): string {
|
getTranscriptionApiKey(): string {
|
||||||
switch (this.plugin.settings.transcriptionProvider) {
|
switch (this.plugin.settings.transcriptionProvider) {
|
||||||
case "groq":
|
case "groq":
|
||||||
return this.plugin.settings.groqApiKey;
|
return this.plugin.settings.groqApiKey;
|
||||||
|
|||||||
Reference in New Issue
Block a user