Add Readme example to example_test.go (#298)

* Add speech to text example in docs

* Add caption formats for audio transcription

* Add caption example to README

* Address sanity check errors

* Add tests for decodeResponse

* Use typechecker for audio response format

* Decoding response refactors

* Migrated examples to example_test.go

* Add some executable examples

* Update error docs

* Avoid linting example files which break conventions

* Restore README examples

* Enable linting for example_test
This commit is contained in:
Hoani Bryson
2023-05-09 04:16:01 +12:00
committed by GitHub
parent 39abb5a4be
commit 5f4ff3ebfa
8 changed files with 490 additions and 1 deletions

View File

@@ -485,4 +485,5 @@ if errors.As(err, &e) {
```
</details>
See the `examples/` folder for more.