Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
f94cb483
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
大约 1 年 前同步成功
通知
207
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f94cb483
编写于
6月 18, 2022
作者:
H
Hui Zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
rename to audio
上级
e1e1dd63
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
36 addition
and
71 deletion
+36
-71
audio/.gitignore
audio/.gitignore
+3
-0
audio/CMakeLists.txt
audio/CMakeLists.txt
+3
-3
audio/audio/csrc/CMakeLists.txt
audio/audio/csrc/CMakeLists.txt
+1
-1
audio/audio/csrc/pybind/pybind.cpp
audio/audio/csrc/pybind/pybind.cpp
+8
-0
audio/audio/csrc/pybind/sox/io.cpp
audio/audio/csrc/pybind/sox/io.cpp
+2
-16
audio/audio/csrc/pybind/sox/io.h
audio/audio/csrc/pybind/sox/io.h
+18
-0
audio/audio/csrc/pybind/sox/utils.cpp
audio/audio/csrc/pybind/sox/utils.cpp
+1
-15
audio/audio/csrc/pybind/sox/utils.h
audio/audio/csrc/pybind/sox/utils.h
+0
-14
audio/paddleaudio/csrc/pybind/pybind.cpp
audio/paddleaudio/csrc/pybind/pybind.cpp
+0
-22
未找到文件。
audio/.gitignore
0 → 100644
浏览文件 @
f94cb483
build
third_party/archives/
third_party/install/
audio/CMakeLists.txt
浏览文件 @
f94cb483
cmake_minimum_required
(
VERSION 3.1
8
FATAL_ERROR
)
cmake_minimum_required
(
VERSION 3.1
6
FATAL_ERROR
)
project
(
paddle
audio
)
project
(
paddle
speech
)
# check and set CMAKE_CXX_STANDARD
string
(
FIND
"
${
CMAKE_CXX_FLAGS
}
"
"-std=c++"
env_cxx_standard
)
...
...
@@ -14,4 +14,4 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
option
(
BUILD_SOX
"Build libsox statically"
ON
)
add_subdirectory
(
third_party
)
add_subdirectory
(
paddleaudio/csrc
)
\ No newline at end of file
add_subdirectory
(
audio/csrc
)
audio/
paddle
audio/csrc/CMakeLists.txt
→
audio/audio/csrc/CMakeLists.txt
浏览文件 @
f94cb483
...
...
@@ -4,7 +4,7 @@ find_package(pybind11 CONFIG)
function
(
define_extension name sources libraries
)
add_library
(
${
name
}
SHARED
${
sources
}
)
target_include_directories
(
${
name
}
PRIVATE
${
PROJECT_SOURCE_DIR
}
${
Python3_INCLUDE_DIRS
}
${
pybind11_INCLUDE_DIR
}
)
${
name
}
PRIVATE
${
PROJECT_SOURCE_DIR
}
${
CMAKE_CURRENT_SOURCE_DIR
}
${
Python3_INCLUDE_DIRS
}
${
pybind11_INCLUDE_DIR
}
)
target_link_libraries
(
${
name
}
${
libraries
}
)
set_target_properties
(
${
name
}
PROPERTIES PREFIX
""
)
install
(
...
...
audio/audio/csrc/pybind/pybind.cpp
0 → 100644
浏览文件 @
f94cb483
#include "pybind/sox/io.h"
PYBIND11_MODULE
(
_paddleaudio
,
m
)
{
m
.
def
(
"get_info_file"
,
&
paddleaudio
::
sox_io
::
get_info_file
,
"Get metadata of audio file."
);
m
.
def
(
"get_info_fileobj"
,
&
paddleaudio
::
sox_io
::
get_info_fileobj
,
"Get metadata of audio in file object."
);
}
\ No newline at end of file
audio/
paddle
audio/csrc/pybind/sox/io.cpp
→
audio/audio/csrc/pybind/sox/io.cpp
浏览文件 @
f94cb483
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <paddleaudio/csrc/pybind/sox/io.h>
#include <paddleaudio/csrc/pybind/sox/utils.h>
#include "pybind/sox/io.h"
#include "pybind/sox/utils.h"
using
namespace
paddleaudio
::
sox_utils
;
...
...
audio/
paddle
audio/csrc/pybind/sox/io.h
→
audio/audio/csrc/pybind/sox/io.h
浏览文件 @
f94cb483
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef PADDLEAUDIO_PYBIND_SOX_IO_H
#define PADDLEAUDIO_PYBIND_SOX_IO_H
#include
<paddleaudio/csrc/pybind/sox/utils.h>
#include
"pybind/sox/utils.h"
namespace
paddleaudio
{
namespace
sox_io
{
...
...
audio/
paddle
audio/csrc/pybind/sox/utils.cpp
→
audio/audio/csrc/pybind/sox/utils.cpp
浏览文件 @
f94cb483
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <paddleaudio/csrc/pybind/sox/utils.h>
#include "pybind/sox/utils.h"
#include <sstream>
...
...
audio/
paddle
audio/csrc/pybind/sox/utils.h
→
audio/audio/csrc/pybind/sox/utils.h
浏览文件 @
f94cb483
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef PADDLEAUDIO_PYBIND_SOX_UTILS_H
#define PADDLEAUDIO_PYBIND_SOX_UTILS_H
...
...
audio/paddleaudio/csrc/pybind/pybind.cpp
已删除
100644 → 0
浏览文件 @
e1e1dd63
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#include <paddleaudio/csrc/pybind/sox/io.h>
PYBIND11_MODULE
(
_paddleaudio
,
m
)
{
m
.
def
(
"get_info_file"
,
&
paddleaudio
::
sox_io
::
get_info_file
,
"Get metadata of audio file."
);
m
.
def
(
"get_info_fileobj"
,
&
paddleaudio
::
sox_io
::
get_info_fileobj
,
"Get metadata of audio in file object."
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录