Skip to content

An interface record function. #8

Description

@thorwhalen

Record sound and return waveform.
Can specify duration (by default in seconds). If duration is None (the default), the record function will run until it is interrupted. There should be an argument that specifies what exceptions to ignore, and simply exit the with block (all others will be raised). By default this argument contains (KeyboardInterrupt,).
Can specify duration unit (Literal['seconds', 'samples', 'minutes']).
Can specify an egress function -- what is returned is egress(wf). If None, lambda wf: wf will be taken. If a string, will save the waveform to a file.

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