Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
sherpaonnx
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
yourengod
2025-03-26 10:44:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2025-03-26 10:44:49 +0800
Commit
bd61c1d8e5248a8451b52775cd988bc301ab38ac
bd61c1d8
1 parent
823e2e62
Change scale factor to 32767 (#2056)
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
sherpa-onnx/csrc/wave-writer.cc
sherpa-onnx/csrc/wave-writer.cc
查看文件 @
bd61c1d
...
...
@@ -63,7 +63,7 @@ void WriteWave(char *buffer, int32_t sampling_rate, const float *samples,
std
::
vector
<
int16_t
>
samples_int16
(
n
);
for
(
int32_t
i
=
0
;
i
!=
n
;
++
i
)
{
samples_int16
[
i
]
=
samples
[
i
]
*
32
676
;
samples_int16
[
i
]
=
samples
[
i
]
*
32
767
;
}
memcpy
(
buffer
,
&
header
,
sizeof
(
WaveHeader
));
...
...
请
注册
或
登录
后发表评论