Skip to content

Python program simulating a conversational Sorting Hat that sorts you (ref. Harry Potter series) based on quiz type questions and can also be connected to an arduino powered hat

Notifications You must be signed in to change notification settings

soumyagk/Sorting_Hat_noml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sorting Hat

Talk to the Sorting Hat, answer his questions and get sorted into one of four Hogwarts houses - Gryffindor, Hufflepuff, Ravenclaw & Slytherin.

This project is an attempt to bring alive the character "Sorting Hat" from the Harry Potter series as a conversational agent. As part of the Georgia Tech Technical Arts Practicum and with guidance from Dr. Brian Magerko, Nicholas Davis and in collaboration with ADAM Lab (School of Interactive Computing), this project was demo-ed at the Eyedrum Gallery, Atlanta. Implemented using python 2.7 and arduino to power the animatronic hat, a short video explaining this project can be found at:

Real Life Harry Potter Sorting Hat!

Dependencies/Modules

  • Python 2.7 and modules:
  • pygame
  • serial
  • speech_recognition

Instructions to run

To start the program, run the command given below, in a Linux terminal (arguments are optional): python hat.py -p <arduino_port_num> -m <mic_index_num> -d <debug_flag>

eg. python hat.py -p 0 -m 0 -d True

arduino_port_num - this is the port number to which arduino controlling the hat movements is connected. Not providing it runs only the conversational agent.

mic_index_num - this argument is the index of the preferred microphone(mic). If not provided, program selects the default system mic.

debug_flag - set this as True if you want to turn on the debug information on console

Run "mics.py" to get a list of available microphones and their indices.

About

Python program simulating a conversational Sorting Hat that sorts you (ref. Harry Potter series) based on quiz type questions and can also be connected to an arduino powered hat

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages