| Crates.io | tauri-plugin-mic-recorder |
| lib.rs | tauri-plugin-mic-recorder |
| version | 2.0.0 |
| created_at | 2025-03-18 06:58:58.323289+00 |
| updated_at | 2025-03-18 06:58:58.323289+00 |
| description | Supports recording audio using a microphone and saving the recorded data as a file. |
| homepage | |
| repository | https://github.com/ayangweb/tauri-plugin-mic-recorder |
| max_upload_size | |
| id | 1596257 |
| size | 236,284 |
This plugin only works on tauri v2, if you need the v1 plugin, feel free to submit a PR!
Supports recording audio using a microphone and saving the recorded data as a file.
https://github.com/user-attachments/assets/7c6f1df4-96e6-4cac-806b-098e8bccc1f7
| Platform | Supported |
|---|---|
| Windows | ✅ |
| macOS | ✅ |
| Linux | ✅ |
| Android | ✅ |
| iOS | ✅ |
cargo add tauri-plugin-mic-recorder
You can install the JavaScript Guest bindings using your preferred JavaScript package manager:
pnpm add tauri-plugin-mic-recorder-api
src-tauri/src/lib.rs
pub fn run() {
tauri::Builder::default()
+ .plugin(tauri_plugin_mic_recorder::init())
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
src-tauri/capabilities/default.json
{
...
"permissions": [
...
+ "mic-recorder:default"
]
}
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
import { startRecording } from "tauri-plugin-mic-recorder-api";
startRecording();
| Method | Description |
|---|---|
startRecording |
Starts recording audio. |
stopRecording |
Stops recording audio. |
git clone https://github.com/ayangweb/tauri-plugin-mic-recorder.git
pnpm install
pnpm build
cd examples/tauri-app
pnpm install
pnpm dev