Skip to content

Commit

Permalink
updated transcription and configuration docs (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-devv committed Feb 22, 2024
1 parent 9bca3e4 commit 591bdac
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/src/app/api-reference/audio/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@ Discover how to convert audio to text or text to audio. OpenAI compliant. {{ cla
</Property>
</Properties>

### Optional attributes

<Properties>
<Property name="create_session" type="bool">
If present and true, a new audio session will be created and used for the transcription and the session's UUID is returned in the response object. A session will keep track of past inferences, this may be useful for things like live transcriptions where continuous audio is submitted across several requests.
</Property>
</Properties>

<Properties>
<Property name="session" type="UUID">
The UUID of an existing session, which will be used for the transcription.
</Property>
</Properties>


</Col>
<Col sticky>
Expand Down
10 changes: 10 additions & 0 deletions docs/src/app/documentation/configuration/page.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The Edgen configuration. It is read from a file where you can define your models
| `audio_transcriptions_models_dir` | Directory for audio transcriptions models | `<DATA_DIR>/edgen/models/audio/transcriptions` |
| `audio_transcriptions_model_name` | Name of audio transcriptions model | ggml-distil-small.en.bin |
| `audio_transcriptions_model_repo` | HuggingFace repo for audio transcriptions | distil-whisper/distil-small.en |
| `gpu_policy` | Policy to choose how a model gets loaded | !always_device |

### Configuration Paths for DATA_DIR

Expand All @@ -24,3 +25,12 @@ The Edgen configuration. It is read from a file where you can define your models
| Linux | `$XDG_DATA_HOME/_project_path_` or `$HOME/.local/share/_project_path_` | `/home/Alex/.local/share/edgen` |
| macOS | `$HOME/Library/Application Support/_project_path_` | `/Users/Alex/Library/Application Support/com.EdgenAI.Edgen` |
| Windows | `{FOLDERID_RoamingAppData}\_project_path_\data` | `C:\Users\Alex\AppData\Roaming\EdgenAI\Edgen\data` |

### GPU policies

Edgen supports the following policies, each with their own sub-settings:

- `!always_device` - Models will always get loaded to a GPU.
- `overflow_to_cpu` - If true, when a model can't be loaded to a GPU, it gets loaded to system memory. Else, Edgen will free GPU memory until the model can be loaded. **WARNING**: neither of these systems are currently implemented.
- `!always_cpu` - Models will always get loaded to system memory.
- `overflow_to_device` - If true, when a model can't be loaded to system memory, it gets loaded to a GPU. Else, Edgen will free system memory until the model can be loaded. **WARNING**: neither of these systems are currently implemented.

0 comments on commit 591bdac

Please sign in to comment.