Spaces:
Runtime error
Runtime error
A newer version of the Gradio SDK is available:
6.4.0
metadata
title: CASL 2 - Speech Therapy Assessment Tool
emoji: 🎤
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 5.23.3
app_file: app_main.py
pinned: false
CASL Voice Bot
A speech pathology assistant using OpenAI's voice API for assessment based on the CASL-2 framework. This application helps speech-language pathologists (SLPs) assess students' speaking abilities.
Features
- Voice-to-voice interaction with AI speech pathologist
- CASL-2 framework assessment
- Real-time assessment tracking
- Session recording and saving
- Custom note-taking for SLPs
- Gradio web interface for easy sharing and use in school settings
CASL-2 Assessment Areas
The AI speech pathologist assesses students in these key areas:
- Lexical/Semantic Skills: Vocabulary knowledge, word meanings, and contextual word use
- Syntactic Skills: Grammar and sentence structure understanding
- Supralinguistic Skills: Higher-level language skills beyond literal meanings
- Pragmatic Skills: Language use in social contexts (less emphasis for younger students)
Setup Instructions
Prerequisites
- Python 3.8+
- OpenAI API key with access to GPT-4o and TTS models
Installation
Clone the repository:
git clone https://github.com/yourusername/CASLVoiceBot.git cd CASLVoiceBotCreate a virtual environment and install dependencies:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate pip install -r requirements.txtSet up environment variables:
cp .env.example .envThen edit
.envto add your OpenAI API key.
Running the Application
Start the application:
python app_ui.pyAccess the application through the URL provided in the terminal.
Usage
- Optionally enter a Student ID to track sessions
- Select your preferred AI voice
- Click "Start Session" to begin a speech assessment
- Wait for the AI to introduce itself, then speak when prompted
- View real-time assessment in the interface
- SLPs can add notes throughout the session
- Save the session when finished
- Click "Stop Session" to end
Deployment on Hugging Face Spaces
- Create a new Space on Hugging Face with the Gradio SDK
- Upload the repository contents to the Space
- Add your OPENAI_API_KEY as a secret in the Space settings
- The application will automatically run using app_ui.py