Skip to content

Commit

Permalink
refactor: add default value for keep_speaker_busy parameter to tts la…
Browse files Browse the repository at this point in the history
…unchfiles (#316)
  • Loading branch information
maciejmajek authored Nov 25, 2024
1 parent 2f27648 commit 8ce14f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/rai_tts/launch/elevenlabs.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def generate_launch_description():
],
name="ffplay_sine_wave",
output="screen",
condition=IfCondition(LaunchConfiguration("keep_speaker_busy")),
condition=IfCondition(
LaunchConfiguration("keep_speaker_busy", default=False)
),
),
]

Expand Down
4 changes: 3 additions & 1 deletion src/rai_tts/launch/opentts.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ def generate_launch_description():
],
name="ffplay_sine_wave",
output="screen",
condition=IfCondition(LaunchConfiguration("keep_speaker_busy")),
condition=IfCondition(
LaunchConfiguration("keep_speaker_busy", default=False)
),
),
]
)

0 comments on commit 8ce14f3

Please sign in to comment.