Skip to content

Commit

Permalink
fixed speechmatics multilingua support
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrop committed Apr 13, 2018
1 parent b7813b4 commit c013e9d
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion electron/ffmpeg_extentions.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions lib/app/templates/transcription_show.html.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@
<dl>
<dt class="text-muted">Speech To Text System</dt>
<dd><kbd><%= sttEngine %></kbd></dd>
<dt class="text-muted">Language Model</dt>
<dd><kbd><%= languageModel %></kbd></dd>
<dt class="text-muted">File name</dt>
<dd><kbd><%= metadata.fileName %></kbd></dd>
<!-- <br> -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ SendToSpeechmatics.prototype.send = function(audioFile,keys, languageModel, cb){

var existingReadStream = fs.createReadStream(audioFile);

speech_to_text.createJob({audioStream: existingReadStream}, function(error, res){
speech_to_text.createJob({audioStream: existingReadStream, model: languageModel}, function(error, res){
//{"balance":360,"check_wait":null,"cost":0,"id":7420708}
//{"balance":330,"check_wait":30,"cost":6,"id":7421841}
console.log("inside speechmatics module : ",JSON.stringify(res));
Expand Down
24 changes: 19 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"path": "0.12.7",
"request": "2.81.0",
"require-globify": "1.4.1",
"speechmatics": "^2.1.0",
"speechmatics": "git+https://github.com/pietrop/speechmatics.git",
"underscore": "1.8.3",
"underscore.string": "3.3.4",
"watson-developer-cloud": "2.4.1"
Expand Down

0 comments on commit c013e9d

Please sign in to comment.