在Python中将wav转换为ogg vorbis

发布于 2024-09-28 05:27:31 字数 172 浏览 2 评论 0原文

如何使用 Python 将 wav 文件转码为 ogg vorbis 格式?

我可以使用 PyMedia 1.3.7.3 转换为 mp3,但是当我将输出流类型设置为“ogg”时,出现错误:oggvorbis_encode_init: init_encoder failed 并且脚本终止。

How can I transcode a wav file to ogg vorbis format using Python?

I can convert to mp3 using PyMedia 1.3.7.3, but when I set the output stream type to 'ogg', I get the error: oggvorbis_encode_init: init_encoder failed and the script dies.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鲸落 2024-10-05 05:27:31

来自 PyMedia 的网站:

OGG(可选配vorbis库)

您需要安装Vorbis才能使OGG编码器工作。由于您的问题的旧版本告诉我您在 Windows 上,因此您可以在这里获取它:
http://www.vorbis.com/setup_windows/

From PyMedia's website:

OGG( optional with vorbis library )

You need to install Vorbis in order for the OGG encoder to work. Since the old version of your question tells me that you're on windows you can grab it here:
http://www.vorbis.com/setup_windows/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文