所以我有这段代码:
const nexmo = require("./nexmo");
const requestId = null;
module.exports = function sendVerificationCode(
recipient
) {
return new Promise((resolve, reject) => {
nexmo.verify.request({
number: recipient,
brand: 'Verification'
}, function(err, result) {
if (result.status === 0) {
requestId = result.request_id;
}
return requestId;
});
});
};
这成功返回请求ID。但我关心的是我希望禁用API的文本到语音转换机制。怎么样?
答案 0 :(得分:0)
您需要联系nexmo支持support@nexmo.com并要求他们在验证时禁用TTS。