diff --git a/electron/ffmpeg_extentions.js b/electron/ffmpeg_extentions.js index b285fa4..c510dec 100644 --- a/electron/ffmpeg_extentions.js +++ b/electron/ffmpeg_extentions.js @@ -1 +1 @@ -module.exports= ['mkv','3dostr','3g2','3gp','4xm','a64','aa','aac','ac3','acm','act','adf','adp','ads','adts','adx','aea','afc','aiff','aix','alaw','alias_pix','amr','anm','apc','ape','apng','aqtitle','asf','asf_o','asf_stream','ass','ast','au','avfoundation','avi','avm2','avr','avs','bethsoftvid','bfi','bfstm','bin','bink','bit','bmp_pipe','bmv','boa','brender_pix','brstm','c93','caf','cavsvideo','cdg','cdxl','cine','concat','crc','dash','data','daud','dcstr','dds_pipe','dfa','dirac','dnxhd','dpx_pipe','dsf','dsicin','dss','dts','dtshd','dv','dvbsub','dvbtxt','dvd','dxa','ea','ea_cdata','eac3','epaf','exr_pipe','f32be','f32le','f4v','f64be','f64le','ffm','ffmetadata','fifo','film_cpk','filmstrip','flac','flic','flv','framecrc','framehash','framemd5','frm','fsb','g722','g723_1','g729','genh','gsm','gxf','h261','h263','h264','hash','hds','hevc','hls','hls,applehttp','hnm','idcin','idf','iff','ilbc','image2','image2pipe','ingenient','ipmovie','ipod','ircam','ismv','iss','iv8','ivf','ivr','j2k_pipe','jacosub','jpeg_pipe','jpegls_pipe','jv','latm','lavfi','live_flv','lmlm4','loas','lrc','lvf','lxf','m4v','matroska','matroska,webm','md5','mgsts','microdvd','mjpeg','mjpeg_2000','mkvtimestamp_v2','mlp','mlv','mm','mmf','mov','mov,mp4,m4a,3gp,3g2,mj2','mp2','mp3','mp4','mpc','mpc8','mpeg','mpeg1video','mpeg2video','mpegts','mpegtsraw','mpegvideo','mpjpeg','mpl2','mpsub','msf','msnwctcp','mtaf','mtv','mulaw','musx','mv','mvi','mxf','mxf_d10','mxf_opatom','mxg','nc','nistsphere','nsv','null','nut','nuv','oga','ogg','ogv','oma','opus','paf','pam_pipe','pbm_pipe','pcx_pipe','pgm_pipe','pgmyuv_pipe','pictor_pipe','pjs','pmp','png_pipe','ppm_pipe','psd_pipe','psp','psxstr','pva','pvf','qcp','qdraw_pipe','qtkit','r3d','rawvideo','realtext','redspark','rl2','rm','roq','rpl','rsd','rso','rtp','rtp_mpegts','rtsp','s16be','s16le','s24be','s24le','s32be','s32le','s8','sami','sap','sbg','scc','sdp','sdr2','sds','sdx','segment','sgi_pipe','shn','siff','singlejpeg','sln','smjpeg','smk','smoothstreaming','smush','sol','sox','spdif','spx','stl','stream_segment,ssegment','subviewer','subviewer1','sunrast_pipe','sup','svag','svcd','swf','tak','tedcaptions','tee','thp','tiertexseq','tiff_pipe','tmv','truehd','tta','tty','txd','u16be','u16le','u24be','u24le','u32be','u32le','u8','uncodedframecrc','v210','v210x','vag','vc1','vc1test','vcd','vivo','vmd','vob','vobsub','voc','vpk','vplayer','vqf','w64','wav','wc3movie','webm','webm_chunk','WebM','webp','webp_pipe','wsaud','wsd','wsvqa','wtv','wv','wve','xa','xbin','xmv','xpm_pipe','xvag','xwma','yop','yuv4mpegpipe'] \ No newline at end of file +module.exports= ['mkv','3dostr','3g2','3gp','4xm','a64','aa','aac','ac3','acm','act','adf','adp','ads','adts','adx','aea','afc','aiff','aix','alaw','alias_pix','amr','anm','apc','ape','apng','aqtitle','asf','asf_o','asf_stream','ass','ast','au','avfoundation','avi','avm2','avr','avs','bethsoftvid','bfi','bfstm','bin','bink','bit','bmp_pipe','bmv','boa','brender_pix','brstm','c93','caf','cavsvideo','cdg','cdxl','cine','concat','crc','dash','data','daud','dcstr','dds_pipe','dfa','dirac','dnxhd','dpx_pipe','dsf','dsicin','dss','dts','dtshd','dv','dvbsub','dvbtxt','dvd','dxa','ea','ea_cdata','eac3','epaf','exr_pipe','f32be','f32le','f4v','f64be','f64le','ffm','ffmetadata','fifo','film_cpk','filmstrip','flac','flic','flv','framecrc','framehash','framemd5','frm','fsb','g722','g723_1','g729','genh','gsm','gxf','h261','h263','h264','hash','hds','hevc','hls','hls,applehttp','hnm','idcin','idf','iff','ilbc','image2','image2pipe','ingenient','ipmovie','ipod','ircam','ismv','iss','iv8','ivf','ivr','j2k_pipe','jacosub','jpeg_pipe','jpegls_pipe','jv','latm','lavfi','live_flv','lmlm4','loas','lrc','lvf','lxf','m4v','matroska','matroska,webm','md5','mgsts','microdvd','mjpeg','mjpeg_2000','mkvtimestamp_v2','mlp','mlv','mm','mmf','mov','mov,mp4,m4a,3gp,3g2,mj2','mp2','mp3','mp4','mpc','mpc8','mpeg','mpeg1video','mpeg2video','mpegts','mpegtsraw','mpegvideo','mpjpeg','mpl2','mpsub','msf','msnwctcp','mtaf','mtv','mulaw','musx','mv','mvi','mxf','mxf_d10','mxf_opatom','mxg','nc','nistsphere','nsv','null','nut','nuv','oga','ogg','ogv','oma','opus','paf','pam_pipe','pbm_pipe','pcx_pipe','pgm_pipe','pgmyuv_pipe','pictor_pipe','pjs','pmp','png_pipe','ppm_pipe','psd_pipe','psp','psxstr','pva','pvf','qcp','qdraw_pipe','qtkit','r3d','rawvideo','realtext','redspark','rl2','rm','roq','rpl','rsd','rso','rtp','rtp_mpegts','rtsp','s16be','s16le','s24be','s24le','s32be','s32le','s8','sami','sap','sbg','scc','sdp','sdr2','sds','sdx','segment','sgi_pipe','shn','siff','singlejpeg','sln','smjpeg','smk','smoothstreaming','smush','sol','sox','spdif','spx','stl','stream_segment,ssegment','subviewer','subviewer1','sunrast_pipe','sup','svag','svcd','swf','tak','tedcaptions','tee','thp','tiertexseq','tiff_pipe','tmv','truehd','tta','tty','txd','u16be','u16le','u24be','u24le','u32be','u32le','u8','uncodedframecrc','v210','v210x','vag','vc1','vc1test','vcd','vivo','vmd','vob','vobsub','voc','vpk','vplayer','vqf','w64','wav','m4a','wc3movie','webm','webm_chunk','WebM','webp','webp_pipe','wsaud','wsd','wsvqa','wtv','wv','wve','xa','xbin','xmv','xpm_pipe','xvag','xwma','yop','yuv4mpegpipe'] \ No newline at end of file diff --git a/lib/app/templates/transcription_show.html.ejs b/lib/app/templates/transcription_show.html.ejs index 7d900fe..23b7e3d 100644 --- a/lib/app/templates/transcription_show.html.ejs +++ b/lib/app/templates/transcription_show.html.ejs @@ -363,6 +363,8 @@
Speech To Text System
<%= sttEngine %>
+
Language Model
+
<%= languageModel %>
File name
<%= metadata.fileName %>
diff --git a/lib/interactive_transcription_generator/transcriber/speechmatics/send_to_speechmatics.js b/lib/interactive_transcription_generator/transcriber/speechmatics/send_to_speechmatics.js index af0abff..043c6e8 100644 --- a/lib/interactive_transcription_generator/transcriber/speechmatics/send_to_speechmatics.js +++ b/lib/interactive_transcription_generator/transcriber/speechmatics/send_to_speechmatics.js @@ -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)); diff --git a/package-lock.json b/package-lock.json index 77a3232..54024e5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -371,7 +371,12 @@ "integrity": "sha1-TMgOp8sWMaxHSInOQPL4vGg7KZk=" }, "bagpipe": { - "version": "github:ivshti/bagpipe#328cc576d682539d635af3a8c360696af353e44a" + "version": "github:Ivshti/bagpipe#328cc576d682539d635af3a8c360696af353e44a", + "dependencies": { + "inherits": { + "version": "github:Ivshti/inherits#0c5b02ddc4172bf2e55460916401ac37cfe6f9d3" + } + } }, "balanced-match": { "version": "1.0.0", @@ -3455,6 +3460,12 @@ "version": "1.5.2", "resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz", "integrity": "sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=" + }, + "inherits": { + "version": "github:Ivshti/inherits#0c5b02ddc4172bf2e55460916401ac37cfe6f9d3" + }, + "util": { + "version": "github:Ivshti/node-util#97b6beed8e0e478cd4184965ac94bf316f94e5f5" } } }, @@ -4753,9 +4764,7 @@ "dev": true }, "speechmatics": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/speechmatics/-/speechmatics-2.1.0.tgz", - "integrity": "sha1-WnTESkMNt/JElHS1o0Mv3kNH38E=" + "version": "git+https://github.com/pietrop/speechmatics.git#b1a479a0b40bd7f2e25273b9f2cc5587e50ca66a" }, "speedometer": { "version": "0.1.4", @@ -5357,7 +5366,12 @@ "dev": true }, "util": { - "version": "github:ivshti/node-util#97b6beed8e0e478cd4184965ac94bf316f94e5f5" + "version": "github:ivshti/node-util#97b6beed8e0e478cd4184965ac94bf316f94e5f5", + "dependencies": { + "inherits": { + "version": "github:Ivshti/inherits#0c5b02ddc4172bf2e55460916401ac37cfe6f9d3" + } + } }, "util-deprecate": { "version": "1.0.2", diff --git a/package.json b/package.json index c537898..daa51be 100644 --- a/package.json +++ b/package.json @@ -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"