Skip to content

Commit

Permalink
Neural filter. Defaults to v2 of speech api
Browse files Browse the repository at this point in the history
  • Loading branch information
Hagsten committed Jul 30, 2020
1 parent 6d60624 commit 1bafbec
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 5 deletions.
6 changes: 5 additions & 1 deletion dist/talkify.js
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,10 @@ talkify.playbar = function (parent, correlationId) {
return true;
}

if (filter.byClass.indexOf("Neural") !== -1 && voice.isNeural) {
return true;
}

return false;
}

Expand Down Expand Up @@ -1214,7 +1218,7 @@ talkify.config = {
active: true,
host: 'https://talkify.net',
apiKey: '',
speechBaseUrl: '/api/speech/v1',
speechBaseUrl: '/api/speech/v2',
languageBaseUrl: '/api/language/v1'
},
keyboardCommands: {
Expand Down
2 changes: 1 addition & 1 deletion dist/talkify.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/control-center.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
talkify.config.keyboardCommands.enabled = true;
talkify.config.voiceCommands.enabled = true;

talkify.config.remoteService.speechBaseUrl = '/api/speech/v1';
talkify.config.remoteService.speechBaseUrl = '/api/speech/v2';
talkify.config.remoteService.languageBaseUrl = '/api/language/v1';

talkify.config.remoteService.apiKey = '';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "talkify-tts",
"version": "3.2.2",
"version": "3.3.0",
"description": "A JavaScript text to speech (TTS) library. Provides you with high quality TTS voices in many languages and a high quality language. These voices and engines runs on a Talkify hosted server. This lib also supports browser built in voices via the SpeechSynthesis API if you rather not rely on Talkify servers.",
"browser": "dist/talkify.min.js",
"files": ["dist/styles/**/*.css"],
Expand Down
4 changes: 4 additions & 0 deletions src/control-centers/talkify-controlcenter-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,10 @@ talkify.playbar = function (parent, correlationId) {
return true;
}

if (filter.byClass.indexOf("Neural") !== -1 && voice.isNeural) {
return true;
}

return false;
}

Expand Down
2 changes: 1 addition & 1 deletion src/talkify-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ talkify.config = {
active: true,
host: 'https://talkify.net',
apiKey: '',
speechBaseUrl: '/api/speech/v1',
speechBaseUrl: '/api/speech/v2',
languageBaseUrl: '/api/language/v1'
},
keyboardCommands: {
Expand Down

0 comments on commit 1bafbec

Please sign in to comment.