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.2.tar.gz (8.5 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.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: llm_azure_tts-0.1.2.tar.gz
  • Upload date:
  • Size: 8.5 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.2.tar.gz
Algorithm Hash digest
SHA256 4ab3bdb2c037786ec86494e739fcefbb5652ed3c1db78f8ec2744df64f4911ba
MD5 564d8ef5049db04d9420e0e408196cee
BLAKE2b-256 ff1b497e8730a1675e1f93750ea65ffe18035b5a95dab0fb489ea16814cad3dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: llm_azure_tts-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b0c42551164f3e64ad765509b0a21a56559a9539b335ebe9e8acdbd6ad4d6a66
MD5 fab328872983308a228e59d2ca397bf4
BLAKE2b-256 c3ffe5d077ea9d200df4cc7f50161814187f61c9eaa76fb419caff9308e26815

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