From ebed62e60f7817c6570270d8908731af713c3749 Mon Sep 17 00:00:00 2001 From: Mark Sturdevant Date: Tue, 20 Sep 2022 09:41:51 -0700 Subject: [PATCH] More voice and model logging for trouble-shooting * For PoC. Might be too noisy to keep. --- app.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.js b/app.js index 2777efe..dc0342f 100755 --- a/app.js +++ b/app.js @@ -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. @@ -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. })