ivona
is a client library for IVONA Text-to-Speech SaaS written in Node.js.
$ npm install ivona
var ivona = new (require('ivona'))({
email: IVONA_LOGIN_EMAIL,
key: IVONA_API_KEY
});
API (documentation)
The client automatically handles token authentication therefore the following API calls can be made right away.
token
and md5
parameters can be omitted or specified.
ivona.createSpeechFile({
text: '...',
contentType: '...',
voiceId: '...',
codecId: '...'
}), function (err, fileId, soundUrl) {
// ...
});
ivona.createSpeechFileWithMarks({
text: '...',
contentType: '...',
voiceId: '...',
codecId: '...'
}), function (err, fileId, soundUrl, marksUrl) {
// ...
});
ivona.deleteSpeechFile({
fileId: '...'
}, function (err, success) {
// ...
});
ivona.listSpeechFiles(function (err, speechFiles) {
// ...
});
ivona.getSpeechFileData({
fileId: '...'
}, function (err, result) {
// ...
});
ivona.getSpeechFileDataWithMarks({
fileId: '...'
}, function (err, result) {
// ...
});
ivona.listPronunciationRules({
langId: '...'
}, function (err, rules) {
// ...
});
ivona.addPronunciationRule({
langId: '...',
stat: #,
// 1 – simple substitutions, case insensitive
// 2 – simple substitutions, case sensitive
// 3 – regular expressions
key: '...',
value: '...'
}, function (err, success) {
// ...
});
ivona.modifyPronunciationRule({
langId: '...',
id: '...',
stat: '...',
key: '...',
value: '...'
}, function (err, success) {
// ...
});
ivona.deletePronunciationRule({
langId: '...',
id: '...'
}, function (err, success) {
// ...
});
ivona.checkTextPrice({
text: '...',
voiceId: '...'
}, function (err, price) {
// ...
});
ivona.getUserAgreementData(function (err, result) {
// ...
});
ivona.listVoices(function (err, voices) {
// ...
});
ivona.listVoicesExtended({
locale: '...'
}, function (err, voices) {
// ...
});
ivona.getVoiceData({
voiceId: '...'
}, function (err, result) {
// ...
});
ivona.listCodecs(function (err, codecs) {
// ...
});
See the contributors.
The MIT License (MIT) Copyright (c) 2012-2014 Pilwon Huh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.