유튜브 다운로드 및 자막 생성
https://colab.research.google.com/drive/1ptP5KuqQAtHApxtfJbh5A7nGgB-hxHrn?usp=sharing
인공지능의 편리함. 자막이 깨지는 현상이 발생해서 부득이하게 내렸다. 추가적으로 발생하는 문제점을 알려주시면 고치도록하겠습니다.
자막색은 다음의 코드를 수정하면 바뀝니다.
draw.text(line_coords, line, font=font_korean, fill=(255,255,255,255))
자막 파일만 SRT만 받고 싶다면 아래를 사용해주세요.
https://colab.research.google.com/drive/1-3y8Cssd18aXyMByENLwz0yT3TGz19mP?usp=share_link
https://m.blog.naver.com/dailybrand/221623475121
여기서 NanumBarunGothic.ttf를 받고 개인 드라이브에 올리면 해결된다.
sk~~~는 아래에서 받으면 된다. 18불은 공짜.
https://platform.openai.com/account/api-keys
구글 번역기만 사용하고자 하면 구분된 코드를 사용하면 된다.
참고
https://platform.openai.com/docs/models/whisper
https://github.com/openai/whisper/blob/main/README.md
GitHub - openai/whisper: Robust Speech Recognition via Large-Scale Weak Supervision
구글 translation 코랩에서 오류시
https://velog.io/@kir315/googletrans-%EC%98%A4%EB%A5%98-%ED%95%B4%EA%B2%B0
[오류해결] googletrans ‘NoneType’ object has no attribute ‘group’
https://pypi.org/project/googletrans/
https://www.geeksforgeeks.org/python-pil-imagedraw-draw-text/
| [Python PIL | ImageDraw.Draw.text() - GeeksforGeeks](https://www.geeksforgeeks.org/python-pil-imagedraw-draw-text/) |
Comments