Commit Graph

92 Commits

Author SHA1 Message Date
an-lee
9f3cab831c Fix locale & enjoyai config & refactor filename (#279)
* max retries = 3 for enjoyai

* refactor file name

* update locale
2024-02-07 12:16:25 +08:00
an-lee
b904990d08 fix locale (#276) 2024-02-07 00:12:53 +08:00
an-lee
37cb3c7fe8 Improve player controls & assessment display (#275)
* zoom to fit as default

* display phoneme score in assessment
2024-02-06 23:59:19 +08:00
Percy Lee
de713caa9e fix: font display problem. (#252)
* fix: font display problem.

* Revert "fix: font display problem."

This reverts commit c20bbf8ce508ad0e256166714da2668ad01d6ad8.

* fix: change icon font color

* fix: icon font color.

---------

Co-authored-by: lixiancan <lixc.percy@gmail.com>
2024-02-05 21:08:00 +08:00
Percy Lee
f0c8ec79d6 fix typo (#254)
* fix: redundant ")"

* Fix typo.

* Fix typo.

---------

Co-authored-by: lixiancan <lixc.percy@gmail.com>
2024-02-02 23:10:34 +08:00
an-lee
adf26887ea ensure recording sync before assess (#251) 2024-02-02 17:08:37 +08:00
an-lee
e1f52e609e Fix bugs (#250)
* lint

* fix some lint error

* fix window hide error when size zero

* toast error when lookup failed

* resolve #239
2024-02-02 14:40:11 +08:00
Percy Lee
1868e27c0f fix:avoid unnecessary import. (#237)
Co-authored-by: lixiancan <lixc.percy@gmail.com>
2024-02-02 14:03:07 +08:00
Percy Lee
71b19fa9ce Fix bug (#190) (#241)
Co-authored-by: lixiancan <lixc.percy@gmail.com>
2024-02-02 13:57:41 +08:00
an-lee
f6dcf0366f Fix: window hide & show, toast error for llm (#249)
* fix window hide & show

* toast error when llm failed
2024-02-02 13:56:52 +08:00
an-lee
3ffc0746f3 Fix: cannot login in Windows (#248)
* fix view-load failed in windows

* refactor
2024-02-02 12:46:40 +08:00
an-lee
799e8b3ea6 Fix bugs (#245)
* fix lookup word

* prevent navigate to oauth url
2024-02-02 01:35:25 +08:00
an-lee
abde169ead Fix openai proxy (#244)
* add create messages in batch

* add use conversation

* update conversation shortcut

* add speech handler

* tts in renderer

* fix speech create
2024-02-02 00:41:23 +08:00
an-lee
05bfd46a88 prevent redirect the oauth callback url (#243) 2024-02-01 22:11:32 +08:00
an-lee
51a810fdfd Feat: may setup proxy (#238)
* add https proxy

* remove proxy in renderer

* proxy work for openai request

* use proxyAgent to enable system proxy

* add proxy setting

* tweak proxy setting
2024-02-01 15:33:37 +08:00
an-lee
92b9eceba1 Fix conversation edit failed & Mixin login (#236)
* fix redundant toast error

* fix Mixin login failed on occasions

* fix conversation form default values
2024-01-31 10:39:54 +08:00
an-lee
ea462196af fix check update in about 2024-01-31 02:21:05 +08:00
an-lee
99671f90e8 typo (#233) 2024-01-31 01:50:45 +08:00
Percy Lee
a672dc709e fix: fix bugs (#218) & (#227) (#231)
Co-authored-by: lixiancan <lixc.percy@gmail.com>
2024-01-31 01:44:21 +08:00
an-lee
ff1999c00b Fix bugs (#232)
* fix default engine settings

* fix conversation & cloudflare transcribe

* update arm64/darwin whisper

* empty notice for conversations

* display user rankings

* fix enjoy ai

* update whisper.cpp for arm64 darwin to v1.5.4

* upgrade yarn to 4.1.0
2024-01-31 01:40:14 +08:00
an-lee
00cbc8403b Feat: add Enjoy AI as option (#206)
* add enjoyAI as option

* use enjoyai config

* may call enjoyai

* may set default ai engine

* refactor setting context

* refactor preferences

* add warning when openai key not provided

* tweak locale

* update duration for audio/video

* add balance settings

* may select ai role when create conversation

* may forward message from conversation

* tweak ui

* refactor transcribe method

* refactor ai commands to hooks

* fix webapi

* tweak playback rate options

* add playMode, next & prev, ref: #124

* upgrade deps

* may skip whisper model download

* audios/videos default order by updated_At
2024-01-31 00:04:59 +08:00
an-lee
cec9d73bc8 Feat: transcribe from web (#204)
* add transcribe from web

* transcribe from web

* add azure speech ai

* fix azure speech output

* may select stt service

* fix UI

* remove debug code

* lint

* fix default stt service

* tweak

* fix secondsToTimestamp
2024-01-27 00:45:06 +08:00
an-lee
99577c5020 Feat: more login methods (#195)
* add login code api

* use container for webview

* improve browserview

* may login via xuesheng account

* locale

* fix ui
2024-01-25 11:02:26 +08:00
an-lee
ff14e1d04a Fix: record without ffmpeg & others (#201)
* remove ffmpeg transcode when save recording

* fix model download

* trancode record audio in renderer

* fix transcribe dead loop when whisper not working

* force to select a model

* check model before transcribe
2024-01-24 15:05:56 +08:00
an-lee
97e4804eb3 fix no whisper models dir (#197) 2024-01-23 21:25:31 +08:00
an-lee
506ea39ccb fix duplicated catch error (#194) 2024-01-23 16:10:51 +08:00
an-lee
51a71df326 keep loop when audio finish (#193) 2024-01-23 15:53:12 +08:00
an-lee
3a98bd9f40 Feat: use ffmpeg wasm (#177)
* add ffmepg wasm

* refactor whisper config

* refactor ffmpeg config

* remove depected codes

* refactor model download

* decouple whipser & ffmpeg when transcribe

* do not always toast not found error

* ffmpeg works in renderer

* transcode in renderer & transcript in main

* improve transcode

* refactor

* remove ffmpeg check

* fix whisper config check

* update whisper check

* enable SharedArrayBuffer

* remove ffmpeg setting

* fix UI

* handle ffmpeg not ready

* may create issue when whisper check failed

* upgrade deps

* hide ffmpeg setting if not ready

* hide record button when not in region
2024-01-23 14:39:16 +08:00
an-lee
f9fbb80f63 use baseUrl of openai config in command (#178) 2024-01-20 17:54:08 +08:00
an-lee
fe8f14bda7 ask for media access before record (#172) 2024-01-20 10:49:53 +08:00
an-lee
757c2af85c Feat: use default ai config (#167)
* fix locale

* use openai config if any
2024-01-19 17:24:12 +08:00
Tommy Tsui
8ec4b11505 bug:选择community中的vedio,点击Download按钮报错 #147 (#159)
* refactor: create DownloadType

* refactor: implement Downloadtype to the code

* bug: 选择community中的vedio,点击Download按钮报错 #147

https://github.com/xiaolai/everyone-can-use-english/issues/147
New behaviour:
1. Disable the other button while either of the button is clicked.
2. Show loading icon only to the clicked button

---------

Co-authored-by: Tommy Tsui <tommy.tsui@yedpay.com.hk>
2024-01-19 17:00:44 +08:00
an-lee
5efc5fc1db Feat: AI commands (#145)
* upgrade deps

* add extract command

* add lookup.command

* update lookup command

* fix locals

* may lookup one by one

* update lookup method

* add translate command

* cache translation by default

* open ai default settings

* use openai config in context

* refactor

* genreate ipa

* update UI

* handle ai generate fail
2024-01-19 16:52:49 +08:00
an-lee
98d8061600 add sample for checking whisper & ffmpeg 2024-01-19 13:52:05 +08:00
an-lee
f04dd1e3c8 Fix bugs (#153)
* escape space in command line

* disable record button when no reference

* notify when transcription working too long

* fix release CI

* fix UI & remove deprecated codes

* clear zombie transcribe process when started

* fix remove file when added a duplicated audio/video

* update latest whisper for win32
2024-01-18 18:21:55 +08:00
an-lee
a823c345df Fix: logs and notify more friendly (#127)
* popup the error when whisper/ffmpeg failed

* fix ffmpeg error handler
2024-01-16 23:32:49 +08:00
an-lee
3f2b6e78e8 fix recording calendar level out of range (#121) 2024-01-15 22:48:30 +08:00
an-lee
23feb06d20 Fix: UI (#119)
* fix ui
2024-01-15 18:00:35 +08:00
an-lee
b545ea2362 Feat: save waveform as file (#118)
* package rpm

* cache waveform data as file in library

* clear waveform data in db

* fix some css
2024-01-15 16:57:44 +08:00
an-lee
187038c42e Feat: scan ffmpeg command (#116)
* package rpm

* fix model url

* scan/check ffmpeg command

* handle undefined

* add reset settings button

* add ffmpeg install instrunction for mac

* improve landing steps
2024-01-15 14:12:22 +08:00
an-lee
d2510d00cb Feat: more preferences (#106)
* add ffmpeg command check

* may switch language

* tweak
2024-01-14 16:54:15 +08:00
an-lee
fe0542e8c6 Fix: Improve UI (#103)
* use sonner

* fix ui

* fix post audio player
2024-01-13 22:59:57 +08:00
an-lee
d6a4b24a1e Fix some bugs (#101)
* fix whisper large model download url ref: #93

* remove default baseURL for openAI

* add log for conversation
2024-01-13 19:30:58 +08:00
an-lee
7f671bb709 ui improve 2024-01-13 17:25:17 +08:00
an-lee
29e12106a2 add pagy for audios/videos 2024-01-13 17:20:18 +08:00
an-lee
09b7ca40f4 add pagy for stories 2024-01-13 16:59:46 +08:00
an-lee
e77eeb6a9c add pagy for posts 2024-01-13 16:57:49 +08:00
an-lee
3d3fc17c79 improve player loading perf 2024-01-13 16:52:14 +08:00
an-lee
24236a48ff hide ranking 2024-01-13 16:45:34 +08:00
an-lee
f40df6ecd6 refactor share 2024-01-13 16:40:26 +08:00