jp.go.nict.langrid.client.ws_1_2.impl.langservice
クラス TextToSpeechClientImpl

java.lang.Object
  上位を拡張 jp.go.nict.langrid.client.ws_1_2.impl.ServiceClientImpl
      上位を拡張 jp.go.nict.langrid.client.ws_1_2.impl.langservice.TextToSpeechClientImpl
すべての実装されたインタフェース:
Serializable, ServiceClient, TextToSpeechClient

public class TextToSpeechClientImpl
extends ServiceClientImpl
implements TextToSpeechClient

音声合成クライアントの実装。

バージョン:
$Revision: 11441 $
作成者:
$Author: Takao Nakaguchi $
関連項目:
直列化された形式

コンストラクタの概要
TextToSpeechClientImpl(URL serviceUrl)
          コンストラクタ。
 
メソッドの概要
protected  org.apache.axis.client.Stub createStub(URL url)
           
 String[] getSupportedAudioTypes()
          サポートしている音声ファイルのタイプ一覧を取得します。
 String[] getSupportedLanguages()
          対応している言語の一覧を返します。
 String[] getSupportedVoiceTypes()
          サポートしている声のタイプ一覧を取得します。
 Speech speak(Language language, String text, String voiceType, String audioType)
          音声合成を行います。
 
クラス jp.go.nict.langrid.client.ws_1_2.impl.ServiceClientImpl から継承されたメソッド
convert, getHttpHeaders, getLastCallTree, getLastCopyrightInfo, getLastLicenseInfo, getLastName, getTreeBindings, invoke, setPassword, setUpService, setUserId
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース jp.go.nict.langrid.client.ws_1_2.ServiceClient から継承されたメソッド
getHttpHeaders, getLastCallTree, getLastCopyrightInfo, getLastLicenseInfo, getLastName, getTreeBindings, setPassword, setUserId
 

コンストラクタの詳細

TextToSpeechClientImpl

public TextToSpeechClientImpl(URL serviceUrl)
コンストラクタ。

パラメータ:
serviceUrl - サービスが配備されているURL
メソッドの詳細

createStub

protected org.apache.axis.client.Stub createStub(URL url)
                                          throws javax.xml.rpc.ServiceException
定義:
クラス ServiceClientImpl 内の createStub
例外:
javax.xml.rpc.ServiceException

speak

public Speech speak(Language language,
                    String text,
                    String voiceType,
                    String audioType)
             throws LangridException
インタフェース TextToSpeechClient の記述:
音声合成を行います。

定義:
インタフェース TextToSpeechClient 内の speak
パラメータ:
language - テキストの言語(RFC3066準拠)
text - 比較元テキスト(必須)
voiceType - 声のタイプ。"man"や"woman"等。省略時空文字列又は"*"
audioType - 出力データの形式(MIMEタイプ)。"audio/mpeg"、"audio/x-wav"等。省略時空文字列又は"audio/*"
戻り値:
合成結果
例外:
LangridException - サービスの呼び出しに失敗した

getSupportedLanguages

public String[] getSupportedLanguages()
                               throws LangridException
インタフェース TextToSpeechClient の記述:
対応している言語の一覧を返します。

定義:
インタフェース TextToSpeechClient 内の getSupportedLanguages
戻り値:
言語一覧
例外:
LangridException - サービスの呼び出しに失敗した

getSupportedVoiceTypes

public String[] getSupportedVoiceTypes()
                                throws LangridException
インタフェース TextToSpeechClient の記述:
サポートしている声のタイプ一覧を取得します。

定義:
インタフェース TextToSpeechClient 内の getSupportedVoiceTypes
戻り値:
タイプ一覧
例外:
LangridException - サービスの呼び出しに失敗した

getSupportedAudioTypes

public String[] getSupportedAudioTypes()
                                throws LangridException
インタフェース TextToSpeechClient の記述:
サポートしている音声ファイルのタイプ一覧を取得します。

定義:
インタフェース TextToSpeechClient 内の getSupportedAudioTypes
戻り値:
タイプ一覧
例外:
LangridException - サービスの呼び出しに失敗した