Skip to main content

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

llama_index_tools_azure_speech-0.3.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file llama_index_tools_azure_speech-0.3.0.tar.gz.

File metadata

File hashes

Hashes for llama_index_tools_azure_speech-0.3.0.tar.gz
Algorithm Hash digest
SHA256 8a06cf4810fdce6c3b995184e2d4361482c5c3b5df61455ddb5b8d9749f1b71d
MD5 93bd311905540e5626e09145b96ec040
BLAKE2b-256 43bc552721300d6ff5aa50199af2d4e76209d6bd1a1e4f52f68f4217e3adfdfe

See more details on using hashes here.

File details

Details for the file llama_index_tools_azure_speech-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for llama_index_tools_azure_speech-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a0c94094a40436cf619ec901a498f0fd6a23951e750704020cd914bb7ab63f9
MD5 fdebd6cfc56d2c52dfca597e62244b52
BLAKE2b-256 de43852f022e689f6cd7c69365571c3a020dd0295cc2a07f72a277d078cf1a54

See more details on using hashes here.

Supported by

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