pipobscure / NodeJS-AsteriskManager

NodeJS Asterisk Manager API
Other
249 stars 103 forks source link

originate a call with text to speech message #63

Open measaperson opened 5 years ago

measaperson commented 5 years ago

I have a tape announcement as a text which must be translated via text to speech. When I try to call an outgoing phonenumber how can I setup the text to speech variable and the recipient? An example would be


ami.action({
    'action': 'originate',
    '??? phonenumber ???': '12345',
    '??? text to be spoken ???': 'Hello, this is a tape announcement'
  }, (err, res) => {
    if (err) {
        throw err;
    }

    console.log('everything was fine');
  });```
yeya commented 5 years ago

Your question is not related to this library. You need to originate a call to specific application. This library can let you do that after you setup the application. Read this. If you have a working command you can run by cli, you can execute it by this library too.