coffeehouse
Version:
Official CoffeeHouse API Wrapper for Javascript
27 lines (19 loc) • 662 B
Markdown
This is a very simple API Wrapper for the CoffeeHouse API. Using
This Library only supports the V1IVA2.0 CoffeeHouse API which is based from
this [Documentation](https://gist.github.com/Netkas/e8977b26f482ca40911a949df7dd286f)
```sh
npm i coffeehouse
```
```js
const { LydiaAI } = require("./index");
async function speak(apikey, text) {
const api = new LydiaAI(apikey);
const session = await api.createSession();
console.log("Session ID: " + session.id);
session.think_thought(text).then((data) => console.log(data.output));
}
speak("Your API Key", "Merhaba Dünya");
```