WindowsDictationInputProvider.StartRecording Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Turns on the dictation recognizer and begins recording audio from the default microphone.
public void StartRecording (UnityEngine.GameObject listener, float initialSilenceTimeout = 5, float autoSilenceTimeout = 20, int recordingTime = 10, string micDeviceName = "");
abstract member StartRecording : UnityEngine.GameObject * single * single * int * string -> unit
override this.StartRecording : UnityEngine.GameObject * single * single * int * string -> unit
Public Sub StartRecording (listener As GameObject, Optional initialSilenceTimeout As Single = 5, Optional autoSilenceTimeout As Single = 20, Optional recordingTime As Integer = 10, Optional micDeviceName As String = "")
Parameters
- listener
- UnityEngine.GameObject
GameObject listening for the dictation input.
- initialSilenceTimeout
- Single
The time length in seconds before dictation recognizer session ends due to lack of audio input in case there was no audio heard in the current session.
- autoSilenceTimeout
- Single
The time length in seconds before dictation recognizer session ends due to lack of audio input.
- recordingTime
- Int32
Length in seconds for the manager to listen.
- micDeviceName
- String
Optional: The microphone device to listen to.