Skip to content

Commit

Permalink
Fix google hint
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Treml committed Jan 19, 2022
1 parent 63c071e commit ea7ee05
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/src/stt/google.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class GoogleSTT {
}
if (hint && hint.length > 0) {
request.config.speechContexts = [
{ phrases: hint }
{ phrases: [hint] }
]
}
if (process.env.BOTIUM_SPEECH_GOOGLE_CONFIG) {
Expand Down Expand Up @@ -176,7 +176,6 @@ class GoogleSTT {
} else {
request.audio.content = buffer.toString('base64')
}

try {
const [operation, initialApiResponse] = await speechClient.longRunningRecognize(request)
debug(`Google Cloud initialApiResponse: ${JSON.stringify(initialApiResponse, null, 2)}`)
Expand Down

0 comments on commit ea7ee05

Please sign in to comment.