Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
c37782c1
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 2 年 前同步成功
通知
210
Star
8425
Fork
1598
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
245
列表
看板
标记
里程碑
合并请求
3
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
DeepSpeech
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
245
Issue
245
列表
看板
标记
里程碑
合并请求
3
合并请求
3
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
c37782c1
编写于
7月 29, 2022
作者:
Y
YangZhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add more pybind funciton
上级
5e30f925
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
52 addition
and
3 deletion
+52
-3
paddlespeech/audio/src/pybind/pybind.cpp
paddlespeech/audio/src/pybind/pybind.cpp
+52
-3
未找到文件。
paddlespeech/audio/src/pybind/pybind.cpp
浏览文件 @
c37782c1
...
@@ -5,6 +5,10 @@
...
@@ -5,6 +5,10 @@
#include "paddlespeech/audio/src/pybind/sox/io.h"
#include "paddlespeech/audio/src/pybind/sox/io.h"
#include "paddlespeech/audio/src/pybind/sox/effects.h"
#include "paddlespeech/audio/src/pybind/sox/effects.h"
#include "paddlespeech/audio/third_party/kaldi/feat/feature-fbank.h"
#include "paddlespeech/audio/third_party/kaldi/feat/feature-fbank.h"
#include <pybind11/stl.h>
#include <pybind11/complex.h>
#incldue <pybind11/functional.h>
#include <pybind11/chrono.h>
PYBIND11_MODULE
(
_paddleaudio
,
m
)
{
PYBIND11_MODULE
(
_paddleaudio
,
m
)
{
#ifdef INCLUDE_SOX
#ifdef INCLUDE_SOX
...
@@ -20,9 +24,54 @@ PYBIND11_MODULE(_paddleaudio, m) {
...
@@ -20,9 +24,54 @@ PYBIND11_MODULE(_paddleaudio, m) {
m
.
def
(
"save_audio_fileobj"
,
m
.
def
(
"save_audio_fileobj"
,
&
paddleaudio
::
sox_io
::
save_audio_fileobj
,
&
paddleaudio
::
sox_io
::
save_audio_fileobj
,
"Save audio to file obj."
);
"Save audio to file obj."
);
m
.
def
(
"apply_effects_fileobj"
,
// sox io
&
paddleaudio
::
sox_effects
::
apply_effects_fileobj
,
m
.
def
(
"sox_io_get_info"
,
&
paddleaudio
::
sox_io
::
get_info_file
);
"Decode audio data from file-like obj and apply effects."
);
m
.
def
(
"sox_io_load_audio_file"
,
&
paddleaudio
::
sox_io
::
load_audio_file
);
m
.
def
(
"sox_io_save_audio_file"
,
&
paddleaudio
::
sox_io
::
save_audio_file
);
// sox utils
m
.
def
(
"sox_utils_set_seed"
,
&
paddleaudio
::
sox_utils
::
set_seed
);
m
.
def
(
"sox_utils_set_verbosity"
,
&
paddleaudio
::
sox_utils
::
set_verbosity
);
m
.
def
(
"sox_utils_set_use_threads"
,
&
paddleaudio
::
sox_utils
::
set_use_threads
);
m
.
def
(
"sox_utils_set_buffer_size"
,
&
paddleaudio
::
sox_utils
::
set_buffer_size
);
m
.
def
(
"sox_utils_list_effects"
,
&
paddleaudio
::
sox_utils
::
list_effects
);
m
.
def
(
"sox_utils_list_read_formats"
,
&
paddleaudio
::
sox_utils
::
list_read_formats
);
m
.
def
(
"sox_utils_list_write_formats"
,
&
paddleaudio
::
sox_utils
::
list_write_formats
);
m
.
def
(
"sox_utils_get_buffer_size"
,
&
paddleaudio
::
sox_utils
::
get_buffer_size
);
// effect
m
.
def
(
"apply_effects_fileobj"
,
&
paddleaudio
::
sox_effects
::
apply_effects_fileobj
,
"Decode audio data from file-like obj and apply effects."
);
m
.
def
(
"sox_effects_initialize_sox_effects"
,
&
paddleaudio
::
sox_effects
::
initialize_sox_effects
);
m
.
def
(
"sox_effects_shutdown_sox_effects"
,
&
paddleaudio
::
sox_effects
::
shutdown_sox_effects
);
m
.
def
(
"sox_effects_apply_effects_tensor"
,
&
paddleaudio
::
sox_effects
::
apply_effects_tensor
);
m
.
def
(
"sox_effects_apply_effects_file"
,
&
paddleaudio
::
sox_effects
::
apply_effects_file
);
#endif
#endif
#ifdef INCLUDE_KALDI
#ifdef INCLUDE_KALDI
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录