Skip to main content

Text-to-speech using the Azure OpenAI TTS API

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

llm_azure_tts-0.1.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

llm_azure_tts-0.1.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file llm_azure_tts-0.1.1.tar.gz.

File metadata

  • Download URL: llm_azure_tts-0.1.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for llm_azure_tts-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2117359225742405ab7c144d773f0e7873cf6d57bf9c707ae0427c244e463b04
MD5 9501b0d20449ce0578db0d492dffb65c
BLAKE2b-256 c46acf6e48c9069e1544ebd4e29d35de20456af365db1bacc284223de8f48e93

See more details on using hashes here.

File details

Details for the file llm_azure_tts-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: llm_azure_tts-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for llm_azure_tts-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b2a5b5bf41003fb928a5e20afd79f8c263bfb70d288fc4c0bb1d06924b883928
MD5 1b156798ca58490465e790dc5e504e64
BLAKE2b-256 3b036e335e24039102f1fb15c9e709ccf8f086d7bc12f68f205b4913b2fdc684

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page