Пример #1
0
 /// <summary>
 /// Performs asynchronous speech recognition: receive results via the
 /// google.longrunning.Operations interface. Returns either an
 /// `Operation.error` or an `Operation.response` which contains
 /// a `LongRunningRecognizeResponse` message.
 /// </summary>
 /// <param name="config">
 /// *Required* Provides information to the recognizer that specifies how to
 /// process the request.
 /// </param>
 /// <param name="audio">
 /// *Required* The audio data to be recognized.
 /// </param>
 /// <param name="cancellationToken">
 /// A <see cref="CancellationToken"/> to use for this RPC.
 /// </param>
 /// <returns>
 /// A Task containing the RPC response.
 /// </returns>
 public virtual Task <Operation <LongRunningRecognizeResponse, LongRunningRecognizeMetadata> > LongRunningRecognizeAsync(
     RecognitionConfig config,
     RecognitionAudio audio,
     CancellationToken cancellationToken) => LongRunningRecognizeAsync(
     config,
     audio,
     CallSettings.FromCancellationToken(cancellationToken));
Пример #2
0
 /// <summary>
 /// Performs synchronous speech recognition: receive results after all audio
 /// has been sent and processed.
 /// </summary>
 /// <param name="config">
 /// *Required* Provides information to the recognizer that specifies how to
 /// process the request.
 /// </param>
 /// <param name="audio">
 /// *Required* The audio data to be recognized.
 /// </param>
 /// <param name="cancellationToken">
 /// A <see cref="CancellationToken"/> to use for this RPC.
 /// </param>
 /// <returns>
 /// A Task containing the RPC response.
 /// </returns>
 public virtual Task <RecognizeResponse> RecognizeAsync(
     RecognitionConfig config,
     RecognitionAudio audio,
     CancellationToken cancellationToken) => RecognizeAsync(
     config,
     audio,
     CallSettings.FromCancellationToken(cancellationToken));
Пример #3
0
 /// <summary>
 /// Performs asynchronous speech recognition: receive results via the
 /// google.longrunning.Operations interface. Returns either an
 /// `Operation.error` or an `Operation.response` which contains
 /// a `LongRunningRecognizeResponse` message.
 /// </summary>
 /// <param name="config">
 /// *Required* Provides information to the recognizer that specifies how to
 /// process the request.
 /// </param>
 /// <param name="audio">
 /// *Required* The audio data to be recognized.
 /// </param>
 /// <param name="callSettings">
 /// If not null, applies overrides to this RPC call.
 /// </param>
 /// <returns>
 /// The RPC response.
 /// </returns>
 public virtual lro::Operation <LongRunningRecognizeResponse, LongRunningRecognizeMetadata> LongRunningRecognize(
     RecognitionConfig config,
     RecognitionAudio audio,
     gaxgrpc::CallSettings callSettings = null) => LongRunningRecognize(
     new LongRunningRecognizeRequest
 {
     Config = gax::GaxPreconditions.CheckNotNull(config, nameof(config)),
     Audio  = gax::GaxPreconditions.CheckNotNull(audio, nameof(audio)),
 },
     callSettings);
Пример #4
0
 /// <summary>
 /// Performs synchronous speech recognition: receive results after all audio
 /// has been sent and processed.
 /// </summary>
 /// <param name="config">
 /// *Required* Provides information to the recognizer that specifies how to
 /// process the request.
 /// </param>
 /// <param name="audio">
 /// *Required* The audio data to be recognized.
 /// </param>
 /// <param name="callSettings">
 /// If not null, applies overrides to this RPC call.
 /// </param>
 /// <returns>
 /// The RPC response.
 /// </returns>
 public virtual RecognizeResponse Recognize(
     RecognitionConfig config,
     RecognitionAudio audio,
     gaxgrpc::CallSettings callSettings = null) => Recognize(
     new RecognizeRequest
 {
     Config = gax::GaxPreconditions.CheckNotNull(config, nameof(config)),
     Audio  = gax::GaxPreconditions.CheckNotNull(audio, nameof(audio)),
 },
     callSettings);
 /// <summary>
 /// Performs asynchronous speech recognition: receive results via the
 /// google.longrunning.Operations interface. Returns either an
 /// `Operation.error` or an `Operation.response` which contains
 /// a `LongRunningRecognizeResponse` message.
 /// </summary>
 /// <param name="config">
 /// *Required* Provides information to the recognizer that specifies how to
 /// process the request.
 /// </param>
 /// <param name="audio">
 /// *Required* The audio data to be recognized.
 /// </param>
 /// <param name="callSettings">
 /// If not null, applies overrides to this RPC call.
 /// </param>
 /// <returns>
 /// A Task containing the RPC response.
 /// </returns>
 public virtual Task <Operation <LongRunningRecognizeResponse, LongRunningRecognizeMetadata> > LongRunningRecognizeAsync(
     RecognitionConfig config,
     RecognitionAudio audio,
     CallSettings callSettings = null) => LongRunningRecognizeAsync(
     new LongRunningRecognizeRequest
 {
     Config = GaxPreconditions.CheckNotNull(config, nameof(config)),
     Audio  = GaxPreconditions.CheckNotNull(audio, nameof(audio)),
 },
     callSettings);
 /// <summary>
 /// Performs synchronous speech recognition: receive results after all audio
 /// has been sent and processed.
 /// </summary>
 /// <param name="config">
 /// *Required* Provides information to the recognizer that specifies how to
 /// process the request.
 /// </param>
 /// <param name="audio">
 /// *Required* The audio data to be recognized.
 /// </param>
 /// <param name="callSettings">
 /// If not null, applies overrides to this RPC call.
 /// </param>
 /// <returns>
 /// A Task containing the RPC response.
 /// </returns>
 public virtual Task <RecognizeResponse> RecognizeAsync(
     RecognitionConfig config,
     RecognitionAudio audio,
     CallSettings callSettings = null) => RecognizeAsync(
     new RecognizeRequest
 {
     Config = GaxPreconditions.CheckNotNull(config, nameof(config)),
     Audio  = GaxPreconditions.CheckNotNull(audio, nameof(audio)),
 },
     callSettings);