Speak a random string of a given array.

This function makes that a random quote of an array could be spoken randomly.

Parameters type Description
quotes Array of Strings The quotes that can be spoken when this function is triggered
Returns Object Description
quote Object Returns an object with the following structure
  • text : the spoken text 
  • index : the index of the chosen quote of the given array
 * Say something random of what is in the array when this function is triggered.
    "Good Morning",
    "Hey, good to see you again",
    "I don't have anything to say today",
    "Did you remember that I didn't say nothing yesterday? Well, today I dont want neither."