use std::net::{SocketAddr, UdpSocket}; use crate::voice::microphone::VoiceChatMicrophone; pub mod decoder; pub mod microphone; pub fn init_microphone( addr: SocketAddr, socket: UdpSocket ) -> anyhow::Result{ let mut handle = VoiceChatMicrophone::new(addr, socket); handle.start_stream()?; Ok(handle) }