Skip to content

Commit

Permalink
update JSON schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeronymous committed Jan 15, 2024
1 parent 6310484 commit 713626e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,12 @@ Note that you can use the `plot_word_alignment` option of the `whisper_timestamp

### Example output

Here is an example output of the `whisper_timestamped.transcribe()` function, which can be viewed by using the CLI:
The output of `whisper_timestamped.transcribe()` function is a python dictionary,
which can be viewed in JSON format using the CLI.

The JSON schema can be seen in [tests/json_schema.json](tests/json_schema.json).

Here is an example output:
```bash
whisper_timestamped AUDIO_FILE.wav --model tiny --language fr
```
Expand Down
5 changes: 5 additions & 0 deletions tests/json_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
},
"minItems": 0,
"uniqueItems": true
},
"language": {"type": "string"},
"language_probs": {
"type": "array",
"items": {"type": "number", "minimum":0, "maximum":1}
}
}
}

0 comments on commit 713626e

Please sign in to comment.