mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
create gather without a prompt
This commit is contained in:
@@ -51,13 +51,23 @@ class SpeechConfig extends Emitter {
|
||||
const minBargeinWordCount = speechBargein ? (bargein.minWordCount || 1) : 0;
|
||||
const {interDigitTimeout = 0, maxDigits, minDigits = 1, submitDigit} = (opts.dtmf || {});
|
||||
const {noInputTimeout, noInputRetries, noInputSpeech, noInputUrl} = (opts.user || {});
|
||||
const sayConfig = {
|
||||
text: textPrompt,
|
||||
synthesizer: opts.synthesizer
|
||||
};
|
||||
const playConfig = {
|
||||
url: urlPrompt
|
||||
};
|
||||
|
||||
let sayConfig;
|
||||
let playConfig;
|
||||
|
||||
if (textPrompt) {
|
||||
sayConfig = {
|
||||
text: textPrompt,
|
||||
synthesizer: opts.synthesizer
|
||||
};
|
||||
}
|
||||
|
||||
if (urlPrompt) {
|
||||
playConfig = {
|
||||
url: urlPrompt
|
||||
};
|
||||
}
|
||||
|
||||
const config = {
|
||||
input,
|
||||
listenDuringPrompt: speechBargein,
|
||||
|
||||
Reference in New Issue
Block a user