Skip to content

pilwon/node-ivona

Repository files navigation

IVONA

ivona is a client library for IVONA Text-to-Speech SaaS written in Node.js.

Installation

$ npm install ivona

Usage

var ivona = new (require('ivona'))({
  email: IVONA_LOGIN_EMAIL,
  key: IVONA_API_KEY
});

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.

Create Speech File

ivona.createSpeechFile({
  text: '...',
  contentType: '...',
  voiceId: '...',
  codecId: '...'
}), function (err, fileId, soundUrl) {
  // ...
});

Create Speech File w/ Marks

ivona.createSpeechFileWithMarks({
  text: '...',
  contentType: '...',
  voiceId: '...',
  codecId: '...'
}), function (err, fileId, soundUrl, marksUrl) {
  // ...
});

Delete Speech File

ivona.deleteSpeechFile({
  fileId: '...'
}, function (err, success) {
  // ...
});

List Speech Files

ivona.listSpeechFiles(function (err, speechFiles) {
  // ...
});

Get Speech File Data

ivona.getSpeechFileData({
  fileId: '...'
}, function (err, result) {
  // ...
});

Get Speech File Data w/ Marks

ivona.getSpeechFileDataWithMarks({
  fileId: '...'
}, function (err, result) {
  // ...
});

List Pronunciation Rules

ivona.listPronunciationRules({
  langId: '...'
}, function (err, rules) {
  // ...
});

Add Pronunciation Rule

ivona.addPronunciationRule({
  langId: '...',
  stat: #,
    // 1 – simple substitutions, case insensitive
    // 2 – simple substitutions, case sensitive
    // 3 – regular expressions
  key: '...',
  value: '...'
}, function (err, success) {
  // ...
});

Modify Pronunciation Rule

ivona.modifyPronunciationRule({
  langId: '...',
  id: '...',
  stat: '...',
  key: '...',
  value: '...'
}, function (err, success) {
  // ...
});

Delete Pronunciation Rule

ivona.deletePronunciationRule({
  langId: '...',
  id: '...'
}, function (err, success) {
  // ...
});

Check Text Price

ivona.checkTextPrice({
  text: '...',
  voiceId: '...'
}, function (err, price) {
  // ...
});

Get User Agreement Data

ivona.getUserAgreementData(function (err, result) {
  // ...
});

List Voices

ivona.listVoices(function (err, voices) {
  // ...
});

List Voices Extended

ivona.listVoicesExtended({
  locale: '...'
}, function (err, voices) {
  // ...
});

Get Voice Data

ivona.getVoiceData({
  voiceId: '...'
}, function (err, result) {
  // ...
});

List Codecs

ivona.listCodecs(function (err, codecs) {
  // ...
});

Credits

See the contributors.

License

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.

Analytics

About

IVONA Text-to-Speech SaaS client library for Node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published