Skip to content

Commit ea7ee05

Browse files
author
Florian Treml
committed
Fix google hint
1 parent 63c071e commit ea7ee05

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frontend/src/stt/google.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ class GoogleSTT {
130130
}
131131
if (hint && hint.length > 0) {
132132
request.config.speechContexts = [
133-
{ phrases: hint }
133+
{ phrases: [hint] }
134134
]
135135
}
136136
if (process.env.BOTIUM_SPEECH_GOOGLE_CONFIG) {
@@ -176,7 +176,6 @@ class GoogleSTT {
176176
} else {
177177
request.audio.content = buffer.toString('base64')
178178
}
179-
180179
try {
181180
const [operation, initialApiResponse] = await speechClient.longRunningRecognize(request)
182181
debug(`Google Cloud initialApiResponse: ${JSON.stringify(initialApiResponse, null, 2)}`)

0 commit comments

Comments
 (0)