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

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

public class SpeechRecognitionClientImpl
extends ServiceClientImpl
implements SpeechRecognitionClient

音声認識クライアントの実装。

作成者:
Takao Nakaguchi
関連項目:
直列化された形式

コンストラクタの概要
SpeechRecognitionClientImpl(URL serviceUrl)
          コンストラクタ。
 
メソッドの概要
protected  org.apache.axis.client.Stub createStub(URL url)
           
 String[] getSupportedAudioTypes()
          対応している音声データのファイル形式を返す。
 String[] getSupportedLanguages()
          対応している言語(RFC3066準拠の言語コード)を返す。
 String[] getSupportedVoiceTypes()
          対応している音声の種類を返す。
 String recognize(String language, Speech speech)
          認識した文字列を返す。
 
クラス 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
 

コンストラクタの詳細

SpeechRecognitionClientImpl

public SpeechRecognitionClientImpl(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

recognize

public String recognize(String language,
                        Speech speech)
                 throws LangridException
インタフェース SpeechRecognitionClient の記述:
認識した文字列を返す。

定義:
インタフェース SpeechRecognitionClient 内の recognize
パラメータ:
language - 言語
speech - 音声データ
戻り値:
文字列
例外:
LangridException - 処理に失敗した

getSupportedLanguages

public String[] getSupportedLanguages()
                               throws LangridException
インタフェース SpeechRecognitionClient の記述:
対応している言語(RFC3066準拠の言語コード)を返す。

定義:
インタフェース SpeechRecognitionClient 内の getSupportedLanguages
戻り値:
対応言語
例外:
LangridException - 処理に失敗した

getSupportedVoiceTypes

public String[] getSupportedVoiceTypes()
                                throws LangridException
インタフェース SpeechRecognitionClient の記述:
対応している音声の種類を返す。

定義:
インタフェース SpeechRecognitionClient 内の getSupportedVoiceTypes
戻り値:
対応している音声の種類
例外:
LangridException - 処理に失敗した

getSupportedAudioTypes

public String[] getSupportedAudioTypes()
                                throws LangridException
インタフェース SpeechRecognitionClient の記述:
対応している音声データのファイル形式を返す。

定義:
インタフェース SpeechRecognitionClient 内の getSupportedAudioTypes
戻り値:
対応している音声データのファイル形式
例外:
LangridException - 処理に失敗した