diff --git a/README.md b/README.md index 6879eee..3c4ba64 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ Satellites can respond to events from the server by running commands: * `--synthesize-command` - text-to-speech text is returned (text on stdin) * `--tts-start-command` - text-to-speech response started streaming from server (no stdin) * `--tts-stop-command` - text-to-speech response stopped streaming from server. Can still being played by snd service (no stdin) -* `--played-command` - text-to-speech audio finished playing (no stdin) +* `--tts-played-command` - text-to-speech audio finished playing (no stdin) * `--error-command` - an error was sent from the server (text on stdin) * `--connected-command` - satellite connected to server * `--disconnected-command` - satellite disconnected from server diff --git a/wyoming_satellite/__main__.py b/wyoming_satellite/__main__.py index 8e775df..b57ff76 100644 --- a/wyoming_satellite/__main__.py +++ b/wyoming_satellite/__main__.py @@ -158,9 +158,6 @@ async def main() -> None: parser.add_argument( "--detection-command", help="Command to run when wake word is detected" ) - parser.add_argument( - "--played-command", help="Command to run when audio stopped playing" - ) parser.add_argument( "--transcript-command", help="Command to run when speech to text transcript is returned", @@ -185,6 +182,10 @@ async def main() -> None: "--tts-stop-command", help="Command to run when text to speech response stops", ) + parser.add_argument( + "--tts-played-command", + help="Command to run when text-to-speech audio stopped playing", + ) parser.add_argument( "--streaming-start-command", help="Command to run when audio streaming starts", @@ -337,7 +338,7 @@ async def main() -> None: streaming_stop=split_command(args.streaming_stop_command), detect=split_command(args.detect_command), detection=split_command(args.detection_command), - played=split_command(args.played_command), + played=split_command(args.tts_played_command), transcript=split_command(args.transcript_command), stt_start=split_command(args.stt_start_command), stt_stop=split_command(args.stt_stop_command), diff --git a/wyoming_satellite/satellite.py b/wyoming_satellite/satellite.py index b2e2a2b..31aba25 100644 --- a/wyoming_satellite/satellite.py +++ b/wyoming_satellite/satellite.py @@ -25,7 +25,7 @@ from wyoming.satellite import ( StreamingStarted, StreamingStopped, ) -from wyoming.snd import SndProcessAsyncClient, Played +from wyoming.snd import Played, SndProcessAsyncClient from wyoming.tts import Synthesize from wyoming.vad import VoiceStarted, VoiceStopped from wyoming.wake import Detect, Detection, WakeProcessAsyncClient