Commit cbeb637c authored by sergey's avatar sergey

add say phonetic command

parent a23fb51a
...@@ -128,6 +128,10 @@ Context.prototype.sayDigits = function(digits, escape_digits, cb) { ...@@ -128,6 +128,10 @@ Context.prototype.sayDigits = function(digits, escape_digits, cb) {
this.send('SAY DIGITS ' + digits + ' "' + escape_digits + '"' + '\n', cb || function() { }); this.send('SAY DIGITS ' + digits + ' "' + escape_digits + '"' + '\n', cb || function() { });
}; };
Context.prototype.sayPhonetic = function(string, escape_digits, cb) {
this.send('SAY PHONETIC ' + string + ' "' + escape_digits + '"' + '\n', cb || function() { });
};
Context.prototype.streamFile = function(filename, acceptDigits, cb) { Context.prototype.streamFile = function(filename, acceptDigits, cb) {
if(typeof acceptDigits === 'function') { if(typeof acceptDigits === 'function') {
cb = acceptDigits; cb = acceptDigits;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment