Transcribe only when keyboard shortcut or button pressed in Obsidian

- Transcribe on holding Ctrl+s keyboard shortcut
- Transcribe on holding the transcribe button pressed via mouse too
- Make the transcribe button robust to inadvertent touches by using timeout
- Do not transcribe, trigger auto-send on silences. Silence detection
  is super rudimentary, just blocks standard emanations by whisper
  when no speech
This commit is contained in:
Debanjum Singh Solanky
2024-07-07 13:19:57 +05:30
parent 0eb000c3ea
commit 3e0c882e27
2 changed files with 80 additions and 11 deletions

View File

@@ -613,9 +613,23 @@ img.copy-icon {
margin-top: -16px;
margin-left: -16px;
border: 4px solid transparent;
border-top-color: var(--icon-color-active);
border-color: var(--icon-color-active);
border-radius: 50%;
animation: spin 1s linear infinite;
animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse {
0% {
transform: scale(1);
opacity: 1;
}
50% {
transform: scale(1.2);
opacity: 0.2;
}
100% {
transform: scale(1);
opacity: 1;
}
}
@keyframes spin {