LoginSignup
15
16

More than 5 years have passed since last update.

Bluemix Watson Text to Speechで日本語を喋らせる

Posted at

WatsonのText to Speechで日本語を喋ってもらいました。

先日試した時は日本語喋れなかったと思うのですが、TOPページの公開日が2015/11/17となっているのを発見! voicesを確認してみると・・・。
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/text-to-speech/api/v1/#get-voices

$ curl -u "{username}":"{password}" "https://stream.watsonplatform.net/text-to-speech/api/v1/voices"

{
   "voices": [
      {
         "url": "https://stream.watsonplatform.net/text-to-speech/api/v1/voices/ja-JP_EmiVoice",
         "gender": "female",
         "name": "ja-JP_EmiVoice",
         "language": "ja-JP",
         "description": "Japanese language, female.  Higher-quality uncompressed Emi voice."
      },
      :(以下省略)

日本語が喋れるようになってました♪ ja-JP_EmiVoice
ちなみにデモページやドキュメントには未だ日本語が喋れる記述はありません。

早速日本語を喋ってもらいましょう。text=こんにちは、ワトソン博士
http://www.ibm.com/smarterplanet/us/en/ibmwatson/developercloud/text-to-speech/api/v1/#synthesize

$ curl -u "{username}":"{password}" -o "aaa.ogg" "https://stream.watsonplatform.net/text-to-speech/api/v1/synthesize?voice=ja-JP_EmiVoice&text=%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E3%80%81%E3%83%AF%E3%83%88%E3%82%BD%E3%83%B3%E5%8D%9A%E5%A3%AB%22"

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 24670    0 24670    0     0  10335      0 --:--:--  0:00:02 --:--:-- 10335

生成されたaaa.oggを聞くと「こんにちは わとそん はくし」と言いました♪ :smile:

15
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
16