A PopClip extension to speak selected text using the OpenAI Text-to-Speech (TTS) service.
- Go to openai_tts.sh
- Select all the code. If you select with Command A, you need to use the customized keyboard shortcut you've set to call PopClip.
- Click
Install Extension "OpenAI TTS"
. - Input the options, then click OK.
- To get the OpenAI API Key, you need to create an OpenAI account: https://www.openai.com/signup.
- After creating an account, you can find your API key in the OpenAI dashboard under the API section.
- Use the default value for the BASE_URL or replace it with a different OpenAI TTS API URL if necessary.
- Set the Playback Speed to control the speed of the audio playback. For example, use
0.75
for 75% speed or1.0
for normal speed. - Choose the Voice for the TTS service. The default voice is "shimmer", but you can select any available voice option. For a list of available voices, refer to the OpenAI Text-to-Speech guide.
After installing, select the text below and click the speak with wave icon.
The quick brown fox jumped over the lazy dog.
You can compare with the say
command by running it in Terminal.
say "The quick brown fox jumped over the lazy dog."
You can click the loading icon to stop while speaking.
AGPL-3.0