Commit graph

537 commits

Author SHA1 Message Date
Hongbo Wu
3945c2f887 Prevent synthesizing PDF 2022-08-25 17:01:29 +08:00
Hongbo Wu
3cea785336 Fix page id not get in auto-synthesize subscription 2022-08-25 16:09:35 +08:00
Hongbo Wu
7f83045c0c Fix a bug 2022-08-25 16:09:35 +08:00
Hongbo Wu
99a628f03f Fix tests 2022-08-25 16:09:35 +08:00
Hongbo Wu
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
Hongbo Wu
00d1696f23 use complimentary voice for blockquote, hardcoded for now 2022-08-25 16:09:35 +08:00
Hongbo Wu
4f8d71b7cc Add a pubsub subscription listening on the new article to automatically synthesize article 2022-08-25 16:09:35 +08:00
Hongbo Wu
9b0093e3d2 Add function to test if a page should be transcribed 2022-08-25 16:09:35 +08:00
Hongbo Wu
5622154e6c Update listenedAt in the API 2022-08-25 16:09:35 +08:00
Satindar Dhillon
2a273ef504 specify multiple aud values when verifying google tokens 2022-08-24 21:00:15 -07:00
Satindar Dhillon
ba1c9c970b use correct aud value when verifying google token from android 2022-08-23 09:26:47 -07:00
Hongbo Wu
45c1ba2d25 Update log 2022-08-22 16:45:10 +08:00
Hongbo Wu
5cfe0a14e9 Authorize user to get or create speech in the API 2022-08-22 16:44:05 +08:00
Hongbo Wu
cfdc236297 Validate token and authenticate user before setting Speech state to FAILED 2022-08-22 16:24:39 +08:00
Hongbo Wu
463f423cab Enqueue TTS task in the get speech of article API if speech not found 2022-08-22 16:13:34 +08:00
Hongbo Wu
efce6dad94 Stop queueing transcription after calling createArticle API 2022-08-22 16:12:27 +08:00
Hongbo Wu
476e43a1f8 Set speech state to FAILED if encountered error during transcription 2022-08-22 16:11:49 +08:00
Hongbo Wu
4852777f66 Throw error if synthesizing was cancelled 2022-08-22 16:10:49 +08:00
Hongbo Wu
2298635e56 Add function to set speech to failed state 2022-08-22 16:09:56 +08:00
Hongbo Wu
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
Jackson Harper
965ffb3013
Merge pull request #1065 from omnivore-app/feature/android-login
Android Login
2022-08-22 12:41:04 +08:00
Hongbo Wu
85d8816e1e Replace li element with a sentence element when converting HTML to SSML 2022-08-22 12:39:06 +08:00
Satindar Dhillon
1115cf34d9 update google login client id for android 2022-08-19 19:39:41 -07:00
Satindar Dhillon
33a4ee39dc check for android source in api mobile sign up route 2022-08-19 18:53:51 -07:00
Hongbo Wu
dba749c506 Fix some articles not converted to speech correctly 2022-08-20 00:11:46 +08:00
Hongbo Wu
0cf689ce21 Fix not getting revue newsletter url by checking all the hyper links in the table tr td 2022-08-19 17:32:29 +08:00
Hongbo Wu
0a75c52a8c Fix getting script_exception when updating labels in highlights by checking null before updating 2022-08-19 14:36:58 +08:00
Hongbo Wu
9906e2153b Save correct mp3 and speech marks file name in the database 2022-08-19 10:04:13 +08:00
Satindar Dhillon
1b46739a0d add sign in option for android client on server 2022-08-18 18:42:18 -07:00
Hongbo Wu
a1171c7952 Catch authentication error 2022-08-18 19:24:38 +08:00
Hongbo Wu
576318fcbe Add authentication to speech svc endpoint 2022-08-18 19:24:38 +08:00
Hongbo Wu
401633eda6 Return signed url 2022-08-18 19:24:38 +08:00
Hongbo Wu
249a5cda4a Add bucket, audioFileName, speechMarksFileName, state to speech table 2022-08-18 19:24:38 +08:00
Hongbo Wu
4cf5b934eb Add validation to request params 2022-08-18 19:24:38 +08:00
Hongbo Wu
29061cf7b1 Remove &nbsp in SSML 2022-08-18 19:24:38 +08:00
Hongbo Wu
a4a8fa9241 Replace emphasis elements in HTML 2022-08-18 19:24:38 +08:00
Hongbo Wu
c79651202d Add synthesize SSML to speech and test 2022-08-18 19:24:38 +08:00
Hongbo Wu
dee94f7c93 Fix a bug for converting text to speech for articles with less than 5000 characters 2022-08-18 19:24:38 +08:00
Hongbo Wu
19b13d164d Fix a bug not getting user personalization 2022-08-18 19:24:38 +08:00
Hongbo Wu
83c1930378 Split text into chunks of 5000 characters in paragraph 2022-08-18 19:24:38 +08:00
Hongbo Wu
c9d26acb25 Fix typo 2022-08-18 19:24:38 +08:00
Hongbo Wu
02ba753375 Upload speech marks file to gcs too 2022-08-18 19:24:38 +08:00
Hongbo Wu
c482ad320b Add duration in logging 2022-08-18 19:24:38 +08:00
Hongbo Wu
b0bf4fc5ce Create speech while requesting 2022-08-18 19:24:38 +08:00
Hongbo Wu
301746d494 Add /:id/mp3 router to redirect request to speech MP3 URL 2022-08-18 19:24:38 +08:00
Hongbo Wu
c74f2bc3fd Enqueue text to speech task after creating article 2022-08-18 19:24:38 +08:00
Hongbo Wu
447e413605 Add function to parse HTML to SSML 2022-08-18 19:24:38 +08:00
Hongbo Wu
355e33b648 Test Mandarin 2022-08-18 19:24:38 +08:00
Hongbo Wu
e086a14ac2 Convert time to ms 2022-08-18 19:24:38 +08:00
Hongbo Wu
77570aa5ab Synthesize text to speech with azure API 2022-08-18 19:24:36 +08:00