jp.go.nict.langrid.wrapper.ws_1_2.texttospeech
クラス AbstractTextToSpeechService
java.lang.Object
jp.go.nict.langrid.servicecontainer.service.AbstractService
jp.go.nict.langrid.wrapper.ws_1_2.AbstractService
jp.go.nict.langrid.wrapper.ws_1_2.AbstractLanguageService
jp.go.nict.langrid.wrapper.ws_1_2.texttospeech.AbstractTextToSpeechService
- すべての実装されたインタフェース:
- TextToSpeechService
public abstract class AbstractTextToSpeechService
- extends AbstractLanguageService
- implements TextToSpeechService
音声合成サービスの基底クラスです.
- バージョン:
- $Revision: 5935 $
- 作成者:
- $Author: Takao Nakaguchi $
クラス jp.go.nict.langrid.wrapper.ws_1_2.AbstractService から継承されたメソッド |
acquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, doGetLastUpdate, getCurrentServiceContext, getDoDoubleSearch, getEliminateDuplicates, getInitParameter, getInitParameterBoolean, getInitParameterInt, getInitParameterLong, getInitParameters, getInitParameterString, getInitParameterUsingTransformer, getLastUpdate, getLogListener, getMaxResults, getMaxWaitMillisForExternalProcess, getRequestMimeHeaders, getServiceContext, getWorkDirectory, getWorkFile, log, parseDateMacro, processEnd, processEnd, processLap, processStart, releaseSemaphore, setCurrentServiceContext, setDoubleSearchResults, setEliminateDuplicates, setLogListener, setMaxResults, setMaxThreads, setMaxWaitMillisForExternalProcess, setMaxWaitMillisForThread, setMeasureProcessTime, setProcessTimeWarningThreasholdMillis, setStartupException |
クラス java.lang.Object から継承されたメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTextToSpeechService
public AbstractTextToSpeechService()
- コンストラクタ。
speak
public Speech speak(String language,
String text,
String voiceType,
String audioType)
throws AccessLimitExceededException,
InvalidParameterException,
NoAccessPermissionException,
NoValidEndpointsException,
ProcessFailedException,
ServerBusyException,
ServiceNotActiveException,
ServiceNotFoundException,
UnsupportedLanguageException
- インタフェース
TextToSpeechService
の記述:
- 音声合成を行います。
- 定義:
- インタフェース
TextToSpeechService
内の speak
- パラメータ:
language
- テキストの言語(RFC3066準拠)text
- 比較元テキスト(必須)voiceType
- 声のタイプ。"man"や"woman"等。省略時空文字列又は"*"audioType
- 出力データの形式(MIMEタイプ)。"audio/mpeg"、"audio/x-wav"等。省略時空文字列又は"audio/*"
- 戻り値:
- 合成結果
- 例外:
AccessLimitExceededException
- アクセス制限に違反した
InvalidParameterException
- 不正なパラメータが渡された
UnsupportedLanguageException
- 指定された言語はサポートされていない
NoAccessPermissionException
- 呼び出しを行ったユーザに実行権限が無い
NoValidEndpointsException
- 有効なエンドポイントが無い
ProcessFailedException
- 計算処理に失敗した
ServerBusyException
- サーバが混雑していて処理が実行できない
ServiceNotActiveException
- サービスはアクティブではない
ServiceNotFoundException
- 指定されたサービスが見つからない
getSupportedVoiceTypes
public String[] getSupportedVoiceTypes()
- インタフェース
TextToSpeechService
の記述:
- 対応している声のタイプ一覧を返します。
- 定義:
- インタフェース
TextToSpeechService
内の getSupportedVoiceTypes
- 戻り値:
- タイプ一覧
getSupportedAudioTypes
public String[] getSupportedAudioTypes()
- インタフェース
TextToSpeechService
の記述:
- 対応しているオーディオタイプ一覧を返します。
- 定義:
- インタフェース
TextToSpeechService
内の getSupportedAudioTypes
- 戻り値:
- タイプ一覧
doSpeak
protected abstract Speech doSpeak(Language language,
String text,
String voiceType,
String audioType)
throws InvalidParameterException,
ProcessFailedException
- 例外:
InvalidParameterException
ProcessFailedException
setSupportedVoiceTypes
protected void setSupportedVoiceTypes(String... voiceTypes)
setSupportedAudioTypes
protected void setSupportedAudioTypes(String... audioTypes)