We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63c071e commit ea7ee05Copy full SHA for ea7ee05
frontend/src/stt/google.js
@@ -130,7 +130,7 @@ class GoogleSTT {
130
}
131
if (hint && hint.length > 0) {
132
request.config.speechContexts = [
133
- { phrases: hint }
+ { phrases: [hint] }
134
]
135
136
if (process.env.BOTIUM_SPEECH_GOOGLE_CONFIG) {
@@ -176,7 +176,6 @@ class GoogleSTT {
176
} else {
177
request.audio.content = buffer.toString('base64')
178
179
-
180
try {
181
const [operation, initialApiResponse] = await speechClient.longRunningRecognize(request)
182
debug(`Google Cloud initialApiResponse: ${JSON.stringify(initialApiResponse, null, 2)}`)
0 commit comments