Skip to repository content

tenant.openagents/omega

No repository description is available.

OpenAgents Git authority 2026-07-28T03:37:36.667Z Public web read
NIP-34 coordinate30617:7649603503856e5148d571eac2766b288a8ff1e9e35d380337a1d2b0015b4f92:omega
MaintainersHidden in public view
References2 branches · 1 tag
Read-only clonegit clone https://openagents.com/git/tenant.openagents/omega.git
Browse files

audio.rs

47 lines · 1.3 KB · rust
1use std::time::Duration;
2
3use rodio::{ChannelCount, SampleRate, nz};
4
5pub const REPLAY_DURATION: Duration = Duration::from_secs(30);
6pub const SAMPLE_RATE: SampleRate = nz!(48000);
7pub const CHANNEL_COUNT: ChannelCount = nz!(2);
8
9mod audio_settings;
10pub use audio_settings::AudioSettings;
11
12mod audio_pipeline;
13pub use audio_pipeline::Audio;
14pub use audio_pipeline::{AudioDeviceInfo, AvailableAudioDevices};
15pub use audio_pipeline::{ensure_devices_initialized, resolve_device};
16// TODO(audio) replace with input test functionality in the audio crate
17pub use audio_pipeline::RodioExt;
18pub use audio_pipeline::init;
19pub use audio_pipeline::{open_input_stream, open_test_output};
20
21#[derive(Debug, Copy, Clone, Eq, Hash, PartialEq)]
22pub enum Sound {
23    Joined,
24    GuestJoined,
25    Leave,
26    Mute,
27    Unmute,
28    StartScreenshare,
29    StopScreenshare,
30    AgentDone,
31}
32
33impl Sound {
34    fn file(&self) -> &'static str {
35        match self {
36            Self::Joined => "joined_call",
37            Self::GuestJoined => "guest_joined_call",
38            Self::Leave => "leave_call",
39            Self::Mute => "mute",
40            Self::Unmute => "unmute",
41            Self::StartScreenshare => "start_screenshare",
42            Self::StopScreenshare => "stop_screenshare",
43            Self::AgentDone => "agent_done",
44        }
45    }
46}
47
Served at tenant.openagents/omega Member data and write actions are omitted.