speechmatics 0.4.0

An async rust SDK for the Speechmatics API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Regenerating models from spec

## Real Time models

The real time models are generated using the `openapi-generator` tool despite the realtime api spec not being an Open API specification.

To achieve this, we generate a temporary 'fake' openapi spec with the json schemas from the realtime api spec.

Running the following script will regenerate any existing models based on the async api and put them in `/src/types/realtime`

```bash
cd scripts/generate-models
./generate-models-rt.sh
```

Once the models have been recreated, they can be commited into the repo