Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
DeepSpeech
提交
1a10c4cd
D
DeepSpeech
项目概览
PaddlePaddle
/
DeepSpeech
10 个月 前同步成功
通知
200
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,体验更适合开发者的 AI 搜索 >>
提交
1a10c4cd
编写于
6月 01, 2022
作者:
Y
Yang Zhou
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
format
上级
ce322a60
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
9 addition
and
10 deletion
+9
-10
speechx/speechx/frontend/audio/fbank.h
speechx/speechx/frontend/audio/fbank.h
+4
-4
speechx/speechx/frontend/audio/linear_spectrogram.h
speechx/speechx/frontend/audio/linear_spectrogram.h
+5
-6
未找到文件。
speechx/speechx/frontend/audio/fbank.h
浏览文件 @
1a10c4cd
...
...
@@ -15,8 +15,8 @@
#pragma once
#include "base/common.h"
#include "frontend/audio/frontend_itf.h"
#include "frontend/audio/feature_common.h"
#include "frontend/audio/frontend_itf.h"
#include "kaldi/feat/feature-fbank.h"
#include "kaldi/feat/feature-mfcc.h"
#include "kaldi/matrix/kaldi-vector.h"
...
...
@@ -25,11 +25,11 @@ namespace ppspeech {
class
FbankComputer
{
public:
typedef
kaldi
::
FbankOptions
Options
;
typedef
kaldi
::
FbankOptions
Options
;
explicit
FbankComputer
(
const
Options
&
opts
);
kaldi
::
FrameExtractionOptions
&
GetFrameOptions
()
{
return
opts_
.
frame_opts
;
return
opts_
.
frame_opts
;
}
bool
Compute
(
kaldi
::
Vector
<
kaldi
::
BaseFloat
>*
window
,
...
...
@@ -42,7 +42,7 @@ class FbankComputer {
Options
opts_
;
kaldi
::
FbankComputer
computer_
;
//
DISALLOW_COPY_AND_ASSIGN(FbankComputer);
DISALLOW_COPY_AND_ASSIGN
(
FbankComputer
);
};
typedef
StreamingFeatureTpl
<
FbankComputer
>
Fbank
;
...
...
speechx/speechx/frontend/audio/linear_spectrogram.h
浏览文件 @
1a10c4cd
...
...
@@ -16,15 +16,15 @@
#pragma once
#include "base/common.h"
#include "frontend/audio/feature_common.h"
#include "frontend/audio/frontend_itf.h"
#include "kaldi/feat/feature-window.h"
#include "frontend/audio/feature_common.h"
namespace
ppspeech
{
struct
LinearSpectrogramOptions
{
kaldi
::
FrameExtractionOptions
frame_opts
;
LinearSpectrogramOptions
()
:
frame_opts
()
{}
LinearSpectrogramOptions
()
:
frame_opts
()
{}
};
class
LinearSpectrogramComputer
{
...
...
@@ -33,7 +33,7 @@ class LinearSpectrogramComputer {
explicit
LinearSpectrogramComputer
(
const
Options
&
opts
);
kaldi
::
FrameExtractionOptions
&
GetFrameOptions
()
{
return
opts_
.
frame_opts
;
return
opts_
.
frame_opts
;
}
bool
Compute
(
kaldi
::
Vector
<
kaldi
::
BaseFloat
>*
window
,
...
...
@@ -42,17 +42,16 @@ class LinearSpectrogramComputer {
int32
Dim
()
const
{
return
dim_
;
}
bool
NeedRawLogEnergy
()
{
return
false
;
}
private:
kaldi
::
BaseFloat
scale_
;
Options
opts_
;
int32
frame_length_
;
int32
dim_
;
DISALLOW_COPY_AND_ASSIGN
(
LinearSpectrogramComputer
);
};
typedef
StreamingFeatureTpl
<
LinearSpectrogramComputer
>
LinearSpectrogram
;
//DISALLOW_COPY_AND_ASSIGN(LinearSpectrogram);
}
// namespace ppspeech
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录