Skip to content

Commit d8befec

Browse files
author
Florian Treml
committed
eslint
1 parent 44723e3 commit d8befec

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ For performance improvements, the result of the speech-to-text and text-to-speec
9292

9393
Point your browser to http://127.0.0.1/ to open Swagger UI to try out the API.
9494

95-
Point your browser to http://127.0.0.1/dictate to open a rudimentary [dictate.js-interface](https://github.com/Kaljurand/dictate.js) for testing speech recognition (_for Kaldi only_)
95+
Point your browser to http://127.0.0.1/dictate/ to open a rudimentary [dictate.js-interface](https://github.com/Kaljurand/dictate.js) for testing speech recognition (_for Kaldi only_)
9696

9797
_Attention: in Google Chrome this only works with services published as HTTPS, you will have to take of this yourself. For example, you could publish it via ngrok tunnel._
9898

frontend/src/convert/sox.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const debug = require('debug')('botium-speech-processing-convert-sox')
77
const runsox = (cmdLine, { inputBuffer, start, end }) => {
88
return new Promise((resolve, reject) => {
99
const output = `/tmp/${uuidv1()}.wav`
10-
10+
1111
let cmdLineSox = Mustache.render(cmdLine, { output })
1212
if (start && end) {
1313
cmdLineSox = `${cmdLineSox} trim ${start} ${end}`

frontend/src/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ router.post('/api/stt/:language', async (req, res, next) => {
122122

123123
if (cachePathStt) {
124124
fs.writeFileSync(cacheFile, JSON.stringify(result))
125-
debug(`Writing stt result ${cacheFile} to cache: ${text}`)
125+
debug(`Writing stt result ${cacheFile} to cache: ${result.text}`)
126126
}
127127
} catch (err) {
128128
return next(err)

frontend/src/stt/google.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fs = require('fs')
22
const uuidv1 = require('uuid/v1')
3-
const speech = process.env.BOTIUM_SPEECH_GOOGLE_API_VERSION ? require('@google-cloud/speech')[process.env.BOTIUM_SPEECH_GOOGLE_API_VERSION] : require('@google-cloud/speech')
3+
const speech = process.env.BOTIUM_SPEECH_GOOGLE_API_VERSION ? require('@google-cloud/speech')[process.env.BOTIUM_SPEECH_GOOGLE_API_VERSION] : require('@google-cloud/speech')
44
const storage = require('@google-cloud/storage')
55
const debug = require('debug')('botium-speech-processing-google')
66

frontend/src/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ const wer = async (text1, text2) => {
99

1010
module.exports = {
1111
wer
12-
}
12+
}

0 commit comments

Comments
 (0)