Download the PHP package saviorlv/yii2-bd-aipspeech without Composer

On this page you can find all versions of the php package saviorlv/yii2-bd-aipspeech. 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 yii2-bd-aipspeech

saviorlv/yii2-bd-aipspeech

基于百度AI 的语音合成、转换的 Yii2 sdk.

安装

配置

使用

  1. 语音转换

  2. 语音合成

说明

语音识别参数说明

用法

参数

参数 类型 描述 是否必须
$filePath String 建立包含语音内容的本地, 语音文件的格式,pcm 或者 wav 或者 amr。不区分大小写 是(url 二选一)
$url String 建立包含语音内容的url, 语音文件的格式,pcm 或者 wav 或者 amr。不区分大小写 是(filePath 二选一)
format String 语音文件的格式,pcm 或者 wav 或者 amr。不区分大小写。推荐pcm文件
rate int 采样率,16000,固定值
userId String 用户唯一标识,用来区分用户,填写机器 MAC 地址或 IMEI 码,长度为60以内
dev_pid Int 不填写lan参数生效,都不填写,默认1537(普通话 输入法模型),dev_pid参数见本节开头的表格

语音合成参数说明

用法

参数

参数 类型 描述 是否必须
tex String 合成的文本,使用UTF-8编码,
请注意文本长度必须小于1024字节
userID String 用户唯一标识,用来区分用户,
填写机器 MAC 地址或 IMEI 码,长度为60以内
speed String 语速,取值0-9,默认为5中语速
pitch String 音调,取值0-9,默认为5中语调
volume String 音量,取值0-15,默认为5中音量
person String 发音人选择, 0为女声,1为男声,
3为情感合成-度逍遥,4为情感合成-度丫丫,默认为普通女
fileName String 合成文件名称
lan String 合成语音的语言 默认 zh

参考文件

百度语音, 一定要先看文档

感谢

e-yunduan/yii2-aip-speech

License

MIT


All versions of yii2-bd-aipspeech with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
yiisoft/yii2 Version *
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 saviorlv/yii2-bd-aipspeech contains the following files

Loading the files please wait ....