Skip to main content

Safi is a versatile and super fast Ai Platform. This is a Python library for Safi API.

Project description

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.

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

safi-0.0.2.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

safi-0.0.2-py3-none-any.whl (2.4 kB view details)

Uploaded Python 3

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

Hashes for safi-0.0.2.tar.gz
Algorithm Hash digest
SHA256 e9a85c469bd3a3c53ec806c5eae27f0881f1090041cc05a8710a8c9c620c2e0e
MD5 2ad777be27fb1b8d165ab7df6ed2f6f8
BLAKE2b-256 4772cf2e83a54830841285b012d6cc25de8d727f04c9a8002850eeb783483440

See more details on using hashes here.

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

Hashes for safi-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ac7f2eb95d39228067ec37a82d84cf025df134b0145ff067343963d6a3fa38f0
MD5 94f5118969b1c749d571f16bb77cbf1b
BLAKE2b-256 b49e757ea61d03defaae640fb028e106c09b9d78f657176377441db0743aa238

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