mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-22 01:27:55 +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 minBargeinWordCount = speechBargein ? (bargein.minWordCount || 1) : 0;
|
||||||
const {interDigitTimeout = 0, maxDigits, minDigits = 1, submitDigit} = (opts.dtmf || {});
|
const {interDigitTimeout = 0, maxDigits, minDigits = 1, submitDigit} = (opts.dtmf || {});
|
||||||
const {noInputTimeout, noInputRetries, noInputSpeech, noInputUrl} = (opts.user || {});
|
const {noInputTimeout, noInputRetries, noInputSpeech, noInputUrl} = (opts.user || {});
|
||||||
const sayConfig = {
|
|
||||||
text: textPrompt,
|
let sayConfig;
|
||||||
synthesizer: opts.synthesizer
|
let playConfig;
|
||||||
};
|
|
||||||
const playConfig = {
|
if (textPrompt) {
|
||||||
url: urlPrompt
|
sayConfig = {
|
||||||
};
|
text: textPrompt,
|
||||||
|
synthesizer: opts.synthesizer
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
if (urlPrompt) {
|
||||||
|
playConfig = {
|
||||||
|
url: urlPrompt
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
input,
|
input,
|
||||||
listenDuringPrompt: speechBargein,
|
listenDuringPrompt: speechBargein,
|
||||||
|
|||||||
Reference in New Issue
Block a user