{"id":24227512,"url":"https://github.com/GLNsH/Text-to-Subtitle","last_synced_at":"2025-09-22T18:31:55.836Z","repository":{"id":272301112,"uuid":"916071065","full_name":"GLNsH/SubText","owner":"GLNsH","description":"SubText: Text to Subtitles converts TXT to SRT written in C","archived":false,"fork":false,"pushed_at":"2025-01-13T14:29:22.000Z","size":81,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T15:38:20.727Z","etag":null,"topics":["c","subtitles"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GLNsH.png","metadata":{"files":{"readme":"docs/README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-13T12:00:10.000Z","updated_at":"2025-01-13T14:29:33.000Z","dependencies_parsed_at":"2025-01-13T15:49:41.120Z","dependency_job_id":null,"html_url":"https://github.com/GLNsH/SubText","commit_stats":null,"previous_names":["glnsh/subtext"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLNsH%2FSubText","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLNsH%2FSubText/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLNsH%2FSubText/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GLNsH%2FSubText/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GLNsH","download_url":"https://codeload.github.com/GLNsH/SubText/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233876725,"owners_count":18744248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","subtitles"],"created_at":"2025-01-14T10:18:07.710Z","updated_at":"2025-09-22T18:31:55.831Z","avatar_url":"https://github.com/GLNsH.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Text to Subtitle: TXT to SRT file\n\nThe purpose of this small program is to solve a simple problem, that is ***\"how do I convert a transcript file to subtitles conveniently?\".***\n\nNah, not really. I wanted to convert ***transcript text to timed subtitles**, so that I can feed the **subtitles to a text-to-speech** program which in turn creates a **voice over for free**.\n\n## Features\n\n- Custom configuration of subtitle timings through ```config.ini```\n- Length of subtile per line can be changed\n\n## Using SubText\n\nI appologize, I only know gcc to build all of my codes as of wrtiting this readme.\n\n- Build ```main.c``` and ```config.c``` in the ```src``` folder using ```gcc```\n\n```ps\ngcc src\\main.c src\\config.c -Wall -W -O -o main\n```\n\n- Run the ```main``` application, this will create initialize the ```config.ini``` and ```read.txt```.\n\n- In ```read.txt``` paste the text you want to convert to subtitles.\n\n- Then, run the ```main``` application again, this will produce ```subtitles.srt``` which you can now use.\n\n\u003cbr\u003e\n\n## Configuration ```config.ini```\n\nEach configuration has default values, if it is ommited in the ```config.ini``` file.\n\n- ```[FILES]``` section specifies the directory of the read and write files\n    - ```READ_FILE_DIR``` defaults to ```\"read.txt\"```\n    - ```WRITE_FILE_DIR``` defaults to ```\"write.srt\"```\n- ```[SUBTITLE_TIMINGS]``` section specifies the spacing and padding time per line of subtitle\n- ```[TIMINGS]``` section specifies the timing per type it found.\n- ```[BUFFER_SIZES]``` section specifies the spacing and padding time per line of subtitle\n    - ```LINE_BUFFER_SIZE``` specifies the maximum lenght of one subtitle line, defaults to ```500```\n    - ```WORD_BUFFER_SIZE``` specifies the maximum word that it can read from the read file, defaults to ```100```\n    - ```PUNCT_BUFFER_SIZE``` specifies the maximum symbol that it can read from the read file, defaults to ```10```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGLNsH%2FText-to-Subtitle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FGLNsH%2FText-to-Subtitle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FGLNsH%2FText-to-Subtitle/lists"}