81
Yate IVR / Re: Nodejs library compatible to javascript.yate
« Last post by Anton on April 16, 2020, 10:33:59 AM »I suppose you messed up something with running a script with extmodule.
If the script would be launched by extmodule there is no need to use a network connection.
For example:
extmodule.conf configuration
[scripts]
node.sh=local_connected.js
And local_connected.js could contains something like this:
let yate = new Yate();
Of course, If you really want network connected script and launched by yate you can do it in "execute" section:
extmodule.conf configuration
[listener sample]
type=tcp
addr=127.0.0.1
port=6030
role=global
[execute]
node.sh=network_connected.js
And network_connected.js:
let yate = new Yate({ host: "127.0.0.1", port:6030 });
Second answer
I've experimented with WAV files and listened artifacts per voice file too. I don’t understand why such a popular format is still ignored by Yate Team. I would recommend to you converting WAV files to a more suitable format. Here is brief guide http://docs.yate.ro/wiki/ConvertingAudio
Best regards,
Anton
If the script would be launched by extmodule there is no need to use a network connection.
For example:
extmodule.conf configuration
[scripts]
node.sh=local_connected.js
And local_connected.js could contains something like this:
let yate = new Yate();
Of course, If you really want network connected script and launched by yate you can do it in "execute" section:
extmodule.conf configuration
[listener sample]
type=tcp
addr=127.0.0.1
port=6030
role=global
[execute]
node.sh=network_connected.js
And network_connected.js:
let yate = new Yate({ host: "127.0.0.1", port:6030 });
Second answer
I've experimented with WAV files and listened artifacts per voice file too. I don’t understand why such a popular format is still ignored by Yate Team. I would recommend to you converting WAV files to a more suitable format. Here is brief guide http://docs.yate.ro/wiki/ConvertingAudio
Best regards,
Anton