Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/casaper/kraftwerk-speak-server


https://github.com/casaper/kraftwerk-speak-server

Last synced: 17 days ago
JSON representation

Awesome Lists containing this project

README

        

# Kraftwerk Speak Server

## Setup

You need Google Application Default Credentials (ADC) to authenticate with `@google-cloud/text-to-speech`. See the [GoogleCloud documentation about this](https://cloud.google.com/text-to-speech/docs/libraries?hl=en#client-libraries-install-nodejs)

In the end you'll get a JSON file from Google to which you needd to set a environment variable `GOOGLE_APPLICATION_CREDENTIALS` with absolute path to the ADC file.

### Redis for caching

The server caches the responses with redis. To have a local instance running, you can just start one with docker-compose:

```sh
$ docker-compose up -d
```

### Install node dependencies with pnpm

```sh
$ pnpm install
$ pnpm run speak-server:serve:dev
```