1. New
    1. Member Announcements
  2. Home
    1. Get Started - Activities
    2. Posting Policies
    3. Community Standards
    4. Terms of Use
    5. Moderator Team
    6. Site Map
    7. Quizzes
    8. Articles
      1. Featured Articles
      2. Blog Posts at EpicureanFriends
  3. Wiki
    1. Wiki Home
    2. FAQ
    3. Classical Epicureanism
    4. Physics
    5. Canonics
    6. Ethics
    7. Search Assistance
    8. Not NeoEpicurean
    9. Foundations
    10. Navigation Outlines
    11. Key Pages
  4. Forum
    1. New Activity
    2. New Threads
    3. Welcome
    4. General Discussion
    5. Featured
    6. Activism
    7. Shortcuts
    8. Dashboard
    9. Full Forum List
    10. Level 3+
    11. Most Discussed
  5. Podcast
    1. Lucretius Today Podcast
    2. Episode Guide
    3. Lucretius Today At Youtube
    4. EpicureanFriends Youtube Page
  6. Texts
    1. Overview
    2. Diogenes Laertius
    3. Principal Doctrines
    4. Vatican Sayings
    5. Lucretius
    6. Herodotus
    7. Pythocles
    8. Menoeceus
    9. Fragments - Usener Collection
    10. Torquatus On Ethics
    11. Velleius On Gods
    12. Greek/Latin Help
  7. Gallery
    1. Featured images
    2. Albums
    3. Latest Images
    4. Latest Comments
  8. Calendar
    1. Upcoming Events List
    2. Zoom Meetings
    3. This Month
    4. First Monday Zoom Meetings
    5. Wednesday Zoom Meeting
    6. Twentieth Zoom Meetings
    7. Zoom Meetings
  9. Other
    1. Featured Content
    2. Blog Posts
    3. Files
    4. Logbook
    5. EF ToDo List
    6. Link-Database
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Forum
  • Articles
  • Blog Articles
  • Files
  • Gallery
  • Events
  • Pages
  • Wiki
  • Help
  • FAQ
  • More Options

Welcome To EpicureanFriends.com!

"Remember that you are mortal, and you have a limited time to live, and in devoting yourself to discussion of the nature of time and eternity you have seen things that have been, are now, and are to come."

Sign In Now
or
Register a new account
  1. New
    1. Member Announcements
  2. Home
    1. Get Started - Activities
    2. Posting Policies
    3. Community Standards
    4. Terms of Use
    5. Moderator Team
    6. Site Map
    7. Quizzes
    8. Articles
      1. Featured Articles
      2. Blog Posts at EpicureanFriends
  3. Wiki
    1. Wiki Home
    2. FAQ
    3. Classical Epicureanism
    4. Physics
    5. Canonics
    6. Ethics
    7. Search Assistance
    8. Not NeoEpicurean
    9. Foundations
    10. Navigation Outlines
    11. Key Pages
  4. Forum
    1. New Activity
    2. New Threads
    3. Welcome
    4. General Discussion
    5. Featured
    6. Activism
    7. Shortcuts
    8. Dashboard
    9. Full Forum List
    10. Level 3+
    11. Most Discussed
  5. Podcast
    1. Lucretius Today Podcast
    2. Episode Guide
    3. Lucretius Today At Youtube
    4. EpicureanFriends Youtube Page
  6. Texts
    1. Overview
    2. Diogenes Laertius
    3. Principal Doctrines
    4. Vatican Sayings
    5. Lucretius
    6. Herodotus
    7. Pythocles
    8. Menoeceus
    9. Fragments - Usener Collection
    10. Torquatus On Ethics
    11. Velleius On Gods
    12. Greek/Latin Help
  7. Gallery
    1. Featured images
    2. Albums
    3. Latest Images
    4. Latest Comments
  8. Calendar
    1. Upcoming Events List
    2. Zoom Meetings
    3. This Month
    4. First Monday Zoom Meetings
    5. Wednesday Zoom Meeting
    6. Twentieth Zoom Meetings
    7. Zoom Meetings
  9. Other
    1. Featured Content
    2. Blog Posts
    3. Files
    4. Logbook
    5. EF ToDo List
    6. Link-Database
  1. New
    1. Member Announcements
  2. Home
    1. Get Started - Activities
    2. Posting Policies
    3. Community Standards
    4. Terms of Use
    5. Moderator Team
    6. Site Map
    7. Quizzes
    8. Articles
      1. Featured Articles
      2. Blog Posts at EpicureanFriends
  3. Wiki
    1. Wiki Home
    2. FAQ
    3. Classical Epicureanism
    4. Physics
    5. Canonics
    6. Ethics
    7. Search Assistance
    8. Not NeoEpicurean
    9. Foundations
    10. Navigation Outlines
    11. Key Pages
  4. Forum
    1. New Activity
    2. New Threads
    3. Welcome
    4. General Discussion
    5. Featured
    6. Activism
    7. Shortcuts
    8. Dashboard
    9. Full Forum List
    10. Level 3+
    11. Most Discussed
  5. Podcast
    1. Lucretius Today Podcast
    2. Episode Guide
    3. Lucretius Today At Youtube
    4. EpicureanFriends Youtube Page
  6. Texts
    1. Overview
    2. Diogenes Laertius
    3. Principal Doctrines
    4. Vatican Sayings
    5. Lucretius
    6. Herodotus
    7. Pythocles
    8. Menoeceus
    9. Fragments - Usener Collection
    10. Torquatus On Ethics
    11. Velleius On Gods
    12. Greek/Latin Help
  7. Gallery
    1. Featured images
    2. Albums
    3. Latest Images
    4. Latest Comments
  8. Calendar
    1. Upcoming Events List
    2. Zoom Meetings
    3. This Month
    4. First Monday Zoom Meetings
    5. Wednesday Zoom Meeting
    6. Twentieth Zoom Meetings
    7. Zoom Meetings
  9. Other
    1. Featured Content
    2. Blog Posts
    3. Files
    4. Logbook
    5. EF ToDo List
    6. Link-Database
  1. EpicureanFriends - Home of Classical Epicurean Philosophy
  2. Forum
  3. General Discussion - Start Here
  4. General Discussion
  • Sidebar
  • Sidebar

Technology Question - How Best To Create "Video" With Speech Matched To Scrolling Text

  • Cassius
  • October 10, 2019 at 4:08 PM
  • Go to last post
Regularly Checking In On A Small Screen Device? Bookmark THIS page!
  • Online
    Cassius
    05 - Administrator
    Points
    101,885
    Posts
    13,950
    Quizzes
    9
    Quiz rate
    100.0 %
    • October 10, 2019 at 4:08 PM
    • #1

    I am thinking ahead to the Lucretius book review discussion, and I am realizing that we have a continuing need for computer method that will allow us to create video that is mostly the spoken reading of text that scrolls by on the screen as it is being read. In other words, for example, creating a video of an audio reading of a letter of Epicurus while the text of the letter scrolls by in the video.

    I have confronted this issue before in creating the "Foundations of Epicurean Philosophy" video without really coming to a satisfactory conclusion. It is very tedious to match text to the audio and flash it by in segments, so what I am wondering is this:

    It ought to be possible to record a segment of text on audio, and then move that audio file into a video processor where it can be matched to a text file of the same material. When I say "matched" I mean that in most video editors the audio file shows up on screen as a picture of the waveform of appropriate length. What then needs to be done is to add the "text file" of the text into the editor, and then drag that out to the same length as the audio waveform along with a "scroll this" command - kind of like the opening scene of the original Star Wars movie, but not necessarily fading into the background but simply scrolling from bottom of the screen to the top.

    We ought to have a number of people who are capable of creating text excerpts like this, so I would like to develop a recommended procedure in which we identify the program and the method to recommend. In order to make that accessible to as many people as possible it would be desirable if the programs were free (such as, for example, the AUDACITY editor for editing audio) .

    But the first order of business is probably to find a method that as many people as possible will find convenient, whether it is "free" or not.

    I will work on this and report back in this thread.

    My preferred tool is linux, but we aren't limited to that. As for free programs, the Audacity audio editor will do all the audio editing that we need, and such free video editors as KDENLIVE and OPENSHOT may do some of the video, but not necessarily the scrolling effect that is really needed.

    If you are knowledgeable in computers and have a suggestion I would really appreciate it.

  • Online
    Kyle
    03 - Member
    Points
    176
    Posts
    27
    • October 10, 2019 at 11:50 PM
    • #2

    I'm making a python script that will do this. I'll attach my code repository for it in case anyone wants to see, it's almost done except I must match the scrolling speed with the audio speed.

    Code repository:

    https://github.com/kpence/text-sc…ext-scroller.py

  • Online
    Kyle
    03 - Member
    Points
    176
    Posts
    27
    • October 11, 2019 at 3:27 AM
    • #3

    I got it so that the scroll speed matches the speed of the Text-To-Speech. Here's my demo of it:

    I'll make a user interface so you can either upload audio or use your system's Text-To-Speech.
    I'm gonna create an installer so it's easy for other people to use, I'll do that tomorrow.

  • Online
    Cassius
    05 - Administrator
    Points
    101,885
    Posts
    13,950
    Quizzes
    9
    Quiz rate
    100.0 %
    • October 11, 2019 at 5:50 AM
    • #4

    WOW KYLE THANK YOU! I was hoping that there might already exist some kind of sourceforge or github project to do such a thing, but it never occurred to me that it might be possible that someone here could make one specially for this use!

    The demo looks great! I looked over the code and it seems so simple, but I don't know the first thing about Python programming.

    I see you have a place to specify the color of the background, and the video size. That's excellent too. I can imagine that someone doing this might want to take the resulting video and surround it with some kind of frame or Titling, and the ability to specify those settings ought to be easy enough to take the result and do that in any video editor. I can see someone's first request might be the ability to specify a fixed title, a special font, and a background image instead of a simple color, and if I were to dare to make requests those would probably be it, but even as is this looks highly usable. (As to the font I mean the default font for the entire scrolling text, not the ability to change fonts within it - I presume that would require it's own word processor. But it's not clear to me whether the python program is being input text in Ascii format, or RTF, or what.)

    Many many thanks for taking this initiative!!

  • Online
    Kyle
    03 - Member
    Points
    176
    Posts
    27
    • October 11, 2019 at 12:04 PM
    • #5

    The input text must be in ASCII format.

    printable = set(string.printable)

    audio_txt = [filter(lambda x: x in printable, origin_txt)]

    these two lines strip everything that isn't ASCII.

    I simplified the script a little bit and commented to make it simpler.

    I added options for user to specify a bunch of new stuff, including backgrounds.

    Quote

    if I were to dare to make requests

    No, feel free to be creative with requests!

    Here's another demo, I chose ugly red text but it's easy to change in the ALL CAPS options at the top of the script (FONT_COLOR)


    Next is to add a static title!

    Edited 3 times, last by Kyle (October 11, 2019 at 12:54 PM).

  • Online
    Cassius
    05 - Administrator
    Points
    101,885
    Posts
    13,950
    Quizzes
    9
    Quiz rate
    100.0 %
    • October 11, 2019 at 12:35 PM
    • #6

    Amazing! I am out but will try as soon as I get home. Thank you!

  • Online
    Cassius
    05 - Administrator
    Points
    101,885
    Posts
    13,950
    Quizzes
    9
    Quiz rate
    100.0 %
    • October 11, 2019 at 12:36 PM
    • #7

    Hmm did you mean to include a link to a video?

  • Online
    Kyle
    03 - Member
    Points
    176
    Posts
    27
    • October 11, 2019 at 12:40 PM
    • #8

    Oops, I forgot I added that to my edit draft.

    Edit: Ok I added the demo.

    Next is adding explanation for beginners how to set it up on different operating systems, creating an installer, and static title text.

    (also i should add a background offset)

    (Also, I love how my Text to Speech says "them" like "them-i-ser-fer". I don't know why it does that)

    Edited 3 times, last by Kyle (October 11, 2019 at 1:04 PM).

  • Online
    Cassius
    05 - Administrator
    Points
    101,885
    Posts
    13,950
    Quizzes
    9
    Quiz rate
    100.0 %
    • October 11, 2019 at 1:15 PM
    • #9

    More greatness! Thank you!

  • Online
    Cassius
    05 - Administrator
    Points
    101,885
    Posts
    13,950
    Quizzes
    9
    Quiz rate
    100.0 %
    • October 11, 2019 at 1:19 PM
    • #10

    I can imagine using this in at least two ways: (1) using it to produce just the scrolling text, and then dropping the resulting video into a video editing program to customize the area around the box with the text. (2) as is, just as you are doing, combining a user-spoken MP3 with the text that is being spoken. You're adding options that will make option (2) very viable, but if it gets to be to huge a project, option (1) should always be workable too. My experience is that it's next to impossible to drop a large amount of text into any standard video-editor program, so this will solve that problem elegantly!

  • Online
    Cassius
    05 - Administrator
    Points
    101,885
    Posts
    13,950
    Quizzes
    9
    Quiz rate
    100.0 %
    • October 11, 2019 at 1:20 PM
    • #11

    What kind of text-to-speech engine are you using? I am familiar that Androld has something but is your engine something that is native to Windows or Mac or Linux or Python or what?

    In the end I am thinking that human voices will be the main use of this, but as text-to-speech improves (IF it improves) then that will be viable too. I say "if" because my experience was that the Ivona packages were leading the field before they were bought (by Amazon I think) and effectively removed from the market.

  • Online
    Kyle
    03 - Member
    Points
    176
    Posts
    27
    • October 11, 2019 at 1:39 PM
    • #12

    I added the option for choosing a premade audio file and it should work well. I'd recommend not leaving any silence at the beginning or end of the audio file so it matches with the scrolling text.

    The scrolling text will use the length of the audio file you give it (in AUDIO_FILE, if you leave it blank it will generate audio through TTS) in order to calculate its scrolling speed.

    I uploaded the changes. Next I'm going to create an installer so it's easy for others to use

  • Online
    Kyle
    03 - Member
    Points
    176
    Posts
    27
    • October 11, 2019 at 1:54 PM
    • #13

    > What kind of text-to-speech engine are you using?

    The python library will use whatever is native to your operating system, in my case it's using Mac.

    I tested the human reading option and it works.

    Here's a demo of human reading

  • Online
    Kyle
    03 - Member
    Points
    176
    Posts
    27
    • October 11, 2019 at 1:55 PM
    • #14

    BTW it will only work with MP3 (I could change that tho if y'all want, I think I will add m4a)

    Edited once, last by Kyle (October 11, 2019 at 2:25 PM).

  • Online
    Kyle
    03 - Member
    Points
    176
    Posts
    27
    • October 11, 2019 at 2:11 PM
    • #15

    ok, I have work and after like 5, I can set up easy install instructions

  • Online
    Cassius
    05 - Administrator
    Points
    101,885
    Posts
    13,950
    Quizzes
    9
    Quiz rate
    100.0 %
    • October 11, 2019 at 2:27 PM
    • #16

    THANK you Kyle! I am working with my first effort now....

    Edit: Well it is taking me a while to install dependencies but I am getting there. No doubt most people of normal experience will not be able to do that, so this is something that can be handled through an installer?

  • Online
    Kyle
    03 - Member
    Points
    176
    Posts
    27
    • October 11, 2019 at 3:47 PM
    • #17

    An installer will work..

    I'm also considering making this into a web application so that you can just create the video by pasting text into a website and download it from the website

  • Online
    Cassius
    05 - Administrator
    Points
    101,885
    Posts
    13,950
    Quizzes
    9
    Quiz rate
    100.0 %
    • October 11, 2019 at 3:50 PM
    • #18

    WOW that would be even better! I am afraid I am asking too much! ;)

    At any rate, I have all the python dependencies loaded, I believe, and the program appears to start, (the selection box moves to the next line) and there are no error messages, but it doesn't seem to be doing anything very fast, and I don't see a process I can identify as running. It did however create an audio.mp3 file that was not there in the beginning ;)

    I should maybe say I am running debian stretch (MX-18)

  • Online
    Kyle
    03 - Member
    Points
    176
    Posts
    27
    • October 11, 2019 at 3:52 PM
    • #19

    Yeah I should make it print something at the start to let you know it's working.


    It takes a very long time to create the video.

  • Online
    Cassius
    05 - Administrator
    Points
    101,885
    Posts
    13,950
    Quizzes
    9
    Quiz rate
    100.0 %
    • October 11, 2019 at 3:54 PM
    • #20

    OK if it takes a long time then maybe I am good! I will let it run and just see what happens.

    I presume that part of the time is that it is generating the speech to text, and I have an mp3 file that I am ready to use, but I decided to run it first using the Google TTS just so I could step through making the program work as you yourself have it running. I did substitute my own text file (the Vatican Sayings, in pure ascii) in place of yours.

Unread Threads

    1. Title
    2. Replies
    3. Last Reply
    1. ⟐ as the symbol of the philosophy of Epicurus 82

      • Like 2
      • michelepinto
      • March 18, 2021 at 11:59 AM
      • General Discussion
      • michelepinto
      • May 21, 2025 at 10:05 AM
    2. Replies
      82
      Views
      9.1k
      82
    3. Cassius

      May 21, 2025 at 10:05 AM
    1. "All Models Are Wrong, But Some Are Useful" 5

      • Like 3
      • Cassius
      • January 21, 2024 at 11:21 AM
      • General Discussion
      • Cassius
      • May 20, 2025 at 5:35 PM
    2. Replies
      5
      Views
      1.3k
      5
    3. Novem

      May 20, 2025 at 5:35 PM
    1. Analysing movies through an Epicurean lens 16

      • Like 1
      • Rolf
      • May 12, 2025 at 4:54 PM
      • General Discussion
      • Rolf
      • May 19, 2025 at 12:45 AM
    2. Replies
      16
      Views
      907
      16
    3. Matteng

      May 19, 2025 at 12:45 AM
    1. Is All Desire Painful? How Would Epicurus Answer? 24

      • Like 1
      • Cassius
      • May 7, 2025 at 10:02 PM
      • General Discussion
      • Cassius
      • May 10, 2025 at 3:42 PM
    2. Replies
      24
      Views
      1.3k
      24
    3. sanantoniogarden

      May 10, 2025 at 3:42 PM
    1. Pompeii Then and Now 7

      • Like 2
      • kochiekoch
      • January 22, 2025 at 1:19 PM
      • General Discussion
      • kochiekoch
      • May 8, 2025 at 3:50 PM
    2. Replies
      7
      Views
      1.2k
      7
    3. kochiekoch

      May 8, 2025 at 3:50 PM

Latest Posts

  • ⟐ as the symbol of the philosophy of Epicurus

    Cassius May 21, 2025 at 10:05 AM
  • Episode 281 - Is Pain The Greatest Evil - Or Even An Evil At All?

    Cassius May 21, 2025 at 6:30 AM
  • Happy Twentieth of May 2025!

    Don May 20, 2025 at 9:07 PM
  • "All Models Are Wrong, But Some Are Useful"

    Novem May 20, 2025 at 5:35 PM
  • Article: Scientists in a race to discover why our Universe exists

    kochiekoch May 20, 2025 at 1:26 PM
  • New "TWENTIERS" Website

    Cassius May 19, 2025 at 4:30 PM
  • Sabine Hossenfelder - Why the Multiverse Is Religion

    Eikadistes May 19, 2025 at 3:39 PM
  • What Makes Someone "An Epicurean?"

    Eikadistes May 19, 2025 at 1:06 PM
  • Analysing movies through an Epicurean lens

    Matteng May 19, 2025 at 12:45 AM
  • Personal mottos?

    Kalosyni May 18, 2025 at 9:22 AM

EpicureanFriends - Classical Epicurean Philosophy

  1. Home
    1. About Us
    2. Classical Epicurean Philosophy
  2. Wiki
    1. Getting Started
  3. Frequently Asked Questions
    1. Site Map
  4. Forum
    1. Latest Threads
    2. Featured Threads
    3. Unread Posts
  5. Texts
    1. Core Texts
    2. Biography of Epicurus
    3. Lucretius
  6. Articles
    1. Latest Articles
  7. Gallery
    1. Featured Images
  8. Calendar
    1. This Month At EpicureanFriends
Powered by WoltLab Suite™ 6.0.22
Style: Inspire by cls-design
Stylename
Inspire
Manufacturer
cls-design
Licence
Commercial styles
Help
Supportforum
Visit cls-design