← 开源
Dadangdut33

Speech-Translate

A realtime speech transcription and translation application using Whisper OpenAI and free translation API. Interface made using Tkinter. Code written fully in Python.

ApplicationsWrappersPython
在 GitHub 打开
增长势头
+024 小时新增 Star0.0%
663
Star
85
Fork
+1
本周
2
贡献者
创建于 2022-10-31 · 更新于 2026-10-13 · 今日第 15307 名
主要开发者
Dadangdut33ryanhe312

Dadangdut33/Speech-Translate 排名第 15,307,有 663 个星标。

同类别比较

Dadangdut33/Speech-Translate 排名第 15,307,此处有 8 个同类条目;zgsfsec/DeepSeekSelfTool 排名第 15,306。

同类别比较
名称排名指标
xszyou/fay-ue515,277
星标数:
666
分叉数:
128
简介:
可对接fay数字人的ue5工程
Musheer360/SwiftSlate15,279
语言:
Kotlin
星标数:
665
分叉数:
68
简介:
Android accessibility service for AI-powered text transformation
conor19w/Binance-Futures-Trading-Bot15,282
语言:
Python
星标数:
665
分叉数:
196
简介:
A Technical Analysis Bot that trades leveraged USDT futures markets on Binance.
zgsfsec/DeepSeekSelfTool15,306
语言:
Python
星标数:
664
分叉数:
100
简介:
首个由DeepSeek独立开发的AI网络安全工具箱
ChatBot-All/chatbot-app15,325
语言:
CSS
星标数:
662
分叉数:
37
简介:
"ChatBot" AI application, supporting GPT, Gemini Pro, Cohere & Ollama models
nextai-translator/bob-plugin-openai-polisher15,330
语言:
TypeScript
星标数:
662
分叉数:
38
简介:
使用 OpenAI API 给文本进行润色和语法纠错的 Bob 插件!完美代替 Grammarly!Licensed under CC BY-NC-SA 4.0
yaroslav-n/tweetGPT15,336
语言:
TypeScript
星标数:
662
分叉数:
113
简介:
Chrome extension that generates tweets and replies using chatGPT
yejiming/MuseAI15,337
语言:
TypeScript
星标数:
662
分叉数:
63
简介:
创建你的 AI 角色,进入你的故事世界。和角色聊天、冒险、穿书,让每一次互动都留下羁绊(支持 DeepSeek Harness 插件,欢迎使用)
关键参数与规格
关键参数与规格
参数值
语言Python
类别Applications
子类别Wrappers
关键词Speech-to-text, Translation
星标数663
分叉数85
贡献者2
创建日期2022-10-31
更新日期2026-10-13
1 天星标数0
7 天星标数1
排名15,307
上次排名15,127
排名变化-180
7 天星标排名11,000
上次 7 天星标排名11,061
7 天星标排名变化61
总星标排名15,503
上次总星标排名15,480
总星标排名变化-23
国家Indonesia
README 摘录

Speech Translate Speech Translate is a practical application that combines OpenAI's Whisper ASR model with free translation APIs. It serves as a versatile tool for both real-time / live speech-to-text and speech translation, allowing the user to seamlessly convert spoken language into written text. Additionally, it has the option to import and transcribe audio / video files effortlessly. Speech Translate aims to expand whisper ability by combining it with some translation APIs while also providing a simple and easy

to use interface to create a more practical application. This application is also open source, so you can contribute to this project if you want to. Preview - Usage Preview - Setting Table Of Contents 🚀 Features 📜 Requirements 🔧 Installation From Prebuilt Binary (. exe) As A Module From Git 📚 More Information 🛠️ Development Setup Running the app Building Compatibility 💡 Contributing License Attribution Other 🚀 Features Speech to text and/or Speech translation (transcribed text can be translated to other languages) with live input from mic or

speaker 🎙️ Customizable subtitle window for live speech to text and/or speech translation Batch file processing of audio / video files for transcription and translation with output of (. json) 📂 Result refinement Result alignment Result translation (Translate only the result. 11 is recommended) for installation as module. **Speaker input** only work on _windows 8 and above_ (Alternatively, you can make a loopback to capture your system audio as virtual input (like mic input) by using this guide/tool: [[Voicemeeter on Windows]]( Tutorial

]]( - [[pavucontrol on Ubuntu with PulseAudio]]( - [[blackhole on MacOS]]( Internet connection is needed **only for translation with API & downloading models** (If you want to go fully offline, you can setup LibreTranslate on your local machine and set it up in the app settings) **Recommended** to have font installed on your system for best UI experience (For OS other than windows, you can see this: Ubuntu - MacOS) **Recommended** to have capable GPU with CUDA compatibility (prebuilt version is using CUDA 11. Each

whisper model has different requirements, for more information you can check it directly at the whisper repository. Also note that when using faster-whisper, the model speed will be significantly faster and have smaller vram usage, for more information about this please visit faster-whisper repository 🔧 Installation [! IMPORTANT] Please take a look at the Requirements first before installing. For more information about the usage of the app, please check the wiki From Prebuilt Binary (. NOTE] The prebuilt binary is shipped

with CUDA 11. 8, so it will only work with GPU that has CUDA 11. If your GPU is not compatible, you can try installation as module or from git below. Download the latest release (There are 2 versions, CPU and GPU/CUDA) 2. 11 for best compatibility and performance [! WARNING] You might need to have Build tools for Visual Studio (or the equivalent of it on your OS) installed To install as module, we can use pip, with the

following command. Install with **GPU (Cuda compatible)** support: cu118 here means CUDA 11. 8, you can change it to other

常见问题

记录了多少星标和分叉?

Dadangdut33/Speech-Translate 有 663 个星标和 85 个分叉。

仓库排名是多少?

Dadangdut33/Speech-Translate 排名第 15,307。

记录的语言和类别是什么?

Dadangdut33/Speech-Translate 有 663 个星标,语言为 Python,类别为 Applications。

哪个仓库排名最接近?

Dadangdut33/Speech-Translate 与 zgsfsec/DeepSeekSelfTool 比较,后者排名第 15,306,有 664 个星标。

README
 ![Speech Translate Logo](https://github.com/Dadangdut33/Speech-Translate/blob/master/speech_translate/assets/icon.png?raw=true) 

Speech Translate

[![GitHub issues](https://img.shields.io/github/issues/Dadangdut33/Speech-Translate)](https://github.com/Dadangdut33/Speech-Translate/issues)
[![GitHub pull requests](https://img.shields.io/github/issues-pr/Dadangdut33/Speech-Translate)](https://github.com/Dadangdut33/Speech-Translate/pulls)
[![github downloads](https://img.shields.io/github/downloads/Dadangdut33/Speech-Translate/total?label=downloads (github))](https://github.com/Dadangdut33/Speech-Translate/releases/latest) 
[![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/Dadangdut33/Speech-Translate)](https://github.com/Dadangdut33/Speech-Translate/releases/latest)
[![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/Dadangdut33/Speech-Translate/latest)](https://github.com/Dadangdut33/Speech-Translate/commits/master)
[![GitHub commits difference between master and dev branch](https://img.shields.io/github/commits-difference/dadangdut33/speech-translate?base=master&head=dev&label=commits%20difference%20with%20%40dev%20branch)](https://github.com/Dadangdut33/Speech-Translate/compare/master...dev)  

[![GitHub Repo stars](https://img.shields.io/github/stars/Dadangdut33/Speech-Translate?style=social)](https://github.com/Dadangdut33/Speech-Translate/stargazers)
[![GitHub forks](https://img.shields.io/github/forks/Dadangdut33/Speech-Translate?style=social)](https://github.com/Dadangdut33/Speech-Translate/network/members)

Speech Translate is a practical application that combines OpenAI's Whisper ASR model with free translation APIs. It serves as a versatile tool for both real-time / live speech-to-text and speech translation, allowing the user to seamlessly convert spoken language into written text. Additionally, it has the option to import and transcribe audio / video files effortlessly.

Speech Translate aims to expand whisper ability by combining it with some translation APIs while also providing a simple and easy to use interface to create a more practical application. This application is also open source, so you can contribute to this project if you want to.

Preview - Usage

 ![Record](preview/7.png) 
 ![File import](preview/8.png) 
 ![File import in progress](preview/9.png) 
 ![Align result](preview/10.png) 
 ![Refine result](preview/11.png) 
 ![Translate Result](preview/12.png) 
 ![Transcribe mode on subtitle window (English)](preview/13.png)   

Transcribe mode on detached window (English)    
 ![Translate mode on subtitle window (English to Indonesia)](preview/14.png)   

Translate mode on detached window (English to Indonesia)

Preview - Setting

 ![Setting - General](preview/2.png) 
 ![Setting - Record](preview/3.png) 
 ![Setting - Whisper](preview/4.png) 
 ![Setting - File Export](preview/4-5.png) 
 ![Setting - Translate](preview/5.png) 
 ![Setting - Textbox](preview/6.png) 

Table Of Contents

🚀 Features

  • Speech to text and/or Speech translation (transcribed text can be translated to other languages) with live input from mic or speaker 🎙️
  • Customizable subtitle window for live speech to text and/or speech translation
  • Batch file processing of audio / video files for transcription and translation with output of (.txt .srt .ass .tsv .vtt .json) 📂
  • Result refinement
  • Result alignment
  • Result translation (Translate only the result.json)

📜 Requirements

  • Compatible OS Installation:
OS Installation from Prebuilt binary Installation as a Module Installation from Git
Windows ✔️ ✔️ ✔️
MacOS ❌ ✔️ ✔️
Linux ❌ ✔️ ✔️

* Python 3.8 or later (3.11 is recommended) for installation as module.

Size Parameters Required VRAM Relative speed
tiny 39 M ~1 GB ~32x
base 74 M ~1 GB ~16x
small 244 M ~2 GB ~6x
medium 769 M ~5 GB ~2x
large 1550 M ~10 GB 1x

* This information is also available in the app (hover over the model selection in the app and there will be a tooltip about the model info). Also note that when using faster-whisper, the model speed will be significantly faster and have smaller vram usage, for more information about this please visit faster-whisper repository

🔧 Installation

[!IMPORTANT]
Please take a look at the Requirements first before installing. For more information about the usage of the app, please check the wiki

From Prebuilt Binary (.exe)

[!NOTE]
The prebuilt binary is shipped with CUDA 11.8, so it will only work with GPU that has CUDA 11.8 compatibility. If your GPU is not compatible, you can try installation as module or from git below.

  1. Download the latest release (There are 2 versions, CPU and GPU/CUDA)
  2. Install/extract the downloaded file
  3. Run the program
  4. Set the settings to your liking
  5. Enjoy!

As A Module

[!NOTE]
Use python 3.11 for best compatibility and performance

[!WARNING]
You might need to have Build tools for Visual Studio (or the equivalent of it on your OS) installed

To install as module, we can use pip, with the following command.

  • Install with GPU (Cuda compatible) support:

    pip install -U git+https://github.com/Dadangdut33/Speech-Translate.git --extra-index-url https://download.pytorch.org/whl/cu118

    cu118 here means CUDA 11.8, you can change it to other version if you need to. You can check older version of pytorch here or here.

  • CPU only:

    pip install -U git+https://github.com/Dadangdut33/Speech-Translate.git

You can then run the program by typing speech-translate in your terminal/console. Alternatively, when installing as a module, you can also clone the repo and install it locally by running pip install -e . in the project directory. (Don't forget to add --extra-index-url if you want to install with GPU support)

Notes For Installation as Module:

  • If you are updating from an older version, you need to add --upgrade --force-reinstall at the end of the command, if the update does not need new dependencies you can add --no-deps at the end of the command to speed up the installation process.
  • If you want to install from a specific branch or commit, you can do it by adding @branch_name or @commit_hash at the end of the url. Example: pip install -U git+https://github.com/Dadangdut33/Speech-Translate.git@dev --extra-index-url https://download.pytorch.org/whl/cu118
  • The --extra-index-url here is for the version of CUDA. If your device is not compatible or you need to use other version of CUDA you can check older version of pytorch here or here.

From Git

If you prefer cloning the app directly from git/github, you can follow the guide in development (wiki) or below. Doing it this way might also provide a more stable environment.

📚 More Information

Check out the wiki for more information about the app, user settings, how to use it, and more.

🛠️ Development

[!NOTE]
Check the wiki for more details

Setup

[!NOTE]
It is recommended to create a virtual environment, but it is not required. I also use python 3.11.6 for development, but it should work with python 3.8 or later

[!WARNING]
You might need to have Build tools for Visual Studio installed

  1. Clone the repo with its submodules by running git clone --recurse-submodules https://github.com/Dadangdut33/Speech-Translate.git
  2. cd into the project directory
  3. Create a virtual environment by running python -m venv venv
  4. Activate your virtual environment
  5. Install all the dependencies needed by running pip install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cu118 if you are using GPU or pip install -r requirements.txt if you are using CPU.
  6. Run python Run.py in root directory to run the app.

Notes:

  • If you forgot the --recure-submodules flag when cloning the repository and the submodules is not cloned correctly, you can do git submodule update --init --recursive in the project directory to pull the needed submodules.
  • The --extra-index-url is needed to install CUDA version of pytorch and for this one we are using CUDA 11.8. If your device is not compatible or you need to use other version of CUDA you can check the previous pytorch version in this link or this.

Running the app

You can run the app by running the Run.py located in root directory. Alternatively you can also run it using python -m speech_translate in the root directory.

Building

Before compiling the project, make sure you have installed all the dependencies and setup your pytorch correctly. Your pytorch version will control wether the app will use GPU or CPU (that's why it's recommended to make virtual environment for the project).

The pre compiled version in this project is built using cx_freeze, we have provided the script in build.py. This build script is only configured for windows build at the moment, but feel free to contribute if you know how to build properly for other OS.

To compile it into an exe run python build.py build_exe in the root directory. This will produce a folder containing the compiled project alongside an executable in the build directory. After that, use innosetup script to create an installer. You can use the provided installer.iss to create the installer.

Compatibility

This project should be compatible with Windows (preferrably windows 10 or later) and other platforms. But I haven't tested it extensively on other platforms. If you find any bugs or issues, feel free to create an issue.

💡 Contributing

Feel free to contribute to this project by forking the repository, making your changes, and submitting a pull request. You can also contribute by creating an issue if you find a bug or have a feature request. Also, feel free to give this project a star if you like it.

License

This project is licensed under the MIT License - see the LICENSE file for details

Attribution

Other

Check out my other similar project called Screen Translate a screen translator / OCR tools made possible using tesseract.

排名相邻
同类项目