Change to --tts-played-command

This commit is contained in:
Michael Hansen
2024-01-30 14:17:48 -06:00
parent 7a45d6b2e9
commit fbc129711d
3 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -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
+5 -4
View File
@@ -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),
+1 -1
View File
@@ -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