screenpipe icon indicating copy to clipboard operation
screenpipe copied to clipboard

automatic device switching

Open louis030195 opened this issue 1 year ago • 6 comments

[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 avatar Aug 14 '24 16:08 louis030195

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 avatar Aug 20 '24 10:08 louis030195

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 avatar Aug 20 '24 10:08 louis030195

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 avatar Sep 09 '24 16:09 louis030195

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 avatar Sep 13 '24 20:09 louis030195

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

louis030195 avatar Sep 16 '24 16:09 louis030195

instead just make option to always record the default devices

louis030195 avatar Oct 05 '24 00:10 louis030195

@m13v been thinking about this

my use case i think would be fine:

  • say i want to record macbook mic + display + headphone + iphone whenever connected (i dont think audio uses lot of storage / compute anyway)
  • it would just poll for audio device every seconds and when a device is unplug just stop transcribing it and when another one in my list comes up it would start recording it

i think this is the best balance of UX / easiest to implement (prob 1-2h for me)

(likely will be useful for use case where they record from server too)

louis030195 avatar Nov 13 '24 00:11 louis030195

sounds good, in the future we can listen to notifications instead from the OS libraries

On Tue, Nov 12, 2024 at 4:28 PM Louis Beaumont @.***> wrote:

@m13v https://github.com/m13v been thinking about this

my use case i think would be fine:

  • say i want to record macbook mic + display + headphone + iphone whenever connected
  • it would just poll for audio device every seconds and when a device is unplug just stop transcribing it and when another one in my list comes up it would start recording it

i think this is the best balance of UX / easiest to implement (prob 1-2h for me)

(likely will be useful for use case where they record from server too)

— Reply to this email directly, view it on GitHub https://github.com/mediar-ai/screenpipe/issues/170#issuecomment-2472012070, or unsubscribe https://github.com/notifications/unsubscribe-auth/AY62CDG4Q2IBJXNGZOUMTUT2AKML7AVCNFSM6AAAAABMQXUC22VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINZSGAYTEMBXGA . You are receiving this because you were mentioned.Message ID: @.***>

m13v avatar Nov 13 '24 02:11 m13v