Skip to main content

deepaffects-python

Build Status PyPI version

Python client library for DeepAffects APIs

Requirements.

Python 2.7 and 3.3+

pymediainfo >= 2.1.9, this is a wrapper library around mediainfo, which we use to extract the sampling rate and codec information from audio files.

Installation

pip install

The python package can be installed directly from pip using:

pip install deepaffects

pip install from github

The python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/SEERNET/deepaffects-python.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/SEERNET/deepaffects-python.git)

Then import the package:

import deepaffects 

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import deepaffects

Documentation for Authorization

DeepAffects API authenticates all the api requests via API Key.

For API key registration and setup, checkout our quickstart guide

UserSecurity

  • Type: API key
  • API key parameter name: apikey
  • Location: URL query string

Getting Started

Please follow the installation instruction and execute the following python code:

from __future__ import print_function
import time
import deepaffects
from deepaffects.rest import ApiException
from pprint import pprint

# Configure API key authorization: UserSecurity
deepaffects.configuration.api_key['apikey'] = 'YOUR_API_KEY'
# create an instance of the API class
api_instance = deepaffects.DenoiseApi()
body = deepaffects.Audio.from_file('/path/to/file') # Audio | Audio object that needs to be denoised.
webhook = 'webhook_example' # str | The webhook url where result from async resource is posted
request_id = 'request_id_example' # str | Unique identifier for the request (optional)

try:
    # Denoise an audio file
    api_response = api_instance.async_denoise_audio(body, webhook, request_id=request_id)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DenoiseApi->async_denoise_audio: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://localhost

Class Method HTTP request Description
DenoiseApi async_denoise_audio POST /api/v1/async/denoise Denoise an audio file
DenoiseApi sync_denoise_audio POST /api/v1/sync/denoise Denoise an audio file
DiarizeApiV2 async_diarize_audio POST /api/v2/async/diarize Diarize an audio file
DiarizeApi async_diarize_audio POST /api/v1/async/diarize Diarize an audio file (Legacy)
DiarizeApi sync_diarize_audio POST /api/v1/sync/diarize Diarize an audio file (Legacy)
EmotionApi async_recognise_emotion POST /api/v1/async/recognise_emotion Find emotion in an audio file
EmotionApi sync_recognise_emotion POST /api/v1/sync/recognise_emotion Find emotion in an audio file
FeaturizeApi async_featurize_audio POST /api/v1/async/featurize featurize an audio file
FeaturizeApi sync_featurize_audio POST /api/v1/sync/featurize featurize an audio file

Documentation For Models

UserSecurity

  • Type: API key
  • API key parameter name: apikey
  • Location: URL query string

About

DeepAffects is an emotional intelligence analysis engine that measures the effect emotional intelligence has on team dynamics, and provides emotional analytics that serve as the basis of insights to improve project management, performance and satisfaction across organizations, projects, and teams. To watch DeepAffects in action: check out DeepAffects Atlassian JIRA addon and our Github addon.

Release files for deepaffects 1.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for deepaffects 1.4.1
File Size Uploaded
deepaffects-1.4.1.tar.gz 375.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for deepaffects 1.4.1
File Interpreter ABI Platform
deepaffects-1.4.1-py3-none-any.whl Python 3 none any Details

Total release size: 766.7 kB

Release files / deepaffects-1.4.1.tar.gz

Download URL deepaffects-1.4.1.tar.gz
Size 375.9 kB
Tags Source
SHA-256 checksum
How to use checksums
63273598fbe5099d0aa6b41a2b678b4fa696577145bb68917df410e9abd2510d
BLAKE2b-256 checksum
How to use checksums
cd4d145eed48cbe06eb20238259fdc3b0bc8a233c0c48ec663ed199ef72f8c52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.5

Release files / deepaffects-1.4.1-py3-none-any.whl

Download URL deepaffects-1.4.1-py3-none-any.whl
Size 390.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7501b785c7a48c3ad43c66d8f3d192225ce64491c71cd46e0d98e323e4306c26
BLAKE2b-256 checksum
How to use checksums
d1dcccc317c67b841dfc25805be3d64339be7763f97dc1db829675485d895be6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.5

Release history Release notifications | RSS feed

This release

1.4.1 This release

2 release files

1.4.0

2 release files

1.3.3

2 release files

1.3.1

1 release file

1.3.0

2 release files

1.2.0

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

1 release file

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page