From 1b23da873d806c9a8ae20975bf955b346cbad4e8 Mon Sep 17 00:00:00 2001 From: Egor Gorbachev <7gorbachevm@gmail.com> Date: Fri, 10 May 2024 17:37:05 +0700 Subject: [PATCH] AI speech generator (#38) * AI Speech generation --- index.html | 8 +- package.json | 8 +- src/api/api.ts | 12 ++ .../use-main-button-progress-browser.ts | 13 ++- src/screens/deck-form/card-ai-speech.tsx | 103 ++++++++++++++++++ src/screens/deck-form/card-form-view.tsx | 26 ++++- src/screens/deck-form/card-form-wrapper.tsx | 10 ++ .../create-mock-card-preview-form.ts | 3 +- src/screens/deck-form/speaking-cards.tsx | 4 +- .../store/ai-speech-generator-store.ts | 83 ++++++++++++++ .../store/card-form-store-interface.ts | 7 +- .../deck-form/store/deck-form-store.test.ts | 4 + .../deck-form/store/deck-form-store.ts | 7 +- .../store/quick-add-card-form-store.ts | 7 +- .../deck-review/store/card-preview-store.ts | 4 +- src/screens/plans/translations.ts | 14 +-- src/translations/t.ts | 41 +++++-- src/ui/audio-player.tsx | 21 ++++ src/ui/button.tsx | 4 + 19 files changed, 339 insertions(+), 40 deletions(-) create mode 100644 src/screens/deck-form/card-ai-speech.tsx create mode 100644 src/screens/deck-form/store/ai-speech-generator-store.ts create mode 100644 src/ui/audio-player.tsx diff --git a/index.html b/index.html index f1bce433..d393c45a 100644 --- a/index.html +++ b/index.html @@ -11,8 +11,8 @@