docs/design/api-principles.md
I want the language bindings to offer a fluent and opinionated API primarily focused on building voice interfaces, with enough flexibility to also build applications for related purposes like meet transcription and note-taking.
These are in pseudo-code and may not compile as-is, but are intended to give concrete goals for the kind of results I want to see.
let dialogFlow = DialogFlow();
function sayHello(df) {
df.say("Hello!");
}
dialogFlow.listenFor("hello", sayHello);
await dialogFlow.load();
dialogFlow.startListening();
TextToSpeech tts = new TextToSpeechCloner();
tts.load();
tts.cloneFrom("some-speech.wav");
tts.say("Hello world!");