定制 jeenus/phpsox 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jeenus/phpsox

Composer 安装命令:

composer require jeenus/phpsox

包简介

This is a simple PHP library that wraps the functionality of the Sound eXchange command line utility.

README 文档

README

What you need to manipulate audio in PHP

Requirements

  1. PHP 5

  2. sox installed on your server http://sox.sourceforge.net/ Linux (Ubuntu): sudo apt-get install sox Max OS X: sudo port install sox

Optional

  1. lame mp3 encoder http://lame.sourceforge.net/

What you get

SoundExchange PHP is an easy to use library which wraps common sox calls. To use SoundExchange include the SoundExchange.php src file in your website and make some calls to included functions. Use any of the static members to convert, trim, & normalize audio files. Some bundled convenience methods are also included, for instance the preview() method which creates a normalized short preview file of the supplied audio file.

For advanced users you can use the generic sox() call and supply your own commands. It is not recommended to use this function unless you are familiar with how to use sox on the command line.

Demo

See demo/demo.php for examples on how to use SoundExchange

Unit Testing

Run the php unit tests by running 'phpunit tests/SoundExchangeTest.php' on the command line. phpunit must be installed to work.

Troubleshooting

If you have trouble using the script be sure that sox is properly installed on your server. Try sox --combine concatenate file1.mp3 file2.mp3 outputFile.mp3, it should add a new file which places file1 and file2 end to end. You might also run the phpunit test script supplied to help debug.

统计信息

  • 总下载量: 1
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固