Tiện ích trình duyệt Firefox
  • Tiện ích mở rộng
  • Chủ đề
    • cho Firefox
    • Từ điển & gói ngôn ngữ
    • Các trang web trình duyệt khác
    • Tiện ích cho Android
Đăng nhập
Xem trước FireTTS

FireTTS bởi dishdare

Right-click to speak selected text using locally installed TTS (coqui-ai/TTS). Sends selected text to your offline TTS system for speech output. This is more or less DIY project since most of the things are needed on your local machine.

5 (1 reviews)5 (1 reviews)
1 người dùng1 người dùng
Bạn sẽ cần Firefox để sử dụng tiện ích mở rộng này
Tải xuống Firefox và tải tiện ích mở rộng
Tải xuống tập tin

Siêu dữ liệu mở rộng

Về tiện ích mở rộng này
Text to Speech solution using locally installed TTS.

Repo - https://github.com/coqui-ai/TTS

steps to install coqui-ai/TTS locally
conda create --name tts python=3.11 jupyter -y
conda activate tts
pip install tts flask flask-cors
sudo apt install ffmpeg

create the server file and run it - server.py

server.py

from flask import Flask, request
from flask_cors import CORS
import subprocess
import os

app = Flask(__name__)
CORS(app)

# Define output path
OUTPUT_DIR = os.path.expanduser("~/tts")
OUTPUT_FILE = os.path.join(OUTPUT_DIR, "output.wav")

@app.route("/speak", methods=["POST"])
def speak():
text = request.json.get("text", "")
print("Received text:", repr(text))

if not text:
return {"error": "No text provided"}, 400

# Create output folder if it doesn't exist
os.makedirs(OUTPUT_DIR, exist_ok=True)

# Build and run the TTS command safely
subprocess.run([
"conda", "run", "-n", "tts",
"tts",
"--text", text,
"--model_name", "tts_models/en/ljspeech/glow-tts",
"--out_path", OUTPUT_FILE
])

# Notify user
os.system(f'notify-send "TTS" "Speaking: {text[:80]}..."')

# Play the generated audio
subprocess.run(["ffplay", "-nodisp", "-autoexit", OUTPUT_FILE])

return {"status": "done"}

if __name__ == "__main__":
print("Starting server...")
app.run(port=5002, debug=True)



Enjoy Freedom of Speech.

My first extension. Please let me know if there are any issues or solutions.
Special thanks to ChatGPT.
Được xếp hạng 5 (bởi 1 người dùng)
Đăng nhập để đánh giá tiện ích này
Chưa có xếp hạng nào

Đã lưu xếp hạng sao

5
1
4
0
3
0
2
0
1
0
Đọc tất cả 1 đánh giá
Thêm thông tin
Phiên bản
1.0
Kích cỡ
1,35 MB
Cập nhật gần nhất
3 tháng trước (21 Thg 06 2025)
Thể loại có liên quan
  • Hỗ trợ Ngôn ngữ
Giấy phép
Giấy phép MIT
Lịch sử các phiên bản
  • Xem tất cả phiên bản
Thêm vào bộ sưu tập
Báo cáo tiện ích này
Tiện ích mở rộng khác của dishdare
  • Chưa có xếp hạng nào

  • Chưa có xếp hạng nào

  • Chưa có xếp hạng nào

  • Chưa có xếp hạng nào

  • Chưa có xếp hạng nào

  • Chưa có xếp hạng nào

Đi đến trang chủ Mozilla

Tiện ích

  • Giới thiệu
  • Blog tiện ích Firefox
  • Extension Workshop
  • Trung tâm nhà phát triển
  • Chính sách nhà phát triển
  • Blog cộng đồng
  • Diễn đàn
  • Báo cáo một lỗi
  • Hướng dẫn đánh giá

Trình duyệt

  • Desktop
  • Mobile
  • Enterprise

Sản phẩm

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Riêng tư
  • Cookie
  • Pháp lý

Trừ trường hợp khác đã ghi chú, nội dung trên trang này được cấp phép theo giấy phép Creative Commons Attribution Share-Alike v3.0 hoặc bất kỳ phiên bản nào sau này.