A newer version of the Gradio SDK is available:
6.3.0
metadata
title: CASL 2 - Speech Therapy Assessment Tool
emoji: 🎤
colorFrom: blue
colorTo: purple
sdk: gradio
sdk_version: 3.50.0
app_file: app.py
pinned: false
CASL 2 - Speech Therapy Assessment Tool
An interactive tool for speech therapists to assess and treat speech disorders. CASL 2 combines professional speech therapy assessment with AI-powered feedback, making it easier for therapists to conduct evaluations and track progress.
Features
1. Conversation Assistant
- Natural voice-based conversation with an AI assistant
- Get information about speech therapy techniques and assessment methods
- Guidance on using the assessment tools
- Full conversation history tracking
2. Articulation Assessment
- Evaluate speech sound production in various positions (initial, medial, final)
- Visual prompts with images for each target word
- Real-time recording and transcription
- Automatic analysis of pronunciation accuracy
- AI-powered feedback for each word
- Progress tracking through the assessment
3. Language Assessment
- Evaluate receptive and expressive language skills
- Test vocabulary, following directions, and sentence formation
- Record responses and get professional feedback
- Structured assessment format with varied task types
Setup
Hugging Face API Token
This app requires a Hugging Face API token to access LLM services. To set it up:
- Create an account on Hugging Face
- Generate an API token in your settings page
- When deploying to Hugging Face Spaces:
- Go to Settings > Repository Secrets
- Add a secret with the key
HF_API_TOKENand your token as the value
Local Development
To run this application locally:
- Install the required dependencies:
pip install -r requirements.txt
- Set your Hugging Face API token:
export HF_API_TOKEN="your-token-here"
- Run the application:
python app.py
- Open the URL shown in the terminal (typically http://127.0.0.1:7860)
How to Use
Conversation Mode
- Select the "Conversation Assistant" tab
- Click "Start Conversation" to begin
- Record your speech using the microphone
- The AI will respond with voice and text
- Continue the conversation naturally
Articulation Assessment
- Select the "Articulation Assessment" tab
- Click "Start Assessment" to begin
- View the current word and associated image
- Ask the patient to pronounce the displayed word
- Record their response using the microphone
- Review the AI analysis and feedback
- Use the navigation buttons to move between words
- Complete all words in the assessment
Language Assessment
- Select the "Language Assessment" tab
- Click "Start Assessment" to begin
- Present the current task to the patient
- Record their response using the microphone
- Review the AI analysis and feedback
- Use the navigation buttons to move between tasks
- Complete all tasks in the assessment
Technical Details
This app combines several technologies:
- Gradio's UI components and audio capabilities
- Google's Speech Recognition API for transcription
- Hugging Face's LLM API (Llama-2-7b-chat-hf model)
- gTTS (Google Text-to-Speech) for voice synthesis
- Simple speech analysis for assessment purposes
- Modern web interface with responsive design
For Therapists
CASL 2 is designed to supplement professional speech therapy assessment, not replace it. The tool provides an engaging interface for patient interaction and helps therapists with:
- Recording and documenting patient responses
- Initial screening of speech patterns
- Tracking progress over time
- Engaging patients with interactive exercises
- Providing consistent, supportive feedback
Always combine the tool's analysis with your professional judgment.