llama-index tools azure_speech integration
Project description
Azure Speech Tool
This tool allows Agents to use Microsoft Azure speech services to transcribe audio files to text, and create audio files from text. To see more and get started, visit https://azure.microsoft.com/en-us/products/ai-services/ai-speech
Usage
This tool has a more extensive example usage documented in a Jupyter notebook here
from llama_index.tools.azure_speech import AzureSpeechToolSpec
from llama_index.agent.openai import OpenAIAgent
speech_tool = AzureSpeechToolSpec(speech_key="your-key", region="eastus")
agent = OpenAIAgent.from_tools(
speech_tool.to_tool_list(),
verbose=True,
)
print(agent.chat('Say "hello world"'))
print(
agent.chat("summarize the data/speech.wav audio file into a few sentences")
)
text_to_speech
: Takes an input string and synthesizes audio to play on the users computer
speech_to_text
: Takes a .wav file and transcribes it into text
This loader is designed to be used as a way to load data as a Tool in a Agent.
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
Built Distribution
File details
Details for the file llama_index_tools_azure_speech-0.3.0.tar.gz
.
File metadata
- Download URL: llama_index_tools_azure_speech-0.3.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8a06cf4810fdce6c3b995184e2d4361482c5c3b5df61455ddb5b8d9749f1b71d |
|
MD5 | 93bd311905540e5626e09145b96ec040 |
|
BLAKE2b-256 | 43bc552721300d6ff5aa50199af2d4e76209d6bd1a1e4f52f68f4217e3adfdfe |
File details
Details for the file llama_index_tools_azure_speech-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: llama_index_tools_azure_speech-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.10 Darwin/22.3.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a0c94094a40436cf619ec901a498f0fd6a23951e750704020cd914bb7ab63f9 |
|
MD5 | fdebd6cfc56d2c52dfca597e62244b52 |
|
BLAKE2b-256 | de43852f022e689f6cd7c69365571c3a020dd0295cc2a07f72a277d078cf1a54 |