- 商用利用もできるAI音声読み上げツール
- いわゆるゆっくりボイスだったりVOICEROIDだったりと似たようなもの
- 実際は自分で設定する必要があるが...
- エディタ+エンジン+コアからなる
- 実際にはエディタはElectron + Vue 、エンジン部分は Python + FastAPI 、コアはC++で作られている (コアに関しては多分)
- 今回は手元でエンジンを動かしてそこに対してgoからリクエストを行ってみる
https://k8sjp.connpass.com/event/85336/ kubernetes meetup 11回目 今回のkubernetes Meetupは、18/5/2-5/4 に開催された KubeCon + CloudNativeCon Europe 2018 Recap スペシャルです。
Kubeconのスライドや公演の動画は全て公開されているので、興味があるセッションがあれば見るといいとのことでした。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$api_url = env('WATSON_RECOGNITION_API_URL'); | |
$api_key = env('WATSON_RECOGNITION_API_KEY'); | |
$api_mode = "v3/classify"; | |
$curl = new Curl(); | |
$curl_url = $api_url . $api_mode; | |
$image_path = 'image_path'; | |
$curl->get($curl_url, array( | |
'url' => $image_path, | |
'classifier_ids' => 'default', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$file = file_get_contents($image_path); | |
$ch = curl_init(); | |
curl_setopt_array($ch,[ | |
CURLOPT_URL => $api_url . '?APIKEY=' . $api_key, | |
CURLOPT_RETURNTRANSFER => true, | |
CURLOPT_POST => true, | |
CURLOPT_POSTFIELDS => [ | |
'modelName' => 'food', | |
'image' => new CURLFile($image_path) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Curl\Curl; | |
$api_url = env('GOOGLE_CLOUDVISION_API_URL'); | |
$api_key = env('GOOGLE_CLOUDVISION_API_KEY'); | |
$curl = new Curl(); | |
$curl_url = $api_url . $api_key; | |
$curl->setHeader('Content-Type', 'application/json'); | |
$image_path = 'image_path'; | |
$file = file_get_contents($image_path); | |
$send_json = json_encode([ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Curl\Curl; | |
$curl_url = "https://api.imagga.com/v1/tagging" | |
$curl = new Curl(); | |
$curl->setopt(CURLOPT_HEADER, FALSE); | |
$curl->setopt(CURLOPT_RETURNTRANSFER, TRUE); | |
$curl->setBasicAuthentication($api_key, $api_secret); | |
$curl->get($curl_url, array( | |
'url' => $file, | |
'language' => 'ja' |