mediar-ai / screenpipe

24/7 local AI screen & mic recording. Build AI apps that have the full context. Works with Ollama. Alternative to Rewind.ai. Open. Secure. You own your data. Rust.
https://screenpi.pe
MIT License
6.71k stars 356 forks source link

automatic device switching #170

Open louis030195 opened 1 month ago

louis030195 commented 1 month ago

[2024-08-14T16:41:54Z ERROR screenpipe_audio::core] An error occurred on the audio stream: The requested device is no longer available. For example, it has been unplugged.

e.g. i turned off my airpods

kinda tricky, what if someone does want to use specific devices?

louis030195 commented 1 month ago

seems like macos audio output audio becomes "disconnected" when closing the lid also:

[2024-08-20T09:26:04Z INFO  screenpipe_server::core] Finished record_and_transcribe for device Display 1 (output) (iteration 68)
[2024-08-20T09:26:04Z ERROR screenpipe_server::core] Error in record_and_transcribe for device Display 1 (output) (iteration 68): Audio device not found, stopping thread
[2024-08-20T09:26:04Z INFO  screenpipe_server::core] Exiting audio capture thread for device: Display 1 (output)

we should something so that when lip is up again it restart recording

louis030195 commented 1 month ago

also learning:

i was recording iphone mic and that prevented me from listening to music (but i tihnk we cant do much here, its the native thing of apple) should prob implement an app at some point for more control

louis030195 commented 3 weeks ago

should also work with monitor i guess?

say you work somewhere w second screen, unplug and go somewhere else, then it should automatically have swiched? (atm would crash)

louis030195 commented 3 weeks ago

not sure how the UX would be

maybe user say

"always record these devices: x y z user can select even if disconnected now" and should only record when connected

louis030195 commented 2 weeks ago

It would be great if you could dynamically switch to whatever is the active sound source

louis030195 commented 16 hours ago

instead just make option to always record the default devices