Add-ons foar Firefox Browser
  • Utwreidingen
  • Tema’s
    • foar Firefox
    • Wurdboeken en taalpakketten
    • Oare browserwebsites
    • Add-ons foar Android
Oanmelde
Foarbyld fan FireTTS

FireTTS troch 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 brûker1 brûker
Jo hawwe Firefox nedich om dizze útwreiding te brûken
Firefox downloade en de útwreiding ûntfange
Bestân downloade

Metadata útwreiding

Oer dizze útwreiding
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.
Wurdearre: 5 troch 1 beoardieler
Meld jo oan om dizze útwreiding te wurdearjen
Der binne noch gjin wurdearringen

Stjer-wurdearring wurdt bewarre

5
1
4
0
3
0
2
0
1
0
1 beoardieling lêze
Mear ynformaasje
Ferzje
1.0
Grutte
1,35 MB
Lêst bywurke
2 moannen lyn (21 jun. 2025)
Sibbe kategoryen
  • Taalstipe
Lisinsje
MIT-lisinsje
Ferzjeskiednis
  • Alle ferzjes besjen
Tafoegje oan kolleksje
Dizze add-on rapportearje
Mear útwreidingen fan dishdare
  • Der binne noch gjin wurdearringen

  • Der binne noch gjin wurdearringen

  • Der binne noch gjin wurdearringen

  • Der binne noch gjin wurdearringen

  • Der binne noch gjin wurdearringen

  • Der binne noch gjin wurdearringen

Nei Mozilla’s startside

Add-ons

  • Oer
  • Firefox-add-onsblog
  • Utwreidingsworkshop
  • Untwikkelershub
  • Untwikkelersbelied
  • Mienskipsblog
  • Foarum
  • In bug melde
  • Beoardielingsrjochtlinen

Browser

  • Desktop
  • Mobile
  • Enterprise

Produkten

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • Privacy
  • Cookies
  • Juridysk

Utsein oars vermeld, is op de ynhâld fan dizze website de Creative Commons Attribution Share-Alike License v3.0 of lettere ferzje fan tapassing.