e-yunduan/yii2-aip-speech
Composer 安装命令:
composer require e-yunduan/yii2-aip-speech
包简介
百度语音合成
关键字:
README 文档
README
百度语音合成
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist e-yunduan/yii2-aip-speech "*"
or add
"e-yunduan/yii2-aip-speech": "*"
to the require section of your composer.json file.
Usage
配置文件添加组件 :
components => [
'aipSpeech' => [
'class' => 'eyunduan\aipSpeech\BaiduSpeech',
'appId' => 'xxxx', // 百度语音 App ID
'apiKey' => 'xxxx', // 百度语音 API Key
'secretKey' => 'xxxxxx', // 百度语音 Secret Key
],
]
/** @var \eyunduan\aipSpeech\BaiduSpeech $aipSpeech */ $aipSpeech = \Yii::$app->get('aipSpeech'); $aipSpeech->combine('您好,世界');
统计信息
- 总下载量: 54
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-4-Clause
- 更新时间: 2017-11-09