Documentation

Intention

Create a program that automatically sends a blessing to a person when it detects that that person is coughing.

Process

The project consists of two parts: a function that detects when a person is coughing and a function that performs the act of sending the blessing. The first function is done using a combination of the ml5 sound identifier and teachable machine. When it detects caughing, a bless() function will be called. The bless() function will play a sound file in the background and display a piece of text that constitutes the content of the blessing. The text will be spoken out load by an eleven labs narrator that is rendered real-time through the eleven labs API based on this code example:link. The music will gradually fade after the narration ends by lowering the volume over an interval x using setVolume(0,x).