Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoder 不工作 #1

Closed
duo opened this issue May 6, 2024 · 2 comments · Fixed by #2
Closed

Encoder 不工作 #1

duo opened this issue May 6, 2024 · 2 comments · Fixed by #2

Comments

@duo
Copy link

duo commented May 6, 2024

Decoder 是正常的, 但是使用 Encoder 转换任意 pcm 文件都会报错 failed to read src file: unexpected EOF, 比如 https://github.com/idranme/silk-wasm/raw/main/testdata/canon.pcm

@youthlin youthlin mentioned this issue May 8, 2024
@youthlin
Copy link
Owner

youthlin commented May 8, 2024

@duo 好像是读取最后一个文件块时,长度不足一个块,简单地忽略了它,用你的测试文件试了下 encode 好像可以了,再 decode 为 mp3 也可以成功

你可以

go install github.com/youthlin/silk/cmd/silk-encoder@latest

重新安装最新版本试试

@duo
Copy link
Author

duo commented May 8, 2024

可以了,多谢多谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants