Class VoiceLoopback
Plays the microphone back through the speaker after a round trip through Opus, a delay later, to test the audio path without a call: speak, and hear yourself.
Implements
Inherited Members
Namespace: Uniform.Matrix.Audio
Assembly: Uniform.Matrix.Audio.dll
Syntax
public sealed class VoiceLoopback : IDisposable
Constructors
| Edit this page View SourceVoiceLoopback(IAudioDevices, TimeSpan)
Loop the microphone of devices back to its speaker.
Declaration
public VoiceLoopback(IAudioDevices devices, TimeSpan delay)
Parameters
| Type | Name | Description |
|---|---|---|
| IAudioDevices | devices | The platform's devices. |
| TimeSpan | delay | How much later to play what was said; a second or so makes it easy to tell your own voice from the echo. |
Properties
| Edit this page View SourceBytes
Bytes of Opus so far, to see the bit rate.
Declaration
public long Bytes { get; }
Property Value
| Type | Description |
|---|---|
| long |
Frames
Frames encoded so far.
Declaration
public int Frames { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
| Edit this page View SourceDispose()
Stop and close the devices.
Declaration
public void Dispose()
Start()
Start recording and playing.
Declaration
public void Start()