Say length text (#165)

* typo for media bug name in azure and punctuation fix

* say: split very long text intelligently

* more fixes from testing

* update to latest synthAudio
This commit is contained in:
Dave Horton
2022-09-14 17:17:29 +02:00
committed by GitHub
parent 876824abde
commit bd49dacac4
4 changed files with 106 additions and 10 deletions

View File

@@ -173,6 +173,7 @@ class TaskTranscribe extends Task {
['diarization', 'GOOGLE_SPEECH_PROFANITY_FILTER']
].forEach((arr) => {
if (this[arr[0]]) opts[arr[1]] = true;
else if (this[arr[0]] === false) opts[arr[1]] = false;
});
if (this.hints.length > 0) {
opts.GOOGLE_SPEECH_HINTS = this.hints.join(',');