{"id":20317314,"url":"https://github.com/botbahlul/java-vosk-livesubtitle","last_synced_at":"2025-04-11T17:43:26.787Z","repository":{"id":167072361,"uuid":"562264753","full_name":"botbahlul/java-vosk-livesubtitle","owner":"botbahlul","description":"JAVA based DESKTOP APP that can RECOGNIZE any live streaming in 21 languages that supported by VOSK then TRANSLATE (using unofficial online Google Translate API) and display it as LIVE CAPTION / LIVE SUBTITLE","archived":false,"fork":false,"pushed_at":"2024-05-05T16:57:10.000Z","size":42473,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-25T13:45:59.980Z","etag":null,"topics":["auto-caption","auto-subtitle","google-translate-api","java","live-caption","live-subtitle","speech-recognition","voice-recognition","vosk"],"latest_commit_sha":null,"homepage":"","language":"Java","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/botbahlul.png","metadata":{"files":{"readme":"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":"2022-11-05T19:57:03.000Z","updated_at":"2024-11-17T19:28:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"42e84b70-c650-411f-8a9e-9c0815ed120c","html_url":"https://github.com/botbahlul/java-vosk-livesubtitle","commit_stats":null,"previous_names":["botbahlul/java-vosk-livesubtitle"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botbahlul%2Fjava-vosk-livesubtitle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botbahlul%2Fjava-vosk-livesubtitle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botbahlul%2Fjava-vosk-livesubtitle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/botbahlul%2Fjava-vosk-livesubtitle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/botbahlul","download_url":"https://codeload.github.com/botbahlul/java-vosk-livesubtitle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248451899,"owners_count":21105967,"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":["auto-caption","auto-subtitle","google-translate-api","java","live-caption","live-subtitle","speech-recognition","voice-recognition","vosk"],"created_at":"2024-11-14T18:30:54.742Z","updated_at":"2025-04-11T17:43:26.764Z","avatar_url":"https://github.com/botbahlul.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# java-vosk-livesubtitle\n\n### This is a java based desktop application that can RECOGNIZE any live streaming in 21 languages that supported by VOSK then TRANSLATE and display it as LIVE SUBTITLES\n\nhttps://user-images.githubusercontent.com/88623122/200159557-23b7789d-4788-445a-8f5f-93be889a2e14.mp4\n\nThis app was develepoed with Apache Netbeans IDE 15 https://netbeans.apache.org/download/index.html which using Oracle JRE v1.8.0_351 and SWING as its GUI framework.\n\nThe speech recognition part is using java vosk api https://github.com/alphacep/vosk-api/tree/master/java/lib/src/main/java/org/vosk\n\nThe translation part is using self made GoogleTranslator class\n\nIf you want to build this source to an exe file, you will need jar2exe https://www.jar2exe.com/\n\nThat build.gradle file must contain these lines beside other standard tags :\n```\njar {\n    manifest {\n        attributes(\n                'Main-Class': 'org.vosk.LiveSubtitle'\n        )\n    }\n\n duplicatesStrategy = DuplicatesStrategy.INCLUDE\n from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }\n\n}\n```\n\nAfter Clean And Build with Netbeans, goto that build\\distribution folder and extract that zip file.\n\nThen open jar2exe, browse to distributions\\java-vosk-livesubtitle\\lib folder, select java-vosk-livesubtitle.jar as source that you want to convert to exe\n\u003cimg width=\"960\" alt=\"jar2exe-browse\" src=\"https://user-images.githubusercontent.com/88623122/200141288-e7c4d2fe-46ea-4b4a-8099-238b5020ff0c.png\"\u003e\n\nSet JDK version to 1.8.\n\u003cimg width=\"960\" alt=\"jar2exe-set-jdk\" src=\"https://user-images.githubusercontent.com/88623122/200141294-7aae84ac-46c0-4ce9-9246-8ec444814473.png\"\u003e\n\nChoose Windows GUI Application if you don't want to see any log exception in DOS interface.\n![image](https://user-images.githubusercontent.com/88623122/200141364-a8410c16-305f-40ae-9099-1458f987fba4.png)\n\nAdd all other jar files in that lib folder except that java-vosk-livesubtitle.jar that you already set as main source.\n\u003cimg width=\"960\" alt=\"jar2exe-add-jar\" src=\"https://user-images.githubusercontent.com/88623122/200141387-20fc76ff-f236-4137-b52e-f68577114af0.png\"\u003e\n\u003cimg width=\"960\" alt=\"jar2exe-add-jar2\" src=\"https://user-images.githubusercontent.com/88623122/200141389-87e3df55-b918-4daf-ac64-5c008aaade6e.png\"\u003e\n\nDon't forget to check Create 64bits executivce to avoid libvosk dll errors\n![image](https://user-images.githubusercontent.com/88623122/200141628-c37bde19-573f-47d2-876e-b8d7e446a330.png)\n\nThen click Config Internal to set additional compile parameter UTF-8 enconding so you can see and translate Chinese and Japanese characters correctly.\n![image](https://user-images.githubusercontent.com/88623122/200141910-90e65f0b-b20e-4382-acc2-810caf823e1c.png)\n\nSelect Custom tab and paste this code :\n```\noption -Dfile.encoding=UTF-8\n```\n\u003cimg width=\"960\" alt=\"jar2exe-set-utf-8\" src=\"https://user-images.githubusercontent.com/88623122/200141423-3975325a-0afc-49db-a334-f8413b845f7a.png\"\u003e\n\nclick Apply and OK, then Next to start compile.\n\nThe file java-vosk-livesubtitle.exe will be created on same folder of those jar filers (lib folder)\n\nNow you can run this app in one single click.\n\nDon't forget to put that models folder into same folder with java-vosk-livesubtitle.exe and also don't forget to extract those fonts I've included in compressed zip release file into C:\\Windows\\Fonts\\ folder!\n\nAs usual for best recognizing quality, on windows you will need STEREO MIX or VIRTUAL AUDIO CABLE as RECORDING/INPUT DEVICE \n![image](https://user-images.githubusercontent.com/88623122/199527559-e2609d8c-3479-420d-8c52-806fa56a21f4.png)\n![image](https://user-images.githubusercontent.com/88623122/199528286-1ab77dc4-38a9-41f2-9b92-25db352a1ed2.png)\n![image](https://user-images.githubusercontent.com/88623122/199528861-22541706-3bdf-427c-8c2f-44174b114e34.png)\n\nand on linux you willl need PAVUCONTROL (by choosing MONITOR of your audio device as INPUT DEVICE)\n![image](https://user-images.githubusercontent.com/88623122/199517907-76d61acb-3f07-49b6-8f2f-4b6a2b787eff.png)\n\n\n### License\nMIT\n\nCheck my other SPEECH RECOGNITIION + TRANSLATE PROJECTS https://github.com/botbahlul?tab=repositories\n\nBuy me coffee : https://sociabuzz.com/botbahlul/tribe\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotbahlul%2Fjava-vosk-livesubtitle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbotbahlul%2Fjava-vosk-livesubtitle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbotbahlul%2Fjava-vosk-livesubtitle/lists"}