Skip to content

Commit

Permalink
Merge pull request #15 from hiroshisuga/hintfile
Browse files Browse the repository at this point in the history
Supplementing transcription hint
  • Loading branch information
lfzawacki authored Oct 7, 2024
2 parents 6ee5f6e + ff7498a commit c5d951d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ const startAudioFork = (channelId, userId) => {
initialMessage.language = language == 'auto' ? language : language.slice(0,2);
initialMessage.partialUtterances = partialUtterances;
initialMessage.minUtteranceLength = minUtteranceLength;
initialMessage.transcription_hint = config.get(provider + '.hint');
}

if (!socketStatus[channelId]) {
Expand Down
3 changes: 3 additions & 0 deletions config/default.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ vosk:
gladia:
startMessage: '{"x_gladia_key": "", "sample_rate": 0, "bit_depth": 16, "model_type": "fast", "endpointing": 300 }'
endMessage: '{}'
# Provide a custom vocabulary to the model to improve accuracy of transcribing context specific words, technical terms, names, etc.
# If empty, this field is ignored. Please be aware of a character limit of 600.
hint: ''
server: ws://localhost:8777
proxy:
enabled: true
Expand Down

0 comments on commit c5d951d

Please sign in to comment.