docs.rs failed to build tauri-plugin-audio-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
tauri-plugin-audio
Desktop-only Tauri plugin for listing audio capture devices and controlling one active CPAL/PipeWire capture stream.
The command interface is exposed through plugin:audio|get_devices, plugin:audio|create_stream, and plugin:audio|stop_stream.
Install
Register the Rust plugin in your Tauri builder:
default
.plugin
.run?;
JavaScript API
The npm package entrypoint is generated from the Rust command and Specta type metadata:
pnpm --dir tauri-plugin-audio generaterefreshesguest-js/index.ts.pnpm --dir tauri-plugin-audio buildregeneratesguest-js/index.tsand compilesdist-js/index.jsplusdist-js/index.d.ts.
Use it from another Tauri app frontend as:
import { commands, type StreamEvent } from "tauri-plugin-audio-api";
const devices = await commands.getDevices();