Interface IAudioInput
Source of user voice input. This would usually be implemented over a microphone to get the users voice. But it can also be used in other ways such as streaming an mp4 file from disk. It's just an input and the source doesn't matter.
Namespace: Adrenak.UniVoice
Assembly: cs.temp.dll.dll
Syntax
public interface IAudioInput : IDisposable
Properties
ChannelCount
The number of channels in the audio
Declaration
int ChannelCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Frequency
The sampling frequency of the audio
Declaration
int Frequency { get; }
Property Value
Type | Description |
---|---|
Int32 |
SegmentRate
The number of segments (a segment is a sequence of audio samples) that are emitted from the source every second. Eg. A 16000 Hz source with one channel at a rate of 10 will output an array of 1600 samples every 100 milliseconds. A 44000 Hz source with two channels at a rate of 10 will output an array of 8800 samples every 100 milliseconds.
Declaration
int SegmentRate { get; }
Property Value
Type | Description |
---|---|
Int32 |
Events
OnSegmentReady
Fired when a segment (sequence of audio samples) is ready
Declaration
event Action<int, float[]> OnSegmentReady
Event Type
Type | Description |
---|---|
Action<Int32, Single[]> |