nomad-programmer
etc/유용한 정보
[유용한 정보/etc] Udemy에서 한글 자막 보는 방법 (with Chrome)
scii 2021. 5. 25. 19:32
Udemy에 접속하여 강의를 시청한다. 그런데 그 강의가 영어로된 강의라면 조금 답답할 수 있다. 이럴 때 이래와 같은 방법으로 영어 자막을 한글 자막으로 실시간 번역하여 시청할 수 있다.
대본에서 마우스 우측 클릭하여 "한국어로 번역"을 클릭하면 위와 같이 한국어로 변역된 것을 볼 수 있다. 여기서 중요한 점은 마우스로 스크롤을 위 아래 움직여가며 한국어로 모두 "번역" 해야한다는 점이다.
관리자 도구 - Console 로 이동하여 아래의 코드를 붙여 넣기 후 "Enter"를 누른다. 결과값으로 숫자가 나올 것이다. 그러면 성공이다.
if(typeof window.i!=='undefined'){clearInterval(window.i)} else{let lastText=''; function check(){let toEl=$('.well--container--2edq4 span'); let fromEl=$('p[data-purpose="transcript-cue-active"] span'); let currentText=fromEl.html(); if(lastText!==currentText){toEl.html(currentText)}lastText=fromEl.html()}window.i=setInterval(check,200)}모든 준비는 끝났다. 코드 실행으로 인하여 번역된 한국어가 실시간으로 동영상에 보일 것이다.
유데미 한글 자막 설정
1. Udemy 계정 프로필 언어를 ENGLISH(EN)으로 설정
2. 강의 자막(English)을 활성화 후, "Caption setting > Display under video"를 활성화한다.
3. Transcript를 활성화 후, 구글 브라우저 "이 페이지 번역하기"를 눌러 한국어로 번역한다.
4. 우측 Transcript 스크롤을 위 아래로 움직여 모든 텍스트가 번역되도록 만든다.
5. fn+ F12 > Console에 아래 코드를 붙여 넣고 엔터
if(typeof window.i!=='undefined'){clearInterval(window.i)}else{let lastText='';function check(){let toEl=$('.well--container--2edq4 span');let fromEl=$('p[data-purpose="transcript-cue-active"] span');let currentText=fromEl.html();if(lastText!==currentText){toEl.html(currentText)}lastText=fromEl.html()}window.i=setInterval(check,200)}
6. F12 창을 닫은 후 재생하여 자막 확인
+ 가끔 영상 실행 중 다시 영어로 돌아가는 문제가 발생하면, 구글 자동 번역기에서 영어 탭 클릭 -> 한국어 탭 클릭을 해주면 원상복귀된다.
[출처]
유데미 한글 자막 설정
//gustjd887.tistory.com/43