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
+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