Skip to content

PR Summary: Add Model and Language Selectors for Nova Sonic#12

Open
alfonaws wants to merge 5 commits intoaws-samples:mainfrom
alfonaws:features/improvement-novasonic2
Open

PR Summary: Add Model and Language Selectors for Nova Sonic#12
alfonaws wants to merge 5 commits intoaws-samples:mainfrom
alfonaws:features/improvement-novasonic2

Conversation

@alfonaws
Copy link
Copy Markdown

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@alfonaws
Copy link
Copy Markdown
Author

Changes
Frontend (frontend/app/page.tsx)

Added model selector dropdown to choose between Nova Sonic (amazon.nova-sonic-v1:0) and Nova 2 Sonic (amazon.nova-2-sonic-v1:0)
Added language selector with support for 7 languages: English, Spanish, German, French, Italian, Portuguese, and Hindi
Both selectors are disabled when connected to prevent mid-session changes
Model and language are passed via WebSocket query parameters
Frontend (frontend/components/ui/select.tsx)

Created new Select component using Radix UI for the dropdowns
Backend (backend/main.py)

Updated WebSocket endpoint to accept model and language query parameters
Pass parameters to SimpleNovaSonic client on connection
Backend (backend/nova_sonic_simple.py)

Added language parameter to SimpleNovaSonic constructor
Updated system prompt to instruct the model to respond in the selected language
Dependencies

Added @radix-ui/react-select package
Housekeeping

Updated .gitignore with comprehensive patterns for Next.js, Python, and IDE files

@alfonaws alfonaws changed the title Features/improvement novasonic2 PR Summary: Add Model and Language Selectors for Nova Sonic Jan 29, 2026
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.

1 participant