This ASS_chatbot.ipynb Python script facilitates a comprehensive assessment of sleep quality through interactive voice-based surveys. It integrates speech-to-text and text-to-speech functionalities, enabling users to respond to questions verbally. The focus is on analyzing responses to the Richards-Campbell Sleep Questionnaire and other sleep-related queries. version1_onetime_recording.zip is the One-Time Complete Recording Version. We choose the chatbot version for the report.
- Text-to-Speech and Speech-to-Text Conversion: Converts questions to speech and user responses back to text.
- Voice Activity Detection: Implements VAD to capture meaningful audio input.
- Response Processing and Confirmation: Analyzes and confirms user responses.
- Scoring System: Calculates scores based on the Richards-Campbell Sleep Questionnaire.
- Install dependencies:
pip install -r requirements.txt. - Set up your OpenAI API key in the script.