Class AudioClipSpeechSource
SpeechSource that provides audio data from an AudioClip.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
AudioClipSpeechSource
Inherited Members
Namespace: Recognissimo.Components
Assembly: Recognissimo.dll
Syntax
[AddComponentMenu("Recognissimo/Speech Sources/AudioClip Speech Source")]
public sealed class AudioClipSpeechSource : SpeechSource
Fields
clip
Audio clip from which the data will be taken.
Declaration
[Tooltip("Audio clip from which the data will be taken")]
public AudioClip clip
Field Value
Type | Description |
---|---|
UnityEngine.AudioClip |
readSequentially
Whether to read the clip in parts. Setting false will require buffer reallocation for each new clip.
Declaration
[Tooltip("Whether to read the clip in parts")]
public bool readSequentially
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
SampleRate
Speech sampling rate. Must be set during initialization.
Declaration
public override int SampleRate { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Overrides
Methods
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()