duanlei1957 2012-09-27 22:22
浏览 13
已采纳

如何将音频文件与PHP结合? [关闭]

I want to create a basic speech software, where the PHP program combines a few ready-made sounds (such as the, cat, sat, on, the, mat), and then allows the user to download the finished file (which then, following from the above example, would say the cat sat on the mat).

A few options I have considered:

  • Some kind of PHP or PEAR library (not PEAR if possible please)
  • Reading using a binary-safe reading function from all the audio files, then combining them manually

Are there any I have missed? Or have I not covered the correct option yet?

  • 写回答

2条回答 默认 最新

  • douhuxi4145 2012-09-27 22:35
    关注

    If you really need to do this using native PHP, then you're probably out of luck.

    I don't know about your exact need, but the I would second the idea to use a dedicated library, such as SoX, driven by your PHP code through exec().

    Also, supposing you are writing a web application, expect the processing time to be long enough that you will have to manage running async sound generation.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作