Downloads · 30 days
11
14% of all-time downloads
Archan/hindi-turn-detector-with-random-pauses
hindi-turn-detector-with-random-pauses is a audio classification model from Archan. Use it for the audio classification task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
should probably proofread and complete it, then remove this comment. --
Downloads · 30 days
11
14% of all-time downloads
All-time downloads
77
Public
Parameters
8M
32 MB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors32 MB · 100%
From the Hugging Face model README
The idea is to have a detect and label correctly whether a speech taken completely in hindi has paused or will continue.
This dataset used for this is the hindi subset from pipecat smart turn v3.2. The data was streamed and only rows pertaining to hindi were picked up.
After the hindi data points were separated, I added a script that would directly inject pauses within the audio itself, ranging from 250ms to 1500ms mimicking real human pauses. Although its done at a very basic level and can be improved further.
Whisper tiny has been used here with a classifier head and frozen layers. Only keeping the attention layers open during the training process
The data was augmented with a ratio of 0.5, which meant that out of 10K training data points 5K would be randomly injected with pauses. Eval data was kept in two chunks where we had one set without the injected pauses and another having injected pauses.
The following hyperparameters were used during training:
| Training Loss | Validation Loss | Step | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|
| 0.640993 | 0.655236 | 12520 | 0.598000 | 0.606394 | 0.596853 | 0.601586 |
| Training Loss | Validation Loss | Step | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|
| 0.640993 | 0.652816 | 12520 | 0.606000 | 0.611490 | 0.617502 | 0.614481 |
You can find the training and data-prep code here.