Narrator

class Narrator(adapter: NarratorAdapter)

Provides a narrator. An adapter must be specified.

Constructors

Link copied to clipboard
constructor(adapter: NarratorAdapter)

Functions

Link copied to clipboard
infix fun asks(question: Question): Answer

Ask a question. Returns the selected answer.

Link copied to clipboard
infix fun narrates(line: String)

Narrate a line.