Skip to content

Add CLI option to select TTS output target (robot or pc)#299

Open
hello-jkoubi wants to merge 1 commit into
mainfrom
feature/tts-output-target
Open

Add CLI option to select TTS output target (robot or pc)#299
hello-jkoubi wants to merge 1 commit into
mainfrom
feature/tts-output-target

Conversation

@hello-jkoubi

Copy link
Copy Markdown
Contributor

Description

This PR introduces a new CLI option --tts_target to control where text-to-speech (TTS) audio is played when running stretch.app.ai_pickup.

Previously, all speech output was routed to the robot’s onboard speaker via the ROS2 bridge. This change adds flexibility by allowing users to instead play TTS audio locally on the workstation (e.g., GPU machine or connected speakers).

Usage

# Default (robot speaker)
python -m stretch.app.ai_pickup --use_llm

# Workstation speaker
python -m stretch.app.ai_pickup --use_llm --tts_target pc

@hello-robot-shehab hello-robot-shehab left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good Jason! Not sure how to to let it through though, the GitHub Actions pipeline is a bit broken atm, will look into it soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants