Thanks to visit codestin.com
Credit goes to github.com

Skip to content

zianwar/llm-azure-tts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Text-to-speech using the Azure OpenAI TTS API - Plugin for llm.datasette.io

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages