Skip to content

example on how to record output device to wav #896

Closed
@louis030195

Description

@louis030195

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions