OpenAI TTS Text Reader (gpt-4o-mini-tts)

قراءة النص المحدد باستخدام واجهة برمجة تطبيقات تحويل النص إلى كلام من OpenAI (نموذج gpt-4o-mini-tts) مع إمكانية ضبط مستوى الصوت والسرعة. يرجى إدخال مفتاح الواجهة البرمجية (apikey) قبل الاستخدام.

المؤلف
Emad Bahattab
التثبيت اليومي
0
إجمالي التثبيت
1
التقييمات
0 0 0
الإصدار
2.6.6 // Version incremented due to model change
تم إنشاؤه
30-04-2025
تم تحديثه
30-04-2025
Size
15.3 KB
الترخيص
MIT
ينطبق على
جميع المواقع

Key Changes Made:

  1. Fixed RTL Support: The script already has good support for the Arabic language with RTL (Right-to-Left) text direction in the UI elements.
  2. Maintained Model Update: Kept the updated model change from "tts-1" to "gpt-4o-mini-tts" for higher quality speech synthesis.
  3. Preserved Error Handling: The script includes comprehensive error handling for API issues, authentication problems, and audio processing errors.

How to Use:

  1. Install the Tampermonkey browser extension if you don't have it already
  2. Create a new script in Tampermonkey
  3. Copy and paste the code above
  4. Replace "YOUR_API_KEY_HERE if you want" with your actual OpenAI API key
  5. Save the script
  6. Visit any webpage, select text, and click the green button to hear it read aloud The script provides a floating button that reads selected text using OpenAI's TTS service, with controls for voice selection, volume, and playback speed.