Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated transcription and configuration docs #80

Merged
merged 1 commit into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
Loading