先日公開されたVoiceText Web APIのPythonラッパーを早速書いてみました。 https://github.com/who-you-me/pyVoiceText 本体はワンファイルなんで、ここにもコード貼り付けちゃいます。 #-*- coding: utf-8 -*- import json import requests from requests.auth import HTTPBasicAuth class VoiceText(object): VERSION = "v1" URL = "https://api.voicetext.jp/%s/tts" % VERSION def __init__(self, key): self.key = key def fetch(self, text, speaker, out=None, emotion=None, emot
![ふゆみけ](https://cdn-ak-scissors.b.st-hatena.com/image/square/06a15c64ba0ceec233d86d71001ebb29a9dcbf5d/height=288;version=1;width=512/https%3A%2F%2Fcdn.blog.st-hatena.com%2Fimages%2Ftheme%2Fog-image-1500.png)