Greasy Fork

OpenAI TTS Text Reader

Read selected text with OpenAI's TTS API and adjustable volume and speed

目前为 2023-11-20 提交的版本。查看 最新版本

作者
wkf16
评分
0 0 0
版本
2.6
创建于
2023-11-20
更新于
2023-11-20
大小
13.0 KB
许可证
MIT
适用于
所有网站

Here is a concise bilingual overview of your user script:

**English Version:**

**OpenAI TTS Text Reader**

This user script allows users to easily read selected text using OpenAI's TTS API with adjustable volume and speed. It features one of the top-performing TTS systems, and users only need to replace the API key to use it.

**Key Features:**
- Read selected text with OpenAI's TTS API.
- Adjustable volume and speed control,along with voice selection.
- Easy API key replacement.

**Usage:**
1. Install the script using a user script manager like Tampermonkey.
2. Replace the `YOUR_API_KEY` variable with your OpenAI API key.
3. Select the text you want to read on any webpage.
4. Click the button with the play icon (">") to initiate text-to-speech playback.
5. Adjust volume and speed using the control panel.

**Note:** Make sure to select text before clicking the button.

---

**中文版本:**

**OpenAI TTS文本阅读器**

此用户脚本允许用户使用OpenAI的TTS API轻松阅读所选文本,并具有可调节的音量和速度控制。它采用了顶尖的TTS系统,用户只需替换API密钥即可使用。

**主要特点:**
- 使用OpenAI的TTS API阅读所选文本。
- 可调节的音量和速度控制以及音色选择。
- 简单的API密钥替换。

**使用方法:**
1. 使用用户脚本管理器(如Tampermonkey)安装脚本。
2. 将`YOUR_API_KEY`变量替换为您的OpenAI API密钥。
3. 在任何网页上选择要阅读的文本。
4. 单击带有播放图标(">")的按钮以启动文本转语音播放。
5. 使用控制面板调整音量和速度。

**注意:** 在单击按钮之前,请确保选择了文本。