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

Commit ebed62e

Browse files
committed
More voice and model logging for trouble-shooting
* For PoC. Might be too noisy to keep.
1 parent 770e4e4 commit ebed62e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ speechToText
9595
.listModels()
9696
.then(response => {
9797
speechModels = response.result.models; // The whole list
98+
console.log('STT MODELS (before filter): ', speechModels);
9899
// Filter to only show one band.
99100
speechModels = response.result.models.filter(model => model.rate > 8000); // TODO: Make it a .env setting
100101
// Make description be `[lang] description` so the sort-by-lang makes sense.
@@ -157,6 +158,7 @@ let voices = [];
157158
textToSpeech
158159
.listVoices()
159160
.then(response => {
161+
console.log('TTS VOICES (before filter): ', response.result.voices);
160162
// There are many redundant voices. For now the V3 ones are the best ones.
161163
voices = response.result.voices.filter(voice => voice.name.includes('V3')); // TODO: env param.
162164
})

0 commit comments

Comments
 (0)