0
私はこのコード は、このコードは行うが、一度だけ、(UWP C#の)
SpeechRecognitionResult speechRecognitionResult = await speechRecognizer.RecognizeAsync();
textBox1.Text = speechRecognitionResult.Text;
しかし、それは出力のみの1時間を提供を使用してみました、テキストボックスに音声入力をしたいが、私は私が閉じるまで、出力の連続取得したいですそれは自分。 どうすればいいのか教えてください。
私はこの方法を試みましたが、何も提供しませんでした。
await speechRecognizer.CompileConstraintsAsync();
speechRecognizer.ContinuousRecognitionSession.ResultGenerated += async (s, e1) =>
{
if ((e1.Result != null))
{
await this.Dispatcher.RunAsync(CoreDispatcherPriority.Low,() =>
{
var result = e1.Result.Text;
textBox1.Text = result;
});
speechRecognizer.ContinuousRecognitionSession.Resume();
}
};
await speechRecognizer.ContinuousRecognitionSession.StartAsync(SpeechContinuousRecognitionMode.PauseOnRecognition);
ご協力ありがとうございます。返信する必要があります。 :)
フォーマットが間違っています。修正してください。 – IInspectable