先日公開された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