Skip to content

Commit

Permalink
Add remote STT voice command settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hansen committed Apr 2, 2020
1 parent fe0bf53 commit c615e7f
Showing 1 changed file with 71 additions and 10 deletions.
81 changes: 71 additions & 10 deletions templates/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -948,54 +948,54 @@ <h5>Voice Command Settings</h5>
</div>
<div class="form-row">
<div class="col-auto">
<label for="pocketsphinx-min-sec" class="col-form-label">Minimum Duration:</label>
<label for="kaldi-min-sec" class="col-form-label">Minimum Duration:</label>
</div>
<div class="col">
<input id="pocketsphinx-min-sec" type="text" class="form-control" x-model="profile.command.webrtcvad.min_sec">
<input id="kaldi-min-sec" type="text" class="form-control" x-model="profile.command.webrtcvad.min_sec">
</div>
<div class="col-auto text-muted">
(seconds)
</div>
</div>
<div class="form-row">
<div class="col-auto">
<label for="pocketsphinx-speech-sec" class="col-form-label">Speech Before:</label>
<label for="kaldi-speech-sec" class="col-form-label">Speech Before:</label>
</div>
<div class="col">
<input id="pocketsphinx-speech-sec" type="text" class="form-control" x-model="profile.command.webrtcvad.speech_sec">
<input id="kaldi-speech-sec" type="text" class="form-control" x-model="profile.command.webrtcvad.speech_sec">
</div>
<div class="col-auto text-muted">
(seconds)
</div>
</div>
<div class="form-row">
<div class="col-auto">
<label for="pocketsphinx-silence-sec" class="col-form-label">Silence After:</label>
<label for="kaldi-silence-sec" class="col-form-label">Silence After:</label>
</div>
<div class="col">
<input id="pocketsphinx-silence-sec" type="text" class="form-control" x-model="profile.command.webrtcvad.silence_sec">
<input id="kaldi-silence-sec" type="text" class="form-control" x-model="profile.command.webrtcvad.silence_sec">
</div>
<div class="col-auto text-muted">
(seconds)
</div>
</div>
<div class="form-row">
<div class="col-auto">
<label for="pocketsphinx-silence-sec" class="col-form-label">Record Before:</label>
<label for="kaldi-silence-sec" class="col-form-label">Record Before:</label>
</div>
<div class="col">
<input id="pocketsphinx-before-sec" type="text" class="form-control" x-model="profile.command.webrtcvad.before_sec">
<input id="kaldi-before-sec" type="text" class="form-control" x-model="profile.command.webrtcvad.before_sec">
</div>
<div class="col-auto text-muted">
(seconds)
</div>
</div>
<div class="form-row">
<div class="col-auto">
<label for="pocketsphinx-vad-mode" class="col-form-label">VAD Sensitivity:</label>
<label for="kaldi-vad-mode" class="col-form-label">VAD Sensitivity:</label>
</div>
<div class="col">
<input id="pocketsphinx-vad-mode" type="text" class="form-control" x-model="profile.command.webrtcvad.vad_mode">
<input id="kaldi-vad-mode" type="text" class="form-control" x-model="profile.command.webrtcvad.vad_mode">
</div>
<div class="col-auto text-muted">
(1-3)
Expand Down Expand Up @@ -1036,6 +1036,67 @@ <h5>Voice Command Settings</h5>
</div>
</div>
<hr>
<div class="form-group">
<div class="form-row">
<h5>Voice Command Settings</h5>
</div>
<div class="form-row">
<div class="col-auto">
<label for="remote-min-sec" class="col-form-label">Minimum Duration:</label>
</div>
<div class="col">
<input id="remote-min-sec" type="text" class="form-control" x-model="profile.command.webrtcvad.min_sec">
</div>
<div class="col-auto text-muted">
(seconds)
</div>
</div>
<div class="form-row">
<div class="col-auto">
<label for="remote-speech-sec" class="col-form-label">Speech Before:</label>
</div>
<div class="col">
<input id="remote-speech-sec" type="text" class="form-control" x-model="profile.command.webrtcvad.speech_sec">
</div>
<div class="col-auto text-muted">
(seconds)
</div>
</div>
<div class="form-row">
<div class="col-auto">
<label for="remote-silence-sec" class="col-form-label">Silence After:</label>
</div>
<div class="col">
<input id="remote-silence-sec" type="text" class="form-control" x-model="profile.command.webrtcvad.silence_sec">
</div>
<div class="col-auto text-muted">
(seconds)
</div>
</div>
<div class="form-row">
<div class="col-auto">
<label for="remote-silence-sec" class="col-form-label">Record Before:</label>
</div>
<div class="col">
<input id="remote-before-sec" type="text" class="form-control" x-model="profile.command.webrtcvad.before_sec">
</div>
<div class="col-auto text-muted">
(seconds)
</div>
</div>
<div class="form-row">
<div class="col-auto">
<label for="remote-vad-mode" class="col-form-label">VAD Sensitivity:</label>
</div>
<div class="col">
<input id="remote-vad-mode" type="text" class="form-control" x-model="profile.command.webrtcvad.vad_mode">
</div>
<div class="col-auto text-muted">
(1-3)
</div>
</div>
</div>
<hr>
<div class="form-group">
<div class="form-row">
<div class="col-auto">
Expand Down

0 comments on commit c615e7f

Please sign in to comment.