Skip to content
This repository has been archived by the owner on Jun 2, 2023. It is now read-only.

Commit

Permalink
More voice and model logging for trouble-shooting
Browse files Browse the repository at this point in the history
* For PoC. Might be too noisy to keep.

Signed-off-by: Mark Sturdevant <[email protected]>
  • Loading branch information
markstur committed Sep 20, 2022
1 parent 770e4e4 commit 3166178
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ speechToText
.listModels()
.then(response => {
speechModels = response.result.models; // The whole list
console.log('STT MODELS (before filter): ', speechModels);
// Filter to only show one band.
speechModels = response.result.models.filter(model => model.rate > 8000); // TODO: Make it a .env setting
// Make description be `[lang] description` so the sort-by-lang makes sense.
Expand Down Expand Up @@ -157,6 +158,7 @@ let voices = [];
textToSpeech
.listVoices()
.then(response => {
console.log('TTS VOICES (before filter): ', response.result.voices);
// There are many redundant voices. For now the V3 ones are the best ones.
voices = response.result.voices.filter(voice => voice.name.includes('V3')); // TODO: env param.
})
Expand Down

0 comments on commit 3166178

Please sign in to comment.