You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

llm-azure-tts

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

llm-azure-tts

Text-to-speech using the Azure OpenAI TTS API

0.1.2
pipPyPI
Maintainers
1

llm-azure-tts

PyPI Changelog Tests License

Text-to-speech using the Azure OpenAI TTS API

Installation

Install this plugin in the same environment as LLM.

llm install llm-azure-tts

Usage

The plugin adds a new command, llm azure-tts. Use it like this:

llm azure-tts "Hello" --output audio.mp3

The synthesized text will be output directly to the specified location.

For full options, run llm azure-tts --help.

The plugin will use the API key configured using:

llm keys set azure-tts
# Paste key here

You can also pass an explicit API key using --key like this:

llm azure-tts "Hello" --key $AZURE_OPENAI_TTS_API_KEY --output audio.mp3

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-azure-tts
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

python -m pytest

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts