Daily class provides static methods for initializing the SDK, managing logging, and creating virtual media devices.
init()
Initializes the Daily SDK. Must be called before creating anyCallClient instances.
Parameters
Number of worker threads to use for media processing.
Initial logging level. Can be one of:
LogLevel.Off, LogLevel.Error, LogLevel.Warn, LogLevel.Info, LogLevel.Debug, LogLevel.Trace.Returns
This method does not return a value.
deinit()
Cleans up and shuts down the Daily SDK. Should be called when your application is done using Daily.Returns
This method does not return a value.
set_log_level()
Changes the SDK logging level at runtime.Parameters
New logging level. Can be one of:
LogLevel.Off, LogLevel.Error, LogLevel.Warn, LogLevel.Info, LogLevel.Debug, LogLevel.Trace.Returns
This method does not return a value.
create_camera_device()
Creates a virtual camera device for streaming video into a Daily call.Parameters
Name identifier for the virtual camera device.
Width of the video frames in pixels.
Height of the video frames in pixels.
Color format for video frames. Supported formats include “RGBA”, “RGB”, “BGRA”, “BGR”.
Returns
A virtual camera device instance that can be used to write video frames.
create_speaker_device()
Creates a virtual speaker device for receiving audio output from a Daily call.Parameters
Name identifier for the virtual speaker device.
Audio sample rate in Hz (e.g., 16000, 24000, 48000).
Number of audio channels (1 for mono, 2 for stereo).
If
True, read operations will not block when no audio is available.Returns
A virtual speaker device instance that can be used to read audio frames.
create_microphone_device()
Creates a virtual microphone device for streaming audio into a Daily call.Parameters
Name identifier for the virtual microphone device.
Audio sample rate in Hz (e.g., 16000, 24000, 48000).
Number of audio channels (1 for mono, 2 for stereo).
If
True, write operations will not block when the buffer is full.Returns
A virtual microphone device instance that can be used to write audio frames.
create_native_vad()
Creates a native Voice Activity Detection (VAD) analyzer for detecting speech in audio.Parameters
Period in milliseconds after which VAD state resets.
Audio sample rate in Hz (e.g., 16000, 24000, 48000).
Number of audio channels (1 for mono, 2 for stereo).
Returns
A native VAD analyzer instance that can detect voice activity in audio frames.
select_speaker_device()
Selects a specific speaker device for audio output.Parameters
Name of the speaker device to select for audio output.
Returns
This method does not return a value.