ekandreas/sayit
最新稳定版本:1.3
Composer 安装命令:
composer require ekandreas/sayit
包简介
Converts text to speech via AWS and place it in a S3 bucket folder
关键字:
README 文档
README
Converts text to speech via AWS and place it in a S3 bucket folder This package is PHP agnostic. Follow these steps to get started:
composer require ekandreas/sayit- Register an IAM programmatic account and set policy S3 full access and Polly Full Access to it.
- Use the key, secret, region and bucket name with the factory helper.
- Open a public folder in your S3 bucket and create a folder in it.
Code example:
$factory = TextToSpeech::make( $aws_key, $aws_secret, $aws_region, $aws_bucket ) ->voice("Elin") ->engine('neural') ->generate("Hej på dig, det här kommer att läsas upp i en mp3 efter generering.") ->store("your-folder"); // the url now points to a public s3 folder "your-folder" with a unique mp3 file generated from the text above. $url = $factory->url();
Installation
You can install the package via composer:
composer require ekandreas/sayit
Testing
composer test
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 85
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-07-16