llama-index-tools-azure-speech


Namellama-index-tools-azure-speech JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
Summaryllama-index tools azure_speech integration
upload_time2024-08-22 07:26:06
maintainerajhofmann
docs_urlNone
authorYour Name
requires_python<4.0,>=3.8.1
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-azure-speech/examples/azure_speech.ipynb)

```python
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.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "llama-index-tools-azure-speech",
    "maintainer": "ajhofmann",
    "docs_url": null,
    "requires_python": "<4.0,>=3.8.1",
    "maintainer_email": null,
    "keywords": null,
    "author": "Your Name",
    "author_email": "you@example.com",
    "download_url": "https://files.pythonhosted.org/packages/c8/67/670166ee1e45291e4d55980ab948bd7aca5d30453881ce0a4af3e0cc781c/llama_index_tools_azure_speech-0.2.0.tar.gz",
    "platform": null,
    "description": "# Azure Speech Tool\n\nThis 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\n\n## Usage\n\nThis tool has a more extensive example usage documented in a Jupyter notebook [here](https://github.com/run-llama/llama_index/blob/main/llama-index-integrations/tools/llama-index-tools-azure-speech/examples/azure_speech.ipynb)\n\n```python\nfrom llama_index.tools.azure_speech import AzureSpeechToolSpec\nfrom llama_index.agent.openai import OpenAIAgent\n\nspeech_tool = AzureSpeechToolSpec(speech_key=\"your-key\", region=\"eastus\")\n\nagent = OpenAIAgent.from_tools(\n    speech_tool.to_tool_list(),\n    verbose=True,\n)\nprint(agent.chat('Say \"hello world\"'))\nprint(\n    agent.chat(\"summarize the data/speech.wav audio file into a few sentences\")\n)\n```\n\n`text_to_speech`: Takes an input string and synthesizes audio to play on the users computer\n`speech_to_text`: Takes a .wav file and transcribes it into text\n\nThis loader is designed to be used as a way to load data as a Tool in a Agent.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "llama-index tools azure_speech integration",
    "version": "0.2.0",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "15de7091e399b3741a5ed612a9fecc5e7c3dee7a2d2a235146273d10aaa17628",
                "md5": "8936001eb60b0cf9d39b497c52baa994",
                "sha256": "93b217091a7f8e6ab34a3051fdb860e4b8bcca860a10373e9b6920ab3ef29578"
            },
            "downloads": -1,
            "filename": "llama_index_tools_azure_speech-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8936001eb60b0cf9d39b497c52baa994",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.8.1",
            "size": 3201,
            "upload_time": "2024-08-22T07:26:05",
            "upload_time_iso_8601": "2024-08-22T07:26:05.637669Z",
            "url": "https://files.pythonhosted.org/packages/15/de/7091e399b3741a5ed612a9fecc5e7c3dee7a2d2a235146273d10aaa17628/llama_index_tools_azure_speech-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c867670166ee1e45291e4d55980ab948bd7aca5d30453881ce0a4af3e0cc781c",
                "md5": "f7a7bfbf9ede5ae8580692cc47489efc",
                "sha256": "a47b3e7d6003a8da55e6ebf6a43333126c4f70d2ed012e74ed0913cbe195f4b7"
            },
            "downloads": -1,
            "filename": "llama_index_tools_azure_speech-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "f7a7bfbf9ede5ae8580692cc47489efc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.8.1",
            "size": 2871,
            "upload_time": "2024-08-22T07:26:06",
            "upload_time_iso_8601": "2024-08-22T07:26:06.927350Z",
            "url": "https://files.pythonhosted.org/packages/c8/67/670166ee1e45291e4d55980ab948bd7aca5d30453881ce0a4af3e0cc781c/llama_index_tools_azure_speech-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-22 07:26:06",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "llama-index-tools-azure-speech"
}
        
Elapsed time: 0.41498s