翻譯器

Avatar of Yu Tung Liao.
Avatar of Yu Tung Liao.

翻譯器

功能

  • 文字翻譯
  • 語音翻譯
  • 圖片翻譯
  • mp4翻譯

模組

  • cv2
  • pytesseract
  • gtts
  • speech_recognition
  • moviepy.editor
  • translators、pydub

測試素材來源

  • https://www.youtube.com/watch?v=dvLyDEA5aOg
文字翻譯:用translators.google來進行輸入文字的翻譯 語音翻譯:用speech_recognition偵測聽到的文字,再用translators.google翻譯 圖片翻譯:用cv2將圖片進行二值化,再利用pytesseract將圖片轉文字,之後再用translators.google翻譯 mp4翻譯:先用moviepy.editor將wav提取出來,再用pydub將wav切片,將切片的檔案一一送入speech_recognition做偵測,最後用translators.google進行翻譯
Avatar of the user.
Please login to comment.

Published: Jul 31st 2022
115
4
0

Tools

google
Google
python
Python

speech_recognition
gTTs
python

Share