瀏覽統計
Post

Simple-Speech-Recognition

GitHub last commit Github Created At GitHub License Static Badge

人工智慧-期末專題

簡易語音辨識翻譯器 - 使用Tkinter呈現

Features

  • 支持五種語言翻譯(zh-TW en ja ko fr)

Process introduction

  • 首先用一個LIST存放語言
  • 啟用麥克風記錄
  • 顯示過程中的內容
  • 播放出翻譯後的內容

Usage

Step 1 .Import the required packages first

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
speech_recognition  # recording, speech to text (STT)

googletrans         # translation

gTTS                # text to speech (TTS)

playsound           # play mp3 file

datetime            # get what time is now

tkinter             # create a GUI

threading           # To perform multiple tasks at the same time

sys                 #  Provides access to various system-specific parameters and functions.

Step 2. execute the file

1
Option 1. Using PowerShell | python AI_Final_Report.py
1
Option 2. Open the file and run it in your IDE.

示意圖

image

This post is licensed under CC BY 4.0 by the author.