No description
  • JavaScript 53.3%
  • Python 28.4%
  • CSS 14.6%
  • HTML 3.4%
  • Shell 0.2%
  • Other 0.1%
Find a file
2026-03-21 22:15:26 +01:00
bots minor fix" 2026-01-23 16:25:45 +01:00
handlers added authentication support (demo grade) 2026-03-21 22:15:26 +01:00
speech_service minor fix" 2026-01-23 16:25:45 +01:00
static minor fix" 2026-01-23 16:25:45 +01:00
templates added authentication support (demo grade) 2026-03-21 22:15:26 +01:00
.dockerignore added authentication support (demo grade) 2026-03-21 22:15:26 +01:00
.gitignore updated .gitignore 2025-12-18 11:08:55 +01:00
app_refactored.py added authentication support (demo grade) 2026-03-21 22:15:26 +01:00
Dockerfile added authentication support (demo grade) 2026-03-21 22:15:26 +01:00
entrypoint.sh added authentication support (demo grade) 2026-03-21 22:15:26 +01:00
README.md added authentication support (demo grade) 2026-03-21 22:15:26 +01:00
requirements.txt typo fix 2026-01-20 12:26:01 +01:00
template.env added authentication support (demo grade) 2026-03-21 22:15:26 +01:00
test_output.txt minor fix" 2026-01-23 16:25:45 +01:00
test_rasa_domain.py responses overlay added 2026-01-20 13:12:23 +01:00

Rasa Voice Frontend

This project runs a Flask + Socket.IO voice frontend using Azure Speech services and a Rasa backend.

Run with Docker

1. Build the image

docker build -t rasa-voice-frontend .

2. Create an env file from template

cp template.env .env

Update .env with real values (especially Azure credentials and demo login credentials).

3. Start the container

docker run --rm -p 5001:5001 --env-file .env rasa-voice-frontend

The app will be available at:

Required Environment Variables

The container entrypoint enforces these at startup. If they are missing, empty, or left as template placeholders, the container exits.

  • AZURE_SPEECH_KEY (required, secret)
  • AZURE_SERVICE_REGION (required)
  • APP_USERNAME (required)
  • APP_PASSWORD (required, secret)

The app requires login before loading the main UI. After startup, open http://localhost:5001, then sign in with APP_USERNAME and APP_PASSWORD.

Optional Environment Variables

  • APP_SECRET_KEY (recommended; used for Flask session signing)
  • RASA_URL (default: http://localhost:5005)
  • RASA_TIMEOUT (default: 10)
  • RASA_TOKEN (optional, secret; set only if your Rasa server requires auth)

Example .env

AZURE_SPEECH_KEY=your_real_azure_speech_key
AZURE_SERVICE_REGION=eastus
APP_USERNAME=demo_user
APP_PASSWORD=your_demo_password
APP_SECRET_KEY=replace_with_a_long_random_secret
RASA_URL=http://host.docker.internal:5005
RASA_TIMEOUT=10
RASA_TOKEN=

Notes on Secrets

  • Do not hardcode secrets in Dockerfile.
  • Pass secrets at runtime via --env-file or -e.
  • Do not commit real secret values to git.