Text-to-speech AngularJS SDK
The Voice RSS Text-to-Speech AngularJS SDK wraps Voice RSS Text-to-Speech API.
The Voice RSS Text-to-Speech AngularJS SDKs will help to make integration with our Text-to-Speech API faster and easer.
If you have any questions or suggestions please feel free to contact us via e-mail.
Documentation
To integrate an application with the Voice RSS Text-to-Speech AngularJS SDK it needs to add reference to the file angularjs.voicerss-tts.min.js.
Convert text-to-speech
The following example demonstrates asynchronous converting text-to-speech and plays it in an internet browser:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset='utf-8' />
<script src='https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js'></script>
<script src='angularjs.voicerss-tts.min.js'></script>
</head>
<body>
<div ng-app='myApp' ng-controller='ctrl'></div>
<script>
var app = angular.module('myApp', ['voiceRss']);
app.config(['ttsProvider', function (ttsProvider) {
ttsProvider.setSettings({ key: '<API key>' });
}]);
app.controller('ctrl', ['tts', function (tts) {
tts.speech({
src: 'Hello, world!',
hl: 'en-us',
v: 'Linda',
r: 0,
c: 'mp3',
f: '44khz_16bit_stereo',
ssml: false
});
}]);
</script>
</body>
</html>
