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 agent = AgentFlow();
function sayHello(df) {
df.say("Hello!");
}
agent.listenFor("hello", sayHello);
await agent.load();
agent.startListening();
TextToSpeech tts = new TextToSpeech(context).cloning();
tts.load();
tts.cloneFrom("some-speech.wav");
tts.say("Hello world!");