Download the PHP package jormin/baidu-speech without Composer

On this page you can find all versions of the php package jormin/baidu-speech. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package baidu-speech

集成了 百度AI 官方的Api接口。

安装

  1. 安装包文件

说明

  1. 返回结果说明

    接口返回数据已经经过打包处理,为数组格式,包含三个字段:

    参数 类型 说明 可为空
    success bool 是否成功 N
    msg String 结果说明 N
    data array 百度语音接口返回数据,字段详细见 百度官方文档. Y

使用

  1. 语音识别

    接口字段:

    参数 类型 说明 可为空
    filePath String 语音文件本地路径,该字段和url字段二选一,优先使用此项 Y
    url String 语音文件URL路径,该字段和filePath字段二选一 Y
    callback String 回调地址 Y
    userID String 用户唯一标识 Y
    format String 语音文件格式,可选值 ['pcm', 'wav', 'opus', 'speex', 'amr'],默认为wav Y
    rate Integer 采样率,可选值 [8000, 16000],默认为16000 Y
    lan String 语言,可选值 ['zh', 'ct', 'en'],默认为zh Y
  2. 语音合成

    接口字段:

    参数 类型 说明 可为空
    storagePath String 文件存储路径,需是绝对路径 N
    text String 合成的文本 N
    userID String 用户唯一标识 Y
    lan String 语言,可选值 ['zh'],默认为zh Y
    speed Integer 语速,取值0-9,默认为5中语速 Y
    pitch Integer 音调,取值0-9,默认为5中语调 Y
    volume Integer 音量,取值0-15,默认为5中音量 Y
    person Integer 发音人选择, 0为女声,1为男声,3为情感合成-度逍遥,4为情感合成-度丫丫,默认为普通女 Y

License

The MIT License (MIT). Please see License File for more information.


All versions of baidu-speech with dependencies

PHP Build Version
Package Version
Requires php Version ^5.6 || ^7.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package jormin/baidu-speech contains the following files

Loading the files please wait ....