コード例 #1
0
 public void Dispose()
 {
     if (mSpeechIdentifier != null)
     {
         mSpeechIdentifier.Dispose();
         mSpeechIdentifier = null;
     }
 }
コード例 #2
0
 public SpeechIdentifier(SpeechApi.Configuration configuration)
 {
     if (configuration.ServerTransport != SpeechApi.SpeechTransport.Rest)
     {
         throw new NotSupportedException("ServerTransport not supported");
     }
     else if (configuration.ServerVersion == SpeechApi.SpeechVersion.Version_1)
     {
         if (configuration.ServerTransportObject is HttpClient)
         {
             mSpeechIdentifier = new Internal.SpeechIdentifier_HttpClient_Version1(configuration);
         }
         else
         {
             throw new NotSupportedException("ServerTransport not supported");
         }
     }
     else
     {
         throw new NotSupportedException("ServerVersion not supported");
     }
 }