Skip to content

Commit

Permalink
Change to --tts-played-command
Browse files Browse the repository at this point in the history
  • Loading branch information
synesthesiam committed Jan 30, 2024
1 parent 7a45d6b commit fbc1297
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 5 additions & 4 deletions wyoming_satellite/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down Expand Up @@ -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),
Expand Down
2 changes: 1 addition & 1 deletion wyoming_satellite/satellite.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
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
Expand Down

0 comments on commit fbc1297

Please sign in to comment.