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 thecall_detailscommand’s answer; a ring is set and cleared with theringandring_endedcommands (orcrate::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): aFrameDecoderover any kessel-video backend’sVideoDecoder. Withvideo, the real engine opens them on kessel-video’s system backend (VP8 through the pure-Rustvp8-decodereverywhere, 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
VoiceListenerthat observes the call whether or not a webview exists or is awake (a CallKit or Telecom shim), andVoiceControl, 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:AVSampleBufferDisplayLayerandAVPictureInPictureControlleron iOS), not over the webview bridge. - real
- The real engine (feature
audio-core;audioadds the system devices):CallClientEngine, the plugin’sVoiceEngineoversew-call-client’sCallClient, and its calls, aCallHandleoverCallwith kessel-audio throughAudioBridge. - service
- The plugin’s core logic, without Tauri: the eight commands, the state machine and the event
pumps.
plugin.rswires 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§
- Answer
Error - The host’s sign-in callback and its types, from
sew-call-client. - Builder
- Builds the plugin:
Builder::new(provider).build(). - Call
Credential - The host’s sign-in callback and its types, from
sew-call-client. - Consent
Answer - The host’s sign-in callback and its types, from
sew-call-client. - Consent
Choice - The consent notice in the Sew App kit’s words (
ConsentPrompt::title_en,text_en,choices_en), fromsew-proto. One answer the notice offers. - Consent
Prompt - Sew’s consent modal data (
recording’sconsent_prompt), fromsew-protounchanged. Sew’s recording types the engine’s recording API carries (fromsew-proto). The consent modal’s data. Every slot is data; templates supply the sentences.notice_versionis a stable hash of every other slot; the answer must echo it. - Consent
Required - The host’s sign-in callback and its types, from
sew-call-client. - Device
KeyId - The host’s own device key store (
Builder::device_key_store), re-exported, with the record’s public half (sew-e2ee’sStoredDevice), so a host needs no sew-e2ee dependency. Which device aDeviceKeyStoreentry belongs to: one install of Sew, one member, one login lineage (the call credential’sdevice_scope; a new sign-in is a new scope and enrols a new device). - Device
KeyRecord - The host’s own device key store (
Builder::device_key_store), re-exported, with the record’s public half (sew-e2ee’sStoredDevice), so a host needs no sew-e2ee dependency. What aDeviceKeyStorekeeps 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, forCaptureDspSchedMode::OwnWorkgroup, each block’s deadline. The pipeline reads it once, as a call’s audio starts; a change reaches the next call. - Join
Answer - The host’s sign-in callback and its types, from
sew-call-client. - Join
Request - The host’s sign-in callback and its types, from
sew-call-client. - Memory
Device KeyStore - The host’s own device key store (
Builder::device_key_store), re-exported, with the record’s public half (sew-e2ee’sStoredDevice), so a host needs no sew-e2ee dependency. An in-memoryDeviceKeyStore(tests, and an example of the trait; never the engine’s default). - Noise
Removal State - The microphone’s noise removal (
set_noise_removal,noise_removal, thenoise_removalevent). 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?}. - Recording
Request - The host’s sign-in callback and its types, from
sew-call-client. - Server
Controls - The person’s Record and Stop as a Sew server that computes them sent them
(
CallEvent::RecordingControls,CallHandle::recording_controls), fromsew-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 largerrevis the newer. Sew still decides each Record and Stop; show its refusal if one comes. - Stored
Device - The host’s own device key store (
Builder::device_key_store), re-exported, with the record’s public half (sew-e2ee’sStoredDevice), so a host needs no sew-e2ee dependency. The device’s public record in aDeviceKeyRecord(sew-e2ee’s), re-exported so a host’sDeviceKeyStoreneeds no sew-e2ee dependency of its own. The device’s enrolled state (public data). - Tauri
Sink - Emits the plugin’s events to every window as
sew-voice://<name>.
Enums§
- Capture
DspScheduling - The microphone’s noise removal (
set_noise_removal,noise_removal, thenoise_removalevent). 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. - Capture
Stage Clock - The microphone’s noise removal (
set_noise_removal,noise_removal, thenoise_removalevent). 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). - Capture
Transient - The microphone’s noise removal (
set_noise_removal,noise_removal, thenoise_removalevent). 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). - Codec
Preference Reason - 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.
- Consent
Ask - The consent notice in the Sew App kit’s words (
ConsentPrompt::title_en,text_en,choices_en), fromsew-proto. Where the person meets the notice. - Device
Error - The host’s own device key store (
Builder::device_key_store), re-exported, with the record’s public half (sew-e2ee’sStoredDevice), so a host needs no sew-e2ee dependency. Why the device store failed. - Device
Platform - 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’sDeviceEnrollRequest.platform). The device’s platform (DeviceCertTbs.platform1–5). - DspSched
Error - 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). WhyCaptureDspSched::validate(andNoiseRemovalControl::set_dsp_sched) refused. - DspSched
Fallback - 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 inCaptureDspSchedMode::Workgroupand not in the mode asked for (NoiseRemovalState::capture_stage_dsp_sched_fallback). - DspSched
Mode - 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. - Noise
Dfn3 State - The microphone’s noise removal (
set_noise_removal,noise_removal, thenoise_removalevent). 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). - Noise
Model - The microphone’s noise removal (
set_noise_removal,noise_removal, thenoise_removalevent). 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 whenNoiseRemoval::Standardruns. - Noise
Probe Phase - 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. - Noise
Removal - The microphone’s noise removal (
set_noise_removal,noise_removal, thenoise_removalevent). 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 isNoiseRemoval::Standard. - Noise
Removal Reason - The microphone’s noise removal (
set_noise_removal,noise_removal, thenoise_removalevent). 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). - Noise
Step Down Reason - The microphone’s noise removal (
set_noise_removal,noise_removal, thenoise_removalevent). 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. - Phone
Audio Mode - The microphone’s noise removal (
set_noise_removal,noise_removal, thenoise_removalevent). 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 featuremobile): through the OS’s voice processing, or raw, with the OS’s processing off (NoiseRemoval::Off). - Provider
Error - The host’s sign-in callback and its types, from
sew-call-client. - Recording
Control - The host’s sign-in callback and its types, from
sew-call-client. - Rejoin
Reason - The host’s sign-in callback and its types, from
sew-call-client. - Video
Codec Preference - 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 setsew-voice:device-keys).forget_server {install_id}deletes the devices of one Sew install (a sign-out) and answers the removed keys;known_device_keyslists the keys the plugin’s device store holds. - NOISE_
COMMANDS - The noise removal commands, outside
sew-voice:default: a window gets them with the setsew-voice:noise-removalor each one’s ownsew-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"answersnoise_mode_unavailablein this version.noise_removalanswers the same shape; thenoise_removalevent 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>, permissionssew-voice:*. - RECORDING_
COMMANDS - The recording commands (Sew 0.9.0), outside
sew-voice:default: a window gets them with the setsew-voice:recordingor each one’s ownsew-voice:allow-<command>.start_recording(Record) andstop_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:recordingset afterRECORDING_COMMANDS(its own permissionsew-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 forRecordingControls. It answersnull, orinvalid_argswhenmy_permsis 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:videoset afterVIDEO_COMMANDS(its own permissionsew-voice:allow-set-video-codec-preference):set_video_codec_preference {preference}("automatic","prefer_h264","prefer_vp8") sets this device’s video codec preference and answersvideo_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 setsew-voice:video(all thirteen, andVIDEO_CODEC_COMMANDS) or each one’s ownsew-voice:allow-<command>. With an engine without video,video_capsanswers “nothing” and the others rejectvideo_unsupported.
Traits§
- Device
KeyStore - The host’s own device key store (
Builder::device_key_store), re-exported, with the record’s public half (sew-e2ee’sStoredDevice), 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 withStoreChoice::Host(ClientConfig::with_device_key_store, the Tauri plugin’sBuilder::device_key_store). - Frame
Channel - Where one sink’s messages go: the webview’s Tauri raw
Channelin the app, a recorder in tests.sendmust not block; it answers false once the channel is gone (the sink is then closed). - Hardware
Device Key - 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. - Join
Provider - 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.