PHP 中有可用于分割音频文件的脚本吗?
当然,似乎有很多例子说明如何使用频率来分割 wav 文件以获得帧速率并避免在中间分割帧。 PHP 中是否有可用的 API 可以利用第三方程序来完成此任务?如果没有推荐的 API,有人愿意推荐一个命令行音频分割实用程序吗?
There certainly seems to be plenty of examples of how one might split a wav file using the frequency to get the frame-rate and avoid splitting a frame in the middle. Are there any APIs available in PHP that might utilize a thrid-party program to accomplish this? If there are no recommended APIs would anyone care to recommend a command line audio splitting utility ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我编写了一个名为 Audero Wav Extractor 的类做你需要做的事。我希望这对未来的用户也有帮助。这是该项目的链接: https://github.com/AurelioDeRosa/Audero-Wav-Extractor
I have written a class, called Audero Wav Extractor, that do what you need. I hope this will help also future users. This is the link to the project: https://github.com/AurelioDeRosa/Audero-Wav-Extractor
我发现这个页面的php手册有很多用于音频操作的库,此处使用 OpenAl 的示例。在 codecanyon 上,我找到此脚本。
I find this page of php manual with a lot a library for audio manipulation, example of usage with OpenAl here. On codecanyon I find this script.
我不会使用除 FFMPEG 之外的任何东西,因为它对容器类型和编解码器的广泛支持。
http://ffmpeg.org/
你可以直接执行它,或者调用它的PHP扩展版本。
I wouldn't use anything but FFMPEG for this, due to its extensive support for container types and codecs.
http://ffmpeg.org/
You can execute it directly, or call the PHP extension version of it.