Class MicrophoneSpeechSource
SpeechSource that provides audio data from a microphone.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
MicrophoneSpeechSource
Inherited Members
Namespace: Recognissimo.Components
Assembly: Recognissimo.dll
Syntax
[AddComponentMenu("Recognissimo/Speech Sources/Microphone Speech Source")]
public sealed class MicrophoneSpeechSource : SpeechSource
Properties
DeviceName
Microphone name. Use null or empty string to use default microphone.
Declaration
public string DeviceName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
IsPaused
Whether recording is paused.
Declaration
public bool IsPaused { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsRecording
Whether recording is active.
Declaration
public bool IsRecording { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
TimeSensitivity
How often audio frames should be submitted to the recognizer (seconds). Use smaller values to submit audio samples more often. Recommended value is 0.25 seconds.
Declaration
public float TimeSensitivity { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
Devices()
Lists available microphone names.
Declaration
public string[] Devices()
Returns
Type | Description |
---|---|
System.String[] | Available devices. |
StartProducing()
Called by SpeechProcessor at the start of processing.
Declaration
public override void StartProducing()
Overrides
StopProducing()
Called when processing stops (e.g. when StopProcessing() called or when RuntimeFailure event emitted).
Declaration
public override void StopProducing()