Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

example on how to record output device to wav #896

Closed
louis030195 opened this issue Jul 8, 2024 · 2 comments
Closed

example on how to record output device to wav #896

louis030195 opened this issue Jul 8, 2024 · 2 comments

Comments

@louis030195
Copy link

louis030195 commented Jul 8, 2024

hi, I'm trying to record output device and do speech to text, it works with input device but not for output device with similar code

do you have examples of using output device for example to record wav?

my code is here just in case: https://github.com/louis030195/screen-pipe/blob/17c3a5b34d017ba45dc51da64aa60ccdd396151a/screenpipe-audio/src/core.rs#L83

my impl do like this:


if its an input device

use default host

use input config

use input stream


if its an output device

use default host

use output config

use output stream

right? or misunderstand something

@louis030195
Copy link
Author

not sure how this relate to #894

@louis030195
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant