MCPcopy Create free account
hub / github.com/Recordscript/recordscript / start_record

Function start_record

src-tauri/src/main.rs:122–127  ·  view source on GitHub ↗
(selected_device: State<'_, SelectedDevice>, record_channel: State<'_, RecordChannel>)

Source from the content-addressed store, hash-verified

120
121#[tauri::command]
122async fn start_record(selected_device: State<'_, SelectedDevice>, record_channel: State<'_, RecordChannel>) -> Result<(), ()> {
123 let selected_device = selected_device.lock().unwrap().clone();
124 record_channel.send(recorder::RecordCommand::Start(selected_device)).await.unwrap();
125
126 Ok(())
127}
128
129#[tauri::command]
130fn start_transcription(window: Window, general_config: State<GeneralConfig>, smtp_config: State<SMTPConfig>, transcriber: State<Arc<Mutex<transcriber::Transcriber>>>, media_path: String) {

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.45
sendMethod · 0.45

Tested by

no test coverage detected