quran / quran.com-frontend-next

Frontend build on next.js
https://quran.com
1.38k stars 405 forks source link

[feature]: Assist SRT subtitle / closed-caption (CC) creation #1927

Open afriza opened 1 year ago

afriza commented 1 year ago

Is there an existing issue for this feature?

Summary

Many Quran recitation videos in YouTube already have original Arabic text and translations rendered to be part of the video frame. But there are tons of recitations with neither.

It is also possible to attach Arabic text as transcript and translations as CC (closed caption).

  1. Arabic transcript will make the video more discoverable. For example, someone may want to search for recitation for specific words / verses in the Quran.
  2. Translations as CC will help us to deliver the message of Quran to more people both muslims and non-muslims worldwide.

Your purposed solution for this feature

To make it easier to create CC subtitle in SRT format, in the web interface, we allow end-user to choose:

  1. name of surah (or surah number; e.g. 67 for Al-Mulk / Tabarak )
  2. starting verse number
  3. ending verse number
  4. select which translations to use for the output SRT files. 1 SRT file for each translation.
  5. enter timing info or use existing 5.a. input existing SRT subtitle file / YouTube link to get SRT subtitle; or 5.b. manually specify timing information for each verse. (in future, can split a long verse translation into parts).
  6. process & download subtitles for all languages available on quran.com
  7. upload SRT files to YouTube (by the channel owner via Chrome extension to make it easier to upload ~ 68 SRT files for each video)
afriza commented 1 year ago

With my meagre skills, I made https://afriza.github.io/quran-srt/ to help to create SRT files of all languages available on quran.com

These SRT files can then be uploaded into YouTube to allow CC with those languages.

I wonder if this functionality can be integrated into quran.com website and how it can be integrated.

It is still a tiring task to upload 68 SRT files for each video, so we probably need chrome extension to assist in uploading to youtube. The zip file from quran-srt is selected or dropped into the extension and the translations inside the zip should be added to the video.

Furthermore, for long ayah, it is not easy to break down the translations into (sub-)sentences and some intelligence (artificial or human) might be needed.