2014-07-28から1日間の記事一覧
URL: http://u3d.as/content/ba-kno-games/i-os-text-to-speech/2TL アセットは少し高いが、音声のキャラクターが選択できる。 iOS専用。 private TTS myTTS; で宣言し、 myTTS = new TTS(); 初期化が必要。 myTTS.SetVoice("声の種類"); myTTS.SetVoicePara…
URL: http://u3d.as/content/fre-cre/simple-text-to-speech-for-i-os-and-android/81S TextToSpeechManager.SendTextToSpeech ("hoge"); 英語の文字列を渡す。これだけ。hogeを話す。
URL: http://answers.unity3d.com/questions/452601/c-inheriting-awake.html・ベースクラス public class Base : MonoBehaviour { protected virtual void Awake () { print ("ここに何か書く"); } } ・サブクラス public class Sub : Base { protected ove…
import logging def __create_file_log_handler(app): info_log = os.path.join(app.config['LOG_FOLDER'], 'info.log') info_file_handler = logging.handlers.RotatingFileHandler(info_log, maxBytes=100000, backupCount=10) info_file_handler.setLevel…
・config.py class BaseConfig(object): pass class DefaultConfig(BaseConfig): pass をインポートしたい。 from .config import DefaultConfig をする時、 同じフォルダに・__init__.py # -*- coding: utf-8 -*- がいる