sahana-dev/FluencyFlow
1
title: FluencyFlow emoji: π£οΈ colorFrom: blue colorTo: indigo sdk: docker app_port: 7860 tags:
- openenv
- healthcare
- rl-environment ---
π£οΈ FluencyFlow: The Clinical Speech-AI Environment
"Traditional AI is great at logic, but mid at empathy. We're fixing that."
FluencyFlow is a real-world Reinforcement Learning environment built for the OpenEnv 1.0 spec. It simulates the complex physiological and psychological feedback loops of individuals who stutter, allowing AI agents to learn how to be high-EQ speech coaches.
π§ The Problem: The "Anxiety-Block" Loop
Most speech-to-text or coaching AIs assume a linear flow of speech. In the real world, stuttering is non-linear. Anxiety increases physical tension, which leads to speech blocks, which increases anxiety.
FluencyFlow models this "Negative Feedback Loop" using:
- Non-linear Stress Triggers: Cognitive load increases as the session progresses.
- Multimodal Observations: Agents see more than just textβthey receive tension maps, facial micro-expression data, and WPM (Words Per Minute) flux.
- Physiological Trade-offs: Taking a breath reduces anxiety but increases "fatigue," forcing the agent to find the optimal coaching balance.
π Environment Specs
Observation Space (Multimodal)
Action Space
PROMPT_BREATH: Reduces anxiety, slightly increases fatigue.GIVE_FEEDBACK: Boosts progress but may increase tension in "Hard" tasks.ADJUST_AUDIENCE: Changes audience mood to be more supportive.WAIT: Passive listening to allow fatigue recovery.
π Tasks & Difficulty
- Easy_Intro (Safe Space): Low baseline anxiety. High success rate.
- Med_Interview (The Stake): Moderate anxiety with a "Distracted" audience.
- Hard_Keynote (Main Stage): High baseline anxiety. Frequent blocks. Requires perfect timing of "Breathing" and "Waiting."
π οΈ Setup & Usage
Local Development
- Clone the repo.
- Install dependencies:
pip install -r requirements.txt - Start the server:
python main.py
Running the Baseline Agent
export API_BASE_URL="http://localhost:7860"
export MODEL_NAME="gpt-3.5-turbo"
export HF_TOKEN="your_token_here"
python inference.py