feat(mobile): audio record && transcribe (#12105)

* feat: audio transcribe

* enhance(mobile): auto start recording on initialization

* fix(mobile): can't delete journal from selection bar

* fix: duplicated audio record buttons in quick add

* fix(mobile): inactive bottom tab color

* enhance(mobile): display no results when there's no matched items

* enhance(mobile): add audio transcription feature and enhance audio component

* fix: store assets directly instead in today page instead of node ref

* save transcribed text to audio's child block

* enhance: transcribe supports punctuations and being offline only

* fix(mobile): save assets to current editing page

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
This commit is contained in:
Charlie
2025-09-16 16:09:29 +08:00
committed by GitHub
parent ecc182879a
commit e103593c0d
31 changed files with 640 additions and 463 deletions

View File

@@ -177,9 +177,6 @@
;; Stores deleted refed blocks, indexed by repo
:editor/last-replace-ref-content-tx nil
;; for audio record
:editor/record-status "NONE"
:editor/code-block-context nil
:editor/latest-shortcut (atom nil)
@@ -225,7 +222,6 @@
;; mobile
:mobile/container-urls nil
:mobile/show-action-bar? false
:mobile/show-recording-bar? false
;; plugin
:plugin/enabled (and util/plugin-platform?
@@ -733,7 +729,9 @@ Similar to re-frame subscriptions"
([]
(enable-journals? (get-current-repo)))
([repo]
(not (false? (:feature/enable-journals? (sub-config repo))))))
(if (sqlite-util/db-based-graph? repo) ; db graphs rely on journals for quick capture/sharing/assets, etc.
true
(not (false? (:feature/enable-journals? (sub-config repo)))))))
(defn enable-flashcards?
([]