Free Offline Language Translation of PowerPoint Files
Автор: Mike Young
Загружено: 2025-03-26
Просмотров: 75
Описание:
This is a PowerPoint translation project I created with extensive help from ChatGPT, written in Python, primarily using Python packages Hugging Face Transformers, PyTorch, and python-pptx. It uses the Helsinki-NLP/opus-mt-en-es and Helsinki-NLP/opus-mt-es-en machine translation models for English to Spanish and Spanish to English translations.
I was looking for a way to translate Google Slides into Spanish. While there are Google Workspace add-ons that can achieve that end, most seem to require payment for full use. Additionally, they all seem to perform remote translation, which can be problematic for purposes of data security. I was hoping for there to be a free and open source option to perform this translation locally if a Google Slides presentation were to be downloaded as a PowerPoint file. While newer versions of PowerPoint seem to feature translation, it does seem clunky to use, as opposed to a sweeping, complete text translation option. Additionally, the PowerPoint translations also appear to function by performing translations remotely, not locally.
I wasn't able to find any pre-built solutions that could translate PowerPoint files so I figured I'd have ChatGPT create a solution using some pieces of the puzzle that could achieve this end, namely the Python packages mentioned, which have been handy in other simple translation projects. I also wanted this solution to function as portably as possible, and not requiring actual installation of any software.
This video goes over the generative AI prompting process, including testing and refinements. If just looking to replicate this solution without following along in the video, I have a detailed readme.txt file here, complete with the full setup procedure and Python scripts...
https://www.mikesshorts.com/misc/tran...
The readme.txt also contains information on slimming-down WinPython and getting it into a fully portable solution. I was able to slim it down to a 2.02GB folder (with both en-es and es-en models) and run a translation from a flash drive.
Chapters:
0:00 Introduction
1:40 Downloading WinPython
2:32 Initial Solution Prompt with ChatGPT
3:43 Installing Needed Python Packages
5:01 Creating the Initial Python Script File
5:45 First Script Run
7:29 Preserving Text Formatting
11:03 Creating the GUI Interface Version
16:51 Troubleshooting Duplicated Text with ChatGPT
18:04 Reverse Translation for a Quality Control Check
18:56 Initial Summary
19:31 Saving Models in the Python Folder for Additional Portability
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: