rhasspy / wyoming

Peer-to-peer protocol for voice assistants
MIT License
103 stars 17 forks source link

add start_stage to run-satellite #10

Closed chatziko closed 3 months ago

chatziko commented 5 months ago

This PR adds an optional start_stage param to run-satellite.

The main use is in a "push to talk" feature I am preparing that allows a satellite to be "activated" from the server side. In this case the server will send run-satellite with start_stage = asr to indicate that it wants the satellite to start a pipeline going directly to ASR (skipping vad / wake word / etc). More details will be provided in the corresponding PR in home-assistant/core.

But there could be other uses. run-satellite indicates that the server is ready to run pipelines, it makes sense to be able to specify specific properties of these pipelines.

The param is optional, if None the satellite chooses the starting stage, as it happens now.

synesthesiam commented 3 months ago

Looks good, thank you!