Multimodal API for Indian languages (speech, vision, LLMs, TTS, ASR, etc.)
Project description
dwani.ai - python library
Install the library
pip install dwani
Setup the credentials
import dwani
import os
dwani.api_key = os.getenv("DWANI_API_KEY")
dwani.api_base = os.getenv("DWANI_API_BASE_URL")
Examples
Text Query
resp = dwani.Chat.create(prompt="Hello!", src_lang="eng_Latn", tgt_lang="kan_Knda")
print(resp)
Vision Query
result = dwani.Vision.caption(
file_path="image.png",
query="Describe this logo",
src_lang="eng_Latn",
tgt_lang="kan_Knda"
)
print(result)
Speech to Text - Automatic Speech Recognition (ASR)
result = dwani.ASR.transcribe(file_path="kannada_sample.wav", language="kannada")
print(result)
Text to Speech - Speech Synthesis
response = dwani.Audio.speech(input="ಕರ್ನಾಟಕ ದ ರಾಜಧಾನಿ ಯಾವುದು", response_format="mp3")
with open("output.mp3", "wb") as f:
f.write(response)
- Website -> dwani.ai
Contact
- For any questions or issues, please open an issue on GitHub or contact us via email.
- For collaborations
- Join the discord group - invite link
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dwani-0.1.5.tar.gz
(6.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
dwani-0.1.5-py3-none-any.whl
(8.3 kB
view details)
File details
Details for the file dwani-0.1.5.tar.gz.
File metadata
- Download URL: dwani-0.1.5.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3e7ba305294ce11300dd19adf3f96e0f39931ebf2f79786884bd43f7180df355
|
|
| MD5 |
b86480c9049829adef394c64ad420fe1
|
|
| BLAKE2b-256 |
b57c0c92589118b8081e90f61f746de2ff626d26eb34fef506b607da5d44617c
|
File details
Details for the file dwani-0.1.5-py3-none-any.whl.
File metadata
- Download URL: dwani-0.1.5-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d739220e30083f82ec8b9d1d4072f20f07b93a9c6689ca4838cd775d46e40c1
|
|
| MD5 |
6a7899bddfe3c465e34af09416ec7071
|
|
| BLAKE2b-256 |
358574999430a55fea7ad1549617d48c21c03d14f95caa82f93d8c8308d86d8c
|