Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Engineering-Course/deepaffects-python

Open more actions menu
 
 

Repository files navigation

deepaffects-python

Build Status

Python client library for DeepAffects APIs

  • API version: v1
  • Package version: 1.0.0

Requirements.

Python 2.7 and 3.3+

Installation & Usage

pip install

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

Getting Started

Please follow the installation procedure and then run the following:

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
DiarizeApi async_diarize_audio POST /api/v1/async/diarize Diarize an audio file
DiarizeApi sync_diarize_audio POST /api/v1/sync/diarize Diarize an audio file
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

Documentation For Authorization

UserSecurity

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

Author

About

Python library for DeepAffects API

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Python 100.0%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.