Commit Graph

562 Commits

Author SHA1 Message Date
795ca47414 Save wordsCount when page is created 2022-09-06 10:19:58 +08:00
d00391b593 Add wordCount to Page doc in elastic 2022-09-06 10:03:36 +08:00
9826262ef4 Return an array of SSMLs instead of ssmlItems 2022-09-02 15:33:00 +08:00
3953a9098e Send SSML items in the synthesis API 2022-09-02 15:33:00 +08:00
7353c328d9 Remove unused text-to-speech code 2022-08-29 22:29:40 +08:00
d085c86bb6 Enqueue text to speech tasks 2022-08-29 22:23:07 +08:00
8c8734d153 Re-enable auto synthesis in the backend 2022-08-29 22:09:09 +08:00
a94dca8932 Prioritize synthesis over playing audio over pre-fetching 2022-08-29 15:45:21 +08:00
4672b520e9 Merge pull request #1148 from omnivore-app/feature/separate-queues-for-synthesis
feature/separate queues for synthesis
2022-08-29 13:43:53 +08:00
a19ec8efea Hardcode queue name 2022-08-29 13:20:39 +08:00
dfea982df7 Merge pull request #1146 from omnivore-app/feature/android-apple-login-redirect
Android Apple Login Endpoint
2022-08-28 21:17:32 -07:00
2e4cb7f4b0 Fix using wrong taskHandlerUrl for low priority task 2022-08-29 12:01:17 +08:00
4af340f30e Add the priority to request param and use the correct queue accordingly 2022-08-29 11:49:10 +08:00
f903a92245 Use text-to-speech queue 2022-08-29 11:47:42 +08:00
e976c9e169 Add text-to-speech queue name and location to env 2022-08-29 11:47:01 +08:00
3f6ade9614 verify apple token with both audience names used for the app 2022-08-28 09:55:41 -07:00
a720d5a5d5 set cors config for android web redirect 2022-08-28 09:48:39 -07:00
3d16b1d0b4 add redirect uri for android apple login 2022-08-28 09:36:30 -07:00
7a9eca2622 Update text-to-speech endpoint 2022-08-26 17:53:26 +08:00
5201f5d360 Add RLS to speech table 2022-08-26 16:56:33 +08:00
b2d49d1fbf Add dotenv 2022-08-26 16:30:09 +08:00
5a1dbb594e Call backend api to update speech in db 2022-08-26 15:41:06 +08:00
933fa9f142 Use a promise 2022-08-25 20:07:13 +08:00
82fdad3c80 Disable the automatic speech trigger 2022-08-25 19:54:39 +08:00
b337735c9d Do not throw error if failed to synthesize self-closing tags elements 2022-08-25 18:52:10 +08:00
3945c2f887 Prevent synthesizing PDF 2022-08-25 17:01:29 +08:00
3cea785336 Fix page id not get in auto-synthesize subscription 2022-08-25 16:09:35 +08:00
7f83045c0c Fix a bug 2022-08-25 16:09:35 +08:00
99a628f03f Fix tests 2022-08-25 16:09:35 +08:00
a477560626 Add a feature flag for text to speech beta test and if turned on, automatically synthesize new articles 2022-08-25 16:09:35 +08:00
00d1696f23 use complimentary voice for blockquote, hardcoded for now 2022-08-25 16:09:35 +08:00
4f8d71b7cc Add a pubsub subscription listening on the new article to automatically synthesize article 2022-08-25 16:09:35 +08:00
9b0093e3d2 Add function to test if a page should be transcribed 2022-08-25 16:09:35 +08:00
5622154e6c Update listenedAt in the API 2022-08-25 16:09:35 +08:00
2a273ef504 specify multiple aud values when verifying google tokens 2022-08-24 21:00:15 -07:00
ba1c9c970b use correct aud value when verifying google token from android 2022-08-23 09:26:47 -07:00
45c1ba2d25 Update log 2022-08-22 16:45:10 +08:00
5cfe0a14e9 Authorize user to get or create speech in the API 2022-08-22 16:44:05 +08:00
cfdc236297 Validate token and authenticate user before setting Speech state to FAILED 2022-08-22 16:24:39 +08:00
463f423cab Enqueue TTS task in the get speech of article API if speech not found 2022-08-22 16:13:34 +08:00
efce6dad94 Stop queueing transcription after calling createArticle API 2022-08-22 16:12:27 +08:00
476e43a1f8 Set speech state to FAILED if encountered error during transcription 2022-08-22 16:11:49 +08:00
4852777f66 Throw error if synthesizing was cancelled 2022-08-22 16:10:49 +08:00
2298635e56 Add function to set speech to failed state 2022-08-22 16:09:56 +08:00
4ce7352013 Merge pull request #1108 from omnivore-app/fix/failed-to-convert-speech
Fix some articles not converted to speech correctly
2022-08-22 12:58:04 +08:00
965ffb3013 Merge pull request #1065 from omnivore-app/feature/android-login
Android Login
2022-08-22 12:41:04 +08:00
85d8816e1e Replace li element with a sentence element when converting HTML to SSML 2022-08-22 12:39:06 +08:00
1115cf34d9 update google login client id for android 2022-08-19 19:39:41 -07:00
33a4ee39dc check for android source in api mobile sign up route 2022-08-19 18:53:51 -07:00
dba749c506 Fix some articles not converted to speech correctly 2022-08-20 00:11:46 +08:00