LingQ Extension (Custom Layouts, GPT, AI-TTS, Lesson Audio Generation, etc.)

6.2.2 Added a read the message button to bot messages. It utilizes the AI TTS.

LingQ Addon TTS Demo.mp4

6.2.3 The read the message button in a word-response only reads the word and the example sentence. (To minimize delay and cost).

Download Script

v6.3.0 Added a setting to prepend lesson summary.

Setting

Demo

I find it helpful to read the summary before starting a lesson.

Is it possible to add all the Blue and Yellow highlight under Edit Sentence mode? and interact with the words. Basically do the lesson while in Edit Sentence mode or have the edit sentence timing adjust part of interface while in Sentence mode. Would be really useful if there is an ability to tweak the timing in Sentence mode.

I usually work in sentence mode and it slow me down jumping into edit sentence mode to fix any time syncing errors.

Maybe create a HTML frame somewhere in sentence mode that shows the time adjustment portion taken from edit sentence mode . Maybe a more compact version, or a floating version.

Created a potential mockup below in an image editor.

Recently, there have been many times when words you know appear in yellow.

Because of the lingq’s internal structure, that’s almost impossible.

I’ll check the word state logic. I didn’t experience that issue.

Does Youtube always restart when Lingq pops up a notification like Activity Streak notifications, Known Word level achieved, Daily Activity achieved, etc?

Or is there a fix?

Show me the screenshot. I haven’t experienced that issue ever since I made it.
(This may be because I turned off the “Streak and milestones popups” option in the settings page.)

v 7.0.0

Implemented lesson audio generation with AI TTS. Generate high quality lesson audio!

Alert! The RPM/RPD limit of the Google TTS API is strangely low (10/100 each). So, it will fail for a lesson longer than 100 sentences. I recommend that you use openai API until the limit is eased.

Demo (OpenAI)


URL


Testing result:
generating 38 minutes amount audio takes 3 minutes.

Installation


If it was helpful to you, you can
Buy Me A Coffee

1 Like

v 7.1.0 Added the Google Cloud as a new TTS Provider. It’s stable and has more varied voices.

You can find the full list of the voices from here.
For English, there are 120 voices, and for others, 30 voices for each.

Setup

To use the Google Cloud TTS API, you need to enable the service for an API. This is how to do:

  1. Enable the Cloud Text-to-Speech API from the url: https://console.developers.google.com/apis/api/texttospeech.googleapis.com/overview
  2. Visit https://console.cloud.google.com/apis/credentials Select an API key displayed > Select the Cloud Text-to-Speech API from the API restrictions section > ok > save.

Demo with Random Voice Option.

This is a demo audio generated by the Google Cloud TTS API. 120 voices were randomly used.

Download Script

How much does a full lesson Google cloud TTS usually cost?

0 ~ 1 million characters: free
1 million characters~: $30 per million characters


My testing result:
32,631 characters => 38 minute
approximated cost: “$1” after spending 1 million tokens

ball park estimation of the free quota: 19h per month.

FYI: The OpenAI TTS costs $0.21 for the same text. So, after using 1 million characters in the Google Cloud API, using the OpenAI API would be cost-effective.

thnks. That is not too bad actually, it is cheaper than getting an audio book version. I will mess around with it this weekend.

1 Like

v 8.0.0 Added TTS playground.

You can generate TTS with the settings you choose.
With this, you can generate an audio file for your text, test your TTS settings, or more.

Download Script

Hey there!

been using the lingq extension and i think its fantastic but i have noticed a few issues. If they have already been talked about then sorry for bringing it up again.

The first issue is that for some reason there are tons of blue words that just dont show up so that when i go to finish the lesson it always asks me if i know them or not even though they don’t show up with the extension enabled. Some show up but If i disable the extension then i can see the rest of them.

The 2nd thing i noticed is the inconsistent words read when i have it to where you can scroll the entire lesson with text only. I noticed that sometimes it counts words and other times it doesn’t count any of the words as read. Today that happened to me.

Lastly it would be nice if the status color of the word would change just like lingQ although maybe thats possible and i just missed it. I also for some reason have to reinstall it every time i use it as well on firefox but besides that stuff its really nice to just scroll through all of the text instead of flipping pages and also how the video subs keep up with the video. Great job on it!

I’ve been using the extension every day for about 6 months. And I didn’t experience that issue so far. I’m not sure what the problem is.
The number of words read is updated after you finish a lesson. When you watch a video, it is updated according to the progress of the video. In Chrome, the color of words changes according to their state.

1 Like

ah okay well perhaps thats why it didn’t update for me because it wouldn’t let me complete the lesson until i lingq’d all blue words. Thanks for letting me know