Skip to main content

Crate tauri_plugin_sew_voice

Crate tauri_plugin_sew_voice 

Source
Expand description

tauri-plugin-sew-voice: Sew native voice calls in a Tauri 2 app.

The webview draws the UI and sends eight commands (plugin:sew-voice|join, leave, mute, devices, set_device, state, and for recording consent consent and withdraw_consent); the plugin answers and emits six events (sew-voice://state, participants, speaking, errors, devices, recording). Sign-in stays in the host’s Rust: the host registers a JoinProvider that obtains Sew’s join answer (and sends the person’s recording consent with the person’s own session), so no token ever reaches the webview.

ⓘ
tauri::Builder::default()
    .plugin(tauri_plugin_sew_voice::Builder::new(MyProvider::new()).build())
    .run(tauri::generate_context!())?;

The engine is sew-call-client (real::CallClientEngine, features audio-core/audio); fake::FakeEngine stands in for it in tests. Without the tauri feature the crate is the plugin’s core (VoiceService, the JSON shapes in wire, the engine interface in engine, the real and the fake engine), which builds and tests without Tauri’s system libraries. The crate’s README is the guide: setup, the capability file, every command with its permission set, and shipping DeepFilterNet3’s weights. The native voice SDK guide has each command’s arguments, answers and errors; the exact JSON is pinned in the package’s contracts/ folder.

Sew is Alakazam Labs’ self-hosted chat and calls server; the plugin needs one to join calls on. K2 is Alakazam Labs’ platform, which can host Sew (the audio and video pipelines kessel-audio and kessel-video are K2’s crates; nothing here needs K2). A Sew version (“Sew 0.9.0”) is a version of the Sew server: next to a feature, the first server version that has it; in the CHANGELOG’s headings, the server version that release of this plugin is tested against. A plain version (“0.4.1”) is the plugin’s own.

Call details (0.4.1). Beside the frozen eight, the call_details, ring and ring_ended commands (permission set sew-voice:call-details) and the security, roster, quality and incoming events give a call UI the key state and security code, each media participant’s engine identity and label, the connection quality and an incoming DM call (details).

Record and Stop (Sew 0.9.0). The start_recording and stop_recording commands (RECORDING_COMMANDS, permission set sew-voice:recording) send the person’s Record and Stop through the host’s provider (JoinProvider::recording) with the person’s own session, as consent goes.

Which buttons (0.6.1). The host tells the plugin the person’s rights in the call’s room with set_recording_rights (RECORDING_RIGHTS_COMMANDS, in sew-voice:recording; RecordingRights); the plugin then says whether Sew would take a Record or a Stop now, in the recording_controls event (RecordingControls) and the recording event’s can_record and can_stop, and updates them as the call changes.

Record and Stop from Sew (0.7.0). A Sew server that computes each person’s Record and Stop sends them to the call; the plugin then passes them on in the same events, with source: "sew" (ControlsSource) and Sew’s record_unavailable hint, and the host’s rights are not used. set_recording_rights stays for Sew servers that don’t send recording controls.

Phones (0.3.0). A CallKit or Telecom shim registers a VoiceListener (Builder::listener), which sees the call whether or not a webview is awake, and acts through VoiceControl (Tauri state): join, leave, mute, consent, the snapshot on wake, network_changed and the audio-session hooks it forwards to kessel-audio. On iOS and Android the plugin lists no devices between calls (the OS owns the route) and has no keyring backend. It has no Swift or Kotlin of its own: on mobile it registers exactly as on desktop (.plugin(Builder::new(provider).build()) in the app’s mobile entry point).

Video. More commands (VIDEO_COMMANDS and the codec setting’s VIDEO_CODEC_COMMANDS, the sew-voice:video permission set) and four events (sew-voice://video, local_video, video_devices, policy). Remote and self-view frames reach the webview over a Tauri raw Channel per element, a 32-byte header (video::FrameHeader) then the encoded frame, decoded by the webview’s WebCodecs; keys never leave Rust. The engine side is in video: every video method of VoiceEngine and CallHandle defaults to “no video”, so an engine without it is unchanged.

Re-exports§

pub use details::CallDetails;
pub use details::DETAIL_COMMANDS;
pub use details::DETAIL_EVENTS;
pub use details::IncomingCall;
pub use details::QualityInfo;
pub use details::RingEndedArgs;
pub use details::RosterEntry;
pub use details::SecurityInfo;
pub use engine::AppScene;
pub use engine::AudioSessionEvent;
pub use engine::CallEvent;
pub use engine::CallHandle;
pub use engine::CallSnapshot;
pub use engine::EngineError;
pub use engine::VideoSnapshot;
pub use engine::VoiceEngine;
pub use engine::app_server_answer;
pub use listener::VoiceControl;
pub use listener::VoiceListener;
pub use service::EventSink;
pub use service::SPEAKING_MIN_INTERVAL;
pub use service::Spawn;
pub use service::VoiceService;
pub use video::CameraRequest;
pub use video::DecodeFailure;
pub use video::DecodedFormat;
pub use video::DecodedFrame;
pub use video::DecoderSpec;
pub use video::DecoderWake;
pub use video::EncodedVideoFrame;
pub use video::FrameDecoder;
pub use video::FrameHeader;
pub use video::ParentWindow;
pub use video::PreviewRequest;
pub use video::ScreenRequest;
pub use video::TrackSettings;
pub use video::VideoFrames;
pub use video::VideoRecvItem;
pub use wire::CallState;
pub use wire::ConsentArgs;
pub use wire::ControlsSource;
pub use wire::DEFAULT_DEVICE;
pub use wire::Device;
pub use wire::DeviceChoice;
pub use wire::DeviceKeyInfo;
pub use wire::DeviceList;
pub use wire::ErrorInfo;
pub use wire::ForgetServerArgs;
pub use wire::JoinArgs;
pub use wire::JoinOptions;
pub use wire::JoinResult;
pub use wire::MuteArgs;
pub use wire::Participant;
pub use wire::PluginEvent;
pub use wire::RecordingControls;
pub use wire::RecordingInfo;
pub use wire::RecordingParticipant;
pub use wire::RecordingRights;
pub use wire::SelfMute;
pub use wire::SetDeviceArgs;
pub use wire::Speaking;
pub use wire::StateEvent;
pub use wire::StateSnapshot;
pub use wire::Camera;
pub use wire::CameraArgs;
pub use wire::CodecPreferenceInfo;
pub use wire::Facing;
pub use wire::LocalVideo;
pub use wire::LocalVideoState;
pub use wire::PermissionState;
pub use wire::PreviewAnswer;
pub use wire::PreviewArgs;
pub use wire::ScreenArgs;
pub use wire::ScreenCaps;
pub use wire::ScreenKind;
pub use wire::ScreenSource;
pub use wire::SetVideoCodecPreferenceArgs;
pub use wire::SetVideoDeviceArgs;
pub use wire::SinkIdArgs;
pub use wire::SinkMode;
pub use wire::SinkStats;
pub use wire::Tile;
pub use wire::VideoCaps;
pub use wire::VideoCodec;
pub use wire::VideoDevices;
pub use wire::VideoPaused;
pub use wire::VideoPermissions;
pub use wire::VideoSinkAnswer;
pub use wire::VideoSinkArgs;
pub use wire::VideoSinkUpdateArgs;
pub use wire::VideoSource;
pub use wire::VideoTrack;
pub use wire::SetNoiseRemovalArgs;
pub use wire::UNAVAILABLE_NOISE_MODES;
pub use sew_call_client;

Modules§

details
Call details (0.4.1), beside the frozen events: the call’s key state and security code, each media participant’s engine identity and label, the connection quality, and an incoming DM call (a ring). Each is an event (sew-voice://security, roster, quality, incoming) and part of the call_details command’s answer; a ring is set and cleared with the ring and ring_ended commands (or crate::VoiceControl::ring).
engine
The engine interface: what the plugin needs from a voice engine.
fake
An in-memory engine, provider and event recorder, for tests and for running the example without Sew. Not a voice engine: it moves no audio and talks to no server.
kessel
The decoded fallback’s decoders from kessel-video (the plugin’s video-core): a FrameDecoder over any kessel-video backend’s VideoDecoder. With video, the real engine opens them on kessel-video’s system backend (VP8 through the pure-Rust vp8-decoder everywhere, H.264 through VideoToolbox on macOS); a host or a test may pass its own backend (real::CallClientEngine::with_video_backend, the engine’s one backend).
listener
The native side of the plugin (0.3.0): a VoiceListener that observes the call whether or not a webview exists or is awake (a CallKit or Telecom shim), and VoiceControl, the handle that shim acts through.
native
Native video sinks (feature video-core): a call’s video in Rust, for the host’s own views (a phone’s picture in picture: AVSampleBufferDisplayLayer and AVPictureInPictureController on iOS), not over the webview bridge.
real
The real engine (feature audio-core; audio adds the system devices): CallClientEngine, the plugin’s VoiceEngine over sew-call-client’s CallClient, and its calls, a CallHandle over Call with kessel-audio through AudioBridge.
service
The plugin’s core logic, without Tauri: the eight commands, the state machine and the event pumps. plugin.rs wires it to Tauri; tests drive it directly with the fake engine.
video
Video: what the plugin needs from the engine, and the frame sink’s framing.
wire
The JSON the webview sends and receives (frozen with K2, whose webview speaks it).

Structs§

AnswerError
The host’s sign-in callback and its types, from sew-call-client.
Builder
Builds the plugin: Builder::new(provider).build().
CallCredential
The host’s sign-in callback and its types, from sew-call-client.
ConsentAnswer
The host’s sign-in callback and its types, from sew-call-client.
ConsentChoice
The consent notice in the Sew App kit’s words (ConsentPrompt::title_en, text_en, choices_en), from sew-proto. One answer the notice offers.
ConsentPrompt
Sew’s consent modal data (recording’s consent_prompt), from sew-proto unchanged. Sew’s recording types the engine’s recording API carries (from sew-proto). The consent modal’s data. Every slot is data; templates supply the sentences. notice_version is a stable hash of every other slot; the answer must echo it.
ConsentRequired
The host’s sign-in callback and its types, from sew-call-client.
DeviceKeyId
The host’s own device key store (Builder::device_key_store), re-exported, with the record’s public half (sew-e2ee’s StoredDevice), so a host needs no sew-e2ee dependency. Which device a DeviceKeyStore entry belongs to: one install of Sew, one member, one login lineage (the call credential’s device_scope; a new sign-in is a new scope and enrols a new device).
DeviceKeyRecord
The host’s own device key store (Builder::device_key_store), re-exported, with the record’s public half (sew-e2ee’s StoredDevice), so a host needs no sew-e2ee dependency. What a DeviceKeyStore keeps for one device: the private key and the public record Sew answered at enrolment (or the last renewal).
DmCall
The host’s sign-in callback and its types, from sew-call-client.
DspSched
What the audio pipeline’s processing thread asks the OS for (VoiceControl::set_dsp_sched): the setting, its mode, why a setting is refused, and why a call’s thread fell back to the default mode (sew-call-client’s types, under the plugin’s names). What the audio pipeline’s processing thread asks the OS for in the calls that start after it is set (NoiseRemovalControl::set_dsp_sched): the mode, the time-constraint policy’s figures and, for CaptureDspSchedMode::OwnWorkgroup, each block’s deadline. The pipeline reads it once, as a call’s audio starts; a change reaches the next call.
JoinAnswer
The host’s sign-in callback and its types, from sew-call-client.
JoinRequest
The host’s sign-in callback and its types, from sew-call-client.
MemoryDeviceKeyStore
The host’s own device key store (Builder::device_key_store), re-exported, with the record’s public half (sew-e2ee’s StoredDevice), so a host needs no sew-e2ee dependency. An in-memory DeviceKeyStore (tests, and an example of the trait; never the engine’s default).
NoiseRemovalState
The microphone’s noise removal (set_noise_removal, noise_removal, the noise_removal event). The microphone’s noise removal: the setting ("off", "standard"), why what runs is less ("budget", "fault", "unavailable", "loading"; "switch_failed" for a phone’s capture), the phone’s capture ("os", "raw"), the stage’s step-down rule ("slow_block", "slow_window", "heavy", "fault", "forced", "starved"), where DeepFilterNet3 is ("idle", "warming", "running", "stepped_down", "retired"), the last busy moment reported to the audio pipeline ("call_start", "camera_start", "app_scene_change", …), the clock it times the stage by ("thread_cpu", "wall"), how the OS schedules the thread it runs on ("workgroup", "time_constraint", "qos", "none") and {mode, active, reason?, …} (sew-call-client’s). The noise removal setting and what runs: {mode, active, reason?, model?, model_reason?, step_downs?, phone_mode?, phone_mode_reason?, phone_mode_switches?, phone_mode_gap_ms?, step_down_reason?, last_step_down_ms_ago?, slowest_block_us?, blocks_over_budget?, in_grace?, dfn3_state?, retry_in_ms?, grace_step_downs?, slowest_block_cpu_us?, p99_block_us?, p99_block_cpu_us?, capture_stage_strikes?, capture_stage_bypassed?, capture_stage_p99_us?, capture_stage_grace?, capture_stage_grace_blocks?, capture_stage_grace_over_budget?, capture_stage_last_transient?, capture_stage_clock?, capture_stage_max_wall_us?, capture_stage_preempted_over_budget?, capture_stage_starved?, capture_stage_dsp_scheduling?}.
RecordingRequest
The host’s sign-in callback and its types, from sew-call-client.
ServerControls
The person’s Record and Stop as a Sew server that computes them sent them (CallEvent::RecordingControls, CallHandle::recording_controls), from sew-call-client. A person’s Record and Stop in the call’s room, as Sew computes them (Call::recording_controls, CallEvent::RecordingControls, CallRecording::my_controls). Of two values, the larger rev is the newer. Sew still decides each Record and Stop; show its refusal if one comes.
StoredDevice
The host’s own device key store (Builder::device_key_store), re-exported, with the record’s public half (sew-e2ee’s StoredDevice), so a host needs no sew-e2ee dependency. The device’s public record in a DeviceKeyRecord (sew-e2ee’s), re-exported so a host’s DeviceKeyStore needs no sew-e2ee dependency of its own. The device’s enrolled state (public data).
TauriSink
Emits the plugin’s events to every window as sew-voice://<name>.

Enums§

CaptureDspScheduling
The microphone’s noise removal (set_noise_removal, noise_removal, the noise_removal event). The microphone’s noise removal: the setting ("off", "standard"), why what runs is less ("budget", "fault", "unavailable", "loading"; "switch_failed" for a phone’s capture), the phone’s capture ("os", "raw"), the stage’s step-down rule ("slow_block", "slow_window", "heavy", "fault", "forced", "starved"), where DeepFilterNet3 is ("idle", "warming", "running", "stepped_down", "retired"), the last busy moment reported to the audio pipeline ("call_start", "camera_start", "app_scene_change", …), the clock it times the stage by ("thread_cpu", "wall"), how the OS schedules the thread it runs on ("workgroup", "time_constraint", "qos", "none") and {mode, active, reason?, …} (sew-call-client’s). How the OS schedules the audio pipeline’s processing thread, the thread the noise removal stage runs on (NoiseRemovalState::capture_stage_dsp_scheduling): the best of the requests the pipeline made that the OS granted. On macOS and iOS the thread asks for real-time scheduling; elsewhere it keeps the OS’s default.
CaptureStageClock
The microphone’s noise removal (set_noise_removal, noise_removal, the noise_removal event). The microphone’s noise removal: the setting ("off", "standard"), why what runs is less ("budget", "fault", "unavailable", "loading"; "switch_failed" for a phone’s capture), the phone’s capture ("os", "raw"), the stage’s step-down rule ("slow_block", "slow_window", "heavy", "fault", "forced", "starved"), where DeepFilterNet3 is ("idle", "warming", "running", "stepped_down", "retired"), the last busy moment reported to the audio pipeline ("call_start", "camera_start", "app_scene_change", …), the clock it times the stage by ("thread_cpu", "wall"), how the OS schedules the thread it runs on ("workgroup", "time_constraint", "qos", "none") and {mode, active, reason?, …} (sew-call-client’s). The clock the audio pipeline times the noise removal stage by (NoiseRemovalState::capture_stage_clock).
CaptureTransient
The microphone’s noise removal (set_noise_removal, noise_removal, the noise_removal event). The microphone’s noise removal: the setting ("off", "standard"), why what runs is less ("budget", "fault", "unavailable", "loading"; "switch_failed" for a phone’s capture), the phone’s capture ("os", "raw"), the stage’s step-down rule ("slow_block", "slow_window", "heavy", "fault", "forced", "starved"), where DeepFilterNet3 is ("idle", "warming", "running", "stepped_down", "retired"), the last busy moment reported to the audio pipeline ("call_start", "camera_start", "app_scene_change", …), the clock it times the stage by ("thread_cpu", "wall"), how the OS schedules the thread it runs on ("workgroup", "time_constraint", "qos", "none") and {mode, active, reason?, …} (sew-call-client’s). A busy moment of the device reported to the audio pipeline, which opens its grace window for the stage (NoiseRemovalState::capture_stage_last_transient).
CodecPreferenceReason
The per-device video codec setting and why “Prefer H.264” can’t apply (sew-call-client’s). Why “Prefer H.264” could not apply, so the device publishes VP8.
ConsentAsk
The consent notice in the Sew App kit’s words (ConsentPrompt::title_en, text_en, choices_en), from sew-proto. Where the person meets the notice.
DeviceError
The host’s own device key store (Builder::device_key_store), re-exported, with the record’s public half (sew-e2ee’s StoredDevice), so a host needs no sew-e2ee dependency. Why the device store failed.
DevicePlatform
The hardware device key (Builder::hardware_device_key: Secure Enclave, StrongBox/TEE) and the enrolment platform (Builder::device_platform), re-exported. The device’s platform in its enrolment (Sew’s DeviceEnrollRequest.platform). The device’s platform (DeviceCertTbs.platform 1–5).
DspSchedError
What the audio pipeline’s processing thread asks the OS for (VoiceControl::set_dsp_sched): the setting, its mode, why a setting is refused, and why a call’s thread fell back to the default mode (sew-call-client’s types, under the plugin’s names). Why CaptureDspSched::validate (and NoiseRemovalControl::set_dsp_sched) refused.
DspSchedFallback
What the audio pipeline’s processing thread asks the OS for (VoiceControl::set_dsp_sched): the setting, its mode, why a setting is refused, and why a call’s thread fell back to the default mode (sew-call-client’s types, under the plugin’s names). Why the processing thread runs in CaptureDspSchedMode::Workgroup and not in the mode asked for (NoiseRemovalState::capture_stage_dsp_sched_fallback).
DspSchedMode
What the audio pipeline’s processing thread asks the OS for (VoiceControl::set_dsp_sched): the setting, its mode, why a setting is refused, and why a call’s thread fell back to the default mode (sew-call-client’s types, under the plugin’s names). Which scheduling the audio pipeline’s processing thread asks the OS for (CaptureDspSched::mode, NoiseRemovalControl::set_dsp_sched). Only macOS and iOS act on it.
NoiseDfn3State
The microphone’s noise removal (set_noise_removal, noise_removal, the noise_removal event). The microphone’s noise removal: the setting ("off", "standard"), why what runs is less ("budget", "fault", "unavailable", "loading"; "switch_failed" for a phone’s capture), the phone’s capture ("os", "raw"), the stage’s step-down rule ("slow_block", "slow_window", "heavy", "fault", "forced", "starved"), where DeepFilterNet3 is ("idle", "warming", "running", "stepped_down", "retired"), the last busy moment reported to the audio pipeline ("call_start", "camera_start", "app_scene_change", …), the clock it times the stage by ("thread_cpu", "wall"), how the OS schedules the thread it runs on ("workgroup", "time_constraint", "qos", "none") and {mode, active, reason?, …} (sew-call-client’s). Where the call’s stage is with DeepFilterNet3 (NoiseRemovalState::dfn3_state).
NoiseModel
The microphone’s noise removal (set_noise_removal, noise_removal, the noise_removal event). The microphone’s noise removal: the setting ("off", "standard"), why what runs is less ("budget", "fault", "unavailable", "loading"; "switch_failed" for a phone’s capture), the phone’s capture ("os", "raw"), the stage’s step-down rule ("slow_block", "slow_window", "heavy", "fault", "forced", "starved"), where DeepFilterNet3 is ("idle", "warming", "running", "stepped_down", "retired"), the last busy moment reported to the audio pipeline ("call_start", "camera_start", "app_scene_change", …), the clock it times the stage by ("thread_cpu", "wall"), how the OS schedules the thread it runs on ("workgroup", "time_constraint", "qos", "none") and {mode, active, reason?, …} (sew-call-client’s). The model that removes the noise when NoiseRemoval::Standard runs.
NoiseProbePhase
A probed call’s phase, by how the audio pipeline’s processing thread is scheduled in it (feature noise-probe; measurement builds only). How the audio pipeline’s processing thread is scheduled in a probed call. A call is one phase: the pipeline reads the scheduling once, as the call’s audio starts, and the report names the phase from the mode the pipeline says is in effect.
NoiseRemoval
The microphone’s noise removal (set_noise_removal, noise_removal, the noise_removal event). The microphone’s noise removal: the setting ("off", "standard"), why what runs is less ("budget", "fault", "unavailable", "loading"; "switch_failed" for a phone’s capture), the phone’s capture ("os", "raw"), the stage’s step-down rule ("slow_block", "slow_window", "heavy", "fault", "forced", "starved"), where DeepFilterNet3 is ("idle", "warming", "running", "stepped_down", "retired"), the last busy moment reported to the audio pipeline ("call_start", "camera_start", "app_scene_change", …), the clock it times the stage by ("thread_cpu", "wall"), how the OS schedules the thread it runs on ("workgroup", "time_constraint", "qos", "none") and {mode, active, reason?, …} (sew-call-client’s). How much noise this device’s microphone has removed. The default is NoiseRemoval::Standard.
NoiseRemovalReason
The microphone’s noise removal (set_noise_removal, noise_removal, the noise_removal event). The microphone’s noise removal: the setting ("off", "standard"), why what runs is less ("budget", "fault", "unavailable", "loading"; "switch_failed" for a phone’s capture), the phone’s capture ("os", "raw"), the stage’s step-down rule ("slow_block", "slow_window", "heavy", "fault", "forced", "starved"), where DeepFilterNet3 is ("idle", "warming", "running", "stepped_down", "retired"), the last busy moment reported to the audio pipeline ("call_start", "camera_start", "app_scene_change", …), the clock it times the stage by ("thread_cpu", "wall"), how the OS schedules the thread it runs on ("workgroup", "time_constraint", "qos", "none") and {mode, active, reason?, …} (sew-call-client’s). Why the noise removal that runs (NoiseRemovalState::active) is less than what was asked (NoiseRemovalState::mode).
NoiseStepDownReason
The microphone’s noise removal (set_noise_removal, noise_removal, the noise_removal event). The microphone’s noise removal: the setting ("off", "standard"), why what runs is less ("budget", "fault", "unavailable", "loading"; "switch_failed" for a phone’s capture), the phone’s capture ("os", "raw"), the stage’s step-down rule ("slow_block", "slow_window", "heavy", "fault", "forced", "starved"), where DeepFilterNet3 is ("idle", "warming", "running", "stepped_down", "retired"), the last busy moment reported to the audio pipeline ("call_start", "camera_start", "app_scene_change", …), the clock it times the stage by ("thread_cpu", "wall"), how the OS schedules the thread it runs on ("workgroup", "time_constraint", "qos", "none") and {mode, active, reason?, …} (sew-call-client’s). Why the call’s stage last stepped down from DeepFilterNet3 to RNNoise (NoiseRemovalState::step_down_reason): the stage’s own rule names.
PhoneAudioMode
The microphone’s noise removal (set_noise_removal, noise_removal, the noise_removal event). The microphone’s noise removal: the setting ("off", "standard"), why what runs is less ("budget", "fault", "unavailable", "loading"; "switch_failed" for a phone’s capture), the phone’s capture ("os", "raw"), the stage’s step-down rule ("slow_block", "slow_window", "heavy", "fault", "forced", "starved"), where DeepFilterNet3 is ("idle", "warming", "running", "stepped_down", "retired"), the last busy moment reported to the audio pipeline ("call_start", "camera_start", "app_scene_change", …), the clock it times the stage by ("thread_cpu", "wall"), how the OS schedules the thread it runs on ("workgroup", "time_constraint", "qos", "none") and {mode, active, reason?, …} (sew-call-client’s). How a phone’s microphone is captured (iOS and Android with feature mobile): through the OS’s voice processing, or raw, with the OS’s processing off (NoiseRemoval::Off).
ProviderError
The host’s sign-in callback and its types, from sew-call-client.
RecordingControl
The host’s sign-in callback and its types, from sew-call-client.
RejoinReason
The host’s sign-in callback and its types, from sew-call-client.
VideoCodecPreference
The per-device video codec setting and why “Prefer H.264” can’t apply (sew-call-client’s). Which codec this device’s camera and screen publish in. A per-device user setting; the default is VideoCodecPreference::Automatic.

Constants§

COMMANDS
The eight commands, as the webview invokes them after plugin:sew-voice|.
CONSENT_UNSUPPORTED
The host’s sign-in callback and its types, from sew-call-client.
DEVICE_KEY_COMMANDS
The device-key commands (0.4.1), outside sew-voice:default: a window gets them only with an explicit permission (sew-voice:allow-forget-server, sew-voice:allow-known-device-keys, or the set sew-voice:device-keys). forget_server {install_id} deletes the devices of one Sew install (a sign-out) and answers the removed keys; known_device_keys lists the keys the plugin’s device store holds.
NOISE_COMMANDS
The noise removal commands, outside sew-voice:default: a window gets them with the set sew-voice:noise-removal or each one’s own sew-voice:allow-<command>. set_noise_removal {mode} ("off", "standard") sets the microphone’s noise removal, before or during a call, and answers {mode, active, reason?}; "strong" answers noise_mode_unavailable in this version. noise_removal answers the same shape; the noise_removal event carries each change. The engine keeps the setting until the process ends; persisting it is the host’s job.
PLUGIN_NAME
The plugin’s name: commands are plugin:sew-voice|<command>, permissions sew-voice:*.
RECORDING_COMMANDS
The recording commands (Sew 0.9.0), outside sew-voice:default: a window gets them with the set sew-voice:recording or each one’s own sew-voice:allow-<command>. start_recording (Record) and stop_recording (Stop) are the person’s own acts, sent by the host’s provider with the person’s session (JoinProvider::recording); Sew decides who may.
RECORDING_RIGHTS_COMMANDS
The recording rights’ command (plugin 0.6.1), in the sew-voice:recording set after RECORDING_COMMANDS (its own permission sew-voice:allow-set-recording-rights): set_recording_rights {room, my_perms, dm?, recording_enabled?, recording_dm_enabled?, record_capped?, agent?} (RecordingRights) gives the plugin what it needs for RecordingControls. It answers null, or invalid_args when my_perms is not a decimal number.
RECORDING_UNSUPPORTED
The host’s sign-in callback and its types, from sew-call-client.
VIDEO_CODEC_COMMANDS
The video codec setting’s command, in the sew-voice:video set after VIDEO_COMMANDS (its own permission sew-voice:allow-set-video-codec-preference): set_video_codec_preference {preference} ("automatic", "prefer_h264", "prefer_vp8") sets this device’s video codec preference and answers video_caps.codec_preference ({setting, effective, reason}). The engine keeps it until the process ends; persisting it is the host’s job.
VIDEO_COMMANDS
The video commands, outside sew-voice:default: a window gets them with the set sew-voice:video (all thirteen, and VIDEO_CODEC_COMMANDS) or each one’s own sew-voice:allow-<command>. With an engine without video, video_caps answers “nothing” and the others reject video_unsupported.

Traits§

DeviceKeyStore
The host’s own device key store (Builder::device_key_store), re-exported, with the record’s public half (sew-e2ee’s StoredDevice), so a host needs no sew-e2ee dependency. A host’s own store for the device’s private key and public record, e.g. K2’s keyring or vault. Give it to the engine with StoreChoice::Host (ClientConfig::with_device_key_store, the Tauri plugin’s Builder::device_key_store).
FrameChannel
Where one sink’s messages go: the webview’s Tauri raw Channel in the app, a recorder in tests. send must not block; it answers false once the channel is gone (the sink is then closed).
HardwareDeviceKey
The hardware device key (Builder::hardware_device_key: Secure Enclave, StrongBox/TEE) and the enrolment platform (Builder::device_platform), re-exported. A non-exportable P-256 key in the Secure Enclave (iOS) or StrongBox/TEE (Android). Sew sees only public keys and signatures.
JoinProvider
The host’s sign-in callback and its types, from sew-call-client.

Type Aliases§

BoxFuture
The host’s sign-in callback and its types, from sew-call-client.