Firefox ブラウザーアドオン
  • 拡張機能
  • テーマ
    • Firefox 向け
    • スペルチェック辞書と言語パック
    • 他のブラウザーサイト
    • Android 向けアドオン
ログイン
FireTTS のプレビュー

FireTTS 作成者: 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 User1 User
この拡張機能を使用するには Firefox が必要です
Firefox をダウンロードして拡張機能を入手する
ファイルをダウンロード

拡張機能メタデータ

この拡張機能について
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.
Rated 5 by 1 reviewer
ログインしてこの拡張機能を評価
まだ評価されていません

星の評価を保存しました

5
1
4
0
3
0
2
0
1
0
すべてのレビュー (1) を読む
詳しい情報
バージョン
1.0
サイズ
1.35 MB
最終更新日
2ヶ月前 (2025年6月21日)
関連カテゴリー
  • 言語サポート
ライセンス
MIT License
バージョン履歴
  • すべてのバージョンを見る
コレクションへ追加
このアドオンを報告
dishdare が公開している他の拡張機能
  • まだ評価されていません

  • まだ評価されていません

  • まだ評価されていません

  • まだ評価されていません

  • まだ評価されていません

  • まだ評価されていません

Mozilla のホームページへ

アドオン

  • このサイトについて
  • Firefox アドオンブログ
  • 拡張機能ワークショップ
  • 開発者センター
  • 開発者ポリシー
  • コミュニティブログ
  • フォーラム
  • バグを報告
  • レビューガイド

ブラウザー

  • Desktop
  • Mobile
  • Enterprise

製品情報

  • Browsers
  • VPN
  • Relay
  • Monitor
  • Pocket
  • Bluesky (@firefox.com)
  • Instagram (Firefox)
  • YouTube (firefoxchannel)
  • プライバシー
  • Cookie
  • 法的情報

特に 明記されている 場合を除き、当サイト上のコンテンツは Creative Commons 表示・継承ライセンス v3.0 あるいはそれ以降のバージョンで公開されています。