LlamaIndex Tools Integration: Lokutor
Gives agents Lokutor text-to-speech (Versa 2.0) and speech-to-text (Conv 2.0).
pip install llama-index-tools-lokutor
export LOKUTOR_API_KEY=... # https://app.lokutor.com
from llama_index.tools.lokutor import LokutorToolSpec
from llama_index.core.agent.workflow import FunctionAgent
from llama_index.llms.openai import OpenAI
spec = LokutorToolSpec(voice="F1", language="en")
agent = FunctionAgent(tools=spec.to_tool_list(), llm=OpenAI(model="gpt-4.1"))
print(await agent.run('Say "Hello world!" and save it to hello.wav, then transcribe hello.wav.'))
Functions:
text_to_speech(text, output_path, voice=None, language=None): writes a WAV (16-bit PCM, 44.1 kHz, mono; up to 5,000 characters; expression tags like[laugh]are performed) and returns its path. VoicesF1-F5,M1-M5or a clone id.transcribe_audio(audio_path, language=None): returns the transcript of a WAV file (Lokutor does not decode MP3/M4A).
API errors raise RuntimeError with Lokutor's message. For indexing audio into documents use llama-index-readers-lokutor. API docs: docs.lokutor.com. Licence: Apache-2.0.
Metadata
Release files for llama-index-tools-lokutor 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| llama_index_tools_lokutor-0.1.0.tar.gz | 7.0 kB | Without provenance | Details for llama_index_tools_lokutor-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| llama_index_tools_lokutor-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for llama_index_tools_lokutor-0.1.0-py3-none-any.whl |
Total release size: 14.9 kB
Release files / llama_index_tools_lokutor-0.1.0.tar.gz
| Download URL | llama_index_tools_lokutor-0.1.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
667103f3d2171540845cd768173f32dae143fe1fa2e286defa368c541866adef
|
|
BLAKE2b-256 checksum How to use checksums |
31fa2d5d162895517d0e99a502468d73a74d77441d2272c9e5e086b443e11192
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|
Release files / llama_index_tools_lokutor-0.1.0-py3-none-any.whl
| Download URL | llama_index_tools_lokutor-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
945c46083b290327f780194905fb9160721caf12f89a407a27586f26f1261a23
|
|
BLAKE2b-256 checksum How to use checksums |
e468bbd3d7ce4043ecf95c5ee6da347290dc58bd24a82e06dc6af29f63ddf6b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.2
|
Security for llama-index-tools-lokutor 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.