safi - Pure
Safi is a versatile and high performance Ai Platform. This is a Python library for Safi APIs.
Installation
You can install this package using pip:
pip install safi
##Usage
from safi import Safi
# Get your api key from your account dashbaord on safi.insolify.com
# Basic Usage for
safi = Safi(api_key)
response = safi.chat('Hi Safi').go()
print(response....)
# Usage with voice input
safi = Safi(api_key, lang='pidgin')
response = safi.chat(record.mp3).go()
print(response.......)
#Transcription/Dictation
safi = safi(api_key, lang='pidgin')
response = safi.listen(input_audio)
print(response[0]....) #chunks..
#This can be real time audio stream from speaker or microphone or direct audio.
Other use cases can be explored from your dashboard.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
safi-0.0.2.tar.gz
(2.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
safi-0.0.2-py3-none-any.whl
(2.4 kB
view details)
File details
Details for the file safi-0.0.2.tar.gz.
File metadata
- Download URL: safi-0.0.2.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9a85c469bd3a3c53ec806c5eae27f0881f1090041cc05a8710a8c9c620c2e0e
|
|
| MD5 |
2ad777be27fb1b8d165ab7df6ed2f6f8
|
|
| BLAKE2b-256 |
4772cf2e83a54830841285b012d6cc25de8d727f04c9a8002850eeb783483440
|
File details
Details for the file safi-0.0.2-py3-none-any.whl.
File metadata
- Download URL: safi-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac7f2eb95d39228067ec37a82d84cf025df134b0145ff067343963d6a3fa38f0
|
|
| MD5 |
94f5118969b1c749d571f16bb77cbf1b
|
|
| BLAKE2b-256 |
b49e757ea61d03defaae640fb028e106c09b9d78f657176377441db0743aa238
|