SubtitleFixer / README.md
hlyangster's picture
Update README.md
5e35bd3 verified

A newer version of the Gradio SDK is available: 6.6.0

Upgrade
metadata
title: AudioTools
emoji: 🏃
colorFrom: blue
colorTo: yellow
sdk: gradio
sdk_version: 5.12.0
app_file: app.py
pinned: false

AI 字幕精修器 (AI Subtitle Corrector)

簡介 (Introduction):

本工具利用 Google Gemini AI 強大的文字理解能力,協助使用者快速校正字幕。使用者只需上傳逐字稿和字幕檔 (SRT 格式),工具會自動比對兩者,並以逐字稿為基準,修正字幕中因語音轉文字造成的錯別字、漏字、多字、標點符號漏缺以及詞語誤用等問題.

This tool utilizes the powerful text understanding capabilities of Google Gemini AI to help users quickly correct subtitles. Users simply upload a transcript and a subtitle file (SRT format), and the tool will automatically compare them, using the transcript as the reference to fix typos, missing words, extra words, punctuation errors, and incorrect word usage in the subtitles caused by speech-to-text conversion.

主要功能 (Key Features):

  • 自動比對逐字稿和字幕. (Automatic comparison of transcripts and subtitles.)
  • 以逐字稿為基準,修正字幕錯誤. (Fixes subtitle errors based on the transcript.)
  • 支援批次處理,可處理大量字幕. (Supports batch processing for handling large amounts of subtitles.)
  • 提供修正報告,清楚顯示修改內容. (Provides a correction report showing detailed modifications.)
  • 支援 SRT 字幕格式. (Supports SRT subtitle format.)

使用情境 (Use Cases):

  • 影片字幕校對 (Video subtitle proofreading)
  • 語音轉文字後校正 (Speech-to-text post-editing)
  • 提升字幕的準確性與品質 (Improving the accuracy and quality of subtitles)

如何使用 (How to Use):

  1. 輸入 Google Gemini API 金鑰. (Enter your Google Gemini API key.)
  2. 上傳逐字稿檔案 (TXT 格式). (Upload a transcript file (TXT format).)
  3. 上傳字幕檔案 (SRT 格式). (Upload a subtitle file (SRT format).)
  4. 設定批次大小. (Set the batch size.)
  5. 點擊按鈕,等待工具處理. (Click the button and wait for the tool to process.)
  6. 下載修正後的字幕檔案和修改報告. (Download the corrected subtitle file and modification report.)

注意事項 (Important Notes):

  • 請確保逐字稿和字幕的內容對應. (Please make sure the content of the transcript and subtitles correspond correctly.)
  • 建議使用較高的批次大小,以提高處理效率. (It is recommended to use a larger batch size to improve processing efficiency.)
  • 請妥善保管你的 Gemini API 金鑰. (Please protect your Gemini API key carefully.)

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference