fagai/laravel-voicetext

dev-master 2015-06-28 15:50 UTC

This package is auto-updated.

Last update: 2024-08-29 04:13:24 UTC


README

fagai/voicetext 基础 Laravel 包。

系统需求

  • Laravel 5
  • PHP 5.5.9~

安装

composer require fagai/laravel-voicetext

添加 config/app.php 提供者。

Fagai\VoiceText\ServiceProvider::class,

添加 config/app.php 别名。

'VoiceText' => Fagai\VoiceText\Facade::class

安装或更新 composer。

composer update

发布配置文件

php artisan vendor:publish --tag=config

示例

$voice = app('voicetext');

$voice->speaker('hikari')
	->emotion('happiness')
	->emotion_level(2)
	->pitch(150)
	->speed(120)
	->volume(150)
	->text('今日も一日がんばるぞい!');

// get wav binary data
$binaryData = $voice->get();

许可证

MIT 许可证。