Skip to content

Monitor Line In and send stream start, if enabled #133

Closed

Description

@chrisuthe

For source, we should monitor input, then send stream start when input is detected for 100ms.

Activity

  1. kahrendt commented on Oct 12, 2026

    @kahrendt
    Contributor

    Thanks for the original source role PRs that were the basis for what's actually now in sendspin-cpp!

    Per the spec's roles/source/v1.md “Default streaming behavior”, only the server starts a source stream. The client’s part is line sensing: report signal in client/state, and the server may use it to send start. The current sendspin-cpp source role implementation (which was merged after this issue, to be fair) supports this via SourceRoleConfig::line_sense + SourceRole::set_signal(). Detection should stay in the app (on ESPHome, e.g. sound_level → threshold with delayed_on: 100ms → set_signal()). Sendspin/sendspin-cpp#201 · Add an RMS line-sense option to… documents this and adds a reference meter to examples/source_client.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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