Skip to content

Commit

Permalink
empty config_filename as model_filename json
Browse files Browse the repository at this point in the history
  • Loading branch information
mgonzs13 committed Jan 7, 2025
1 parent ebd7051 commit a4c7c14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ ros2 action send_goal /say audio_common_msgs/action/TTS "{'text': 'Hello World f
### Spanish Example

```shell
ros2 launch piper_bringup piper.launch.py model_filename:="es/es_ES/carlfm/x_low/es_ES-carlfm-x_low.onnx" config_filename:="es/es_ES/carlfm/x_low/es_ES-carlfm-x_low.onnx.json"
ros2 launch piper_bringup piper.launch.py model_filename:="es/es_ES/carlfm/x_low/es_ES-carlfm-x_low.onnx"
```

```shell
Expand Down
4 changes: 3 additions & 1 deletion piper_bringup/launch/piper.launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ def run_piper(context: LaunchContext, repo, model, config, model_path, config_pa
)

if not config_path:
if not config:
config = f"{model}.json"
config_path = hf_hub_download(
repo_id=repo, filename=config, force_download=False
)
Expand Down Expand Up @@ -93,7 +95,7 @@ def run_piper(context: LaunchContext, repo, model, config, model_path, config_pa
config_filename = LaunchConfiguration("config_filename")
config_filename_cmd = DeclareLaunchArgument(
"config_filename",
default_value="en/en_US/lessac/low/en_US-lessac-low.onnx.json",
default_value="",
description="Hugging Face config filename for piper",
)

Expand Down

0 comments on commit a4c7c14

Please sign in to comment.