用于deepfects api的python绑定

deepaffects的Python项目详细描述


深度影响python

Build StatusPyPI version

用于deepfects api的python客户端库

要求。

python 2.7和3.3+

pymediainfo>;=2.1.9,这是一个围绕mediainfo的包装库,我们使用它 从音频文件中提取采样率和编解码器信息。

安装

pip安装

python包可以直接从pip安装,使用:

pip install deepaffects

从github安装pip

python包托管在github上,您可以直接从github安装

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

(您可能需要使用根权限运行pipsudo pip install git+https://github.com/SEERNET/deepaffects-python.git

然后导入包:

importdeepaffects

设置工具

通过Setuptools安装。

python setup.py install --user

(或sudo python setup.py install为所有用户安装软件包)

然后导入包:

importdeepaffects

授权文件

deepfects api通过api密钥对所有api请求进行身份验证。

对于api密钥注册和设置,请查看我们的quickstart guide

用户安全

  • 类型:api键
  • api键参数名:api key
  • 位置:url查询字符串

开始

请按照installation指令执行以下python代码:

from__future__importprint_functionimporttimeimportdeepaffectsfromdeepaffects.restimportApiExceptionfrompprintimportpprint# Configure API key authorization: UserSecuritydeepaffects.configuration.api_key['apikey']='YOUR_API_KEY'# create an instance of the API classapi_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 postedrequest_id='request_id_example'# str | Unique identifier for the request (optional)try:# Denoise an audio fileapi_response=api_instance.async_denoise_audio(body,webhook,request_id=request_id)pprint(api_response)exceptApiExceptionase:print("Exception when calling DenoiseApi->async_denoise_audio: %s\n"%e)

API端点文档

所有uri都与https://localhost

ClassMethodHTTP requestDescription
DenoiseApiasync_denoise_audioPOST /api/v1/async/denoiseDenoise an audio file
DenoiseApisync_denoise_audioPOST /api/v1/sync/denoiseDenoise an audio file
DiarizeApiV2async_diarize_audioPOST /api/v2/async/diarizeDiarize an audio file
DiarizeApiasync_diarize_audioPOST /api/v1/async/diarizeDiarize an audio file (Legacy)
DiarizeApisync_diarize_audioPOST /api/v1/sync/diarizeDiarize an audio file (Legacy)
EmotionApiasync_recognise_emotionPOST /api/v1/async/recognise_emotionFind emotion in an audio file
EmotionApisync_recognise_emotionPOST /api/v1/sync/recognise_emotionFind emotion in an audio file
FeaturizeApiasync_featurize_audioPOST /api/v1/async/featurizefeaturize an audio file
FeaturizeApisync_featurize_audioPOST /api/v1/sync/featurizefeaturize an audio file

型号文档

用户安全性

  • 类型:api键
  • api键参数名:api key
  • 位置:url查询字符串

关于

DeepAffects是一个情绪智力分析引擎,用于测量情绪智力的效果 具有团队动态,并提供情感分析,作为改进洞察力的基础 跨组织、项目和团队的项目管理、绩效和满意度。查看deepfects的运行:查看deepfectsAtlassian JIRA addon和我们的Github addon

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java如何将cassandra中的行数据转换为与列相关的嵌套json   java如何使用jcr XPath在jcr:content/@jcr:data中搜索?   java在使用openCV进行安卓开发时如何利用手机的广角镜头   java解析扩展了接口,结束了一个潜在的无限循环   位置服务的@Override方法中存在java Android应用程序错误   java本地线程的用途和需求是什么   具有左右子访问的java节点树遍历   java验证JsonWebToken签名   JUL日志处理程序中的java日志记录   嵌入式Java读取给定时间段的串行数据。   java有没有办法从多个URL获取多个图像?   java线程通过等待intent阻止自己发送intent   java Spring MVC解析多部分内容请求   java JPA/Hibernate静态元模型属性未填充NullPointerException   java格式错误的字符(需要引号,得到I)~正在处理   java为什么PrintWriter对象抛出FileNotFoundException?   java Neo4j未正确保存标签   java IE不加载图像